public static final class Server.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder> implements ServerOrBuilder
`Server` describes the properties of the proxy on a given load balancer
port. For example,
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: my-ingress
spec:
selector:
app: my-ingress-gateway
servers:
- port:
number: 80
name: http2
protocol: HTTP2
hosts:
- "*"
```
Another example
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: my-tcp-ingress
spec:
selector:
app: my-tcp-ingress-gateway
servers:
- port:
number: 27018
name: mongo
protocol: MONGO
hosts:
- "*"
```
The following is an example of TLS configuration for port 443
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: my-tls-ingress
spec:
selector:
app: my-tls-ingress-gateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
hosts:
- "*"
tls:
mode: SIMPLE
serverCertificate: /etc/certs/server.pem
privateKey: /etc/certs/privatekey.pem
```
Protobuf type istio.networking.v1alpha3.Server| 限定符和类型 | 字段和说明 |
|---|---|
private java.lang.Object |
bind_ |
private int |
bitField0_ |
private java.lang.Object |
defaultEndpoint_ |
private com.google.protobuf.LazyStringList |
hosts_ |
private Port |
port_ |
private com.google.protobuf.SingleFieldBuilderV3<Port,Port.Builder,PortOrBuilder> |
portBuilder_ |
private Server.TLSOptions |
tls_ |
private com.google.protobuf.SingleFieldBuilderV3<Server.TLSOptions,Server.TLSOptions.Builder,Server.TLSOptionsOrBuilder> |
tlsBuilder_ |
| 限定符 | 构造器和说明 |
|---|---|
private |
Builder() |
private |
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
| 限定符和类型 | 方法和说明 |
|---|---|
Server.Builder |
addAllHosts(java.lang.Iterable<java.lang.String> values)
REQUIRED.
|
Server.Builder |
addHosts(java.lang.String value)
REQUIRED.
|
Server.Builder |
addHostsBytes(com.google.protobuf.ByteString value)
REQUIRED.
|
Server.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Server |
build() |
Server |
buildPartial() |
Server.Builder |
clear() |
Server.Builder |
clearBind()
$hide_from_docs
The ip or the Unix domain socket to which the listener should be bound
to.
|
Server.Builder |
clearDefaultEndpoint()
The loopback IP endpoint or Unix domain socket to which traffic should
be forwarded to by default.
|
Server.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Server.Builder |
clearHosts()
REQUIRED.
|
Server.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Server.Builder |
clearPort()
REQUIRED: The Port on which the proxy should listen for incoming
connections.
|
Server.Builder |
clearTls()
Set of TLS related options that govern the server's behavior.
|
Server.Builder |
clone() |
private void |
ensureHostsIsMutable() |
java.lang.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.
|
java.lang.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.
|
Server |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getHosts(int index)
REQUIRED.
|
com.google.protobuf.ByteString |
getHostsBytes(int index)
REQUIRED.
|
int |
getHostsCount()
REQUIRED.
|
com.google.protobuf.ProtocolStringList |
getHostsList()
REQUIRED.
|
Port |
getPort()
REQUIRED: The Port on which the proxy should listen for incoming
connections.
|
Port.Builder |
getPortBuilder()
REQUIRED: The Port on which the proxy should listen for incoming
connections.
|
private com.google.protobuf.SingleFieldBuilderV3<Port,Port.Builder,PortOrBuilder> |
getPortFieldBuilder()
REQUIRED: The Port on which the proxy should listen for incoming
connections.
|
PortOrBuilder |
getPortOrBuilder()
REQUIRED: The Port on which the proxy should listen for incoming
connections.
|
Server.TLSOptions |
getTls()
Set of TLS related options that govern the server's behavior.
|
Server.TLSOptions.Builder |
getTlsBuilder()
Set of TLS related options that govern the server's behavior.
|
private com.google.protobuf.SingleFieldBuilderV3<Server.TLSOptions,Server.TLSOptions.Builder,Server.TLSOptionsOrBuilder> |
getTlsFieldBuilder()
Set of TLS related options that govern the server's behavior.
|
Server.TLSOptionsOrBuilder |
getTlsOrBuilder()
Set of TLS related options that govern the server's behavior.
|
boolean |
hasPort()
REQUIRED: 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() |
private void |
maybeForceBuilderInitialization() |
Server.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Server.Builder |
mergeFrom(com.google.protobuf.Message other) |
Server.Builder |
mergeFrom(Server other) |
Server.Builder |
mergePort(Port value)
REQUIRED: The Port on which the proxy should listen for incoming
connections.
|
Server.Builder |
mergeTls(Server.TLSOptions value)
Set of TLS related options that govern the server's behavior.
|
Server.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Server.Builder |
setBind(java.lang.String value)
$hide_from_docs
The ip or the Unix domain socket to which the listener should be bound
to.
|
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.
|
Server.Builder |
setDefaultEndpoint(java.lang.String value)
The loopback IP endpoint or Unix domain socket to which traffic should
be forwarded to by default.
|
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.
|
Server.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Server.Builder |
setHosts(int index,
java.lang.String value)
REQUIRED.
|
Server.Builder |
setPort(Port.Builder builderForValue)
REQUIRED: The Port on which the proxy should listen for incoming
connections.
|
Server.Builder |
setPort(Port value)
REQUIRED: The Port on which the proxy should listen for incoming
connections.
|
Server.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Server.Builder |
setTls(Server.TLSOptions.Builder builderForValue)
Set of TLS related options that govern the server's behavior.
|
Server.Builder |
setTls(Server.TLSOptions value)
Set of TLS related options that govern the server's behavior.
|
Server.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionprivate int bitField0_
private Port port_
private com.google.protobuf.SingleFieldBuilderV3<Port,Port.Builder,PortOrBuilder> portBuilder_
private java.lang.Object bind_
private com.google.protobuf.LazyStringList hosts_
private Server.TLSOptions tls_
private com.google.protobuf.SingleFieldBuilderV3<Server.TLSOptions,Server.TLSOptions.Builder,Server.TLSOptionsOrBuilder> tlsBuilder_
private java.lang.Object defaultEndpoint_
private Builder()
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>private void maybeForceBuilderInitialization()
public Server.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public Server getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic Server build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic Server buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic Server.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public Server.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public Server.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public Server.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public Server.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public Server.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public Server.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Server.Builder>public Server.Builder mergeFrom(Server other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public Server.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Server.Builder>java.io.IOExceptionpublic boolean hasPort()
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;hasPort 在接口中 ServerOrBuilderpublic Port getPort()
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;getPort 在接口中 ServerOrBuilderpublic Server.Builder setPort(Port value)
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;public Server.Builder setPort(Port.Builder builderForValue)
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;public Server.Builder mergePort(Port value)
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;public Server.Builder clearPort()
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;public Port.Builder getPortBuilder()
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;public PortOrBuilder getPortOrBuilder()
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;getPortOrBuilder 在接口中 ServerOrBuilderprivate com.google.protobuf.SingleFieldBuilderV3<Port,Port.Builder,PortOrBuilder> getPortFieldBuilder()
REQUIRED: The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1;public java.lang.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 在接口中 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 在接口中 ServerOrBuilderpublic Server.Builder setBind(java.lang.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 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 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.private void ensureHostsIsMutable()
public com.google.protobuf.ProtocolStringList getHostsList()
REQUIRED. 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;getHostsList 在接口中 ServerOrBuilderpublic int getHostsCount()
REQUIRED. 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;getHostsCount 在接口中 ServerOrBuilderpublic java.lang.String getHosts(int index)
REQUIRED. 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;getHosts 在接口中 ServerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getHostsBytes(int index)
REQUIRED. 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;getHostsBytes 在接口中 ServerOrBuilderindex - The index of the value to return.public Server.Builder setHosts(int index, java.lang.String value)
REQUIRED. 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;index - The index to set the value at.value - The hosts to set.public Server.Builder addHosts(java.lang.String value)
REQUIRED. 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;value - The hosts to add.public Server.Builder addAllHosts(java.lang.Iterable<java.lang.String> values)
REQUIRED. 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;values - The hosts to add.public Server.Builder clearHosts()
REQUIRED. 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;public Server.Builder addHostsBytes(com.google.protobuf.ByteString value)
REQUIRED. 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;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.Server.TLSOptions tls = 3;hasTls 在接口中 ServerOrBuilderpublic Server.TLSOptions 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.Server.TLSOptions tls = 3;getTls 在接口中 ServerOrBuilderpublic Server.Builder setTls(Server.TLSOptions 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.Server.TLSOptions tls = 3;public Server.Builder setTls(Server.TLSOptions.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.Server.TLSOptions tls = 3;public Server.Builder mergeTls(Server.TLSOptions 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.Server.TLSOptions tls = 3;public 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.Server.TLSOptions tls = 3;public Server.TLSOptions.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.Server.TLSOptions tls = 3;public Server.TLSOptionsOrBuilder 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.Server.TLSOptions tls = 3;getTlsOrBuilder 在接口中 ServerOrBuilderprivate com.google.protobuf.SingleFieldBuilderV3<Server.TLSOptions,Server.TLSOptions.Builder,Server.TLSOptionsOrBuilder> getTlsFieldBuilder()
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.Server.TLSOptions tls = 3;public java.lang.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).
string default_endpoint = 5;getDefaultEndpoint 在接口中 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).
string default_endpoint = 5;getDefaultEndpointBytes 在接口中 ServerOrBuilderpublic Server.Builder setDefaultEndpoint(java.lang.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).
string default_endpoint = 5;value - The defaultEndpoint to set.public 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).
string default_endpoint = 5;public 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).
string default_endpoint = 5;value - The bytes for defaultEndpoint to set.public final Server.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>public final Server.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Server.Builder>Copyright © 2018–2020 Alibaba Group. All rights reserved.