类 GatewayOuterClass.Server.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Server.Builder>
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, Cloneable
封闭类:
GatewayOuterClass.Server

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
  • 方法详细资料

    • 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

      指定者:
      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

      指定者:
      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, 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, 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, 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

    • 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 IOException
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      指定者:
      mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Server.Builder>
      抛出:
      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

       The Port on which the proxy should listen for incoming
       connections.
       
      .istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];
    • setPort

       The Port on which the proxy should listen for incoming
       connections.
       
      .istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergePort

       The Port on which the proxy should listen for incoming
       connections.
       
      .istio.networking.v1alpha3.Port port = 1 [(.google.api.field_behavior) = REQUIRED];
    • 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];
      指定者:
      getPortOrBuilder 在接口中 GatewayOuterClass.ServerOrBuilder
    • getBind

      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.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(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

       $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.
    • 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 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, 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(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(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.
      返回:
      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

       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

       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

       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

       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

       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

       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

       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 在接口中 GatewayOuterClass.ServerOrBuilder
    • getDefaultEndpoint

      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.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(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 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(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

       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>