github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/grpc/config.pb.go (about) 1 package grpc 2 3 import ( 4 _ "github.com/v2fly/v2ray-core/v5/common/protoext" 5 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 6 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 7 reflect "reflect" 8 sync "sync" 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 Config struct { 19 state protoimpl.MessageState 20 sizeCache protoimpl.SizeCache 21 unknownFields protoimpl.UnknownFields 22 23 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` 24 ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` 25 } 26 27 func (x *Config) Reset() { 28 *x = Config{} 29 if protoimpl.UnsafeEnabled { 30 mi := &file_transport_internet_grpc_config_proto_msgTypes[0] 31 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 32 ms.StoreMessageInfo(mi) 33 } 34 } 35 36 func (x *Config) String() string { 37 return protoimpl.X.MessageStringOf(x) 38 } 39 40 func (*Config) ProtoMessage() {} 41 42 func (x *Config) ProtoReflect() protoreflect.Message { 43 mi := &file_transport_internet_grpc_config_proto_msgTypes[0] 44 if protoimpl.UnsafeEnabled && x != nil { 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 if ms.LoadMessageInfo() == nil { 47 ms.StoreMessageInfo(mi) 48 } 49 return ms 50 } 51 return mi.MessageOf(x) 52 } 53 54 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 55 func (*Config) Descriptor() ([]byte, []int) { 56 return file_transport_internet_grpc_config_proto_rawDescGZIP(), []int{0} 57 } 58 59 func (x *Config) GetHost() string { 60 if x != nil { 61 return x.Host 62 } 63 return "" 64 } 65 66 func (x *Config) GetServiceName() string { 67 if x != nil { 68 return x.ServiceName 69 } 70 return "" 71 } 72 73 var File_transport_internet_grpc_config_proto protoreflect.FileDescriptor 74 75 var file_transport_internet_grpc_config_proto_rawDesc = []byte{ 76 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 77 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 78 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 79 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 80 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 81 0x69, 0x6e, 0x67, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 82 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 83 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 84 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 85 0x6f, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 86 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 87 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x20, 0x82, 0xb5, 0x18, 0x1c, 0x0a, 0x09, 0x74, 0x72, 88 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x04, 0x67, 0x72, 0x70, 0x63, 0x8a, 0xff, 0x29, 89 0x03, 0x67, 0x75, 0x6e, 0x90, 0xff, 0x29, 0x01, 0x42, 0x85, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 90 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 91 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 92 0x72, 0x70, 0x63, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 93 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 94 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 95 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0xaa, 0x02, 0x22, 0x56, 0x32, 96 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 97 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x47, 0x72, 0x70, 0x63, 98 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 99 } 100 101 var ( 102 file_transport_internet_grpc_config_proto_rawDescOnce sync.Once 103 file_transport_internet_grpc_config_proto_rawDescData = file_transport_internet_grpc_config_proto_rawDesc 104 ) 105 106 func file_transport_internet_grpc_config_proto_rawDescGZIP() []byte { 107 file_transport_internet_grpc_config_proto_rawDescOnce.Do(func() { 108 file_transport_internet_grpc_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_config_proto_rawDescData) 109 }) 110 return file_transport_internet_grpc_config_proto_rawDescData 111 } 112 113 var file_transport_internet_grpc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 114 var file_transport_internet_grpc_config_proto_goTypes = []interface{}{ 115 (*Config)(nil), // 0: v2ray.core.transport.internet.grpc.encoding.Config 116 } 117 var file_transport_internet_grpc_config_proto_depIdxs = []int32{ 118 0, // [0:0] is the sub-list for method output_type 119 0, // [0:0] is the sub-list for method input_type 120 0, // [0:0] is the sub-list for extension type_name 121 0, // [0:0] is the sub-list for extension extendee 122 0, // [0:0] is the sub-list for field type_name 123 } 124 125 func init() { file_transport_internet_grpc_config_proto_init() } 126 func file_transport_internet_grpc_config_proto_init() { 127 if File_transport_internet_grpc_config_proto != nil { 128 return 129 } 130 if !protoimpl.UnsafeEnabled { 131 file_transport_internet_grpc_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 132 switch v := v.(*Config); i { 133 case 0: 134 return &v.state 135 case 1: 136 return &v.sizeCache 137 case 2: 138 return &v.unknownFields 139 default: 140 return nil 141 } 142 } 143 } 144 type x struct{} 145 out := protoimpl.TypeBuilder{ 146 File: protoimpl.DescBuilder{ 147 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 148 RawDescriptor: file_transport_internet_grpc_config_proto_rawDesc, 149 NumEnums: 0, 150 NumMessages: 1, 151 NumExtensions: 0, 152 NumServices: 0, 153 }, 154 GoTypes: file_transport_internet_grpc_config_proto_goTypes, 155 DependencyIndexes: file_transport_internet_grpc_config_proto_depIdxs, 156 MessageInfos: file_transport_internet_grpc_config_proto_msgTypes, 157 }.Build() 158 File_transport_internet_grpc_config_proto = out.File 159 file_transport_internet_grpc_config_proto_rawDesc = nil 160 file_transport_internet_grpc_config_proto_goTypes = nil 161 file_transport_internet_grpc_config_proto_depIdxs = nil 162 }