github.com/xraypb/xray-core@v1.6.6/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.18.0 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 } 36 37 func (x *Config) Reset() { 38 *x = Config{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_transport_internet_grpc_config_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *Config) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*Config) ProtoMessage() {} 51 52 func (x *Config) ProtoReflect() protoreflect.Message { 53 mi := &file_transport_internet_grpc_config_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 65 func (*Config) Descriptor() ([]byte, []int) { 66 return file_transport_internet_grpc_config_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *Config) GetHost() string { 70 if x != nil { 71 return x.Host 72 } 73 return "" 74 } 75 76 func (x *Config) GetServiceName() string { 77 if x != nil { 78 return x.ServiceName 79 } 80 return "" 81 } 82 83 func (x *Config) GetMultiMode() bool { 84 if x != nil { 85 return x.MultiMode 86 } 87 return false 88 } 89 90 func (x *Config) GetIdleTimeout() int32 { 91 if x != nil { 92 return x.IdleTimeout 93 } 94 return 0 95 } 96 97 func (x *Config) GetHealthCheckTimeout() int32 { 98 if x != nil { 99 return x.HealthCheckTimeout 100 } 101 return 0 102 } 103 104 func (x *Config) GetPermitWithoutStream() bool { 105 if x != nil { 106 return x.PermitWithoutStream 107 } 108 return false 109 } 110 111 func (x *Config) GetInitialWindowsSize() int32 { 112 if x != nil { 113 return x.InitialWindowsSize 114 } 115 return 0 116 } 117 118 var File_transport_internet_grpc_config_proto protoreflect.FileDescriptor 119 120 var file_transport_internet_grpc_config_proto_rawDesc = []byte{ 121 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 122 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 123 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 124 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 125 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x99, 0x02, 126 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 127 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 128 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 129 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 130 0x1d, 0x0a, 0x0a, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 131 0x01, 0x28, 0x08, 0x52, 0x09, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x21, 132 0x0a, 0x0c, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 133 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 134 0x74, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 135 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 136 0x12, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 137 0x6f, 0x75, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x5f, 0x77, 0x69, 138 0x74, 0x68, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x06, 0x20, 0x01, 139 0x28, 0x08, 0x52, 0x13, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75, 140 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 141 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 142 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x57, 0x69, 143 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 144 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 145 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 146 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 147 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 148 } 149 150 var ( 151 file_transport_internet_grpc_config_proto_rawDescOnce sync.Once 152 file_transport_internet_grpc_config_proto_rawDescData = file_transport_internet_grpc_config_proto_rawDesc 153 ) 154 155 func file_transport_internet_grpc_config_proto_rawDescGZIP() []byte { 156 file_transport_internet_grpc_config_proto_rawDescOnce.Do(func() { 157 file_transport_internet_grpc_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_config_proto_rawDescData) 158 }) 159 return file_transport_internet_grpc_config_proto_rawDescData 160 } 161 162 var file_transport_internet_grpc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 163 var file_transport_internet_grpc_config_proto_goTypes = []interface{}{ 164 (*Config)(nil), // 0: xray.transport.internet.grpc.encoding.Config 165 } 166 var file_transport_internet_grpc_config_proto_depIdxs = []int32{ 167 0, // [0:0] is the sub-list for method output_type 168 0, // [0:0] is the sub-list for method input_type 169 0, // [0:0] is the sub-list for extension type_name 170 0, // [0:0] is the sub-list for extension extendee 171 0, // [0:0] is the sub-list for field type_name 172 } 173 174 func init() { file_transport_internet_grpc_config_proto_init() } 175 func file_transport_internet_grpc_config_proto_init() { 176 if File_transport_internet_grpc_config_proto != nil { 177 return 178 } 179 if !protoimpl.UnsafeEnabled { 180 file_transport_internet_grpc_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 181 switch v := v.(*Config); i { 182 case 0: 183 return &v.state 184 case 1: 185 return &v.sizeCache 186 case 2: 187 return &v.unknownFields 188 default: 189 return nil 190 } 191 } 192 } 193 type x struct{} 194 out := protoimpl.TypeBuilder{ 195 File: protoimpl.DescBuilder{ 196 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 197 RawDescriptor: file_transport_internet_grpc_config_proto_rawDesc, 198 NumEnums: 0, 199 NumMessages: 1, 200 NumExtensions: 0, 201 NumServices: 0, 202 }, 203 GoTypes: file_transport_internet_grpc_config_proto_goTypes, 204 DependencyIndexes: file_transport_internet_grpc_config_proto_depIdxs, 205 MessageInfos: file_transport_internet_grpc_config_proto_msgTypes, 206 }.Build() 207 File_transport_internet_grpc_config_proto = out.File 208 file_transport_internet_grpc_config_proto_rawDesc = nil 209 file_transport_internet_grpc_config_proto_goTypes = nil 210 file_transport_internet_grpc_config_proto_depIdxs = nil 211 }