Package namespace.cloud.compute.v1beta
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typenamespace.cloud.compute.v1beta.ContainerPortstatic enumProtobuf enumnamespace.cloud.compute.v1beta.ContainerPort.ProtoNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanConfigures client authentication when `proto` is `TCP`.intConfigures client authentication when `proto` is `TCP`.intThe port the container is listening on.static Compute.ContainerPortstatic final com.google.protobuf.Descriptors.DescriptorgetHttpMatchRule(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.com.google.protobuf.Parser<Compute.ContainerPort> getProto()The protocol the port being expose uses.intThe protocol the port being expose uses.intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(Compute.ContainerPort prototype) protected Compute.ContainerPort.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Compute.ContainerPortparseDelimitedFrom(InputStream input) static Compute.ContainerPortparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ContainerPortparseFrom(byte[] data) static Compute.ContainerPortparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ContainerPortparseFrom(com.google.protobuf.ByteString data) static Compute.ContainerPortparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ContainerPortparseFrom(com.google.protobuf.CodedInputStream input) static Compute.ContainerPortparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ContainerPortparseFrom(InputStream input) static Compute.ContainerPortparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ContainerPortparseFrom(ByteBuffer data) static Compute.ContainerPortparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Compute.ContainerPort> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.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:
getProtoValuein interfaceCompute.ContainerPortOrBuilder- 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;- Specified by:
getProtoin interfaceCompute.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:
getContainerPortin interfaceCompute.ContainerPortOrBuilder- Returns:
- The containerPort.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Compute.ContainerPort parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Compute.ContainerPort.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-