Class Compute.ContainerPort

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
namespace.cloud.compute.v1beta.Compute.ContainerPort
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Compute.ContainerPortOrBuilder
Enclosing class:
Compute

public static final class Compute.ContainerPort extends com.google.protobuf.GeneratedMessage implements Compute.ContainerPortOrBuilder
Protobuf type namespace.cloud.compute.v1beta.ContainerPort
See Also:
  • Field Details

    • PROTO_FIELD_NUMBER

      public static final int PROTO_FIELD_NUMBER
      See Also:
    • CONTAINER_PORT_FIELD_NUMBER

      public static final int CONTAINER_PORT_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • HTTP_MATCH_RULE_FIELD_NUMBER

      public static final int HTTP_MATCH_RULE_FIELD_NUMBER
      See Also:
    • CLIENT_AUTHENTICATION_FIELD_NUMBER

      public static final int CLIENT_AUTHENTICATION_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getProtoValue

      public 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;
      Specified by:
      getProtoValue in interface Compute.ContainerPortOrBuilder
      Returns:
      The enum numeric value on the wire for proto.
    • getProto

      public Compute.ContainerPort.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;
      Specified by:
      getProto in interface Compute.ContainerPortOrBuilder
      Returns:
      The proto.
    • getContainerPort

      public 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;
      Specified by:
      getContainerPort in interface Compute.ContainerPortOrBuilder
      Returns:
      The containerPort.
    • getName

      public 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;
      Specified by:
      getName in interface Compute.ContainerPortOrBuilder
      Returns:
      The name.
    • getNameBytes

      public 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;
      Specified by:
      getNameBytes in interface Compute.ContainerPortOrBuilder
      Returns:
      The bytes for name.
    • getHttpMatchRuleList

      public 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;
      Specified by:
      getHttpMatchRuleList in interface Compute.ContainerPortOrBuilder
    • getHttpMatchRuleOrBuilderList

      public 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;
      Specified by:
      getHttpMatchRuleOrBuilderList in interface Compute.ContainerPortOrBuilder
    • getHttpMatchRuleCount

      public 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;
      Specified by:
      getHttpMatchRuleCount in interface Compute.ContainerPortOrBuilder
    • getHttpMatchRule

      public 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;
      Specified by:
      getHttpMatchRule in interface Compute.ContainerPortOrBuilder
    • getHttpMatchRuleOrBuilder

      public 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;
      Specified by:
      getHttpMatchRuleOrBuilder in interface Compute.ContainerPortOrBuilder
    • getClientAuthenticationValue

      public 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;
      Specified by:
      getClientAuthenticationValue in interface Compute.ContainerPortOrBuilder
      Returns:
      The enum numeric value on the wire for clientAuthentication.
    • getClientAuthentication

      public 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;
      Specified by:
      getClientAuthentication in interface Compute.ContainerPortOrBuilder
      Returns:
      The clientAuthentication.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Compute.ContainerPort parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.ContainerPort parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.ContainerPort parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.ContainerPort parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.ContainerPort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.ContainerPort parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.ContainerPort parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Compute.ContainerPort parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Compute.ContainerPort parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Compute.ContainerPort parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Compute.ContainerPort parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Compute.ContainerPort parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Compute.ContainerPort.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Compute.ContainerPort.Builder newBuilder()
    • newBuilder

      public static Compute.ContainerPort.Builder newBuilder(Compute.ContainerPort prototype)
    • toBuilder

      public Compute.ContainerPort.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Compute.ContainerPort.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Compute.ContainerPort getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Compute.ContainerPort> parser()
    • getParserForType

      public com.google.protobuf.Parser<Compute.ContainerPort> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Compute.ContainerPort getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder