Interface FunctionOrBuilder (2.62.0)

publicinterfaceFunctionOrBuilderextendsMessageOrBuilder

Methods

containsLabels(String key)

publicabstractbooleancontainsLabels(Stringkey)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getBuildConfig()

publicabstractBuildConfiggetBuildConfig()

Describes the Build step of the function that builds a container from the given source.

.google.cloud.functions.v2.BuildConfig build_config = 3;

Returns
TypeDescription
BuildConfig

The buildConfig.

getBuildConfigOrBuilder()

publicabstractBuildConfigOrBuildergetBuildConfigOrBuilder()

Describes the Build step of the function that builds a container from the given source.

.google.cloud.functions.v2.BuildConfig build_config = 3;

Returns
TypeDescription
BuildConfigOrBuilder

getCreateTime()

publicabstractTimestampgetCreateTime()

Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.

.google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicabstractTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.

.google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDescription()

publicabstractStringgetDescription()

User-provided description of a function.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

publicabstractByteStringgetDescriptionBytes()

User-provided description of a function.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getEnvironment()

publicabstractEnvironmentgetEnvironment()

Describe whether the function is 1st Gen or 2nd Gen.

.google.cloud.functions.v2.Environment environment = 10;

Returns
TypeDescription
Environment

The environment.

getEnvironmentValue()

publicabstractintgetEnvironmentValue()

Describe whether the function is 1st Gen or 2nd Gen.

.google.cloud.functions.v2.Environment environment = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for environment.

getEventTrigger()

publicabstractEventTriggergetEventTrigger()

An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.

.google.cloud.functions.v2.EventTrigger event_trigger = 5;

Returns
TypeDescription
EventTrigger

The eventTrigger.

getEventTriggerOrBuilder()

publicabstractEventTriggerOrBuildergetEventTriggerOrBuilder()

An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.

.google.cloud.functions.v2.EventTrigger event_trigger = 5;

Returns
TypeDescription
EventTriggerOrBuilder

getKmsKeyName()

publicabstractStringgetKmsKeyName()

[Preview] 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}.

string kms_key_name = 25 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The kmsKeyName.

getKmsKeyNameBytes()

publicabstractByteStringgetKmsKeyNameBytes()

[Preview] 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}.

string kms_key_name = 25 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for kmsKeyName.

getLabels() (deprecated)

publicabstractMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

publicabstractintgetLabelsCount()

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Returns
TypeDescription
int

getLabelsMap()

publicabstractMap<String,String>getLabelsMap()

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicabstractStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

publicabstractStringgetLabelsOrThrow(Stringkey)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getName()

publicabstractStringgetName()

A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

publicabstractByteStringgetNameBytes()

A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getSatisfiesPzs()

publicabstractbooleangetSatisfiesPzs()

Output only. Reserved for future use.

bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The satisfiesPzs.

getServiceConfig()

publicabstractServiceConfiggetServiceConfig()

Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).

.google.cloud.functions.v2.ServiceConfig service_config = 4;

Returns
TypeDescription
ServiceConfig

The serviceConfig.

getServiceConfigOrBuilder()

publicabstractServiceConfigOrBuildergetServiceConfigOrBuilder()

Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).

.google.cloud.functions.v2.ServiceConfig service_config = 4;

Returns
TypeDescription
ServiceConfigOrBuilder

getState()

publicabstractFunction.StategetState()

Output only. State of the function.

.google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Function.State

The state.

getStateMessages(int index)

publicabstractStateMessagegetStateMessages(intindex)

Output only. State Messages for this Cloud Function.

repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
StateMessage

getStateMessagesCount()

publicabstractintgetStateMessagesCount()

Output only. State Messages for this Cloud Function.

repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getStateMessagesList()

publicabstractList<StateMessage>getStateMessagesList()

Output only. State Messages for this Cloud Function.

repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<StateMessage>

getStateMessagesOrBuilder(int index)

publicabstractStateMessageOrBuildergetStateMessagesOrBuilder(intindex)

Output only. State Messages for this Cloud Function.

repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
StateMessageOrBuilder

getStateMessagesOrBuilderList()

publicabstractList<?extendsStateMessageOrBuilder>getStateMessagesOrBuilderList()

Output only. State Messages for this Cloud Function.

repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.functions.v2.StateMessageOrBuilder>

getStateValue()

publicabstractintgetStateValue()

Output only. State of the function.

.google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

publicabstractTimestampgetUpdateTime()

Output only. The last update timestamp of a Cloud Function.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

publicabstractTimestampOrBuildergetUpdateTimeOrBuilder()

Output only. The last update timestamp of a Cloud Function.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getUrl()

publicabstractStringgetUrl()

Output only. The deployed url for the function.

string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The url.

getUrlBytes()

publicabstractByteStringgetUrlBytes()

Output only. The deployed url for the function.

string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for url.

hasBuildConfig()

publicabstractbooleanhasBuildConfig()

Describes the Build step of the function that builds a container from the given source.

.google.cloud.functions.v2.BuildConfig build_config = 3;

Returns
TypeDescription
boolean

Whether the buildConfig field is set.

hasCreateTime()

publicabstractbooleanhasCreateTime()

Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.

.google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasEventTrigger()

publicabstractbooleanhasEventTrigger()

An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.

.google.cloud.functions.v2.EventTrigger event_trigger = 5;

Returns
TypeDescription
boolean

Whether the eventTrigger field is set.

hasServiceConfig()

publicabstractbooleanhasServiceConfig()

Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).

.google.cloud.functions.v2.ServiceConfig service_config = 4;

Returns
TypeDescription
boolean

Whether the serviceConfig field is set.

hasUpdateTime()

publicabstractbooleanhasUpdateTime()

Output only. The last update timestamp of a Cloud Function.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.