github.com/xraypb/Xray-core@v1.8.1/transport/internet/grpc/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.21.12 5 // source: transport/internet/grpc/config.proto 6 7 package grpc 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Config struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` 29 ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` 30 MultiMode bool `protobuf:"varint,3,opt,name=multi_mode,json=multiMode,proto3" json:"multi_mode,omitempty"` 31 IdleTimeout int32 `protobuf:"varint,4,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"` 32 HealthCheckTimeout int32 `protobuf:"varint,5,opt,name=health_check_timeout,json=healthCheckTimeout,proto3" json:"health_check_timeout,omitempty"` 33 PermitWithoutStream bool `protobuf:"varint,6,opt,name=permit_without_stream,json=permitWithoutStream,proto3" json:"permit_without_stream,omitempty"` 34 InitialWindowsSize int32 `protobuf:"varint,7,opt,name=initial_windows_size,json=initialWindowsSize,proto3" json:"initial_windows_size,omitempty"` 35 UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` 36 } 37 38 func (x *Config) Reset() { 39 *x = Config{} 40 if protoimpl.UnsafeEnabled { 41 mi := &file_transport_internet_grpc_config_proto_msgTypes[0] 42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 43 ms.StoreMessageInfo(mi) 44 } 45 } 46 47 func (x *Config) String() string { 48 return protoimpl.X.MessageStringOf(x) 49 } 50 51 func (*Config) ProtoMessage() {} 52 53 func (x *Config) ProtoReflect() protoreflect.Message { 54 mi := &file_transport_internet_grpc_config_proto_msgTypes[0] 55 if protoimpl.UnsafeEnabled && x != nil { 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 if ms.LoadMessageInfo() == nil { 58 ms.StoreMessageInfo(mi) 59 } 60 return ms 61 } 62 return mi.MessageOf(x) 63 } 64 65 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 66 func (*Config) Descriptor() ([]byte, []int) { 67 return file_transport_internet_grpc_config_proto_rawDescGZIP(), []int{0} 68 } 69 70 func (x *Config) GetHost() string { 71 if x != nil { 72 return x.Host 73 } 74 return "" 75 } 76 77 func (x *Config) GetServiceName() string { 78 if x != nil { 79 return x.ServiceName 80 } 81 return "" 82 } 83 84 func (x *Config) GetMultiMode() bool { 85 if x != nil { 86 return x.MultiMode 87 } 88 return false 89 } 90 91 func (x *Config) GetIdleTimeout() int32 { 92 if x != nil { 93 return x.IdleTimeout 94 } 95 return 0 96 } 97 98 func (x *Config) GetHealthCheckTimeout() int32 { 99 if x != nil { 100 return x.HealthCheckTimeout 101 } 102 return 0 103 } 104 105 func (x *Config) GetPermitWithoutStream() bool { 106 if x != nil { 107 return x.PermitWithoutStream 108 } 109 return false 110 } 111 112 func (x *Config) GetInitialWindowsSize() int32 { 113 if x != nil { 114 return x.InitialWindowsSize 115 } 116 return 0 117 } 118 119 func (x *Config) GetUserAgent() string { 120 if x != nil { 121 return x.UserAgent 122 } 123 return "" 124 } 125 126 var File_transport_internet_grpc_config_proto protoreflect.FileDescriptor 127 128 var file_transport_internet_grpc_config_proto_rawDesc = []byte{ 129 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 130 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 131 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 132 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 133 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0xb8, 0x02, 134 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 135 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 136 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 137 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 138 0x1d, 0x0a, 0x0a, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 139 0x01, 0x28, 0x08, 0x52, 0x09, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x21, 140 0x0a, 0x0c, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 141 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 142 0x74, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 143 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 144 0x12, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 145 0x6f, 0x75, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x5f, 0x77, 0x69, 146 0x74, 0x68, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x06, 0x20, 0x01, 147 0x28, 0x08, 0x52, 0x13, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75, 148 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 149 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 150 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x57, 0x69, 151 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 152 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 153 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 154 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 155 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 156 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 157 0x72, 0x6f, 0x74, 0x6f, 0x33, 158 } 159 160 var ( 161 file_transport_internet_grpc_config_proto_rawDescOnce sync.Once 162 file_transport_internet_grpc_config_proto_rawDescData = file_transport_internet_grpc_config_proto_rawDesc 163 ) 164 165 func file_transport_internet_grpc_config_proto_rawDescGZIP() []byte { 166 file_transport_internet_grpc_config_proto_rawDescOnce.Do(func() { 167 file_transport_internet_grpc_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_config_proto_rawDescData) 168 }) 169 return file_transport_internet_grpc_config_proto_rawDescData 170 } 171 172 var file_transport_internet_grpc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 173 var file_transport_internet_grpc_config_proto_goTypes = []interface{}{ 174 (*Config)(nil), // 0: xray.transport.internet.grpc.encoding.Config 175 } 176 var file_transport_internet_grpc_config_proto_depIdxs = []int32{ 177 0, // [0:0] is the sub-list for method output_type 178 0, // [0:0] is the sub-list for method input_type 179 0, // [0:0] is the sub-list for extension type_name 180 0, // [0:0] is the sub-list for extension extendee 181 0, // [0:0] is the sub-list for field type_name 182 } 183 184 func init() { file_transport_internet_grpc_config_proto_init() } 185 func file_transport_internet_grpc_config_proto_init() { 186 if File_transport_internet_grpc_config_proto != nil { 187 return 188 } 189 if !protoimpl.UnsafeEnabled { 190 file_transport_internet_grpc_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 191 switch v := v.(*Config); i { 192 case 0: 193 return &v.state 194 case 1: 195 return &v.sizeCache 196 case 2: 197 return &v.unknownFields 198 default: 199 return nil 200 } 201 } 202 } 203 type x struct{} 204 out := protoimpl.TypeBuilder{ 205 File: protoimpl.DescBuilder{ 206 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 207 RawDescriptor: file_transport_internet_grpc_config_proto_rawDesc, 208 NumEnums: 0, 209 NumMessages: 1, 210 NumExtensions: 0, 211 NumServices: 0, 212 }, 213 GoTypes: file_transport_internet_grpc_config_proto_goTypes, 214 DependencyIndexes: file_transport_internet_grpc_config_proto_depIdxs, 215 MessageInfos: file_transport_internet_grpc_config_proto_msgTypes, 216 }.Build() 217 File_transport_internet_grpc_config_proto = out.File 218 file_transport_internet_grpc_config_proto_rawDesc = nil 219 file_transport_internet_grpc_config_proto_goTypes = nil 220 file_transport_internet_grpc_config_proto_depIdxs = nil 221 }