类 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
    封闭类:
    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
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 方法详细资料

      • 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>
      • 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
      • 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>
      • 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>
      • 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.
      • 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];
      • 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.
      • 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;
      • 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>