stream.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. package encoding
  2. import (
  3. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  4. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  5. reflect "reflect"
  6. sync "sync"
  7. )
  8. const (
  9. // Verify that this generated code is sufficiently up-to-date.
  10. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  11. // Verify that runtime/protoimpl is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  13. )
  14. type Hunk struct {
  15. state protoimpl.MessageState
  16. sizeCache protoimpl.SizeCache
  17. unknownFields protoimpl.UnknownFields
  18. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  19. }
  20. func (x *Hunk) Reset() {
  21. *x = Hunk{}
  22. if protoimpl.UnsafeEnabled {
  23. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[0]
  24. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  25. ms.StoreMessageInfo(mi)
  26. }
  27. }
  28. func (x *Hunk) String() string {
  29. return protoimpl.X.MessageStringOf(x)
  30. }
  31. func (*Hunk) ProtoMessage() {}
  32. func (x *Hunk) ProtoReflect() protoreflect.Message {
  33. mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[0]
  34. if protoimpl.UnsafeEnabled && x != nil {
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. if ms.LoadMessageInfo() == nil {
  37. ms.StoreMessageInfo(mi)
  38. }
  39. return ms
  40. }
  41. return mi.MessageOf(x)
  42. }
  43. // Deprecated: Use Hunk.ProtoReflect.Descriptor instead.
  44. func (*Hunk) Descriptor() ([]byte, []int) {
  45. return file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP(), []int{0}
  46. }
  47. func (x *Hunk) GetData() []byte {
  48. if x != nil {
  49. return x.Data
  50. }
  51. return nil
  52. }
  53. var File_transport_internet_grpc_encoding_stream_proto protoreflect.FileDescriptor
  54. var file_transport_internet_grpc_encoding_stream_proto_rawDesc = []byte{
  55. 0x0a, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  56. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
  57. 0x6e, 0x67, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  58. 0x2b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  59. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67,
  60. 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x1a, 0x0a, 0x04,
  61. 0x48, 0x75, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
  62. 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x7d, 0x0a, 0x0a, 0x47, 0x75, 0x6e, 0x53,
  63. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x03, 0x54, 0x75, 0x6e, 0x12, 0x31, 0x2e,
  64. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  65. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72,
  66. 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x48, 0x75, 0x6e, 0x6b,
  67. 0x1a, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
  68. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  69. 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x48,
  70. 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x42, 0xa0, 0x01, 0x0a, 0x2f, 0x63, 0x6f, 0x6d, 0x2e,
  71. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  72. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72,
  73. 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5a, 0x3f, 0x67, 0x69, 0x74,
  74. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
  75. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e,
  76. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67,
  77. 0x72, 0x70, 0x63, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0xaa, 0x02, 0x2b, 0x56,
  78. 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  79. 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x47, 0x72, 0x70,
  80. 0x63, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  81. 0x6f, 0x33,
  82. }
  83. var (
  84. file_transport_internet_grpc_encoding_stream_proto_rawDescOnce sync.Once
  85. file_transport_internet_grpc_encoding_stream_proto_rawDescData = file_transport_internet_grpc_encoding_stream_proto_rawDesc
  86. )
  87. func file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP() []byte {
  88. file_transport_internet_grpc_encoding_stream_proto_rawDescOnce.Do(func() {
  89. file_transport_internet_grpc_encoding_stream_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_encoding_stream_proto_rawDescData)
  90. })
  91. return file_transport_internet_grpc_encoding_stream_proto_rawDescData
  92. }
  93. var file_transport_internet_grpc_encoding_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  94. var file_transport_internet_grpc_encoding_stream_proto_goTypes = []interface{}{
  95. (*Hunk)(nil), // 0: v2ray.core.transport.internet.grpc.encoding.Hunk
  96. }
  97. var file_transport_internet_grpc_encoding_stream_proto_depIdxs = []int32{
  98. 0, // 0: v2ray.core.transport.internet.grpc.encoding.GunService.Tun:input_type -> v2ray.core.transport.internet.grpc.encoding.Hunk
  99. 0, // 1: v2ray.core.transport.internet.grpc.encoding.GunService.Tun:output_type -> v2ray.core.transport.internet.grpc.encoding.Hunk
  100. 1, // [1:2] is the sub-list for method output_type
  101. 0, // [0:1] is the sub-list for method input_type
  102. 0, // [0:0] is the sub-list for extension type_name
  103. 0, // [0:0] is the sub-list for extension extendee
  104. 0, // [0:0] is the sub-list for field type_name
  105. }
  106. func init() { file_transport_internet_grpc_encoding_stream_proto_init() }
  107. func file_transport_internet_grpc_encoding_stream_proto_init() {
  108. if File_transport_internet_grpc_encoding_stream_proto != nil {
  109. return
  110. }
  111. if !protoimpl.UnsafeEnabled {
  112. file_transport_internet_grpc_encoding_stream_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  113. switch v := v.(*Hunk); i {
  114. case 0:
  115. return &v.state
  116. case 1:
  117. return &v.sizeCache
  118. case 2:
  119. return &v.unknownFields
  120. default:
  121. return nil
  122. }
  123. }
  124. }
  125. type x struct{}
  126. out := protoimpl.TypeBuilder{
  127. File: protoimpl.DescBuilder{
  128. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  129. RawDescriptor: file_transport_internet_grpc_encoding_stream_proto_rawDesc,
  130. NumEnums: 0,
  131. NumMessages: 1,
  132. NumExtensions: 0,
  133. NumServices: 1,
  134. },
  135. GoTypes: file_transport_internet_grpc_encoding_stream_proto_goTypes,
  136. DependencyIndexes: file_transport_internet_grpc_encoding_stream_proto_depIdxs,
  137. MessageInfos: file_transport_internet_grpc_encoding_stream_proto_msgTypes,
  138. }.Build()
  139. File_transport_internet_grpc_encoding_stream_proto = out.File
  140. file_transport_internet_grpc_encoding_stream_proto_rawDesc = nil
  141. file_transport_internet_grpc_encoding_stream_proto_goTypes = nil
  142. file_transport_internet_grpc_encoding_stream_proto_depIdxs = nil
  143. }