stream.pb.go 9.0 KB

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