Package com.google.cloud.functions.v1
Class CloudFunction
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.functions.v1.CloudFunction
-
- All Implemented Interfaces:
CloudFunctionOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class CloudFunction extends com.google.protobuf.GeneratedMessageV3 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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CloudFunction.Builder
Describes a Cloud Function that contains user computation executed in response to an event.static class
CloudFunction.DockerRegistry
Docker Registry to use for storing function Docker images.static class
CloudFunction.IngressSettings
Available ingress settings.static class
CloudFunction.SourceCodeCase
static class
CloudFunction.TriggerCase
static class
CloudFunction.VpcConnectorEgressSettings
Available egress settings.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsBuildEnvironmentVariables(String key)
Build environment variables that shall be available during build time.boolean
containsEnvironmentVariables(String key)
Environment variables that shall be available during function execution.boolean
containsLabels(String key)
Labels associated with this Cloud Function.boolean
equals(Object obj)
int
getAvailableMemoryMb()
The amount of memory in MB available for a function.Map<String,String>
getBuildEnvironmentVariables()
Deprecated.int
getBuildEnvironmentVariablesCount()
Build environment variables that shall be available during build time.Map<String,String>
getBuildEnvironmentVariablesMap()
Build environment variables that shall be available during build time.String
getBuildEnvironmentVariablesOrDefault(String key, String defaultValue)
Build environment variables that shall be available during build time.String
getBuildEnvironmentVariablesOrThrow(String key)
Build environment variables that shall be available during build time.String
getBuildId()
Output only.com.google.protobuf.ByteString
getBuildIdBytes()
Output only.String
getBuildName()
Output only.com.google.protobuf.ByteString
getBuildNameBytes()
Output only.String
getBuildWorkerPool()
Name of the Cloud Build Custom Worker Pool that should be used to build the function.com.google.protobuf.ByteString
getBuildWorkerPoolBytes()
Name of the Cloud Build Custom Worker Pool that should be used to build the function.static CloudFunction
getDefaultInstance()
CloudFunction
getDefaultInstanceForType()
String
getDescription()
User-provided description of a function.com.google.protobuf.ByteString
getDescriptionBytes()
User-provided description of a function.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
CloudFunction.DockerRegistry
getDockerRegistry()
Docker Registry to use for this deployment.int
getDockerRegistryValue()
Docker Registry to use for this deployment.String
getDockerRepository()
User managed repository created in Artifact Registry optionally with a customer managed encryption key.com.google.protobuf.ByteString
getDockerRepositoryBytes()
User managed repository created in Artifact Registry optionally with a customer managed encryption key.String
getEntryPoint()
The name of the function (as defined in source code) that is executed.com.google.protobuf.ByteString
getEntryPointBytes()
The name of the function (as defined in source code) that is executed.Map<String,String>
getEnvironmentVariables()
Deprecated.int
getEnvironmentVariablesCount()
Environment variables that shall be available during function execution.Map<String,String>
getEnvironmentVariablesMap()
Environment variables that shall be available during function execution.String
getEnvironmentVariablesOrDefault(String key, String defaultValue)
Environment variables that shall be available during function execution.String
getEnvironmentVariablesOrThrow(String key)
Environment variables that shall be available during function execution.EventTrigger
getEventTrigger()
A source that fires events in response to a condition in another service.EventTriggerOrBuilder
getEventTriggerOrBuilder()
A source that fires events in response to a condition in another service.HttpsTrigger
getHttpsTrigger()
An HTTPS endpoint type of source that can be triggered via URL.HttpsTriggerOrBuilder
getHttpsTriggerOrBuilder()
An HTTPS endpoint type of source that can be triggered via URL.CloudFunction.IngressSettings
getIngressSettings()
The ingress settings for the function, controlling what traffic can reach it.int
getIngressSettingsValue()
The ingress settings for the function, controlling what traffic can reach it.String
getKmsKeyName()
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.com.google.protobuf.ByteString
getKmsKeyNameBytes()
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels associated with this Cloud Function.Map<String,String>
getLabelsMap()
Labels associated with this Cloud Function.String
getLabelsOrDefault(String key, String defaultValue)
Labels associated with this Cloud Function.String
getLabelsOrThrow(String key)
Labels associated with this Cloud Function.int
getMaxInstances()
The limit on the maximum number of function instances that can coexist at a given time.int
getMinInstances()
A lower bound for the number function instances that can coexist at a given time.String
getName()
A user-defined name of the function.com.google.protobuf.ByteString
getNameBytes()
A user-defined name of the function.String
getNetwork()
The Serverless VPC Access connector that this cloud function can connect to.com.google.protobuf.ByteString
getNetworkBytes()
The Serverless VPC Access connector that this cloud function can connect to.com.google.protobuf.Parser<CloudFunction>
getParserForType()
String
getRuntime()
The runtime in which to run the function.com.google.protobuf.ByteString
getRuntimeBytes()
The runtime in which to run the function.SecretEnvVar
getSecretEnvironmentVariables(int index)
Secret environment variables configuration.int
getSecretEnvironmentVariablesCount()
Secret environment variables configuration.List<SecretEnvVar>
getSecretEnvironmentVariablesList()
Secret environment variables configuration.SecretEnvVarOrBuilder
getSecretEnvironmentVariablesOrBuilder(int index)
Secret environment variables configuration.List<? extends SecretEnvVarOrBuilder>
getSecretEnvironmentVariablesOrBuilderList()
Secret environment variables configuration.SecretVolume
getSecretVolumes(int index)
Secret volumes configuration.int
getSecretVolumesCount()
Secret volumes configuration.List<SecretVolume>
getSecretVolumesList()
Secret volumes configuration.SecretVolumeOrBuilder
getSecretVolumesOrBuilder(int index)
Secret volumes configuration.List<? extends SecretVolumeOrBuilder>
getSecretVolumesOrBuilderList()
Secret volumes configuration.int
getSerializedSize()
String
getServiceAccountEmail()
The email of the function's service account.com.google.protobuf.ByteString
getServiceAccountEmailBytes()
The email of the function's service account.String
getSourceArchiveUrl()
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.com.google.protobuf.ByteString
getSourceArchiveUrlBytes()
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.CloudFunction.SourceCodeCase
getSourceCodeCase()
SourceRepository
getSourceRepository()
**Beta Feature** The source repository where a function is hosted.SourceRepositoryOrBuilder
getSourceRepositoryOrBuilder()
**Beta Feature** The source repository where a function is hosted.String
getSourceToken()
Input only.com.google.protobuf.ByteString
getSourceTokenBytes()
Input only.String
getSourceUploadUrl()
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].com.google.protobuf.ByteString
getSourceUploadUrlBytes()
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].CloudFunctionStatus
getStatus()
Output only.int
getStatusValue()
Output only.com.google.protobuf.Duration
getTimeout()
The function execution timeout.com.google.protobuf.DurationOrBuilder
getTimeoutOrBuilder()
The function execution timeout.CloudFunction.TriggerCase
getTriggerCase()
com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.long
getVersionId()
Output only.String
getVpcConnector()
The VPC Network Connector that this cloud function can connect to.com.google.protobuf.ByteString
getVpcConnectorBytes()
The VPC Network Connector that this cloud function can connect to.CloudFunction.VpcConnectorEgressSettings
getVpcConnectorEgressSettings()
The egress settings for the connector, controlling what traffic is diverted through it.int
getVpcConnectorEgressSettingsValue()
The egress settings for the connector, controlling what traffic is diverted through it.boolean
hasEventTrigger()
A source that fires events in response to a condition in another service.int
hashCode()
boolean
hasHttpsTrigger()
An HTTPS endpoint type of source that can be triggered via URL.boolean
hasSourceArchiveUrl()
The Google Cloud Storage URL, starting with `gs://`, pointing to the zip archive which contains the function.boolean
hasSourceRepository()
**Beta Feature** The source repository where a function is hosted.boolean
hasSourceUploadUrl()
The Google Cloud Storage-signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl].boolean
hasTimeout()
The function execution timeout.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static CloudFunction.Builder
newBuilder()
static CloudFunction.Builder
newBuilder(CloudFunction prototype)
CloudFunction.Builder
newBuilderForType()
protected CloudFunction.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static CloudFunction
parseDelimitedFrom(InputStream input)
static CloudFunction
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudFunction
parseFrom(byte[] data)
static CloudFunction
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudFunction
parseFrom(com.google.protobuf.ByteString data)
static CloudFunction
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudFunction
parseFrom(com.google.protobuf.CodedInputStream input)
static CloudFunction
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudFunction
parseFrom(InputStream input)
static CloudFunction
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CloudFunction
parseFrom(ByteBuffer data)
static CloudFunction
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<CloudFunction>
parser()
CloudFunction.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_ARCHIVE_URL_FIELD_NUMBER
public static final int SOURCE_ARCHIVE_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_REPOSITORY_FIELD_NUMBER
public static final int SOURCE_REPOSITORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_UPLOAD_URL_FIELD_NUMBER
public static final int SOURCE_UPLOAD_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTPS_TRIGGER_FIELD_NUMBER
public static final int HTTPS_TRIGGER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_TRIGGER_FIELD_NUMBER
public static final int EVENT_TRIGGER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENTRY_POINT_FIELD_NUMBER
public static final int ENTRY_POINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUNTIME_FIELD_NUMBER
public static final int RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVAILABLE_MEMORY_MB_FIELD_NUMBER
public static final int AVAILABLE_MEMORY_MB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VERSION_ID_FIELD_NUMBER
public static final int VERSION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENVIRONMENT_VARIABLES_FIELD_NUMBER
public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUILD_ENVIRONMENT_VARIABLES_FIELD_NUMBER
public static final int BUILD_ENVIRONMENT_VARIABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_INSTANCES_FIELD_NUMBER
public static final int MAX_INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_INSTANCES_FIELD_NUMBER
public static final int MIN_INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VPC_CONNECTOR_FIELD_NUMBER
public static final int VPC_CONNECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER
public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INGRESS_SETTINGS_FIELD_NUMBER
public static final int INGRESS_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_NAME_FIELD_NUMBER
public static final int KMS_KEY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUILD_WORKER_POOL_FIELD_NUMBER
public static final int BUILD_WORKER_POOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUILD_ID_FIELD_NUMBER
public static final int BUILD_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUILD_NAME_FIELD_NUMBER
public static final int BUILD_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER
public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECRET_VOLUMES_FIELD_NUMBER
public static final int SECRET_VOLUMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_TOKEN_FIELD_NUMBER
public static final int SOURCE_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCKER_REPOSITORY_FIELD_NUMBER
public static final int DOCKER_REPOSITORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCKER_REGISTRY_FIELD_NUMBER
public static final int DOCKER_REGISTRY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getSourceCodeCase
public CloudFunction.SourceCodeCase getSourceCodeCase()
- Specified by:
getSourceCodeCase
in interfaceCloudFunctionOrBuilder
-
getTriggerCase
public CloudFunction.TriggerCase getTriggerCase()
- Specified by:
getTriggerCase
in interfaceCloudFunctionOrBuilder
-
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:
getName
in 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:
getNameBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for name.
-
getDescription
public String getDescription()
User-provided description of a function.
string description = 2;
- Specified by:
getDescription
in interfaceCloudFunctionOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
User-provided description of a function.
string description = 2;
- Specified by:
getDescriptionBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for description.
-
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:
hasSourceArchiveUrl
in 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:
getSourceArchiveUrl
in 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:
getSourceArchiveUrlBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for sourceArchiveUrl.
-
hasSourceRepository
public boolean hasSourceRepository()
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
- Specified by:
hasSourceRepository
in 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:
getSourceRepository
in interfaceCloudFunctionOrBuilder
- Returns:
- The sourceRepository.
-
getSourceRepositoryOrBuilder
public SourceRepositoryOrBuilder getSourceRepositoryOrBuilder()
**Beta Feature** The source repository where a function is hosted.
.google.cloud.functions.v1.SourceRepository source_repository = 4;
- Specified by:
getSourceRepositoryOrBuilder
in 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:
hasSourceUploadUrl
in 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:
getSourceUploadUrl
in 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:
getSourceUploadUrlBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for sourceUploadUrl.
-
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:
hasHttpsTrigger
in 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:
getHttpsTrigger
in interfaceCloudFunctionOrBuilder
- Returns:
- The httpsTrigger.
-
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:
getHttpsTriggerOrBuilder
in 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:
hasEventTrigger
in 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:
getEventTrigger
in interfaceCloudFunctionOrBuilder
- Returns:
- The eventTrigger.
-
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:
getEventTriggerOrBuilder
in 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:
getStatusValue
in interfaceCloudFunctionOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
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:
getStatus
in interfaceCloudFunctionOrBuilder
- Returns:
- The status.
-
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:
getEntryPoint
in 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:
getEntryPointBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for entryPoint.
-
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:
getRuntime
in 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:
getRuntimeBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for runtime.
-
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:
hasTimeout
in 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:
getTimeout
in interfaceCloudFunctionOrBuilder
- Returns:
- The timeout.
-
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:
getTimeoutOrBuilder
in 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:
getAvailableMemoryMb
in interfaceCloudFunctionOrBuilder
- Returns:
- The availableMemoryMb.
-
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:
getServiceAccountEmail
in 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:
getServiceAccountEmailBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for serviceAccountEmail.
-
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:
hasUpdateTime
in 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:
getUpdateTime
in interfaceCloudFunctionOrBuilder
- Returns:
- The updateTime.
-
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:
getUpdateTimeOrBuilder
in 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:
getVersionId
in interfaceCloudFunctionOrBuilder
- Returns:
- The versionId.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:CloudFunctionOrBuilder
Labels associated with this Cloud Function.
map<string, string> labels = 15;
- Specified by:
getLabelsCount
in interfaceCloudFunctionOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 15;
- Specified by:
containsLabels
in interfaceCloudFunctionOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceCloudFunctionOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels associated with this Cloud Function.
map<string, string> labels = 15;
- Specified by:
getLabelsMap
in interfaceCloudFunctionOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this Cloud Function.
map<string, string> labels = 15;
- Specified by:
getLabelsOrDefault
in interfaceCloudFunctionOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 15;
- Specified by:
getLabelsOrThrow
in interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesCount
public int getEnvironmentVariablesCount()
Description copied from interface:CloudFunctionOrBuilder
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
- Specified by:
getEnvironmentVariablesCount
in interfaceCloudFunctionOrBuilder
-
containsEnvironmentVariables
public boolean containsEnvironmentVariables(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
- Specified by:
containsEnvironmentVariables
in interfaceCloudFunctionOrBuilder
-
getEnvironmentVariables
@Deprecated public Map<String,String> getEnvironmentVariables()
Deprecated.UsegetEnvironmentVariablesMap()
instead.- Specified by:
getEnvironmentVariables
in interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesMap
public Map<String,String> getEnvironmentVariablesMap()
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
- Specified by:
getEnvironmentVariablesMap
in 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:
getEnvironmentVariablesOrDefault
in interfaceCloudFunctionOrBuilder
-
getEnvironmentVariablesOrThrow
public String getEnvironmentVariablesOrThrow(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 17;
- Specified by:
getEnvironmentVariablesOrThrow
in interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariablesCount
public int getBuildEnvironmentVariablesCount()
Description copied from interface:CloudFunctionOrBuilder
Build environment variables that shall be available during build time.
map<string, string> build_environment_variables = 28;
- Specified by:
getBuildEnvironmentVariablesCount
in 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:
containsBuildEnvironmentVariables
in interfaceCloudFunctionOrBuilder
-
getBuildEnvironmentVariables
@Deprecated public Map<String,String> getBuildEnvironmentVariables()
Deprecated.UsegetBuildEnvironmentVariablesMap()
instead.- Specified by:
getBuildEnvironmentVariables
in 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:
getBuildEnvironmentVariablesMap
in 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:
getBuildEnvironmentVariablesOrDefault
in 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:
getBuildEnvironmentVariablesOrThrow
in interfaceCloudFunctionOrBuilder
-
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:
getNetwork
in 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:
getNetworkBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for network.
-
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:
getMaxInstances
in interfaceCloudFunctionOrBuilder
- Returns:
- The maxInstances.
-
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:
getMinInstances
in interfaceCloudFunctionOrBuilder
- Returns:
- The minInstances.
-
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:
getVpcConnector
in 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:
getVpcConnectorBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for vpcConnector.
-
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:
getVpcConnectorEgressSettingsValue
in interfaceCloudFunctionOrBuilder
- Returns:
- The enum numeric value on the wire for vpcConnectorEgressSettings.
-
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:
getVpcConnectorEgressSettings
in interfaceCloudFunctionOrBuilder
- Returns:
- The vpcConnectorEgressSettings.
-
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:
getIngressSettingsValue
in interfaceCloudFunctionOrBuilder
- Returns:
- The enum numeric value on the wire for ingressSettings.
-
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:
getIngressSettings
in interfaceCloudFunctionOrBuilder
- Returns:
- The ingressSettings.
-
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:
getKmsKeyName
in 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:
getKmsKeyNameBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for kmsKeyName.
-
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:
getBuildWorkerPool
in 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:
getBuildWorkerPoolBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for buildWorkerPool.
-
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:
getBuildId
in 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:
getBuildIdBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for buildId.
-
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:
getBuildName
in 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:
getBuildNameBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for buildName.
-
getSecretEnvironmentVariablesList
public List<SecretEnvVar> getSecretEnvironmentVariablesList()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
- Specified by:
getSecretEnvironmentVariablesList
in interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariablesOrBuilderList
public List<? extends SecretEnvVarOrBuilder> getSecretEnvironmentVariablesOrBuilderList()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
- Specified by:
getSecretEnvironmentVariablesOrBuilderList
in interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariablesCount
public int getSecretEnvironmentVariablesCount()
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
- Specified by:
getSecretEnvironmentVariablesCount
in interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariables
public SecretEnvVar getSecretEnvironmentVariables(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
- Specified by:
getSecretEnvironmentVariables
in interfaceCloudFunctionOrBuilder
-
getSecretEnvironmentVariablesOrBuilder
public SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29;
- Specified by:
getSecretEnvironmentVariablesOrBuilder
in interfaceCloudFunctionOrBuilder
-
getSecretVolumesList
public List<SecretVolume> getSecretVolumesList()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
- Specified by:
getSecretVolumesList
in interfaceCloudFunctionOrBuilder
-
getSecretVolumesOrBuilderList
public List<? extends SecretVolumeOrBuilder> getSecretVolumesOrBuilderList()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
- Specified by:
getSecretVolumesOrBuilderList
in interfaceCloudFunctionOrBuilder
-
getSecretVolumesCount
public int getSecretVolumesCount()
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
- Specified by:
getSecretVolumesCount
in interfaceCloudFunctionOrBuilder
-
getSecretVolumes
public SecretVolume getSecretVolumes(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
- Specified by:
getSecretVolumes
in interfaceCloudFunctionOrBuilder
-
getSecretVolumesOrBuilder
public SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30;
- Specified by:
getSecretVolumesOrBuilder
in interfaceCloudFunctionOrBuilder
-
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:
getSourceToken
in 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:
getSourceTokenBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for sourceToken.
-
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:
getDockerRepository
in 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:
getDockerRepositoryBytes
in interfaceCloudFunctionOrBuilder
- Returns:
- The bytes for dockerRepository.
-
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:
getDockerRegistryValue
in interfaceCloudFunctionOrBuilder
- Returns:
- The enum numeric value on the wire for dockerRegistry.
-
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:
getDockerRegistry
in interfaceCloudFunctionOrBuilder
- Returns:
- The dockerRegistry.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CloudFunction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudFunction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudFunction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudFunction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudFunction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudFunction parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudFunction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloudFunction parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloudFunction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudFunction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudFunction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CloudFunction.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CloudFunction.Builder newBuilder()
-
newBuilder
public static CloudFunction.Builder newBuilder(CloudFunction prototype)
-
toBuilder
public CloudFunction.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudFunction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CloudFunction getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CloudFunction> parser()
-
getParserForType
public com.google.protobuf.Parser<CloudFunction> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CloudFunction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-