Package com.google.cloud.compute.v1
Class NetworkEndpointGroupCloudFunction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
com.google.cloud.compute.v1.NetworkEndpointGroupCloudFunction.Builder
- All Implemented Interfaces:
NetworkEndpointGroupCloudFunctionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NetworkEndpointGroupCloudFunction
public static final class NetworkEndpointGroupCloudFunction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
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 type
google.cloud.compute.v1.NetworkEndpointGroupCloudFunction-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A user-defined name of the Cloud Function.An URL mask is one of the main components of the Cloud Function.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA user-defined name of the Cloud Function.com.google.protobuf.ByteStringA user-defined name of the Cloud Function.An URL mask is one of the main components of the Cloud Function.com.google.protobuf.ByteStringAn URL mask is one of the main components of the Cloud Function.booleanA user-defined name of the Cloud Function.booleanAn URL mask is one of the main components of the Cloud Function.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFunction(String value) A user-defined name of the Cloud Function.setFunctionBytes(com.google.protobuf.ByteString value) A user-defined name of the Cloud Function.setUrlMask(String value) An URL mask is one of the main components of the Cloud Function.setUrlMaskBytes(com.google.protobuf.ByteString value) An URL mask is one of the main components of the Cloud Function.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<NetworkEndpointGroupCloudFunction.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<NetworkEndpointGroupCloudFunction.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<NetworkEndpointGroupCloudFunction.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<NetworkEndpointGroupCloudFunction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudFunction.Builder>
-
mergeFrom
public NetworkEndpointGroupCloudFunction.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<NetworkEndpointGroupCloudFunction.Builder>- Throws:
IOException
-
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
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.
-
setFunction
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;- Parameters:
value- The function to set.- Returns:
- This builder for chaining.
-
clearFunction
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;- Returns:
- This builder for chaining.
-
setFunctionBytes
public NetworkEndpointGroupCloudFunction.Builder setFunctionBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes for function to set.- Returns:
- This builder for chaining.
-
hasUrlMask
public boolean hasUrlMask()An URL mask is one of the main components of the Cloud Function. 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 andmydomain.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
An URL mask is one of the main components of the Cloud Function. 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 andmydomain.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()An URL mask is one of the main components of the Cloud Function. 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 andmydomain.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.
-
setUrlMask
An URL mask is one of the main components of the Cloud Function. 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 andmydomain.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;- Parameters:
value- The urlMask to set.- Returns:
- This builder for chaining.
-
clearUrlMask
An URL mask is one of the main components of the Cloud Function. 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 andmydomain.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;- Returns:
- This builder for chaining.
-
setUrlMaskBytes
public NetworkEndpointGroupCloudFunction.Builder setUrlMaskBytes(com.google.protobuf.ByteString value) An URL mask is one of the main components of the Cloud Function. 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 andmydomain.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;- Parameters:
value- The bytes for urlMask to set.- Returns:
- This builder for chaining.
-