stream.pb.go 5.1 KB

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