Package namespace.cloud.compute.v1beta
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 Summary
Modifier and TypeMethodDescriptionConfigures client authentication when `proto` is `TCP`.intConfigures client authentication when `proto` is `TCP`.intThe port the container is listening on.getHttpMatchRule(int index) A set of rules that configure the ingress when accessing this exported port.intA set of rules that configure the ingress when accessing this exported port.A set of rules that configure the ingress when accessing this exported port.getHttpMatchRuleOrBuilder(int index) A set of rules that configure the ingress when accessing this exported port.List<? extends Compute.HttpMatchRuleOrBuilder> A set of rules that configure the ingress when accessing this exported port.getName()If a name is provided, it is used to generate the Internet-facing server name used to access this port.com.google.protobuf.ByteStringIf a name is provided, it is used to generate the Internet-facing server name used to access this port.getProto()The protocol the port being expose uses.intThe protocol the port being expose uses.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
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;- 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
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
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.
-