stream.pb.go 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  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. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. func (x *Hunk) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*Hunk) ProtoMessage() {}
  35. func (x *Hunk) ProtoReflect() protoreflect.Message {
  36. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[0]
  37. if x != nil {
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. if ms.LoadMessageInfo() == nil {
  40. ms.StoreMessageInfo(mi)
  41. }
  42. return ms
  43. }
  44. return mi.MessageOf(x)
  45. }
  46. // Deprecated: Use Hunk.ProtoReflect.Descriptor instead.
  47. func (*Hunk) Descriptor() ([]byte, []int) {
  48. return file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP(), []int{0}
  49. }
  50. func (x *Hunk) GetData() []byte {
  51. if x != nil {
  52. return x.Data
  53. }
  54. return nil
  55. }
  56. type MultiHunk struct {
  57. state protoimpl.MessageState
  58. sizeCache protoimpl.SizeCache
  59. unknownFields protoimpl.UnknownFields
  60. Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
  61. }
  62. func (x *MultiHunk) Reset() {
  63. *x = MultiHunk{}
  64. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[1]
  65. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  66. ms.StoreMessageInfo(mi)
  67. }
  68. func (x *MultiHunk) String() string {
  69. return protoimpl.X.MessageStringOf(x)
  70. }
  71. func (*MultiHunk) ProtoMessage() {}
  72. func (x *MultiHunk) ProtoReflect() protoreflect.Message {
  73. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[1]
  74. if x != nil {
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. if ms.LoadMessageInfo() == nil {
  77. ms.StoreMessageInfo(mi)
  78. }
  79. return ms
  80. }
  81. return mi.MessageOf(x)
  82. }
  83. // Deprecated: Use MultiHunk.ProtoReflect.Descriptor instead.
  84. func (*MultiHunk) Descriptor() ([]byte, []int) {
  85. return file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP(), []int{1}
  86. }
  87. func (x *MultiHunk) GetData() [][]byte {
  88. if x != nil {
  89. return x.Data
  90. }
  91. return nil
  92. }
  93. var File_transport_internet_grpc_encoding_stream_proto protoreflect.FileDescriptor
  94. var file_transport_internet_grpc_encoding_stream_proto_rawDesc = []byte{
  95. 0x0a, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  96. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
  97. 0x6e, 0x67, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  98. 0x25, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  99. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e,
  100. 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x1a, 0x0a, 0x04, 0x48, 0x75, 0x6e, 0x6b, 0x12, 0x12,
  101. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61,
  102. 0x74, 0x61, 0x22, 0x1f, 0x0a, 0x09, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x12,
  103. 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x64,
  104. 0x61, 0x74, 0x61, 0x32, 0xe6, 0x01, 0x0a, 0x0b, 0x47, 0x52, 0x50, 0x43, 0x53, 0x65, 0x72, 0x76,
  105. 0x69, 0x63, 0x65, 0x12, 0x63, 0x0a, 0x03, 0x54, 0x75, 0x6e, 0x12, 0x2b, 0x2e, 0x78, 0x72, 0x61,
  106. 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  107. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
  108. 0x6e, 0x67, 0x2e, 0x48, 0x75, 0x6e, 0x6b, 0x1a, 0x2b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74,
  109. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  110. 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e,
  111. 0x48, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x72, 0x0a, 0x08, 0x54, 0x75, 0x6e, 0x4d,
  112. 0x75, 0x6c, 0x74, 0x69, 0x12, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  113. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67,
  114. 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x75, 0x6c,
  115. 0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x1a, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72,
  116. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  117. 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x4d,
  118. 0x75, 0x6c, 0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x42, 0x3c, 0x5a, 0x3a,
  119. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f,
  120. 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  121. 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70,
  122. 0x63, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  123. 0x6f, 0x33,
  124. }
  125. var (
  126. file_transport_internet_grpc_encoding_stream_proto_rawDescOnce sync.Once
  127. file_transport_internet_grpc_encoding_stream_proto_rawDescData = file_transport_internet_grpc_encoding_stream_proto_rawDesc
  128. )
  129. func file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP() []byte {
  130. file_transport_internet_grpc_encoding_stream_proto_rawDescOnce.Do(func() {
  131. file_transport_internet_grpc_encoding_stream_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_encoding_stream_proto_rawDescData)
  132. })
  133. return file_transport_internet_grpc_encoding_stream_proto_rawDescData
  134. }
  135. var file_transport_internet_grpc_encoding_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  136. var file_transport_internet_grpc_encoding_stream_proto_goTypes = []any{
  137. (*Hunk)(nil), // 0: xray.transport.internet.grpc.encoding.Hunk
  138. (*MultiHunk)(nil), // 1: xray.transport.internet.grpc.encoding.MultiHunk
  139. }
  140. var file_transport_internet_grpc_encoding_stream_proto_depIdxs = []int32{
  141. 0, // 0: xray.transport.internet.grpc.encoding.GRPCService.Tun:input_type -> xray.transport.internet.grpc.encoding.Hunk
  142. 1, // 1: xray.transport.internet.grpc.encoding.GRPCService.TunMulti:input_type -> xray.transport.internet.grpc.encoding.MultiHunk
  143. 0, // 2: xray.transport.internet.grpc.encoding.GRPCService.Tun:output_type -> xray.transport.internet.grpc.encoding.Hunk
  144. 1, // 3: xray.transport.internet.grpc.encoding.GRPCService.TunMulti:output_type -> xray.transport.internet.grpc.encoding.MultiHunk
  145. 2, // [2:4] is the sub-list for method output_type
  146. 0, // [0:2] is the sub-list for method input_type
  147. 0, // [0:0] is the sub-list for extension type_name
  148. 0, // [0:0] is the sub-list for extension extendee
  149. 0, // [0:0] is the sub-list for field type_name
  150. }
  151. func init() { file_transport_internet_grpc_encoding_stream_proto_init() }
  152. func file_transport_internet_grpc_encoding_stream_proto_init() {
  153. if File_transport_internet_grpc_encoding_stream_proto != nil {
  154. return
  155. }
  156. type x struct{}
  157. out := protoimpl.TypeBuilder{
  158. File: protoimpl.DescBuilder{
  159. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  160. RawDescriptor: file_transport_internet_grpc_encoding_stream_proto_rawDesc,
  161. NumEnums: 0,
  162. NumMessages: 2,
  163. NumExtensions: 0,
  164. NumServices: 1,
  165. },
  166. GoTypes: file_transport_internet_grpc_encoding_stream_proto_goTypes,
  167. DependencyIndexes: file_transport_internet_grpc_encoding_stream_proto_depIdxs,
  168. MessageInfos: file_transport_internet_grpc_encoding_stream_proto_msgTypes,
  169. }.Build()
  170. File_transport_internet_grpc_encoding_stream_proto = out.File
  171. file_transport_internet_grpc_encoding_stream_proto_rawDesc = nil
  172. file_transport_internet_grpc_encoding_stream_proto_goTypes = nil
  173. file_transport_internet_grpc_encoding_stream_proto_depIdxs = nil
  174. }