12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- // 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";
- package brpc.policy;
- option java_package = "com.brpc.policy";
- option java_outer_classname = "PublicPbrpcProto";
- message PublicPbrpcRequest{
- optional RequestHead requestHead = 1;
- repeated RequestBody requestBody = 2;
- }
- message RequestHead{
- optional string from_host = 1;
- optional uint32 content_type = 2;
- optional bool connection = 3;
- optional string charset = 4;
- optional string accept_charset = 5;
- optional string create_time = 6;
- optional uint64 log_id = 7;
- optional uint32 compress_type = 8;
- }
- message RequestBody{
- optional string version = 1;
- optional string charset = 2;
- required string service = 3;
- required uint32 method_id = 4;
- required uint64 id = 5;
- optional bytes serialized_request = 6;
- }
- message PublicPbrpcResponse {
- optional ResponseHead responseHead = 1;
- repeated ResponseBody responseBody = 2;
- }
- message ResponseHead{
- required sint32 code = 1;
- optional string text = 2;
- optional string from_host = 3;
- optional uint32 compress_type = 4;
- }
- message ResponseBody{
- optional bytes serialized_response = 1;
- optional string version = 2;
- optional int32 error = 3;
- required uint64 id = 4;
- }
|