类 GatewayOuterClass.Server

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
istio.networking.v1alpha3.GatewayOuterClass.Server
所有已实现的接口:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GatewayOuterClass.ServerOrBuilder, Serializable
封闭类:
GatewayOuterClass

public static final class GatewayOuterClass.Server extends com.google.protobuf.GeneratedMessageV3 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
另请参阅:
  • 字段详细资料

    • PORT_FIELD_NUMBER

      public static final int PORT_FIELD_NUMBER
      另请参阅:
    • BIND_FIELD_NUMBER

      public static final int BIND_FIELD_NUMBER
      另请参阅:
    • HOSTS_FIELD_NUMBER

      public static final int HOSTS_FIELD_NUMBER
      另请参阅:
    • TLS_FIELD_NUMBER

      public static final int TLS_FIELD_NUMBER
      另请参阅:
    • DEFAULT_ENDPOINT_FIELD_NUMBER

      public static final int DEFAULT_ENDPOINT_FIELD_NUMBER
      另请参阅:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      另请参阅:
  • 方法详细资料

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      覆盖:
      newInstance 在类中 com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      指定者:
      writeTo 在接口中 com.google.protobuf.MessageLite
      覆盖:
      writeTo 在类中 com.google.protobuf.GeneratedMessageV3
      抛出:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      指定者:
      getSerializedSize 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      指定者:
      equals 在接口中 com.google.protobuf.Message
      覆盖:
      equals 在类中 com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      指定者:
      hashCode 在接口中 com.google.protobuf.Message
      覆盖:
      hashCode 在类中 com.google.protobuf.AbstractMessage
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static GatewayOuterClass.Server parseDelimitedFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static GatewayOuterClass.Server parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static GatewayOuterClass.Server parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • newBuilderForType

      public GatewayOuterClass.Server.Builder newBuilderForType()
      指定者:
      newBuilderForType 在接口中 com.google.protobuf.Message
      指定者:
      newBuilderForType 在接口中 com.google.protobuf.MessageLite
    • newBuilder

      public static GatewayOuterClass.Server.Builder newBuilder()
    • newBuilder

      public static GatewayOuterClass.Server.Builder newBuilder(GatewayOuterClass.Server prototype)
    • toBuilder

      指定者:
      toBuilder 在接口中 com.google.protobuf.Message
      指定者:
      toBuilder 在接口中 com.google.protobuf.MessageLite
    • newBuilderForType

      protected GatewayOuterClass.Server.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      指定者:
      newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static GatewayOuterClass.Server getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GatewayOuterClass.Server> parser()
    • getParserForType

      public com.google.protobuf.Parser<GatewayOuterClass.Server> getParserForType()
      指定者:
      getParserForType 在接口中 com.google.protobuf.Message
      指定者:
      getParserForType 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public GatewayOuterClass.Server getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder