Package namespace.cloud.compute.v1beta
Class Compute.Ingress
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
namespace.cloud.compute.v1beta.Compute.Ingress
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Compute.IngressOrBuilder
- Enclosing class:
Compute
public static final class Compute.Ingress
extends com.google.protobuf.GeneratedMessage
implements Compute.IngressOrBuilder
Describes a platform-managed, Internet-facing endpoint that routes traffic to a service running inside an instance. Use CreateInstanceRequest.ingresses for ports exposed directly by the instance, including native applications on platforms such as macOS. Use ContainerRequest.export_ports for ports owned by containers. Traffic and TLS boundaries: ``` HTTP [client] --HTTPS------> [Namespace ingress] --HTTP--> [backend] TCP [client] --TLS/mTLS---> [Namespace ingress] --TCP---> [backend] TLS [client] --TLS (routed by SNI, not terminated)------> [backend] ``` Each generated server name routes only to its declared instance and port; no other instance ports are exposed by that ingress. In HTTP and TCP modes, TLS terminates at Namespace and the ingress-to-backend protocol is cleartext HTTP or TCP. TLS passthrough preserves end-to-end encryption: Namespace uses the SNI hostname for routing but does not terminate TLS. HTTP requests require a valid Namespace bearer token with access to the instance by default. HttpMatchRule can explicitly make matching requests unauthenticated. TCP defaults to requiring a Namespace-issued mTLS client certificate with access to the instance; NONE allows any TLS client to connect. In TLS passthrough mode the backend is responsible for server and client authentication.Protobuf type
namespace.cloud.compute.v1beta.Ingress- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes a platform-managed, Internet-facing endpoint that routes traffic to a service running inside an instance.static enumProtobuf enumnamespace.cloud.compute.v1beta.Ingress.ModeNested 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 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 in TCP mode.intConfigures client authentication in TCP mode.static Compute.Ingressstatic final com.google.protobuf.Descriptors.DescriptorgetHttpMatchRule(int index) HTTP routing and authentication rules.intHTTP routing and authentication rules.HTTP routing and authentication rules.getHttpMatchRuleOrBuilder(int index) HTTP routing and authentication rules.List<? extends Compute.HttpMatchRuleOrBuilder> HTTP routing and authentication rules.getMode()The ingress behavior.intThe ingress behavior.getName()The name used to generate the Internet-facing server name.com.google.protobuf.ByteStringThe name used to generate the Internet-facing server name.com.google.protobuf.Parser<Compute.Ingress> intgetPort()The port the instance is listening on.intbooleanRoutes all first-level subdomains of the instance wildcard domain to this ingress.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Compute.Ingress.Builderstatic Compute.Ingress.BuildernewBuilder(Compute.Ingress prototype) protected Compute.Ingress.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Compute.IngressparseDelimitedFrom(InputStream input) static Compute.IngressparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.IngressparseFrom(byte[] data) static Compute.IngressparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.IngressparseFrom(com.google.protobuf.ByteString data) static Compute.IngressparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.IngressparseFrom(com.google.protobuf.CodedInputStream input) static Compute.IngressparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.IngressparseFrom(InputStream input) static Compute.IngressparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.IngressparseFrom(ByteBuffer data) static Compute.IngressparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Compute.Ingress> 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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER- See Also:
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER- See Also:
-
HTTP_MATCH_RULE_FIELD_NUMBER
public static final int HTTP_MATCH_RULE_FIELD_NUMBER- See Also:
-
WILDCARD_FIELD_NUMBER
public static final int WILDCARD_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
-
getName
The name used to generate the Internet-facing server name.
string name = 1;- Specified by:
getNamein interfaceCompute.IngressOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name used to generate the Internet-facing server name.
string name = 1;- Specified by:
getNameBytesin interfaceCompute.IngressOrBuilder- Returns:
- The bytes for name.
-
getModeValue
public int getModeValue()The ingress behavior. Must be set.
.namespace.cloud.compute.v1beta.Ingress.Mode mode = 2;- Specified by:
getModeValuein interfaceCompute.IngressOrBuilder- Returns:
- The enum numeric value on the wire for mode.
-
getMode
The ingress behavior. Must be set.
.namespace.cloud.compute.v1beta.Ingress.Mode mode = 2;- Specified by:
getModein interfaceCompute.IngressOrBuilder- Returns:
- The mode.
-
getPort
public int getPort()The port the instance is listening on.
int32 port = 3;- Specified by:
getPortin interfaceCompute.IngressOrBuilder- Returns:
- The port.
-
getHttpMatchRuleList
HTTP routing and authentication rules. Only supported in HTTP mode.
repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 5;- Specified by:
getHttpMatchRuleListin interfaceCompute.IngressOrBuilder
-
getHttpMatchRuleOrBuilderList
HTTP routing and authentication rules. Only supported in HTTP mode.
repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 5;- Specified by:
getHttpMatchRuleOrBuilderListin interfaceCompute.IngressOrBuilder
-
getHttpMatchRuleCount
public int getHttpMatchRuleCount()HTTP routing and authentication rules. Only supported in HTTP mode.
repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 5;- Specified by:
getHttpMatchRuleCountin interfaceCompute.IngressOrBuilder
-
getHttpMatchRule
HTTP routing and authentication rules. Only supported in HTTP mode.
repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 5;- Specified by:
getHttpMatchRulein interfaceCompute.IngressOrBuilder
-
getHttpMatchRuleOrBuilder
HTTP routing and authentication rules. Only supported in HTTP mode.
repeated .namespace.cloud.compute.v1beta.HttpMatchRule http_match_rule = 5;- Specified by:
getHttpMatchRuleOrBuilderin interfaceCompute.IngressOrBuilder
-
getWildcard
public boolean getWildcard()Routes all first-level subdomains of the instance wildcard domain to this ingress. Requires the instance wildcard domain to be enabled via experimental.enable_wildcard_domain. Only supported in HTTP mode and mutually exclusive with name.
bool wildcard = 6;- Specified by:
getWildcardin interfaceCompute.IngressOrBuilder- Returns:
- The wildcard.
-
getClientAuthenticationValue
public int getClientAuthenticationValue()Configures client authentication in TCP mode. MTLS is incompatible with TLS_PASSTHROUGH, where the backend terminates and authenticates TLS; NONE and UNSPECIFIED have equivalent behavior in passthrough mode. Must not be set in HTTP mode. TCP defaults to requiring mTLS.
.namespace.cloud.compute.v1beta.IngressClientAuthentication client_authentication = 7;- Specified by:
getClientAuthenticationValuein interfaceCompute.IngressOrBuilder- Returns:
- The enum numeric value on the wire for clientAuthentication.
-
getClientAuthentication
Configures client authentication in TCP mode. MTLS is incompatible with TLS_PASSTHROUGH, where the backend terminates and authenticates TLS; NONE and UNSPECIFIED have equivalent behavior in passthrough mode. Must not be set in HTTP mode. TCP defaults to requiring mTLS.
.namespace.cloud.compute.v1beta.IngressClientAuthentication client_authentication = 7;- Specified by:
getClientAuthenticationin interfaceCompute.IngressOrBuilder- 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.Ingress parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.Ingress parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.Ingress parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.Ingress 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.Ingress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.Ingress 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.Ingress parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Compute.Ingress parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Compute.Ingress parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Compute.Ingress 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.Ingress.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
-