| /** |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| syntax = "proto2"; |
| option java_package = "org.apache.tubemq.corebase.protobuf.generated"; |
| option java_outer_classname = "RPCProtos"; |
| option java_generate_equals_and_hash = true; |
| option optimize_for = SPEED; |
| |
| |
| message RpcConnHeader { |
| required int32 flag = 1; |
| optional int64 traceId = 2; |
| optional int64 spanId = 3; |
| optional int64 parentId = 4; |
| } |
| |
| message RequestHeader { |
| optional int32 serviceType = 1; |
| optional int32 protocolVer = 2; |
| } |
| |
| message RequestBody { |
| required int32 method = 1; |
| optional int64 timeout = 2; |
| optional bytes request = 3; |
| } |
| |
| message ResponseHeader { |
| enum Status { |
| SUCCESS = 0; |
| ERROR = 1; |
| FATAL = 2; |
| } |
| required Status status = 1; |
| optional int32 serviceType = 2; |
| optional int32 protocolVer = 3; |
| } |
| |
| message RspExceptionBody { |
| required string exceptionName = 1; |
| optional string stackTrace = 2; |
| } |
| |
| message RspResponseBody { |
| required int32 method = 1; |
| required bytes data = 2; |
| } |
| |