public static final class GatewayOuterClass.Server.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder> implements GatewayOuterClass.ServerOrBuilder
`Server` describes the properties of the proxy on a given load balancer
port. For example,
{{<tabset category-name="example">}}
{{<tab name="v1alpha3" category-value="v1alpha3">}}
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: my-ingress
spec:
selector:
app: my-ingressgateway
servers:
- port:
number: 80
name: http2
protocol: HTTP2
hosts:
- "*"
```
{{</tab>}}
{{<tab name="v1beta1" category-value="v1beta1">}}
```yaml
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: my-ingress
spec:
selector:
app: my-ingressgateway
servers:
- port:
number: 80
name: http2
protocol: HTTP2
hosts:
- "*"
```
{{</tab>}}
{{</tabset>}}
Another example
{{<tabset category-name="example">}}
{{<tab name="v1alpha3" category-value="v1alpha3">}}
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: my-tcp-ingress
spec:
selector:
app: my-tcp-ingressgateway
servers:
- port:
number: 27018
name: mongo
protocol: MONGO
hosts:
- "*"
```
{{</tab>}}
{{<tab name="v1beta1" category-value="v1beta1">}}
```yaml
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: my-tcp-ingress
spec:
selector:
app: my-tcp-ingressgateway
servers:
- port:
number: 27018
name: mongo
protocol: MONGO
hosts:
- "*"
```
{{</tab>}}
{{</tabset>}}
The following is an example of TLS configuration for port 443
{{<tabset category-name="example">}}
{{<tab name="v1alpha3" category-value="v1alpha3">}}
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: my-tls-ingress
spec:
selector:
app: my-tls-ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
hosts:
- "*"
tls:
mode: SIMPLE
serverCertificate: /etc/certs/server.pem
privateKey: /etc/certs/privatekey.pem
```
{{</tab>}}
{{<tab name="v1beta1" category-value="v1beta1">}}
```yaml
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: my-tls-ingress
spec:
selector:
app: my-tls-ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
hosts:
- "*"
tls:
mode: SIMPLE
serverCertificate: /etc/certs/server.pem
privateKey: /etc/certs/privatekey.pem
```
{{</tab>}}
{{</tabset>}}
Protobuf type istio.networking.v1alpha3.Server| 限定符和类型 | 方法和说明 |
|---|---|
GatewayOuterClass.Server.Builder |
addAllHosts(Iterable<String> values)
One or more hosts exposed by this gateway.
|
GatewayOuterClass.Server.Builder |
addHosts(String value)
One or more hosts exposed by this gateway.
|
GatewayOuterClass.Server.Builder |
addHostsBytes(com.google.protobuf.ByteString value)
One or more hosts exposed by this gateway.
|
GatewayOuterClass.Server.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GatewayOuterClass.Server |
build() |
GatewayOuterClass.Server |
buildPartial() |
GatewayOuterClass.Server.Builder |
clear() |
GatewayOuterClass.Server.Builder |
clearBind()
$hide_from_docs
The ip or the Unix domain socket to which the listener should be bound
to.
|
GatewayOuterClass.Server.Builder |
clearDefaultEndpoint()
The loopback IP endpoint or Unix domain socket to which traffic should
be forwarded to by default.
|
GatewayOuterClass.Server.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GatewayOuterClass.Server.Builder |
clearHosts()
One or more hosts exposed by this gateway.
|
GatewayOuterClass.Server.Builder |
clearName()
An optional name of the server, when set must be unique across all servers.
|
GatewayOuterClass.Server.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GatewayOuterClass.Server.Builder |
clearPort()
The Port on which the proxy should listen for incoming
connections.
|
GatewayOuterClass.Server.Builder |
clearTls()
Set of TLS related options that govern the server's behavior.
|
GatewayOuterClass.Server.Builder |
clone() |
String |
getBind()
$hide_from_docs
The ip or the Unix domain socket to which the listener should be bound
to.
|
com.google.protobuf.ByteString |
getBindBytes()
$hide_from_docs
The ip or the Unix domain socket to which the listener should be bound
to.
|
String |
getDefaultEndpoint()
The loopback IP endpoint or Unix domain socket to which traffic should
be forwarded to by default.
|
com.google.protobuf.ByteString |
getDefaultEndpointBytes()
The loopback IP endpoint or Unix domain socket to which traffic should
be forwarded to by default.
|
GatewayOuterClass.Server |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHosts(int index)
One or more hosts exposed by this gateway.
|
com.google.protobuf.ByteString |
getHostsBytes(int index)
One or more hosts exposed by this gateway.
|
int |
getHostsCount()
One or more hosts exposed by this gateway.
|
com.google.protobuf.ProtocolStringList |
getHostsList()
One or more hosts exposed by this gateway.
|
String |
getName()
An optional name of the server, when set must be unique across all servers.
|
com.google.protobuf.ByteString |
getNameBytes()
An optional name of the server, when set must be unique across all servers.
|
GatewayOuterClass.Port |
getPort()
The Port on which the proxy should listen for incoming
connections.
|
GatewayOuterClass.Port.Builder |
getPortBuilder()
The Port on which the proxy should listen for incoming
connections.
|
GatewayOuterClass.PortOrBuilder |
getPortOrBuilder()
The Port on which the proxy should listen for incoming
connections.
|
GatewayOuterClass.ServerTLSSettings |
getTls()
Set of TLS related options that govern the server's behavior.
|
GatewayOuterClass.ServerTLSSettings.Builder |
getTlsBuilder()
Set of TLS related options that govern the server's behavior.
|
GatewayOuterClass.ServerTLSSettingsOrBuilder |
getTlsOrBuilder()
Set of TLS related options that govern the server's behavior.
|
boolean |
hasPort()
The Port on which the proxy should listen for incoming
connections.
|
boolean |
hasTls()
Set of TLS related options that govern the server's behavior.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GatewayOuterClass.Server.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GatewayOuterClass.Server.Builder |
mergeFrom(GatewayOuterClass.Server other) |
GatewayOuterClass.Server.Builder |
mergeFrom(com.google.protobuf.Message other) |
GatewayOuterClass.Server.Builder |
mergePort(GatewayOuterClass.Port value)
The Port on which the proxy should listen for incoming
connections.
|
GatewayOuterClass.Server.Builder |
mergeTls(GatewayOuterClass.ServerTLSSettings value)
Set of TLS related options that govern the server's behavior.
|
GatewayOuterClass.Server.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GatewayOuterClass.Server.Builder |
setBind(String value)
$hide_from_docs
The ip or the Unix domain socket to which the listener should be bound
to.
|
GatewayOuterClass.Server.Builder |
setBindBytes(com.google.protobuf.ByteString value)
$hide_from_docs
The ip or the Unix domain socket to which the listener should be bound
to.
|
GatewayOuterClass.Server.Builder |
setDefaultEndpoint(String value)
The loopback IP endpoint or Unix domain socket to which traffic should
be forwarded to by default.
|
GatewayOuterClass.Server.Builder |
setDefaultEndpointBytes(com.google.protobuf.ByteString value)
The loopback IP endpoint or Unix domain socket to which traffic should
be forwarded to by default.
|
GatewayOuterClass.Server.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GatewayOuterClass.Server.Builder |
setHosts(int index,
String value)
One or more hosts exposed by this gateway.
|
GatewayOuterClass.Server.Builder |
setName(String value)
An optional name of the server, when set must be unique across all servers.
|
GatewayOuterClass.Server.Builder |
setNameBytes(com.google.protobuf.ByteString value)
An optional name of the server, when set must be unique across all servers.
|
GatewayOuterClass.Server.Builder |
setPort(GatewayOuterClass.Port.Builder builderForValue)
The Port on which the proxy should listen for incoming
connections.
|
GatewayOuterClass.Server.Builder |
setPort(GatewayOuterClass.Port value)
The Port on which the proxy should listen for incoming
connections.
|
GatewayOuterClass.Server.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GatewayOuterClass.Server.Builder |
setTls(GatewayOuterClass.ServerTLSSettings.Builder builderForValue)
Set of TLS related options that govern the server's behavior.
|
GatewayOuterClass.Server.Builder |
setTls(GatewayOuterClass.ServerTLSSettings value)
Set of TLS related options that govern the server's behavior.
|
GatewayOuterClass.Server.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic GatewayOuterClass.Server build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic GatewayOuterClass.Server buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic GatewayOuterClass.Server.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder mergeFrom(GatewayOuterClass.Server other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public GatewayOuterClass.Server.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Server.Builder>IOExceptionpublic boolean hasPort()
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];hasPort 在接口中 GatewayOuterClass.ServerOrBuilderpublic GatewayOuterClass.Port getPort()
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];getPort 在接口中 GatewayOuterClass.ServerOrBuilderpublic GatewayOuterClass.Server.Builder setPort(GatewayOuterClass.Port value)
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Server.Builder setPort(GatewayOuterClass.Port.Builder builderForValue)
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Server.Builder mergePort(GatewayOuterClass.Port value)
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Server.Builder clearPort()
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Port.Builder getPortBuilder()
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.PortOrBuilder getPortOrBuilder()
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];public String getBind()
$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). When using Unix domain sockets, the port number should be 0.
string bind = 4;getBind 在接口中 GatewayOuterClass.ServerOrBuilderpublic com.google.protobuf.ByteString getBindBytes()
$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). When using Unix domain sockets, the port number should be 0.
string bind = 4;getBindBytes 在接口中 GatewayOuterClass.ServerOrBuilderpublic GatewayOuterClass.Server.Builder setBind(String value)
$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). When using Unix domain sockets, the port number should be 0.
string bind = 4;value - The bind to set.public GatewayOuterClass.Server.Builder clearBind()
$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). When using Unix domain sockets, the port number should be 0.
string bind = 4;public GatewayOuterClass.Server.Builder setBindBytes(com.google.protobuf.ByteString value)
$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). When using Unix domain sockets, the port number should be 0.
string bind = 4;value - The bytes for bind to set.public com.google.protobuf.ProtocolStringList getHostsList()
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];getHostsList 在接口中 GatewayOuterClass.ServerOrBuilderpublic int getHostsCount()
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];getHostsCount 在接口中 GatewayOuterClass.ServerOrBuilderpublic String getHosts(int index)
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];getHosts 在接口中 GatewayOuterClass.ServerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getHostsBytes(int index)
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];getHostsBytes 在接口中 GatewayOuterClass.ServerOrBuilderindex - The index of the value to return.public GatewayOuterClass.Server.Builder setHosts(int index, String value)
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];index - The index to set the value at.value - The hosts to set.public GatewayOuterClass.Server.Builder addHosts(String value)
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];value - The hosts to add.public GatewayOuterClass.Server.Builder addAllHosts(Iterable<String> values)
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];values - The hosts to add.public GatewayOuterClass.Server.Builder clearHosts()
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Server.Builder addHostsBytes(com.google.protobuf.ByteString value)
One or more hosts exposed by this gateway. While typically applicable to HTTP services, it can also be used for TCP services using TLS with SNI. A host is specified as a `dnsName` with an optional `namespace/` prefix. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all `VirtualService` hosts from the specified namespace (e.g.,`prod/*`). The `namespace` can be set to `*` or `.`, representing any or the current namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. The default, if no `namespace/` is specified, is `*/`, that is, select services from any namespace. Any associated `DestinationRule` in the selected namespace will also be used. A `VirtualService` must be bound to the gateway and must have one or more hosts that match the hosts specified in a server. The match could be an exact match or a suffix match with the server's hosts. For example, if the server's hosts specifies `*.example.com`, a `VirtualService` with hosts `dev.example.com` or `prod.example.com` will match. However, a `VirtualService` with host `example.com` or `newexample.com` will not match. NOTE: Only virtual services exported to the gateway's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details.
repeated string hosts = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes of the hosts to add.public boolean hasTls()
Set of TLS related options that govern the server's behavior. Use these options to control if all http requests should be redirected to https, and the TLS modes to use.
.istio.networking.v1alpha3.ServerTLSSettings tls = 3;hasTls 在接口中 GatewayOuterClass.ServerOrBuilderpublic GatewayOuterClass.ServerTLSSettings getTls()
Set of TLS related options that govern the server's behavior. Use these options to control if all http requests should be redirected to https, and the TLS modes to use.
.istio.networking.v1alpha3.ServerTLSSettings tls = 3;getTls 在接口中 GatewayOuterClass.ServerOrBuilderpublic GatewayOuterClass.Server.Builder setTls(GatewayOuterClass.ServerTLSSettings value)
Set of TLS related options that govern the server's behavior. Use these options to control if all http requests should be redirected to https, and the TLS modes to use.
.istio.networking.v1alpha3.ServerTLSSettings tls = 3;public GatewayOuterClass.Server.Builder setTls(GatewayOuterClass.ServerTLSSettings.Builder builderForValue)
Set of TLS related options that govern the server's behavior. Use these options to control if all http requests should be redirected to https, and the TLS modes to use.
.istio.networking.v1alpha3.ServerTLSSettings tls = 3;public GatewayOuterClass.Server.Builder mergeTls(GatewayOuterClass.ServerTLSSettings value)
Set of TLS related options that govern the server's behavior. Use these options to control if all http requests should be redirected to https, and the TLS modes to use.
.istio.networking.v1alpha3.ServerTLSSettings tls = 3;public GatewayOuterClass.Server.Builder clearTls()
Set of TLS related options that govern the server's behavior. Use these options to control if all http requests should be redirected to https, and the TLS modes to use.
.istio.networking.v1alpha3.ServerTLSSettings tls = 3;public GatewayOuterClass.ServerTLSSettings.Builder getTlsBuilder()
Set of TLS related options that govern the server's behavior. Use these options to control if all http requests should be redirected to https, and the TLS modes to use.
.istio.networking.v1alpha3.ServerTLSSettings tls = 3;public GatewayOuterClass.ServerTLSSettingsOrBuilder getTlsOrBuilder()
Set of TLS related options that govern the server's behavior. Use these options to control if all http requests should be redirected to https, and the TLS modes to use.
.istio.networking.v1alpha3.ServerTLSSettings tls = 3;public String getDefaultEndpoint()
The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default. Format should be `127.0.0.1:PORT` or `unix:///path/to/socket` or `unix://@foobar` (Linux abstract namespace). NOT IMPLEMENTED. $hide_from_docs
string default_endpoint = 5;getDefaultEndpoint 在接口中 GatewayOuterClass.ServerOrBuilderpublic com.google.protobuf.ByteString getDefaultEndpointBytes()
The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default. Format should be `127.0.0.1:PORT` or `unix:///path/to/socket` or `unix://@foobar` (Linux abstract namespace). NOT IMPLEMENTED. $hide_from_docs
string default_endpoint = 5;getDefaultEndpointBytes 在接口中 GatewayOuterClass.ServerOrBuilderpublic GatewayOuterClass.Server.Builder setDefaultEndpoint(String value)
The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default. Format should be `127.0.0.1:PORT` or `unix:///path/to/socket` or `unix://@foobar` (Linux abstract namespace). NOT IMPLEMENTED. $hide_from_docs
string default_endpoint = 5;value - The defaultEndpoint to set.public GatewayOuterClass.Server.Builder clearDefaultEndpoint()
The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default. Format should be `127.0.0.1:PORT` or `unix:///path/to/socket` or `unix://@foobar` (Linux abstract namespace). NOT IMPLEMENTED. $hide_from_docs
string default_endpoint = 5;public GatewayOuterClass.Server.Builder setDefaultEndpointBytes(com.google.protobuf.ByteString value)
The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default. Format should be `127.0.0.1:PORT` or `unix:///path/to/socket` or `unix://@foobar` (Linux abstract namespace). NOT IMPLEMENTED. $hide_from_docs
string default_endpoint = 5;value - The bytes for defaultEndpoint to set.public String getName()
An optional name of the server, when set must be unique across all servers. This will be used for variety of purposes like prefixing stats generated with this name etc.
string name = 6;getName 在接口中 GatewayOuterClass.ServerOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
An optional name of the server, when set must be unique across all servers. This will be used for variety of purposes like prefixing stats generated with this name etc.
string name = 6;getNameBytes 在接口中 GatewayOuterClass.ServerOrBuilderpublic GatewayOuterClass.Server.Builder setName(String value)
An optional name of the server, when set must be unique across all servers. This will be used for variety of purposes like prefixing stats generated with this name etc.
string name = 6;value - The name to set.public GatewayOuterClass.Server.Builder clearName()
An optional name of the server, when set must be unique across all servers. This will be used for variety of purposes like prefixing stats generated with this name etc.
string name = 6;public GatewayOuterClass.Server.Builder setNameBytes(com.google.protobuf.ByteString value)
An optional name of the server, when set must be unique across all servers. This will be used for variety of purposes like prefixing stats generated with this name etc.
string name = 6;value - The bytes for name to set.public final GatewayOuterClass.Server.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>public final GatewayOuterClass.Server.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.