hulu_pbrpc_meta.proto 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Licensed to the Apache Software Foundation (ASF) under one
  2. // or more contributor license agreements. See the NOTICE file
  3. // distributed with this work for additional information
  4. // regarding copyright ownership. The ASF licenses this file
  5. // to you under the Apache License, Version 2.0 (the
  6. // "License"); you may not use this file except in compliance
  7. // with the License. You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing,
  12. // software distributed under the License is distributed on an
  13. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. // KIND, either express or implied. See the License for the
  15. // specific language governing permissions and limitations
  16. // under the License.
  17. syntax="proto2";
  18. import "brpc/options.proto"; // For TalkType
  19. package brpc.policy;
  20. option java_package="com.brpc.policy";
  21. option java_outer_classname="HuluRpcProto";
  22. message HuluRpcRequestMeta {
  23. required string service_name = 1;
  24. required int32 method_index = 2;
  25. optional int32 compress_type = 3;
  26. optional int64 correlation_id = 4;
  27. optional int64 log_id = 5;
  28. optional ChunkInfo chuck_info = 6;
  29. optional int64 trace_id = 7;
  30. optional int64 parent_span_id = 8;
  31. optional int64 span_id = 9;
  32. optional TalkType request_talk_type = 10;
  33. optional bytes user_data = 11;
  34. optional int32 user_message_size = 12;
  35. optional int64 user_defined_source_addr = 13;
  36. optional string method_name = 14;
  37. optional bytes credential_data = 15;
  38. }
  39. message HuluRpcResponseMeta {
  40. optional int32 error_code = 1;
  41. optional string error_text = 2;
  42. optional sint64 correlation_id = 3;
  43. optional int32 compress_type = 4;
  44. optional ChunkInfo chuck_info = 5;
  45. optional TalkType response_talk_type = 6;
  46. optional bytes user_data = 7;
  47. optional int32 user_message_size = 8;
  48. optional int64 user_defined_source_addr = 9;
  49. }