Package com.google.cloud.compute.v1
Class NetworkEndpointGroupCloudFunction
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.NetworkEndpointGroupCloudFunction
-
- All Implemented Interfaces:
NetworkEndpointGroupCloudFunctionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class NetworkEndpointGroupCloudFunction extends com.google.protobuf.GeneratedMessageV3 implements NetworkEndpointGroupCloudFunctionOrBuilder
Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG.
Protobuf typegoogle.cloud.compute.v1.NetworkEndpointGroupCloudFunction- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetworkEndpointGroupCloudFunction.BuilderConfiguration for a Cloud Function network endpoint group (NEG).-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFUNCTION_FIELD_NUMBERstatic intURL_MASK_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static NetworkEndpointGroupCloudFunctiongetDefaultInstance()NetworkEndpointGroupCloudFunctiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetFunction()A user-defined name of the Cloud Function.com.google.protobuf.ByteStringgetFunctionBytes()A user-defined name of the Cloud Function.com.google.protobuf.Parser<NetworkEndpointGroupCloudFunction>getParserForType()intgetSerializedSize()StringgetUrlMask()A template to parse function field from a request URL.com.google.protobuf.ByteStringgetUrlMaskBytes()A template to parse function field from a request URL.booleanhasFunction()A user-defined name of the Cloud Function.inthashCode()booleanhasUrlMask()A template to parse function field from a request URL.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static NetworkEndpointGroupCloudFunction.BuildernewBuilder()static NetworkEndpointGroupCloudFunction.BuildernewBuilder(NetworkEndpointGroupCloudFunction prototype)NetworkEndpointGroupCloudFunction.BuildernewBuilderForType()protected NetworkEndpointGroupCloudFunction.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static NetworkEndpointGroupCloudFunctionparseDelimitedFrom(InputStream input)static NetworkEndpointGroupCloudFunctionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NetworkEndpointGroupCloudFunctionparseFrom(byte[] data)static NetworkEndpointGroupCloudFunctionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NetworkEndpointGroupCloudFunctionparseFrom(com.google.protobuf.ByteString data)static NetworkEndpointGroupCloudFunctionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NetworkEndpointGroupCloudFunctionparseFrom(com.google.protobuf.CodedInputStream input)static NetworkEndpointGroupCloudFunctionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NetworkEndpointGroupCloudFunctionparseFrom(InputStream input)static NetworkEndpointGroupCloudFunctionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NetworkEndpointGroupCloudFunctionparseFrom(ByteBuffer data)static NetworkEndpointGroupCloudFunctionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<NetworkEndpointGroupCloudFunction>parser()NetworkEndpointGroupCloudFunction.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FUNCTION_FIELD_NUMBER
public static final int FUNCTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URL_MASK_FIELD_NUMBER
public static final int URL_MASK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasFunction
public boolean hasFunction()
A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".
optional string function = 307196888;- Specified by:
hasFunctionin interfaceNetworkEndpointGroupCloudFunctionOrBuilder- Returns:
- Whether the function field is set.
-
getFunction
public String getFunction()
A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".
optional string function = 307196888;- Specified by:
getFunctionin interfaceNetworkEndpointGroupCloudFunctionOrBuilder- Returns:
- The function.
-
getFunctionBytes
public com.google.protobuf.ByteString getFunctionBytes()
A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1".
optional string function = 307196888;- Specified by:
getFunctionBytesin interfaceNetworkEndpointGroupCloudFunctionOrBuilder- Returns:
- The bytes for function.
-
hasUrlMask
public boolean hasUrlMask()
A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/<function>". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.optional string url_mask = 103352252;- Specified by:
hasUrlMaskin interfaceNetworkEndpointGroupCloudFunctionOrBuilder- Returns:
- Whether the urlMask field is set.
-
getUrlMask
public String getUrlMask()
A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/<function>". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.optional string url_mask = 103352252;- Specified by:
getUrlMaskin interfaceNetworkEndpointGroupCloudFunctionOrBuilder- Returns:
- The urlMask.
-
getUrlMaskBytes
public com.google.protobuf.ByteString getUrlMaskBytes()
A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/<function>". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively.optional string url_mask = 103352252;- Specified by:
getUrlMaskBytesin interfaceNetworkEndpointGroupCloudFunctionOrBuilder- Returns:
- The bytes for urlMask.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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 NetworkEndpointGroupCloudFunction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NetworkEndpointGroupCloudFunction parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NetworkEndpointGroupCloudFunction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NetworkEndpointGroupCloudFunction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public NetworkEndpointGroupCloudFunction.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static NetworkEndpointGroupCloudFunction.Builder newBuilder()
-
newBuilder
public static NetworkEndpointGroupCloudFunction.Builder newBuilder(NetworkEndpointGroupCloudFunction prototype)
-
toBuilder
public NetworkEndpointGroupCloudFunction.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NetworkEndpointGroupCloudFunction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static NetworkEndpointGroupCloudFunction getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<NetworkEndpointGroupCloudFunction> parser()
-
getParserForType
public com.google.protobuf.Parser<NetworkEndpointGroupCloudFunction> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public NetworkEndpointGroupCloudFunction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-