stream.pb.go 6.7 KB

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