stream.pb.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. package v2raygrpc
  2. import (
  3. reflect "reflect"
  4. sync "sync"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  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_v2raygrpc_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_v2raygrpc_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_v2raygrpc_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_v2raygrpc_stream_proto protoreflect.FileDescriptor
  54. var file_transport_v2raygrpc_stream_proto_rawDesc = []byte{
  55. 0x0a, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x72, 0x61,
  56. 0x79, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f,
  57. 0x74, 0x6f, 0x12, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32,
  58. 0x72, 0x61, 0x79, 0x67, 0x72, 0x70, 0x63, 0x22, 0x1a, 0x0a, 0x04, 0x48, 0x75, 0x6e, 0x6b, 0x12,
  59. 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64,
  60. 0x61, 0x74, 0x61, 0x32, 0x4d, 0x0a, 0x0a, 0x47, 0x75, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
  61. 0x65, 0x12, 0x3f, 0x0a, 0x03, 0x54, 0x75, 0x6e, 0x12, 0x19, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  62. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x48,
  63. 0x75, 0x6e, 0x6b, 0x1a, 0x19, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  64. 0x76, 0x32, 0x72, 0x61, 0x79, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x75, 0x6e, 0x6b, 0x28, 0x01,
  65. 0x30, 0x01, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  66. 0x2f, 0x73, 0x61, 0x67, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x73, 0x69, 0x6e, 0x67, 0x2d, 0x62,
  67. 0x6f, 0x78, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x72,
  68. 0x61, 0x79, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  69. }
  70. var (
  71. file_transport_v2raygrpc_stream_proto_rawDescOnce sync.Once
  72. file_transport_v2raygrpc_stream_proto_rawDescData = file_transport_v2raygrpc_stream_proto_rawDesc
  73. )
  74. func file_transport_v2raygrpc_stream_proto_rawDescGZIP() []byte {
  75. file_transport_v2raygrpc_stream_proto_rawDescOnce.Do(func() {
  76. file_transport_v2raygrpc_stream_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_v2raygrpc_stream_proto_rawDescData)
  77. })
  78. return file_transport_v2raygrpc_stream_proto_rawDescData
  79. }
  80. var (
  81. file_transport_v2raygrpc_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  82. file_transport_v2raygrpc_stream_proto_goTypes = []interface{}{
  83. (*Hunk)(nil), // 0: transport.v2raygrpc.Hunk
  84. }
  85. )
  86. var file_transport_v2raygrpc_stream_proto_depIdxs = []int32{
  87. 0, // 0: transport.v2raygrpc.GunService.Tun:input_type -> transport.v2raygrpc.Hunk
  88. 0, // 1: transport.v2raygrpc.GunService.Tun:output_type -> transport.v2raygrpc.Hunk
  89. 1, // [1:2] is the sub-list for method output_type
  90. 0, // [0:1] is the sub-list for method input_type
  91. 0, // [0:0] is the sub-list for extension type_name
  92. 0, // [0:0] is the sub-list for extension extendee
  93. 0, // [0:0] is the sub-list for field type_name
  94. }
  95. func init() { file_transport_v2raygrpc_stream_proto_init() }
  96. func file_transport_v2raygrpc_stream_proto_init() {
  97. if File_transport_v2raygrpc_stream_proto != nil {
  98. return
  99. }
  100. if !protoimpl.UnsafeEnabled {
  101. file_transport_v2raygrpc_stream_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  102. switch v := v.(*Hunk); i {
  103. case 0:
  104. return &v.state
  105. case 1:
  106. return &v.sizeCache
  107. case 2:
  108. return &v.unknownFields
  109. default:
  110. return nil
  111. }
  112. }
  113. }
  114. type x struct{}
  115. out := protoimpl.TypeBuilder{
  116. File: protoimpl.DescBuilder{
  117. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  118. RawDescriptor: file_transport_v2raygrpc_stream_proto_rawDesc,
  119. NumEnums: 0,
  120. NumMessages: 1,
  121. NumExtensions: 0,
  122. NumServices: 1,
  123. },
  124. GoTypes: file_transport_v2raygrpc_stream_proto_goTypes,
  125. DependencyIndexes: file_transport_v2raygrpc_stream_proto_depIdxs,
  126. MessageInfos: file_transport_v2raygrpc_stream_proto_msgTypes,
  127. }.Build()
  128. File_transport_v2raygrpc_stream_proto = out.File
  129. file_transport_v2raygrpc_stream_proto_rawDesc = nil
  130. file_transport_v2raygrpc_stream_proto_goTypes = nil
  131. file_transport_v2raygrpc_stream_proto_depIdxs = nil
  132. }