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