类 GatewayOuterClass.Server.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
- istio.networking.v1alpha3.GatewayOuterClass.Server.Builder
-
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GatewayOuterClass.ServerOrBuilder,java.lang.Cloneable
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 typeistio.networking.v1alpha3.Server
-
-
字段概要
字段 修饰符和类型 字段 说明 private java.lang.Objectbind_private intbitField0_private java.lang.ObjectdefaultEndpoint_private com.google.protobuf.LazyStringListhosts_private java.lang.Objectname_private GatewayOuterClass.Portport_private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.Port,GatewayOuterClass.Port.Builder,GatewayOuterClass.PortOrBuilder>portBuilder_private GatewayOuterClass.ServerTLSSettingstls_private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.ServerTLSSettings,GatewayOuterClass.ServerTLSSettings.Builder,GatewayOuterClass.ServerTLSSettingsOrBuilder>tlsBuilder_
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 GatewayOuterClass.Server.BuilderaddAllHosts(java.lang.Iterable<java.lang.String> values)One or more hosts exposed by this gateway.GatewayOuterClass.Server.BuilderaddHosts(java.lang.String value)One or more hosts exposed by this gateway.GatewayOuterClass.Server.BuilderaddHostsBytes(com.google.protobuf.ByteString value)One or more hosts exposed by this gateway.GatewayOuterClass.Server.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)GatewayOuterClass.Serverbuild()GatewayOuterClass.ServerbuildPartial()GatewayOuterClass.Server.Builderclear()GatewayOuterClass.Server.BuilderclearBind()$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to.GatewayOuterClass.Server.BuilderclearDefaultEndpoint()The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default.GatewayOuterClass.Server.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GatewayOuterClass.Server.BuilderclearHosts()One or more hosts exposed by this gateway.GatewayOuterClass.Server.BuilderclearName()An optional name of the server, when set must be unique across all servers.GatewayOuterClass.Server.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GatewayOuterClass.Server.BuilderclearPort()The Port on which the proxy should listen for incoming connections.GatewayOuterClass.Server.BuilderclearTls()Set of TLS related options that govern the server's behavior.GatewayOuterClass.Server.Builderclone()private voidensureHostsIsMutable()java.lang.StringgetBind()$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to.com.google.protobuf.ByteStringgetBindBytes()$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to.java.lang.StringgetDefaultEndpoint()The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default.com.google.protobuf.ByteStringgetDefaultEndpointBytes()The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default.GatewayOuterClass.ServergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetHosts(int index)One or more hosts exposed by this gateway.com.google.protobuf.ByteStringgetHostsBytes(int index)One or more hosts exposed by this gateway.intgetHostsCount()One or more hosts exposed by this gateway.com.google.protobuf.ProtocolStringListgetHostsList()One or more hosts exposed by this gateway.java.lang.StringgetName()An optional name of the server, when set must be unique across all servers.com.google.protobuf.ByteStringgetNameBytes()An optional name of the server, when set must be unique across all servers.GatewayOuterClass.PortgetPort()The Port on which the proxy should listen for incoming connections.GatewayOuterClass.Port.BuildergetPortBuilder()The Port on which the proxy should listen for incoming connections.private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.Port,GatewayOuterClass.Port.Builder,GatewayOuterClass.PortOrBuilder>getPortFieldBuilder()The Port on which the proxy should listen for incoming connections.GatewayOuterClass.PortOrBuildergetPortOrBuilder()The Port on which the proxy should listen for incoming connections.GatewayOuterClass.ServerTLSSettingsgetTls()Set of TLS related options that govern the server's behavior.GatewayOuterClass.ServerTLSSettings.BuildergetTlsBuilder()Set of TLS related options that govern the server's behavior.private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.ServerTLSSettings,GatewayOuterClass.ServerTLSSettings.Builder,GatewayOuterClass.ServerTLSSettingsOrBuilder>getTlsFieldBuilder()Set of TLS related options that govern the server's behavior.GatewayOuterClass.ServerTLSSettingsOrBuildergetTlsOrBuilder()Set of TLS related options that govern the server's behavior.booleanhasPort()The Port on which the proxy should listen for incoming connections.booleanhasTls()Set of TLS related options that govern the server's behavior.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GatewayOuterClass.Server.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GatewayOuterClass.Server.BuildermergeFrom(com.google.protobuf.Message other)GatewayOuterClass.Server.BuildermergeFrom(GatewayOuterClass.Server other)GatewayOuterClass.Server.BuildermergePort(GatewayOuterClass.Port value)The Port on which the proxy should listen for incoming connections.GatewayOuterClass.Server.BuildermergeTls(GatewayOuterClass.ServerTLSSettings value)Set of TLS related options that govern the server's behavior.GatewayOuterClass.Server.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GatewayOuterClass.Server.BuildersetBind(java.lang.String value)$hide_from_docs The ip or the Unix domain socket to which the listener should be bound to.GatewayOuterClass.Server.BuildersetBindBytes(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.BuildersetDefaultEndpoint(java.lang.String value)The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default.GatewayOuterClass.Server.BuildersetDefaultEndpointBytes(com.google.protobuf.ByteString value)The loopback IP endpoint or Unix domain socket to which traffic should be forwarded to by default.GatewayOuterClass.Server.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)GatewayOuterClass.Server.BuildersetHosts(int index, java.lang.String value)One or more hosts exposed by this gateway.GatewayOuterClass.Server.BuildersetName(java.lang.String value)An optional name of the server, when set must be unique across all servers.GatewayOuterClass.Server.BuildersetNameBytes(com.google.protobuf.ByteString value)An optional name of the server, when set must be unique across all servers.GatewayOuterClass.Server.BuildersetPort(GatewayOuterClass.Port value)The Port on which the proxy should listen for incoming connections.GatewayOuterClass.Server.BuildersetPort(GatewayOuterClass.Port.Builder builderForValue)The Port on which the proxy should listen for incoming connections.GatewayOuterClass.Server.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)GatewayOuterClass.Server.BuildersetTls(GatewayOuterClass.ServerTLSSettings value)Set of TLS related options that govern the server's behavior.GatewayOuterClass.Server.BuildersetTls(GatewayOuterClass.ServerTLSSettings.Builder builderForValue)Set of TLS related options that govern the server's behavior.GatewayOuterClass.Server.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
-
-
-
字段详细资料
-
bitField0_
private int bitField0_
-
port_
private GatewayOuterClass.Port port_
-
portBuilder_
private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.Port,GatewayOuterClass.Port.Builder,GatewayOuterClass.PortOrBuilder> portBuilder_
-
bind_
private java.lang.Object bind_
-
hosts_
private com.google.protobuf.LazyStringList hosts_
-
tls_
private GatewayOuterClass.ServerTLSSettings tls_
-
tlsBuilder_
private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.ServerTLSSettings,GatewayOuterClass.ServerTLSSettings.Builder,GatewayOuterClass.ServerTLSSettingsOrBuilder> tlsBuilder_
-
defaultEndpoint_
private java.lang.Object defaultEndpoint_
-
name_
private java.lang.Object name_
-
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
clear
public GatewayOuterClass.Server.Builder clear()
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
getDefaultInstanceForType
public GatewayOuterClass.Server getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public GatewayOuterClass.Server build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayOuterClass.Server buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
public GatewayOuterClass.Server.Builder clone()
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
setField
public GatewayOuterClass.Server.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
clearField
public GatewayOuterClass.Server.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
clearOneof
public GatewayOuterClass.Server.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
setRepeatedField
public GatewayOuterClass.Server.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
addRepeatedField
public GatewayOuterClass.Server.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
mergeFrom
public GatewayOuterClass.Server.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Server.Builder>
-
mergeFrom
public GatewayOuterClass.Server.Builder mergeFrom(GatewayOuterClass.Server other)
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
mergeFrom
public GatewayOuterClass.Server.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Server.Builder>- 抛出:
java.io.IOException
-
hasPort
public 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.ServerOrBuilder- 返回:
- Whether the port field is set.
-
getPort
public 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.ServerOrBuilder- 返回:
- The port.
-
setPort
public 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];
-
setPort
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];
-
mergePort
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];
-
clearPort
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];
-
getPortBuilder
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];
-
getPortOrBuilder
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];
-
getPortFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.Port,GatewayOuterClass.Port.Builder,GatewayOuterClass.PortOrBuilder> getPortFieldBuilder()
The Port on which the proxy should listen for incoming connections.
.istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];
-
getBind
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在接口中GatewayOuterClass.ServerOrBuilder- 返回:
- The bind.
-
getBindBytes
public 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.ServerOrBuilder- 返回:
- The bytes for bind.
-
setBind
public GatewayOuterClass.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.- 返回:
- This builder for chaining.
-
clearBind
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;- 返回:
- This builder for chaining.
-
setBindBytes
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.- 返回:
- This builder for chaining.
-
ensureHostsIsMutable
private void ensureHostsIsMutable()
-
getHostsList
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.ServerOrBuilder- 返回:
- A list containing the hosts.
-
getHostsCount
public 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.ServerOrBuilder- 返回:
- The count of hosts.
-
getHosts
public java.lang.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.ServerOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The hosts at the given index.
-
getHostsBytes
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.ServerOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the hosts at the given index.
-
setHosts
public GatewayOuterClass.Server.Builder setHosts(int index, java.lang.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.- 返回:
- This builder for chaining.
-
addHosts
public GatewayOuterClass.Server.Builder addHosts(java.lang.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.- 返回:
- This builder for chaining.
-
addAllHosts
public GatewayOuterClass.Server.Builder addAllHosts(java.lang.Iterable<java.lang.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.- 返回:
- This builder for chaining.
-
clearHosts
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];- 返回:
- This builder for chaining.
-
addHostsBytes
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.- 返回:
- This builder for chaining.
-
hasTls
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.ServerOrBuilder- 返回:
- Whether the tls field is set.
-
getTls
public 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.ServerOrBuilder- 返回:
- The tls.
-
setTls
public 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;
-
setTls
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;
-
mergeTls
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;
-
clearTls
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;
-
getTlsBuilder
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;
-
getTlsOrBuilder
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;
-
getTlsFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.ServerTLSSettings,GatewayOuterClass.ServerTLSSettings.Builder,GatewayOuterClass.ServerTLSSettingsOrBuilder> 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.ServerTLSSettings tls = 3;
-
getDefaultEndpoint
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). NOT IMPLEMENTED. $hide_from_docs
string default_endpoint = 5;- 指定者:
getDefaultEndpoint在接口中GatewayOuterClass.ServerOrBuilder- 返回:
- The defaultEndpoint.
-
getDefaultEndpointBytes
public 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.ServerOrBuilder- 返回:
- The bytes for defaultEndpoint.
-
setDefaultEndpoint
public GatewayOuterClass.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). NOT IMPLEMENTED. $hide_from_docs
string default_endpoint = 5;- 参数:
value- The defaultEndpoint to set.- 返回:
- This builder for chaining.
-
clearDefaultEndpoint
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;- 返回:
- This builder for chaining.
-
setDefaultEndpointBytes
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.- 返回:
- This builder for chaining.
-
getName
public java.lang.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.ServerOrBuilder- 返回:
- The name.
-
getNameBytes
public 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.ServerOrBuilder- 返回:
- The bytes for name.
-
setName
public GatewayOuterClass.Server.Builder setName(java.lang.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.- 返回:
- This builder for chaining.
-
clearName
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;- 返回:
- This builder for chaining.
-
setNameBytes
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.- 返回:
- This builder for chaining.
-
setUnknownFields
public final GatewayOuterClass.Server.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.Server.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Server.Builder>
-
-