Interface Compute.ContainerPortOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Compute.ContainerPort, Compute.ContainerPort.Builder
Enclosing class:
Compute

public static interface Compute.ContainerPortOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getProtoValue

      int getProtoValue()
       The protocol the port being expose uses. Must be set.
      
       If the protocol is set to `HTTP` or `H2C` then the platform exposes the
       port using a HTTPS-terminating reverse proxy, which then communicates
       using cleartext HTTP/1.1 or HTTP/2 respectively with the container.
      
       If the protocol is `TCP` then the platform terminates TLS and proxies the
       resulting TCP stream. Client authentication is configured separately.
      
       If the protocol is `TLS_PASSTHROUGH`, the platform routes the encrypted
       stream using SNI and the container terminates TLS. TLS passthrough ports
       must be declared during instance creation.
      
       Example: `HTTP`
       
      .namespace.cloud.compute.v1beta.ContainerPort.Proto proto = 1;
      Returns:
      The enum numeric value on the wire for proto.
    • getProto

       The protocol the port being expose uses. Must be set.
      
       If the protocol is set to `HTTP` or `H2C` then the platform exposes the
       port using a HTTPS-terminating reverse proxy, which then communicates
       using cleartext HTTP/1.1 or HTTP/2 respectively with the container.
      
       If the protocol is `TCP` then the platform terminates TLS and proxies the
       resulting TCP stream. Client authentication is configured separately.
      
       If the protocol is `TLS_PASSTHROUGH`, the platform routes the encrypted
       stream using SNI and the container terminates TLS. TLS passthrough ports
       must be declared during instance creation.
      
       Example: `HTTP`
       
      .namespace.cloud.compute.v1beta.ContainerPort.Proto proto = 1;
      Returns:
      The proto.
    • getContainerPort

      int getContainerPort()
       The port the container is listening on. For example, if exposing a HTTP
       server, with `proto=HTTP`, the port the http server is listening on.
      
       Example: `3000`
       
      int32 container_port = 2;
      Returns:
      The containerPort.
    • getName

      String getName()
       If a name is provided, it is used to generate the Internet-facing server
       name used to access this port. If it's not provided, a random id is used.
       
      string name = 4;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       If a name is provided, it is used to generate the Internet-facing server
       name used to access this port. If it's not provided, a random id is used.
       
      string name = 4;
      Returns:
      The bytes for name.
    • getHttpMatchRuleList

      List<Compute.HttpMatchRule> getHttpMatchRuleList()
       A set of rules that configure the ingress when accessing this exported
       port. Only settable with `proto` is `HTTP`.
       
      repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 3;
    • getHttpMatchRule

      Compute.HttpMatchRule getHttpMatchRule(int index)
       A set of rules that configure the ingress when accessing this exported
       port. Only settable with `proto` is `HTTP`.
       
      repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 3;
    • getHttpMatchRuleCount

      int getHttpMatchRuleCount()
       A set of rules that configure the ingress when accessing this exported
       port. Only settable with `proto` is `HTTP`.
       
      repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 3;
    • getHttpMatchRuleOrBuilderList

      List<? extends Compute.HttpMatchRuleOrBuilder> getHttpMatchRuleOrBuilderList()
       A set of rules that configure the ingress when accessing this exported
       port. Only settable with `proto` is `HTTP`.
       
      repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 3;
    • getHttpMatchRuleOrBuilder

      Compute.HttpMatchRuleOrBuilder getHttpMatchRuleOrBuilder(int index)
       A set of rules that configure the ingress when accessing this exported
       port. Only settable with `proto` is `HTTP`.
       
      repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 3;
    • getClientAuthenticationValue

      int getClientAuthenticationValue()
       Configures client authentication when `proto` is `TCP`. MTLS is
       incompatible with TLS_PASSTHROUGH, where NONE and UNSPECIFIED have
       equivalent behavior. Must not be set for HTTP or H2C. TCP defaults to
       requiring mTLS. TCP ports without client authentication must be declared
       during instance creation.
       
      .namespace.cloud.compute.v1beta.IngressClientAuthentication client_authentication = 5;
      Returns:
      The enum numeric value on the wire for clientAuthentication.
    • getClientAuthentication

      Compute.IngressClientAuthentication getClientAuthentication()
       Configures client authentication when `proto` is `TCP`. MTLS is
       incompatible with TLS_PASSTHROUGH, where NONE and UNSPECIFIED have
       equivalent behavior. Must not be set for HTTP or H2C. TCP defaults to
       requiring mTLS. TCP ports without client authentication must be declared
       during instance creation.
       
      .namespace.cloud.compute.v1beta.IngressClientAuthentication client_authentication = 5;
      Returns:
      The clientAuthentication.