Package com.google.cloud.functions.v1
Class CloudFunction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
- com.google.cloud.functions.v1.CloudFunction.Builder
-
- All Implemented Interfaces:
CloudFunctionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CloudFunction
public static final class CloudFunction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder> implements CloudFunctionOrBuilder
Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and triggers configurations.
Protobuf typegoogle.cloud.functions.v1.CloudFunction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CloudFunction.BuilderaddAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values)Secret environment variables configuration.CloudFunction.BuilderaddAllSecretVolumes(Iterable<? extends SecretVolume> values)Secret volumes configuration.CloudFunction.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CloudFunction.BuilderaddSecretEnvironmentVariables(int index, SecretEnvVar value)Secret environment variables configuration.CloudFunction.BuilderaddSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)Secret environment variables configuration.CloudFunction.BuilderaddSecretEnvironmentVariables(SecretEnvVar value)Secret environment variables configuration.CloudFunction.BuilderaddSecretEnvironmentVariables(SecretEnvVar.Builder builderForValue)Secret environment variables configuration.SecretEnvVar.BuilderaddSecretEnvironmentVariablesBuilder()Secret environment variables configuration.SecretEnvVar.BuilderaddSecretEnvironmentVariablesBuilder(int index)Secret environment variables configuration.CloudFunction.BuilderaddSecretVolumes(int index, SecretVolume value)Secret volumes configuration.CloudFunction.BuilderaddSecretVolumes(int index, SecretVolume.Builder builderForValue)Secret volumes configuration.CloudFunction.BuilderaddSecretVolumes(SecretVolume value)Secret volumes configuration.CloudFunction.BuilderaddSecretVolumes(SecretVolume.Builder builderForValue)Secret volumes configuration.SecretVolume.BuilderaddSecretVolumesBuilder()Secret volumes configuration.SecretVolume.BuilderaddSecretVolumesBuilder(int index)Secret volumes configuration.CloudFunctionbuild()CloudFunctionbuildPartial()CloudFunction.Builderclear()CloudFunction.BuilderclearAvailableMemoryMb()The amount of memory in MB available for a function.CloudFunction.BuilderclearBuildEnvironmentVariables()CloudFunction.BuilderclearBuildId()Output only.CloudFunction.BuilderclearBuildName()Output only.CloudFunction.BuilderclearBuildWorkerPool()Name of the Cloud Build Custom Worker Pool that should be used to build the function.CloudFunction.BuilderclearDescription()User-provided description of a function.CloudFunction.BuilderclearDockerRegistry()Docker Registry to use for this deployment.CloudFunction.BuilderclearDockerRepository()User managed repository created in Artifact Registry optionally with a customer managed encryption key.CloudFunction.BuilderclearEntryPoint()The name of the function (as defined in source code) that is executed.CloudFunction.BuilderclearEnvironmentVariables()CloudFunction.BuilderclearEventTrigger()A source that fires events in response to a condition in another service.CloudFunction.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CloudFunction.BuilderclearHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.CloudFunction.BuilderclearIngressSettings()The ingress settings for the function, controlling what traffic can reach it.CloudFunction.BuilderclearKmsKeyName()Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.CloudFunction.BuilderclearLabels()CloudFunction.BuilderclearMaxInstances()The limit on the maximum number of function instances that can coexist at a given time.CloudFunction.BuilderclearMinInstances()A lower bound for the number function instances that can coexist at a given time.CloudFunction.BuilderclearName()A user-defined name of the function.CloudFunction.BuilderclearNetwork()The Serverless VPC Access connector that this cloud function can connect to.CloudFunction.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CloudFunction.BuilderclearRuntime()The runtime in which to run the function.CloudFunction.BuilderclearSecretEnvironmentVariables()Secret environment variables configuration.CloudFunction.BuilderclearSecretVolumes()Secret volumes configuration.CloudFunction.BuilderclearServiceAccountEmail()The email of the function's service account.CloudFunction.BuilderclearSourceArchiveUrl()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.CloudFunction.BuilderclearSourceCode()CloudFunction.BuilderclearSourceRepository()**Beta Feature** The source repository where a function is hosted.CloudFunction.BuilderclearSourceToken()Input only.CloudFunction.BuilderclearSourceUploadUrl()The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].CloudFunction.BuilderclearStatus()Output only.CloudFunction.BuilderclearTimeout()The function execution timeout.CloudFunction.BuilderclearTrigger()CloudFunction.BuilderclearUpdateTime()Output only.CloudFunction.BuilderclearVersionId()Output only.CloudFunction.BuilderclearVpcConnector()The VPC Network Connector that this cloud function can connect to.CloudFunction.BuilderclearVpcConnectorEgressSettings()The egress settings for the connector, controlling what traffic is diverted through it.CloudFunction.Builderclone()booleancontainsBuildEnvironmentVariables(String key)Build environment variables that shall be available during build time.booleancontainsEnvironmentVariables(String key)Environment variables that shall be available during function execution.booleancontainsLabels(String key)Labels associated with this Cloud Function.intgetAvailableMemoryMb()The amount of memory in MB available for a function.Map<String,String>getBuildEnvironmentVariables()Deprecated.intgetBuildEnvironmentVariablesCount()Build environment variables that shall be available during build time.Map<String,String>getBuildEnvironmentVariablesMap()Build environment variables that shall be available during build time.StringgetBuildEnvironmentVariablesOrDefault(String key, String defaultValue)Build environment variables that shall be available during build time.StringgetBuildEnvironmentVariablesOrThrow(String key)Build environment variables that shall be available during build time.StringgetBuildId()Output only.com.google.protobuf.ByteStringgetBuildIdBytes()Output only.StringgetBuildName()Output only.com.google.protobuf.ByteStringgetBuildNameBytes()Output only.StringgetBuildWorkerPool()Name of the Cloud Build Custom Worker Pool that should be used to build the function.com.google.protobuf.ByteStringgetBuildWorkerPoolBytes()Name of the Cloud Build Custom Worker Pool that should be used to build the function.CloudFunctiongetDefaultInstanceForType()StringgetDescription()User-provided description of a function.com.google.protobuf.ByteStringgetDescriptionBytes()User-provided description of a function.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CloudFunction.DockerRegistrygetDockerRegistry()Docker Registry to use for this deployment.intgetDockerRegistryValue()Docker Registry to use for this deployment.StringgetDockerRepository()User managed repository created in Artifact Registry optionally with a customer managed encryption key.com.google.protobuf.ByteStringgetDockerRepositoryBytes()User managed repository created in Artifact Registry optionally with a customer managed encryption key.StringgetEntryPoint()The name of the function (as defined in source code) that is executed.com.google.protobuf.ByteStringgetEntryPointBytes()The name of the function (as defined in source code) that is executed.Map<String,String>getEnvironmentVariables()Deprecated.intgetEnvironmentVariablesCount()Environment variables that shall be available during function execution.Map<String,String>getEnvironmentVariablesMap()Environment variables that shall be available during function execution.StringgetEnvironmentVariablesOrDefault(String key, String defaultValue)Environment variables that shall be available during function execution.StringgetEnvironmentVariablesOrThrow(String key)Environment variables that shall be available during function execution.EventTriggergetEventTrigger()A source that fires events in response to a condition in another service.EventTrigger.BuildergetEventTriggerBuilder()A source that fires events in response to a condition in another service.EventTriggerOrBuildergetEventTriggerOrBuilder()A source that fires events in response to a condition in another service.HttpsTriggergetHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.HttpsTrigger.BuildergetHttpsTriggerBuilder()An HTTPS endpoint type of source that can be triggered via URL.HttpsTriggerOrBuildergetHttpsTriggerOrBuilder()An HTTPS endpoint type of source that can be triggered via URL.CloudFunction.IngressSettingsgetIngressSettings()The ingress settings for the function, controlling what traffic can reach it.intgetIngressSettingsValue()The ingress settings for the function, controlling what traffic can reach it.StringgetKmsKeyName()Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.com.google.protobuf.ByteStringgetKmsKeyNameBytes()Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels associated with this Cloud Function.Map<String,String>getLabelsMap()Labels associated with this Cloud Function.StringgetLabelsOrDefault(String key, String defaultValue)Labels associated with this Cloud Function.StringgetLabelsOrThrow(String key)Labels associated with this Cloud Function.intgetMaxInstances()The limit on the maximum number of function instances that can coexist at a given time.intgetMinInstances()A lower bound for the number function instances that can coexist at a given time.Map<String,String>getMutableBuildEnvironmentVariables()Deprecated.Map<String,String>getMutableEnvironmentVariables()Deprecated.Map<String,String>getMutableLabels()Deprecated.StringgetName()A user-defined name of the function.com.google.protobuf.ByteStringgetNameBytes()A user-defined name of the function.StringgetNetwork()The Serverless VPC Access connector that this cloud function can connect to.com.google.protobuf.ByteStringgetNetworkBytes()The Serverless VPC Access connector that this cloud function can connect to.StringgetRuntime()The runtime in which to run the function.com.google.protobuf.ByteStringgetRuntimeBytes()The runtime in which to run the function.SecretEnvVargetSecretEnvironmentVariables(int index)Secret environment variables configuration.SecretEnvVar.BuildergetSecretEnvironmentVariablesBuilder(int index)Secret environment variables configuration.List<SecretEnvVar.Builder>getSecretEnvironmentVariablesBuilderList()Secret environment variables configuration.intgetSecretEnvironmentVariablesCount()Secret environment variables configuration.List<SecretEnvVar>getSecretEnvironmentVariablesList()Secret environment variables configuration.SecretEnvVarOrBuildergetSecretEnvironmentVariablesOrBuilder(int index)Secret environment variables configuration.List<? extends SecretEnvVarOrBuilder>getSecretEnvironmentVariablesOrBuilderList()Secret environment variables configuration.SecretVolumegetSecretVolumes(int index)Secret volumes configuration.SecretVolume.BuildergetSecretVolumesBuilder(int index)Secret volumes configuration.List<SecretVolume.Builder>getSecretVolumesBuilderList()Secret volumes configuration.intgetSecretVolumesCount()Secret volumes configuration.List<SecretVolume>getSecretVolumesList()Secret volumes configuration.SecretVolumeOrBuildergetSecretVolumesOrBuilder(int index)Secret volumes configuration.List<? extends SecretVolumeOrBuilder>getSecretVolumesOrBuilderList()Secret volumes configuration.StringgetServiceAccountEmail()The email of the function's service account.com.google.protobuf.ByteStringgetServiceAccountEmailBytes()The email of the function's service account.StringgetSourceArchiveUrl()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.com.google.protobuf.ByteStringgetSourceArchiveUrlBytes()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.CloudFunction.SourceCodeCasegetSourceCodeCase()SourceRepositorygetSourceRepository()**Beta Feature** The source repository where a function is hosted.SourceRepository.BuildergetSourceRepositoryBuilder()**Beta Feature** The source repository where a function is hosted.SourceRepositoryOrBuildergetSourceRepositoryOrBuilder()**Beta Feature** The source repository where a function is hosted.StringgetSourceToken()Input only.com.google.protobuf.ByteStringgetSourceTokenBytes()Input only.StringgetSourceUploadUrl()The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].com.google.protobuf.ByteStringgetSourceUploadUrlBytes()The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].CloudFunctionStatusgetStatus()Output only.intgetStatusValue()Output only.com.google.protobuf.DurationgetTimeout()The function execution timeout.com.google.protobuf.Duration.BuildergetTimeoutBuilder()The function execution timeout.com.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()The function execution timeout.CloudFunction.TriggerCasegetTriggerCase()com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.longgetVersionId()Output only.StringgetVpcConnector()The VPC Network Connector that this cloud function can connect to.com.google.protobuf.ByteStringgetVpcConnectorBytes()The VPC Network Connector that this cloud function can connect to.CloudFunction.VpcConnectorEgressSettingsgetVpcConnectorEgressSettings()The egress settings for the connector, controlling what traffic is diverted through it.intgetVpcConnectorEgressSettingsValue()The egress settings for the connector, controlling what traffic is diverted through it.booleanhasEventTrigger()A source that fires events in response to a condition in another service.booleanhasHttpsTrigger()An HTTPS endpoint type of source that can be triggered via URL.booleanhasSourceArchiveUrl()The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.booleanhasSourceRepository()**Beta Feature** The source repository where a function is hosted.booleanhasSourceUploadUrl()The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].booleanhasTimeout()The function execution timeout.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()CloudFunction.BuildermergeEventTrigger(EventTrigger value)A source that fires events in response to a condition in another service.CloudFunction.BuildermergeFrom(CloudFunction other)CloudFunction.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CloudFunction.BuildermergeFrom(com.google.protobuf.Message other)CloudFunction.BuildermergeHttpsTrigger(HttpsTrigger value)An HTTPS endpoint type of source that can be triggered via URL.CloudFunction.BuildermergeSourceRepository(SourceRepository value)**Beta Feature** The source repository where a function is hosted.CloudFunction.BuildermergeTimeout(com.google.protobuf.Duration value)The function execution timeout.CloudFunction.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CloudFunction.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.CloudFunction.BuilderputAllBuildEnvironmentVariables(Map<String,String> values)Build environment variables that shall be available during build time.CloudFunction.BuilderputAllEnvironmentVariables(Map<String,String> values)Environment variables that shall be available during function execution.CloudFunction.BuilderputAllLabels(Map<String,String> values)Labels associated with this Cloud Function.CloudFunction.BuilderputBuildEnvironmentVariables(String key, String value)Build environment variables that shall be available during build time.CloudFunction.BuilderputEnvironmentVariables(String key, String value)Environment variables that shall be available during function execution.CloudFunction.BuilderputLabels(String key, String value)Labels associated with this Cloud Function.CloudFunction.BuilderremoveBuildEnvironmentVariables(String key)Build environment variables that shall be available during build time.CloudFunction.BuilderremoveEnvironmentVariables(String key)Environment variables that shall be available during function execution.CloudFunction.BuilderremoveLabels(String key)Labels associated with this Cloud Function.CloudFunction.BuilderremoveSecretEnvironmentVariables(int index)Secret environment variables configuration.CloudFunction.BuilderremoveSecretVolumes(int index)Secret volumes configuration.CloudFunction.BuildersetAvailableMemoryMb(int value)The amount of memory in MB available for a function.CloudFunction.BuildersetBuildId(String value)Output only.CloudFunction.BuildersetBuildIdBytes(com.google.protobuf.ByteString value)Output only.CloudFunction.BuildersetBuildName(String value)Output only.CloudFunction.BuildersetBuildNameBytes(com.google.protobuf.ByteString value)Output only.CloudFunction.BuildersetBuildWorkerPool(String value)Name of the Cloud Build Custom Worker Pool that should be used to build the function.CloudFunction.BuildersetBuildWorkerPoolBytes(com.google.protobuf.ByteString value)Name of the Cloud Build Custom Worker Pool that should be used to build the function.CloudFunction.BuildersetDescription(String value)User-provided description of a function.CloudFunction.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)User-provided description of a function.CloudFunction.BuildersetDockerRegistry(CloudFunction.DockerRegistry value)Docker Registry to use for this deployment.CloudFunction.BuildersetDockerRegistryValue(int value)Docker Registry to use for this deployment.CloudFunction.BuildersetDockerRepository(String value)User managed repository created in Artifact Registry optionally with a customer managed encryption key.CloudFunction.BuildersetDockerRepositoryBytes(com.google.protobuf.ByteString value)User managed repository created in Artifact Registry optionally with a customer managed encryption key.CloudFunction.BuildersetEntryPoint(String value)The name of the function (as defined in source code) that is executed.CloudFunction.BuildersetEntryPointBytes(com.google.protobuf.ByteString value)The name of the function (as defined in source code) that is executed.CloudFunction.BuildersetEventTrigger(EventTrigger value)A source that fires events in response to a condition in another service.CloudFunction.BuildersetEventTrigger(EventTrigger.Builder builderForValue)A source that fires events in response to a condition in another service.CloudFunction.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CloudFunction.BuildersetHttpsTrigger(HttpsTrigger value)An HTTPS endpoint type of source that can be triggered via URL.CloudFunction.BuildersetHttpsTrigger(HttpsTrigger.Builder builderForValue)An HTTPS endpoint type of source that can be triggered via URL.CloudFunction.BuildersetIngressSettings(CloudFunction.IngressSettings value)The ingress settings for the function, controlling what traffic can reach it.CloudFunction.BuildersetIngressSettingsValue(int value)The ingress settings for the function, controlling what traffic can reach it.CloudFunction.BuildersetKmsKeyName(String value)Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.CloudFunction.BuildersetKmsKeyNameBytes(com.google.protobuf.ByteString value)Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.CloudFunction.BuildersetMaxInstances(int value)The limit on the maximum number of function instances that can coexist at a given time.CloudFunction.BuildersetMinInstances(int value)A lower bound for the number function instances that can coexist at a given time.CloudFunction.BuildersetName(String value)A user-defined name of the function.CloudFunction.BuildersetNameBytes(com.google.protobuf.ByteString value)A user-defined name of the function.CloudFunction.BuildersetNetwork(String value)The Serverless VPC Access connector that this cloud function can connect to.CloudFunction.BuildersetNetworkBytes(com.google.protobuf.ByteString value)The Serverless VPC Access connector that this cloud function can connect to.CloudFunction.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CloudFunction.BuildersetRuntime(String value)The runtime in which to run the function.CloudFunction.BuildersetRuntimeBytes(com.google.protobuf.ByteString value)The runtime in which to run the function.CloudFunction.BuildersetSecretEnvironmentVariables(int index, SecretEnvVar value)Secret environment variables configuration.CloudFunction.BuildersetSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)Secret environment variables configuration.CloudFunction.BuildersetSecretVolumes(int index, SecretVolume value)Secret volumes configuration.CloudFunction.BuildersetSecretVolumes(int index, SecretVolume.Builder builderForValue)Secret volumes configuration.CloudFunction.BuildersetServiceAccountEmail(String value)The email of the function's service account.CloudFunction.BuildersetServiceAccountEmailBytes(com.google.protobuf.ByteString value)The email of the function's service account.CloudFunction.BuildersetSourceArchiveUrl(String value)The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.CloudFunction.BuildersetSourceArchiveUrlBytes(com.google.protobuf.ByteString value)The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.CloudFunction.BuildersetSourceRepository(SourceRepository value)**Beta Feature** The source repository where a function is hosted.CloudFunction.BuildersetSourceRepository(SourceRepository.Builder builderForValue)**Beta Feature** The source repository where a function is hosted.CloudFunction.BuildersetSourceToken(String value)Input only.CloudFunction.BuildersetSourceTokenBytes(com.google.protobuf.ByteString value)Input only.CloudFunction.BuildersetSourceUploadUrl(String value)The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].CloudFunction.BuildersetSourceUploadUrlBytes(com.google.protobuf.ByteString value)The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].CloudFunction.BuildersetStatus(CloudFunctionStatus value)Output only.CloudFunction.BuildersetStatusValue(int value)Output only.CloudFunction.BuildersetTimeout(com.google.protobuf.Duration value)The function execution timeout.CloudFunction.BuildersetTimeout(com.google.protobuf.Duration.Builder builderForValue)The function execution timeout.CloudFunction.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CloudFunction.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.CloudFunction.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.CloudFunction.BuildersetVersionId(long value)Output only.CloudFunction.BuildersetVpcConnector(String value)The VPC Network Connector that this cloud function can connect to.CloudFunction.BuildersetVpcConnectorBytes(com.google.protobuf.ByteString value)The VPC Network Connector that this cloud function can connect to.CloudFunction.BuildersetVpcConnectorEgressSettings(CloudFunction.VpcConnectorEgressSettings value)The egress settings for the connector, controlling what traffic is diverted through it.CloudFunction.BuildersetVpcConnectorEgressSettingsValue(int value)The egress settings for the connector, controlling what traffic is diverted through it.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
clear
public CloudFunction.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.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.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
getDefaultInstanceForType
public CloudFunction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CloudFunction build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CloudFunction buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CloudFunction.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
setField
public CloudFunction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
clearField
public CloudFunction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
clearOneof
public CloudFunction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
setRepeatedField
public CloudFunction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
addRepeatedField
public CloudFunction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
mergeFrom
public CloudFunction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudFunction.Builder>
-
mergeFrom
public CloudFunction.Builder mergeFrom(CloudFunction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
mergeFrom
public CloudFunction.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<CloudFunction.Builder>- Throws:
IOException
-
getSourceCodeCase
public CloudFunction.SourceCodeCase getSourceCodeCase()
- Specified by:
getSourceCodeCasein interfaceCloudFunctionOrBuilder
-
clearSourceCode
public CloudFunction.Builder clearSourceCode()
-
getTriggerCase
public CloudFunction.TriggerCase getTriggerCase()
- Specified by:
getTriggerCasein interfaceCloudFunctionOrBuilder
-
clearTrigger
public CloudFunction.Builder clearTrigger()
-
getName
public String getName()
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Specified by:
getNamein interfaceCloudFunctionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Specified by:
getNameBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for name.
-
setName
public CloudFunction.Builder setName(String value)
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public CloudFunction.Builder clearName()
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public CloudFunction.Builder setNameBytes(com.google.protobuf.ByteString value)
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
User-provided description of a function.
string description = 2;- Specified by:
getDescriptionin interfaceCloudFunctionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
User-provided description of a function.
string description = 2;- Specified by:
getDescriptionBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for description.
-
setDescription
public CloudFunction.Builder setDescription(String value)
User-provided description of a function.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public CloudFunction.Builder clearDescription()
User-provided description of a function.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public CloudFunction.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
User-provided description of a function.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasSourceArchiveUrl
public boolean hasSourceArchiveUrl()
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Specified by:
hasSourceArchiveUrlin interfaceCloudFunctionOrBuilder- Returns:
- Whether the sourceArchiveUrl field is set.
-
getSourceArchiveUrl
public String getSourceArchiveUrl()
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Specified by:
getSourceArchiveUrlin interfaceCloudFunctionOrBuilder- Returns:
- The sourceArchiveUrl.
-
getSourceArchiveUrlBytes
public com.google.protobuf.ByteString getSourceArchiveUrlBytes()
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Specified by:
getSourceArchiveUrlBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for sourceArchiveUrl.
-
setSourceArchiveUrl
public CloudFunction.Builder setSourceArchiveUrl(String value)
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Parameters:
value- The sourceArchiveUrl to set.- Returns:
- This builder for chaining.
-
clearSourceArchiveUrl
public CloudFunction.Builder clearSourceArchiveUrl()
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Returns:
- This builder for chaining.
-
setSourceArchiveUrlBytes
public CloudFunction.Builder setSourceArchiveUrlBytes(com.google.protobuf.ByteString value)
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.
string source_archive_url = 3;- Parameters:
value- The bytes for sourceArchiveUrl to set.- Returns:
- This builder for chaining.
-
hasSourceRepository
public boolean hasSourceRepository()
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;- Specified by:
hasSourceRepositoryin interfaceCloudFunctionOrBuilder- Returns:
- Whether the sourceRepository field is set.
-
getSourceRepository
public SourceRepository getSourceRepository()
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;- Specified by:
getSourceRepositoryin interfaceCloudFunctionOrBuilder- Returns:
- The sourceRepository.
-
setSourceRepository
public CloudFunction.Builder setSourceRepository(SourceRepository value)
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
-
setSourceRepository
public CloudFunction.Builder setSourceRepository(SourceRepository.Builder builderForValue)
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
-
mergeSourceRepository
public CloudFunction.Builder mergeSourceRepository(SourceRepository value)
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
-
clearSourceRepository
public CloudFunction.Builder clearSourceRepository()
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
-
getSourceRepositoryBuilder
public SourceRepository.Builder getSourceRepositoryBuilder()
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
-
getSourceRepositoryOrBuilder
public SourceRepositoryOrBuilder getSourceRepositoryOrBuilder()
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;- Specified by:
getSourceRepositoryOrBuilderin interfaceCloudFunctionOrBuilder
-
hasSourceUploadUrl
public boolean hasSourceUploadUrl()
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Specified by:
hasSourceUploadUrlin interfaceCloudFunctionOrBuilder- Returns:
- Whether the sourceUploadUrl field is set.
-
getSourceUploadUrl
public String getSourceUploadUrl()
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Specified by:
getSourceUploadUrlin interfaceCloudFunctionOrBuilder- Returns:
- The sourceUploadUrl.
-
getSourceUploadUrlBytes
public com.google.protobuf.ByteString getSourceUploadUrlBytes()
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Specified by:
getSourceUploadUrlBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for sourceUploadUrl.
-
setSourceUploadUrl
public CloudFunction.Builder setSourceUploadUrl(String value)
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Parameters:
value- The sourceUploadUrl to set.- Returns:
- This builder for chaining.
-
clearSourceUploadUrl
public CloudFunction.Builder clearSourceUploadUrl()
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Returns:
- This builder for chaining.
-
setSourceUploadUrlBytes
public CloudFunction.Builder setSourceUploadUrlBytes(com.google.protobuf.ByteString value)
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List)
string source_upload_url = 16;- Parameters:
value- The bytes for sourceUploadUrl to set.- Returns:
- This builder for chaining.
-
hasHttpsTrigger
public boolean hasHttpsTrigger()
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;- Specified by:
hasHttpsTriggerin interfaceCloudFunctionOrBuilder- Returns:
- Whether the httpsTrigger field is set.
-
getHttpsTrigger
public HttpsTrigger getHttpsTrigger()
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;- Specified by:
getHttpsTriggerin interfaceCloudFunctionOrBuilder- Returns:
- The httpsTrigger.
-
setHttpsTrigger
public CloudFunction.Builder setHttpsTrigger(HttpsTrigger value)
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
-
setHttpsTrigger
public CloudFunction.Builder setHttpsTrigger(HttpsTrigger.Builder builderForValue)
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
-
mergeHttpsTrigger
public CloudFunction.Builder mergeHttpsTrigger(HttpsTrigger value)
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
-
clearHttpsTrigger
public CloudFunction.Builder clearHttpsTrigger()
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
-
getHttpsTriggerBuilder
public HttpsTrigger.Builder getHttpsTriggerBuilder()
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;
-
getHttpsTriggerOrBuilder
public HttpsTriggerOrBuilder getHttpsTriggerOrBuilder()
An HTTPS endpoint type of source that can be triggered via URL.
.google.cloud.functions.v1.HttpsTrigger https_trigger = 5;- Specified by:
getHttpsTriggerOrBuilderin interfaceCloudFunctionOrBuilder
-
hasEventTrigger
public boolean hasEventTrigger()
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;- Specified by:
hasEventTriggerin interfaceCloudFunctionOrBuilder- Returns:
- Whether the eventTrigger field is set.
-
getEventTrigger
public EventTrigger getEventTrigger()
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;- Specified by:
getEventTriggerin interfaceCloudFunctionOrBuilder- Returns:
- The eventTrigger.
-
setEventTrigger
public CloudFunction.Builder setEventTrigger(EventTrigger value)
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
-
setEventTrigger
public CloudFunction.Builder setEventTrigger(EventTrigger.Builder builderForValue)
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
-
mergeEventTrigger
public CloudFunction.Builder mergeEventTrigger(EventTrigger value)
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
-
clearEventTrigger
public CloudFunction.Builder clearEventTrigger()
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
-
getEventTriggerBuilder
public EventTrigger.Builder getEventTriggerBuilder()
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;
-
getEventTriggerOrBuilder
public EventTriggerOrBuilder getEventTriggerOrBuilder()
A source that fires events in response to a condition in another service.
.google.cloud.functions.v1.EventTrigger event_trigger = 6;- Specified by:
getEventTriggerOrBuilderin interfaceCloudFunctionOrBuilder
-
getStatusValue
public int getStatusValue()
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceCloudFunctionOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public CloudFunction.Builder setStatusValue(int value)
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public CloudFunctionStatus getStatus()
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceCloudFunctionOrBuilder- Returns:
- The status.
-
setStatus
public CloudFunction.Builder setStatus(CloudFunctionStatus value)
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public CloudFunction.Builder clearStatus()
Output only. Status of the function deployment.
.google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getEntryPoint
public String getEntryPoint()
The name of the function (as defined in source code) that is executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, the system tries to use the function named "function". For Node.js, this is the name of a function exported by the module as specified in `source_location`.
string entry_point = 8;- Specified by:
getEntryPointin interfaceCloudFunctionOrBuilder- Returns:
- The entryPoint.
-
getEntryPointBytes
public com.google.protobuf.ByteString getEntryPointBytes()
The name of the function (as defined in source code) that is executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, the system tries to use the function named "function". For Node.js, this is the name of a function exported by the module as specified in `source_location`.
string entry_point = 8;- Specified by:
getEntryPointBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for entryPoint.
-
setEntryPoint
public CloudFunction.Builder setEntryPoint(String value)
The name of the function (as defined in source code) that is executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, the system tries to use the function named "function". For Node.js, this is the name of a function exported by the module as specified in `source_location`.
string entry_point = 8;- Parameters:
value- The entryPoint to set.- Returns:
- This builder for chaining.
-
clearEntryPoint
public CloudFunction.Builder clearEntryPoint()
The name of the function (as defined in source code) that is executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, the system tries to use the function named "function". For Node.js, this is the name of a function exported by the module as specified in `source_location`.
string entry_point = 8;- Returns:
- This builder for chaining.
-
setEntryPointBytes
public CloudFunction.Builder setEntryPointBytes(com.google.protobuf.ByteString value)
The name of the function (as defined in source code) that is executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, the system tries to use the function named "function". For Node.js, this is the name of a function exported by the module as specified in `source_location`.
string entry_point = 8;- Parameters:
value- The bytes for entryPoint to set.- Returns:
- This builder for chaining.
-
getRuntime
public String getRuntime()
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Specified by:
getRuntimein interfaceCloudFunctionOrBuilder- Returns:
- The runtime.
-
getRuntimeBytes
public com.google.protobuf.ByteString getRuntimeBytes()
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Specified by:
getRuntimeBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for runtime.
-
setRuntime
public CloudFunction.Builder setRuntime(String value)
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Parameters:
value- The runtime to set.- Returns:
- This builder for chaining.
-
clearRuntime
public CloudFunction.Builder clearRuntime()
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Returns:
- This builder for chaining.
-
setRuntimeBytes
public CloudFunction.Builder setRuntimeBytes(com.google.protobuf.ByteString value)
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
string runtime = 19;- Parameters:
value- The bytes for runtime to set.- Returns:
- This builder for chaining.
-
hasTimeout
public boolean hasTimeout()
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;- Specified by:
hasTimeoutin interfaceCloudFunctionOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;- Specified by:
getTimeoutin interfaceCloudFunctionOrBuilder- Returns:
- The timeout.
-
setTimeout
public CloudFunction.Builder setTimeout(com.google.protobuf.Duration value)
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;
-
setTimeout
public CloudFunction.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;
-
mergeTimeout
public CloudFunction.Builder mergeTimeout(com.google.protobuf.Duration value)
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;
-
clearTimeout
public CloudFunction.Builder clearTimeout()
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;
-
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;
-
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
.google.protobuf.Duration timeout = 9;- Specified by:
getTimeoutOrBuilderin interfaceCloudFunctionOrBuilder
-
getAvailableMemoryMb
public int getAvailableMemoryMb()
The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;- Specified by:
getAvailableMemoryMbin interfaceCloudFunctionOrBuilder- Returns:
- The availableMemoryMb.
-
setAvailableMemoryMb
public CloudFunction.Builder setAvailableMemoryMb(int value)
The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;- Parameters:
value- The availableMemoryMb to set.- Returns:
- This builder for chaining.
-
clearAvailableMemoryMb
public CloudFunction.Builder clearAvailableMemoryMb()
The amount of memory in MB available for a function. Defaults to 256MB.
int32 available_memory_mb = 10;- Returns:
- This builder for chaining.
-
getServiceAccountEmail
public String getServiceAccountEmail()
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Specified by:
getServiceAccountEmailin interfaceCloudFunctionOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
public com.google.protobuf.ByteString getServiceAccountEmailBytes()
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Specified by:
getServiceAccountEmailBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
setServiceAccountEmail
public CloudFunction.Builder setServiceAccountEmail(String value)
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Parameters:
value- The serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearServiceAccountEmail
public CloudFunction.Builder clearServiceAccountEmail()
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Returns:
- This builder for chaining.
-
setServiceAccountEmailBytes
public CloudFunction.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`.string service_account_email = 11;- Parameters:
value- The bytes for serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceCloudFunctionOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceCloudFunctionOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public CloudFunction.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public CloudFunction.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public CloudFunction.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public CloudFunction.Builder clearUpdateTime()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceCloudFunctionOrBuilder
-
getVersionId
public long getVersionId()
Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.
int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionIdin interfaceCloudFunctionOrBuilder- Returns:
- The versionId.
-
setVersionId
public CloudFunction.Builder setVersionId(long value)
Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.
int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The versionId to set.- Returns:
- This builder for chaining.
-
clearVersionId
public CloudFunction.Builder clearVersionId()
Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.
int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:CloudFunctionOrBuilderLabels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
getLabelsCountin interfaceCloudFunctionOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
containsLabelsin interfaceCloudFunctionOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceCloudFunctionOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
getLabelsMapin interfaceCloudFunctionOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
getLabelsOrDefaultin interfaceCloudFunctionOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 15;- Specified by:
getLabelsOrThrowin interfaceCloudFunctionOrBuilder
-
clearLabels
public CloudFunction.Builder clearLabels()
-
removeLabels
public CloudFunction.Builder removeLabels(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 15;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public CloudFunction.Builder putLabels(String key, String value)
Labels associated with this Cloud Function.
map<string, string> labels = 15;
-
putAllLabels
public CloudFunction.Builder putAllLabels(Map<String,String> values)
Labels associated with this Cloud Function.
map<string, string> labels = 15;
-
getEnvironmentVariablesCount
public int getEnvironmentVariablesCount()
Description copied from interface:CloudFunctionOrBuilderEnvironment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
getEnvironmentVariablesCountin interfaceCloudFunctionOrBuilder
-
containsEnvironmentVariables
public boolean containsEnvironmentVariables(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
containsEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
getEnvironmentVariables
@Deprecated public Map<String,String> getEnvironmentVariables()
Deprecated.UsegetEnvironmentVariablesMap()instead.- Specified by:
getEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesMap
public Map<String,String> getEnvironmentVariablesMap()
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
getEnvironmentVariablesMapin interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesOrDefault
public String getEnvironmentVariablesOrDefault(String key, String defaultValue)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
getEnvironmentVariablesOrDefaultin interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesOrThrow
public String getEnvironmentVariablesOrThrow(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;- Specified by:
getEnvironmentVariablesOrThrowin interfaceCloudFunctionOrBuilder
-
clearEnvironmentVariables
public CloudFunction.Builder clearEnvironmentVariables()
-
removeEnvironmentVariables
public CloudFunction.Builder removeEnvironmentVariables(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
-
getMutableEnvironmentVariables
@Deprecated public Map<String,String> getMutableEnvironmentVariables()
Deprecated.Use alternate mutation accessors instead.
-
putEnvironmentVariables
public CloudFunction.Builder putEnvironmentVariables(String key, String value)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
-
putAllEnvironmentVariables
public CloudFunction.Builder putAllEnvironmentVariables(Map<String,String> values)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
-
getBuildEnvironmentVariablesCount
public int getBuildEnvironmentVariablesCount()
Description copied from interface:CloudFunctionOrBuilderBuild environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
getBuildEnvironmentVariablesCountin interfaceCloudFunctionOrBuilder
-
containsBuildEnvironmentVariables
public boolean containsBuildEnvironmentVariables(String key)
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
containsBuildEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariables
@Deprecated public Map<String,String> getBuildEnvironmentVariables()
Deprecated.UsegetBuildEnvironmentVariablesMap()instead.- Specified by:
getBuildEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariablesMap
public Map<String,String> getBuildEnvironmentVariablesMap()
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
getBuildEnvironmentVariablesMapin interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariablesOrDefault
public String getBuildEnvironmentVariablesOrDefault(String key, String defaultValue)
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
getBuildEnvironmentVariablesOrDefaultin interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariablesOrThrow
public String getBuildEnvironmentVariablesOrThrow(String key)
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;- Specified by:
getBuildEnvironmentVariablesOrThrowin interfaceCloudFunctionOrBuilder
-
clearBuildEnvironmentVariables
public CloudFunction.Builder clearBuildEnvironmentVariables()
-
removeBuildEnvironmentVariables
public CloudFunction.Builder removeBuildEnvironmentVariables(String key)
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
-
getMutableBuildEnvironmentVariables
@Deprecated public Map<String,String> getMutableBuildEnvironmentVariables()
Deprecated.Use alternate mutation accessors instead.
-
putBuildEnvironmentVariables
public CloudFunction.Builder putBuildEnvironmentVariables(String key, String value)
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
-
putAllBuildEnvironmentVariables
public CloudFunction.Builder putAllBuildEnvironmentVariables(Map<String,String> values)
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
-
getNetwork
public String getNetwork()
The Serverless VPC Access connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the connector resource. If the connector name is used, the connector must belong to the same project as the function. Otherwise, it must belong to a project within the same organization. The format of this field is either `projects/{project}/global/networks/{network}` or `{network}`, where `{project}` is a project id where the network is defined, and `{network}` is the short name of the network. This field is mutually exclusive with `vpc_connector` and will be replaced by it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.string network = 18;- Specified by:
getNetworkin interfaceCloudFunctionOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
The Serverless VPC Access connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the connector resource. If the connector name is used, the connector must belong to the same project as the function. Otherwise, it must belong to a project within the same organization. The format of this field is either `projects/{project}/global/networks/{network}` or `{network}`, where `{project}` is a project id where the network is defined, and `{network}` is the short name of the network. This field is mutually exclusive with `vpc_connector` and will be replaced by it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.string network = 18;- Specified by:
getNetworkBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for network.
-
setNetwork
public CloudFunction.Builder setNetwork(String value)
The Serverless VPC Access connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the connector resource. If the connector name is used, the connector must belong to the same project as the function. Otherwise, it must belong to a project within the same organization. The format of this field is either `projects/{project}/global/networks/{network}` or `{network}`, where `{project}` is a project id where the network is defined, and `{network}` is the short name of the network. This field is mutually exclusive with `vpc_connector` and will be replaced by it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.string network = 18;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public CloudFunction.Builder clearNetwork()
The Serverless VPC Access connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the connector resource. If the connector name is used, the connector must belong to the same project as the function. Otherwise, it must belong to a project within the same organization. The format of this field is either `projects/{project}/global/networks/{network}` or `{network}`, where `{project}` is a project id where the network is defined, and `{network}` is the short name of the network. This field is mutually exclusive with `vpc_connector` and will be replaced by it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.string network = 18;- Returns:
- This builder for chaining.
-
setNetworkBytes
public CloudFunction.Builder setNetworkBytes(com.google.protobuf.ByteString value)
The Serverless VPC Access connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the connector resource. If the connector name is used, the connector must belong to the same project as the function. Otherwise, it must belong to a project within the same organization. The format of this field is either `projects/{project}/global/networks/{network}` or `{network}`, where `{project}` is a project id where the network is defined, and `{network}` is the short name of the network. This field is mutually exclusive with `vpc_connector` and will be replaced by it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.string network = 18;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
getMaxInstances
public int getMaxInstances()
The limit on the maximum number of function instances that can coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions can for a short period of time create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you might want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instances = 20;- Specified by:
getMaxInstancesin interfaceCloudFunctionOrBuilder- Returns:
- The maxInstances.
-
setMaxInstances
public CloudFunction.Builder setMaxInstances(int value)
The limit on the maximum number of function instances that can coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions can for a short period of time create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you might want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instances = 20;- Parameters:
value- The maxInstances to set.- Returns:
- This builder for chaining.
-
clearMaxInstances
public CloudFunction.Builder clearMaxInstances()
The limit on the maximum number of function instances that can coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions can for a short period of time create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you might want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instances = 20;- Returns:
- This builder for chaining.
-
getMinInstances
public int getMinInstances()
A lower bound for the number function instances that can coexist at a given time.
int32 min_instances = 32;- Specified by:
getMinInstancesin interfaceCloudFunctionOrBuilder- Returns:
- The minInstances.
-
setMinInstances
public CloudFunction.Builder setMinInstances(int value)
A lower bound for the number function instances that can coexist at a given time.
int32 min_instances = 32;- Parameters:
value- The minInstances to set.- Returns:
- This builder for chaining.
-
clearMinInstances
public CloudFunction.Builder clearMinInstances()
A lower bound for the number function instances that can coexist at a given time.
int32 min_instances = 32;- Returns:
- This builder for chaining.
-
getVpcConnector
public String getVpcConnector()
The VPC Network Connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Specified by:
getVpcConnectorin interfaceCloudFunctionOrBuilder- Returns:
- The vpcConnector.
-
getVpcConnectorBytes
public com.google.protobuf.ByteString getVpcConnectorBytes()
The VPC Network Connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Specified by:
getVpcConnectorBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for vpcConnector.
-
setVpcConnector
public CloudFunction.Builder setVpcConnector(String value)
The VPC Network Connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Parameters:
value- The vpcConnector to set.- Returns:
- This builder for chaining.
-
clearVpcConnector
public CloudFunction.Builder clearVpcConnector()
The VPC Network Connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Returns:
- This builder for chaining.
-
setVpcConnectorBytes
public CloudFunction.Builder setVpcConnectorBytes(com.google.protobuf.ByteString value)
The VPC Network Connector that this cloud function can connect to. It can be either the fully qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects.
string vpc_connector = 22;- Parameters:
value- The bytes for vpcConnector to set.- Returns:
- This builder for chaining.
-
getVpcConnectorEgressSettingsValue
public int getVpcConnectorEgressSettingsValue()
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Specified by:
getVpcConnectorEgressSettingsValuein interfaceCloudFunctionOrBuilder- Returns:
- The enum numeric value on the wire for vpcConnectorEgressSettings.
-
setVpcConnectorEgressSettingsValue
public CloudFunction.Builder setVpcConnectorEgressSettingsValue(int value)
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Parameters:
value- The enum numeric value on the wire for vpcConnectorEgressSettings to set.- Returns:
- This builder for chaining.
-
getVpcConnectorEgressSettings
public CloudFunction.VpcConnectorEgressSettings getVpcConnectorEgressSettings()
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Specified by:
getVpcConnectorEgressSettingsin interfaceCloudFunctionOrBuilder- Returns:
- The vpcConnectorEgressSettings.
-
setVpcConnectorEgressSettings
public CloudFunction.Builder setVpcConnectorEgressSettings(CloudFunction.VpcConnectorEgressSettings value)
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Parameters:
value- The vpcConnectorEgressSettings to set.- Returns:
- This builder for chaining.
-
clearVpcConnectorEgressSettings
public CloudFunction.Builder clearVpcConnectorEgressSettings()
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23;- Returns:
- This builder for chaining.
-
getIngressSettingsValue
public int getIngressSettingsValue()
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Specified by:
getIngressSettingsValuein interfaceCloudFunctionOrBuilder- Returns:
- The enum numeric value on the wire for ingressSettings.
-
setIngressSettingsValue
public CloudFunction.Builder setIngressSettingsValue(int value)
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Parameters:
value- The enum numeric value on the wire for ingressSettings to set.- Returns:
- This builder for chaining.
-
getIngressSettings
public CloudFunction.IngressSettings getIngressSettings()
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Specified by:
getIngressSettingsin interfaceCloudFunctionOrBuilder- Returns:
- The ingressSettings.
-
setIngressSettings
public CloudFunction.Builder setIngressSettings(CloudFunction.IngressSettings value)
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Parameters:
value- The ingressSettings to set.- Returns:
- This builder for chaining.
-
clearIngressSettings
public CloudFunction.Builder clearIngressSettings()
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24;- Returns:
- This builder for chaining.
-
getKmsKeyName
public String getKmsKeyName()
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyNamein interfaceCloudFunctionOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyNameBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for kmsKeyName.
-
setKmsKeyName
public CloudFunction.Builder setKmsKeyName(String value)
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Parameters:
value- The kmsKeyName to set.- Returns:
- This builder for chaining.
-
clearKmsKeyName
public CloudFunction.Builder clearKmsKeyName()
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setKmsKeyNameBytes
public CloudFunction.Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value)
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user.string kms_key_name = 25 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for kmsKeyName to set.- Returns:
- This builder for chaining.
-
getBuildWorkerPool
public String getBuildWorkerPool()
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Specified by:
getBuildWorkerPoolin interfaceCloudFunctionOrBuilder- Returns:
- The buildWorkerPool.
-
getBuildWorkerPoolBytes
public com.google.protobuf.ByteString getBuildWorkerPoolBytes()
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Specified by:
getBuildWorkerPoolBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for buildWorkerPool.
-
setBuildWorkerPool
public CloudFunction.Builder setBuildWorkerPool(String value)
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Parameters:
value- The buildWorkerPool to set.- Returns:
- This builder for chaining.
-
clearBuildWorkerPool
public CloudFunction.Builder clearBuildWorkerPool()
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Returns:
- This builder for chaining.
-
setBuildWorkerPoolBytes
public CloudFunction.Builder setBuildWorkerPoolBytes(com.google.protobuf.ByteString value)
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where `{project}` and `{region}` are the project id and region respectively where the worker pool is defined and `{workerPool}` is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers Builder (`roles/cloudbuild.customworkers.builder`) in the project.string build_worker_pool = 26;- Parameters:
value- The bytes for buildWorkerPool to set.- Returns:
- This builder for chaining.
-
getBuildId
public String getBuildId()
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBuildIdin interfaceCloudFunctionOrBuilder- Returns:
- The buildId.
-
getBuildIdBytes
public com.google.protobuf.ByteString getBuildIdBytes()
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBuildIdBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for buildId.
-
setBuildId
public CloudFunction.Builder setBuildId(String value)
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The buildId to set.- Returns:
- This builder for chaining.
-
clearBuildId
public CloudFunction.Builder clearBuildId()
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setBuildIdBytes
public CloudFunction.Builder setBuildIdBytes(com.google.protobuf.ByteString value)
Output only. The Cloud Build ID of the latest successful deployment of the function.
string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for buildId to set.- Returns:
- This builder for chaining.
-
getBuildName
public String getBuildName()
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBuildNamein interfaceCloudFunctionOrBuilder- Returns:
- The buildName.
-
getBuildNameBytes
public com.google.protobuf.ByteString getBuildNameBytes()
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBuildNameBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for buildName.
-
setBuildName
public CloudFunction.Builder setBuildName(String value)
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The buildName to set.- Returns:
- This builder for chaining.
-
clearBuildName
public CloudFunction.Builder clearBuildName()
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setBuildNameBytes
public CloudFunction.Builder setBuildNameBytes(com.google.protobuf.ByteString value)
Output only. The Cloud Build Name of the function deployment. `projects/<project-number>/locations/<region>/builds/<build-id>`.
string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for buildName to set.- Returns:
- This builder for chaining.
-
getSecretEnvironmentVariablesList
public List<SecretEnvVar> getSecretEnvironmentVariablesList()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesListin interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariablesCount
public int getSecretEnvironmentVariablesCount()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesCountin interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariables
public SecretEnvVar getSecretEnvironmentVariables(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesin interfaceCloudFunctionOrBuilder
-
setSecretEnvironmentVariables
public CloudFunction.Builder setSecretEnvironmentVariables(int index, SecretEnvVar value)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
setSecretEnvironmentVariables
public CloudFunction.Builder setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
addSecretEnvironmentVariables
public CloudFunction.Builder addSecretEnvironmentVariables(SecretEnvVar value)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
addSecretEnvironmentVariables
public CloudFunction.Builder addSecretEnvironmentVariables(int index, SecretEnvVar value)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
addSecretEnvironmentVariables
public CloudFunction.Builder addSecretEnvironmentVariables(SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
addSecretEnvironmentVariables
public CloudFunction.Builder addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
addAllSecretEnvironmentVariables
public CloudFunction.Builder addAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
clearSecretEnvironmentVariables
public CloudFunction.Builder clearSecretEnvironmentVariables()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
removeSecretEnvironmentVariables
public CloudFunction.Builder removeSecretEnvironmentVariables(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
getSecretEnvironmentVariablesBuilder
public SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
getSecretEnvironmentVariablesOrBuilder
public SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesOrBuilderin interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariablesOrBuilderList
public List<? extends SecretEnvVarOrBuilder> getSecretEnvironmentVariablesOrBuilderList()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;- Specified by:
getSecretEnvironmentVariablesOrBuilderListin interfaceCloudFunctionOrBuilder
-
addSecretEnvironmentVariablesBuilder
public SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
addSecretEnvironmentVariablesBuilder
public SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
getSecretEnvironmentVariablesBuilderList
public List<SecretEnvVar.Builder> getSecretEnvironmentVariablesBuilderList()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
-
getSecretVolumesList
public List<SecretVolume> getSecretVolumesList()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesListin interfaceCloudFunctionOrBuilder
-
getSecretVolumesCount
public int getSecretVolumesCount()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesCountin interfaceCloudFunctionOrBuilder
-
getSecretVolumes
public SecretVolume getSecretVolumes(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesin interfaceCloudFunctionOrBuilder
-
setSecretVolumes
public CloudFunction.Builder setSecretVolumes(int index, SecretVolume value)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
setSecretVolumes
public CloudFunction.Builder setSecretVolumes(int index, SecretVolume.Builder builderForValue)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
addSecretVolumes
public CloudFunction.Builder addSecretVolumes(SecretVolume value)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
addSecretVolumes
public CloudFunction.Builder addSecretVolumes(int index, SecretVolume value)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
addSecretVolumes
public CloudFunction.Builder addSecretVolumes(SecretVolume.Builder builderForValue)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
addSecretVolumes
public CloudFunction.Builder addSecretVolumes(int index, SecretVolume.Builder builderForValue)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
addAllSecretVolumes
public CloudFunction.Builder addAllSecretVolumes(Iterable<? extends SecretVolume> values)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
clearSecretVolumes
public CloudFunction.Builder clearSecretVolumes()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
removeSecretVolumes
public CloudFunction.Builder removeSecretVolumes(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
getSecretVolumesBuilder
public SecretVolume.Builder getSecretVolumesBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
getSecretVolumesOrBuilder
public SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesOrBuilderin interfaceCloudFunctionOrBuilder
-
getSecretVolumesOrBuilderList
public List<? extends SecretVolumeOrBuilder> getSecretVolumesOrBuilderList()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;- Specified by:
getSecretVolumesOrBuilderListin interfaceCloudFunctionOrBuilder
-
addSecretVolumesBuilder
public SecretVolume.Builder addSecretVolumesBuilder()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
addSecretVolumesBuilder
public SecretVolume.Builder addSecretVolumesBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
getSecretVolumesBuilderList
public List<SecretVolume.Builder> getSecretVolumesBuilderList()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
-
getSourceToken
public String getSourceToken()
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getSourceTokenin interfaceCloudFunctionOrBuilder- Returns:
- The sourceToken.
-
getSourceTokenBytes
public com.google.protobuf.ByteString getSourceTokenBytes()
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getSourceTokenBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for sourceToken.
-
setSourceToken
public CloudFunction.Builder setSourceToken(String value)
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The sourceToken to set.- Returns:
- This builder for chaining.
-
clearSourceToken
public CloudFunction.Builder clearSourceToken()
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- This builder for chaining.
-
setSourceTokenBytes
public CloudFunction.Builder setSourceTokenBytes(com.google.protobuf.ByteString value)
Input only. An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The bytes for sourceToken to set.- Returns:
- This builder for chaining.
-
getDockerRepository
public String getDockerRepository()
User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. This is the repository to which the function docker image is pushed after it is built by Cloud Build. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Specified by:
getDockerRepositoryin interfaceCloudFunctionOrBuilder- Returns:
- The dockerRepository.
-
getDockerRepositoryBytes
public com.google.protobuf.ByteString getDockerRepositoryBytes()
User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. This is the repository to which the function docker image is pushed after it is built by Cloud Build. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Specified by:
getDockerRepositoryBytesin interfaceCloudFunctionOrBuilder- Returns:
- The bytes for dockerRepository.
-
setDockerRepository
public CloudFunction.Builder setDockerRepository(String value)
User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. This is the repository to which the function docker image is pushed after it is built by Cloud Build. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Parameters:
value- The dockerRepository to set.- Returns:
- This builder for chaining.
-
clearDockerRepository
public CloudFunction.Builder clearDockerRepository()
User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. This is the repository to which the function docker image is pushed after it is built by Cloud Build. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDockerRepositoryBytes
public CloudFunction.Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value)
User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. This is the repository to which the function docker image is pushed after it is built by Cloud Build. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.string docker_repository = 34 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for dockerRepository to set.- Returns:
- This builder for chaining.
-
getDockerRegistryValue
public int getDockerRegistryValue()
Docker Registry to use for this deployment. If `docker_repository` field is specified, this field is automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;- Specified by:
getDockerRegistryValuein interfaceCloudFunctionOrBuilder- Returns:
- The enum numeric value on the wire for dockerRegistry.
-
setDockerRegistryValue
public CloudFunction.Builder setDockerRegistryValue(int value)
Docker Registry to use for this deployment. If `docker_repository` field is specified, this field is automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;- Parameters:
value- The enum numeric value on the wire for dockerRegistry to set.- Returns:
- This builder for chaining.
-
getDockerRegistry
public CloudFunction.DockerRegistry getDockerRegistry()
Docker Registry to use for this deployment. If `docker_repository` field is specified, this field is automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;- Specified by:
getDockerRegistryin interfaceCloudFunctionOrBuilder- Returns:
- The dockerRegistry.
-
setDockerRegistry
public CloudFunction.Builder setDockerRegistry(CloudFunction.DockerRegistry value)
Docker Registry to use for this deployment. If `docker_repository` field is specified, this field is automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;- Parameters:
value- The dockerRegistry to set.- Returns:
- This builder for chaining.
-
clearDockerRegistry
public CloudFunction.Builder clearDockerRegistry()
Docker Registry to use for this deployment. If `docker_repository` field is specified, this field is automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
.google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CloudFunction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
mergeUnknownFields
public final CloudFunction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudFunction.Builder>
-
-