Package namespace.cloud.compute.v1beta
Class Compute.ContainerPort.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.ContainerPort.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.ContainerPort.Builder>
namespace.cloud.compute.v1beta.Compute.ContainerPort.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Compute.ContainerPortOrBuilder
- Enclosing class:
Compute.ContainerPort
public static final class Compute.ContainerPort.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Compute.ContainerPort.Builder>
implements Compute.ContainerPortOrBuilder
Protobuf type
namespace.cloud.compute.v1beta.ContainerPort-
Method Summary
Modifier and TypeMethodDescriptionaddAllHttpMatchRule(Iterable<? extends Compute.HttpMatchRule> values) A set of rules that configure the ingress when accessing this exported port.addHttpMatchRule(int index, Compute.HttpMatchRule value) A set of rules that configure the ingress when accessing this exported port.addHttpMatchRule(int index, Compute.HttpMatchRule.Builder builderForValue) A 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.addHttpMatchRule(Compute.HttpMatchRule.Builder builderForValue) A 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.addHttpMatchRuleBuilder(int index) A set of rules that configure the ingress when accessing this exported port.build()clear()Configures client authentication when `proto` is `TCP`.The port the container is listening on.A set of rules that configure the ingress when accessing this exported port.If a name is provided, it is used to generate the Internet-facing server name used to access this port.The protocol the port being expose uses.Configures client authentication when `proto` is `TCP`.intConfigures client authentication when `proto` is `TCP`.intThe port the container is listening on.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHttpMatchRule(int index) A set of rules that configure the ingress when accessing this exported port.getHttpMatchRuleBuilder(int index) A 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.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Compute.ContainerPort other) removeHttpMatchRule(int index) A set of rules that configure the ingress when accessing this exported port.Configures client authentication when `proto` is `TCP`.setClientAuthenticationValue(int value) Configures client authentication when `proto` is `TCP`.setContainerPort(int value) The port the container is listening on.setHttpMatchRule(int index, Compute.HttpMatchRule value) A set of rules that configure the ingress when accessing this exported port.setHttpMatchRule(int index, Compute.HttpMatchRule.Builder builderForValue) A set of rules that configure the ingress when accessing this exported port.If a name is provided, it is used to generate the Internet-facing server name used to access this port.setNameBytes(com.google.protobuf.ByteString value) If a name is provided, it is used to generate the Internet-facing server name used to access this port.The protocol the port being expose uses.setProtoValue(int value) The protocol the port being expose uses.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerPort.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerPort.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerPort.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.ContainerPort.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerPort.Builder>
-
mergeFrom
public Compute.ContainerPort.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.ContainerPort.Builder>- Throws:
IOException
-
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:
getProtoValuein interfaceCompute.ContainerPortOrBuilder- Returns:
- The enum numeric value on the wire for proto.
-
setProtoValue
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;- Parameters:
value- The enum numeric value on the wire for proto to set.- Returns:
- This builder for chaining.
-
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:
getProtoin interfaceCompute.ContainerPortOrBuilder- Returns:
- The proto.
-
setProto
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;- Parameters:
value- The proto to set.- Returns:
- This builder for chaining.
-
clearProto
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:
- This builder for chaining.
-
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:
getContainerPortin interfaceCompute.ContainerPortOrBuilder- Returns:
- The containerPort.
-
setContainerPort
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;- Parameters:
value- The containerPort to set.- Returns:
- This builder for chaining.
-
clearContainerPort
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:
- This builder for chaining.
-
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:
getNamein interfaceCompute.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:
getNameBytesin interfaceCompute.ContainerPortOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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:
getHttpMatchRuleListin interfaceCompute.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:
getHttpMatchRuleCountin interfaceCompute.ContainerPortOrBuilder
-
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;- Specified by:
getHttpMatchRulein interfaceCompute.ContainerPortOrBuilder
-
setHttpMatchRule
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; -
setHttpMatchRule
public Compute.ContainerPort.Builder setHttpMatchRule(int index, Compute.HttpMatchRule.Builder builderForValue) 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; -
addHttpMatchRule
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; -
addHttpMatchRule
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; -
addHttpMatchRule
public Compute.ContainerPort.Builder addHttpMatchRule(Compute.HttpMatchRule.Builder builderForValue) 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; -
addHttpMatchRule
public Compute.ContainerPort.Builder addHttpMatchRule(int index, Compute.HttpMatchRule.Builder builderForValue) 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; -
addAllHttpMatchRule
public Compute.ContainerPort.Builder addAllHttpMatchRule(Iterable<? extends Compute.HttpMatchRule> values) 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; -
clearHttpMatchRule
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; -
removeHttpMatchRule
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; -
getHttpMatchRuleBuilder
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;- Specified by:
getHttpMatchRuleOrBuilderin interfaceCompute.ContainerPortOrBuilder
-
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:
getHttpMatchRuleOrBuilderListin interfaceCompute.ContainerPortOrBuilder
-
addHttpMatchRuleBuilder
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; -
addHttpMatchRuleBuilder
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; -
getHttpMatchRuleBuilderList
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
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:
getClientAuthenticationValuein interfaceCompute.ContainerPortOrBuilder- Returns:
- The enum numeric value on the wire for clientAuthentication.
-
setClientAuthenticationValue
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;- Parameters:
value- The enum numeric value on the wire for clientAuthentication to set.- Returns:
- This builder for chaining.
-
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:
getClientAuthenticationin interfaceCompute.ContainerPortOrBuilder- Returns:
- The clientAuthentication.
-
setClientAuthentication
public Compute.ContainerPort.Builder setClientAuthentication(Compute.IngressClientAuthentication value) 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;- Parameters:
value- The clientAuthentication to set.- Returns:
- This builder for chaining.
-
clearClientAuthentication
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:
- This builder for chaining.
-