stream.pb.go 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.6
  5. // source: transport/internet/grpc/encoding/stream.proto
  6. package encoding
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. type Hunk struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  28. }
  29. func (x *Hunk) Reset() {
  30. *x = Hunk{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *Hunk) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*Hunk) ProtoMessage() {}
  41. func (x *Hunk) ProtoReflect() protoreflect.Message {
  42. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use Hunk.ProtoReflect.Descriptor instead.
  53. func (*Hunk) Descriptor() ([]byte, []int) {
  54. return file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *Hunk) GetData() []byte {
  57. if x != nil {
  58. return x.Data
  59. }
  60. return nil
  61. }
  62. type MultiHunk struct {
  63. state protoimpl.MessageState
  64. sizeCache protoimpl.SizeCache
  65. unknownFields protoimpl.UnknownFields
  66. Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
  67. }
  68. func (x *MultiHunk) Reset() {
  69. *x = MultiHunk{}
  70. if protoimpl.UnsafeEnabled {
  71. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[1]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. }
  76. func (x *MultiHunk) String() string {
  77. return protoimpl.X.MessageStringOf(x)
  78. }
  79. func (*MultiHunk) ProtoMessage() {}
  80. func (x *MultiHunk) ProtoReflect() protoreflect.Message {
  81. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[1]
  82. if protoimpl.UnsafeEnabled && x != nil {
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. if ms.LoadMessageInfo() == nil {
  85. ms.StoreMessageInfo(mi)
  86. }
  87. return ms
  88. }
  89. return mi.MessageOf(x)
  90. }
  91. // Deprecated: Use MultiHunk.ProtoReflect.Descriptor instead.
  92. func (*MultiHunk) Descriptor() ([]byte, []int) {
  93. return file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP(), []int{1}
  94. }
  95. func (x *MultiHunk) GetData() [][]byte {
  96. if x != nil {
  97. return x.Data
  98. }
  99. return nil
  100. }
  101. var File_transport_internet_grpc_encoding_stream_proto protoreflect.FileDescriptor
  102. var file_transport_internet_grpc_encoding_stream_proto_rawDesc = []byte{
  103. 0x0a, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  104. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
  105. 0x6e, 0x67, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  106. 0x25, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  107. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e,
  108. 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x1a, 0x0a, 0x04, 0x48, 0x75, 0x6e, 0x6b, 0x12, 0x12,
  109. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61,
  110. 0x74, 0x61, 0x22, 0x1f, 0x0a, 0x09, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x12,
  111. 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x64,
  112. 0x61, 0x74, 0x61, 0x32, 0xe6, 0x01, 0x0a, 0x0b, 0x47, 0x52, 0x50, 0x43, 0x53, 0x65, 0x72, 0x76,
  113. 0x69, 0x63, 0x65, 0x12, 0x63, 0x0a, 0x03, 0x54, 0x75, 0x6e, 0x12, 0x2b, 0x2e, 0x78, 0x72, 0x61,
  114. 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  115. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
  116. 0x6e, 0x67, 0x2e, 0x48, 0x75, 0x6e, 0x6b, 0x1a, 0x2b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74,
  117. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  118. 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e,
  119. 0x48, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x72, 0x0a, 0x08, 0x54, 0x75, 0x6e, 0x4d,
  120. 0x75, 0x6c, 0x74, 0x69, 0x12, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  121. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67,
  122. 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x75, 0x6c,
  123. 0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x1a, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72,
  124. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  125. 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x4d,
  126. 0x75, 0x6c, 0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x42, 0x3c, 0x5a, 0x3a,
  127. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f,
  128. 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  129. 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70,
  130. 0x63, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  131. 0x6f, 0x33,
  132. }
  133. var (
  134. file_transport_internet_grpc_encoding_stream_proto_rawDescOnce sync.Once
  135. file_transport_internet_grpc_encoding_stream_proto_rawDescData = file_transport_internet_grpc_encoding_stream_proto_rawDesc
  136. )
  137. func file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP() []byte {
  138. file_transport_internet_grpc_encoding_stream_proto_rawDescOnce.Do(func() {
  139. file_transport_internet_grpc_encoding_stream_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_encoding_stream_proto_rawDescData)
  140. })
  141. return file_transport_internet_grpc_encoding_stream_proto_rawDescData
  142. }
  143. var file_transport_internet_grpc_encoding_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  144. var file_transport_internet_grpc_encoding_stream_proto_goTypes = []interface{}{
  145. (*Hunk)(nil), // 0: xray.transport.internet.grpc.encoding.Hunk
  146. (*MultiHunk)(nil), // 1: xray.transport.internet.grpc.encoding.MultiHunk
  147. }
  148. var file_transport_internet_grpc_encoding_stream_proto_depIdxs = []int32{
  149. 0, // 0: xray.transport.internet.grpc.encoding.GRPCService.Tun:input_type -> xray.transport.internet.grpc.encoding.Hunk
  150. 1, // 1: xray.transport.internet.grpc.encoding.GRPCService.TunMulti:input_type -> xray.transport.internet.grpc.encoding.MultiHunk
  151. 0, // 2: xray.transport.internet.grpc.encoding.GRPCService.Tun:output_type -> xray.transport.internet.grpc.encoding.Hunk
  152. 1, // 3: xray.transport.internet.grpc.encoding.GRPCService.TunMulti:output_type -> xray.transport.internet.grpc.encoding.MultiHunk
  153. 2, // [2:4] is the sub-list for method output_type
  154. 0, // [0:2] is the sub-list for method input_type
  155. 0, // [0:0] is the sub-list for extension type_name
  156. 0, // [0:0] is the sub-list for extension extendee
  157. 0, // [0:0] is the sub-list for field type_name
  158. }
  159. func init() { file_transport_internet_grpc_encoding_stream_proto_init() }
  160. func file_transport_internet_grpc_encoding_stream_proto_init() {
  161. if File_transport_internet_grpc_encoding_stream_proto != nil {
  162. return
  163. }
  164. if !protoimpl.UnsafeEnabled {
  165. file_transport_internet_grpc_encoding_stream_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  166. switch v := v.(*Hunk); i {
  167. case 0:
  168. return &v.state
  169. case 1:
  170. return &v.sizeCache
  171. case 2:
  172. return &v.unknownFields
  173. default:
  174. return nil
  175. }
  176. }
  177. file_transport_internet_grpc_encoding_stream_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  178. switch v := v.(*MultiHunk); i {
  179. case 0:
  180. return &v.state
  181. case 1:
  182. return &v.sizeCache
  183. case 2:
  184. return &v.unknownFields
  185. default:
  186. return nil
  187. }
  188. }
  189. }
  190. type x struct{}
  191. out := protoimpl.TypeBuilder{
  192. File: protoimpl.DescBuilder{
  193. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  194. RawDescriptor: file_transport_internet_grpc_encoding_stream_proto_rawDesc,
  195. NumEnums: 0,
  196. NumMessages: 2,
  197. NumExtensions: 0,
  198. NumServices: 1,
  199. },
  200. GoTypes: file_transport_internet_grpc_encoding_stream_proto_goTypes,
  201. DependencyIndexes: file_transport_internet_grpc_encoding_stream_proto_depIdxs,
  202. MessageInfos: file_transport_internet_grpc_encoding_stream_proto_msgTypes,
  203. }.Build()
  204. File_transport_internet_grpc_encoding_stream_proto = out.File
  205. file_transport_internet_grpc_encoding_stream_proto_rawDesc = nil
  206. file_transport_internet_grpc_encoding_stream_proto_goTypes = nil
  207. file_transport_internet_grpc_encoding_stream_proto_depIdxs = nil
  208. }