stream.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. const file_transport_v2raygrpc_stream_proto_rawDesc = "" +
  54. "\n" +
  55. " transport/v2raygrpc/stream.proto\x12\x13transport.v2raygrpc\"\x1a\n" +
  56. "\x04Hunk\x12\x12\n" +
  57. "\x04data\x18\x01 \x01(\fR\x04data2M\n" +
  58. "\n" +
  59. "GunService\x12?\n" +
  60. "\x03Tun\x12\x19.transport.v2raygrpc.Hunk\x1a\x19.transport.v2raygrpc.Hunk(\x010\x01B2Z0github.com/sagernet/sing-box/transport/v2raygrpcb\x06proto3"
  61. var (
  62. file_transport_v2raygrpc_stream_proto_rawDescOnce sync.Once
  63. file_transport_v2raygrpc_stream_proto_rawDescData []byte
  64. )
  65. func file_transport_v2raygrpc_stream_proto_rawDescGZIP() []byte {
  66. file_transport_v2raygrpc_stream_proto_rawDescOnce.Do(func() {
  67. 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)))
  68. })
  69. return file_transport_v2raygrpc_stream_proto_rawDescData
  70. }
  71. var (
  72. file_transport_v2raygrpc_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  73. file_transport_v2raygrpc_stream_proto_goTypes = []any{
  74. (*Hunk)(nil), // 0: transport.v2raygrpc.Hunk
  75. }
  76. )
  77. var file_transport_v2raygrpc_stream_proto_depIdxs = []int32{
  78. 0, // 0: transport.v2raygrpc.GunService.Tun:input_type -> transport.v2raygrpc.Hunk
  79. 0, // 1: transport.v2raygrpc.GunService.Tun:output_type -> transport.v2raygrpc.Hunk
  80. 1, // [1:2] is the sub-list for method output_type
  81. 0, // [0:1] is the sub-list for method input_type
  82. 0, // [0:0] is the sub-list for extension type_name
  83. 0, // [0:0] is the sub-list for extension extendee
  84. 0, // [0:0] is the sub-list for field type_name
  85. }
  86. func init() { file_transport_v2raygrpc_stream_proto_init() }
  87. func file_transport_v2raygrpc_stream_proto_init() {
  88. if File_transport_v2raygrpc_stream_proto != nil {
  89. return
  90. }
  91. type x struct{}
  92. out := protoimpl.TypeBuilder{
  93. File: protoimpl.DescBuilder{
  94. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  95. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_v2raygrpc_stream_proto_rawDesc), len(file_transport_v2raygrpc_stream_proto_rawDesc)),
  96. NumEnums: 0,
  97. NumMessages: 1,
  98. NumExtensions: 0,
  99. NumServices: 1,
  100. },
  101. GoTypes: file_transport_v2raygrpc_stream_proto_goTypes,
  102. DependencyIndexes: file_transport_v2raygrpc_stream_proto_depIdxs,
  103. MessageInfos: file_transport_v2raygrpc_stream_proto_msgTypes,
  104. }.Build()
  105. File_transport_v2raygrpc_stream_proto = out.File
  106. file_transport_v2raygrpc_stream_proto_goTypes = nil
  107. file_transport_v2raygrpc_stream_proto_depIdxs = nil
  108. }