Class Function.Builder (2.14.0)

publicstaticfinalclass Function.BuilderextendsGeneratedMessageV3.Builder<Function.Builder>implementsFunctionOrBuilder

Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.

Protobuf type google.cloud.functions.v2alpha.Function

Implements

FunctionOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addAllStateMessages(Iterable<? extends StateMessage> values)

publicFunction.BuilderaddAllStateMessages(Iterable<?extendsStateMessage>values)

Output only. State Messages for this Cloud Function.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.functions.v2alpha.StateMessage>
Returns
Type Description

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicFunction.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

addStateMessages(StateMessage value)

publicFunction.BuilderaddStateMessages(StateMessagevalue)

Output only. State Messages for this Cloud Function.

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

Parameter
Name Description
value StateMessage
Returns
Type Description

addStateMessages(StateMessage.Builder builderForValue)

publicFunction.BuilderaddStateMessages(StateMessage.BuilderbuilderForValue)

Output only. State Messages for this Cloud Function.

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

Parameter
Name Description
builderForValue StateMessage.Builder
Returns
Type Description

addStateMessages(int index, StateMessage value)

publicFunction.BuilderaddStateMessages(intindex,StateMessagevalue)

Output only. State Messages for this Cloud Function.

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

Parameters
Name Description
index int
value StateMessage
Returns
Type Description

addStateMessages(int index, StateMessage.Builder builderForValue)

publicFunction.BuilderaddStateMessages(intindex,StateMessage.BuilderbuilderForValue)

Output only. State Messages for this Cloud Function.

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

Parameters
Name Description
index int
builderForValue StateMessage.Builder
Returns
Type Description

addStateMessagesBuilder()

publicStateMessage.BuilderaddStateMessagesBuilder()

Output only. State Messages for this Cloud Function.

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

Returns
Type Description

addStateMessagesBuilder(int index)

publicStateMessage.BuilderaddStateMessagesBuilder(intindex)

Output only. State Messages for this Cloud Function.

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

Parameter
Name Description
index int
Returns
Type Description

build()

publicFunctionbuild()
Returns
Type Description

buildPartial()

publicFunctionbuildPartial()
Returns
Type Description

clear()

publicFunction.Builderclear()
Returns
Type Description
Overrides

clearBuildConfig()

publicFunction.BuilderclearBuildConfig()

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

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

Returns
Type Description

clearDescription()

publicFunction.BuilderclearDescription()

User-provided description of a function.

string description = 2;

Returns
Type Description
Function.Builder

This builder for chaining.

clearEnvironment()

publicFunction.BuilderclearEnvironment()

Describe whether the function is gen1 or gen2.

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

Returns
Type Description
Function.Builder

This builder for chaining.

clearEventTrigger()

publicFunction.BuilderclearEventTrigger()

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

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

Returns
Type Description

clearField(Descriptors.FieldDescriptor field)

publicFunction.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearLabels()

publicFunction.BuilderclearLabels()
Returns
Type Description

clearName()

publicFunction.BuilderclearName()

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

string name = 1;

Returns
Type Description
Function.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicFunction.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearServiceConfig()

publicFunction.BuilderclearServiceConfig()

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

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

Returns
Type Description

clearState()

publicFunction.BuilderclearState()

Output only. State of the function.

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

Returns
Type Description
Function.Builder

This builder for chaining.

clearStateMessages()

publicFunction.BuilderclearStateMessages()

Output only. State Messages for this Cloud Function.

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

Returns
Type Description

clearUpdateTime()

publicFunction.BuilderclearUpdateTime()

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

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

Returns
Type Description

clone()

publicFunction.Builderclone()
Returns
Type Description
Overrides

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameter
Name Description
key String
Returns
Type Description

getBuildConfig()

publicBuildConfiggetBuildConfig()

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

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

Returns
Type Description
BuildConfig

The buildConfig.

getBuildConfigBuilder()

publicBuildConfig.BuildergetBuildConfigBuilder()

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

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

Returns
Type Description

getBuildConfigOrBuilder()

publicBuildConfigOrBuildergetBuildConfigOrBuilder()

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

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

Returns
Type Description

getDefaultInstanceForType()

publicFunctiongetDefaultInstanceForType()
Returns
Type Description

getDescription()

publicStringgetDescription()

User-provided description of a function.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

publicByteStringgetDescriptionBytes()

User-provided description of a function.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getEnvironment()

publicEnvironmentgetEnvironment()

Describe whether the function is gen1 or gen2.

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

Returns
Type Description
Environment

The environment.

getEnvironmentValue()

publicintgetEnvironmentValue()

Describe whether the function is gen1 or gen2.

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

Returns
Type Description
int

The enum numeric value on the wire for environment.

getEventTrigger()

publicEventTriggergetEventTrigger()

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

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

Returns
Type Description
EventTrigger

The eventTrigger.

getEventTriggerBuilder()

publicEventTrigger.BuildergetEventTriggerBuilder()

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

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

Returns
Type Description

getEventTriggerOrBuilder()

publicEventTriggerOrBuildergetEventTriggerOrBuilder()

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

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

Returns
Type Description

getLabels()

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description

getLabelsCount()

publicintgetLabelsCount()

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Returns
Type Description
int

getLabelsMap()

publicMap<String,String>getLabelsMap()

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Returns
Type Description

getLabelsOrDefault(String key, String defaultValue)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description

getLabelsOrThrow(String key)

publicStringgetLabelsOrThrow(Stringkey)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameter
Name Description
key String
Returns
Type Description

getMutableLabels()

publicMap<String,String>getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description

getName()

publicStringgetName()

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getServiceConfig()

publicServiceConfiggetServiceConfig()

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

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

Returns
Type Description
ServiceConfig

The serviceConfig.

getServiceConfigBuilder()

publicServiceConfig.BuildergetServiceConfigBuilder()

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

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

Returns
Type Description

getServiceConfigOrBuilder()

publicServiceConfigOrBuildergetServiceConfigOrBuilder()

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

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

Returns
Type Description

getState()

publicFunction.StategetState()

Output only. State of the function.

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

Returns
Type Description
Function.State

The state.

getStateMessages(int index)

publicStateMessagegetStateMessages(intindex)

Output only. State Messages for this Cloud Function.

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

Parameter
Name Description
index int
Returns
Type Description

getStateMessagesBuilder(int index)

publicStateMessage.BuildergetStateMessagesBuilder(intindex)

Output only. State Messages for this Cloud Function.

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

Parameter
Name Description
index int
Returns
Type Description

getStateMessagesBuilderList()

publicList<StateMessage.Builder>getStateMessagesBuilderList()

Output only. State Messages for this Cloud Function.

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

Returns
Type Description

getStateMessagesCount()

publicintgetStateMessagesCount()

Output only. State Messages for this Cloud Function.

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

Returns
Type Description
int

getStateMessagesList()

publicList<StateMessage>getStateMessagesList()

Output only. State Messages for this Cloud Function.

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

Returns
Type Description

getStateMessagesOrBuilder(int index)

publicStateMessageOrBuildergetStateMessagesOrBuilder(intindex)

Output only. State Messages for this Cloud Function.

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

Parameter
Name Description
index int
Returns
Type Description

getStateMessagesOrBuilderList()

publicList<?extendsStateMessageOrBuilder>getStateMessagesOrBuilderList()

Output only. State Messages for this Cloud Function.

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

Returns
Type Description
List<? extends com.google.cloud.functions.v2alpha.StateMessageOrBuilder>

getStateValue()

publicintgetStateValue()

Output only. State of the function.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

publicTimestampgetUpdateTime()

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

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

publicTimestamp.BuildergetUpdateTimeBuilder()

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

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

Returns
Type Description

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

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

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

Returns
Type Description

hasBuildConfig()

publicbooleanhasBuildConfig()

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

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

Returns
Type Description
boolean

Whether the buildConfig field is set.

hasEventTrigger()

publicbooleanhasEventTrigger()

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

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

Returns
Type Description
boolean

Whether the eventTrigger field is set.

hasServiceConfig()

publicbooleanhasServiceConfig()

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

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

Returns
Type Description
boolean

Whether the serviceConfig field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

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

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

internalGetMapField(int number)

protectedMapFieldinternalGetMapField(intnumber)
Parameter
Name Description
number int
Returns
Type Description
Overrides

internalGetMutableMapField(int number)

protectedMapFieldinternalGetMutableMapField(intnumber)
Parameter
Name Description
number int
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeBuildConfig(BuildConfig value)

publicFunction.BuildermergeBuildConfig(BuildConfigvalue)

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

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

Parameter
Name Description
value BuildConfig
Returns
Type Description

mergeEventTrigger(EventTrigger value)

publicFunction.BuildermergeEventTrigger(EventTriggervalue)

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

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

Parameter
Name Description
value EventTrigger
Returns
Type Description

mergeFrom(Function other)

publicFunction.BuildermergeFrom(Functionother)
Parameter
Name Description
other Function
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicFunction.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicFunction.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeServiceConfig(ServiceConfig value)

publicFunction.BuildermergeServiceConfig(ServiceConfigvalue)

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

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

Parameter
Name Description
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalFunction.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

mergeUpdateTime(Timestamp value)

publicFunction.BuildermergeUpdateTime(Timestampvalue)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description

putAllLabels(Map<String,String> values)

publicFunction.BuilderputAllLabels(Map<String,String>values)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameter
Name Description
values Map<String,String>
Returns
Type Description

putLabels(String key, String value)

publicFunction.BuilderputLabels(Stringkey,Stringvalue)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameters
Name Description
key String
value String
Returns
Type Description

removeLabels(String key)

publicFunction.BuilderremoveLabels(Stringkey)

Labels associated with this Cloud Function.

map<string, string> labels = 8;

Parameter
Name Description
key String
Returns
Type Description

removeStateMessages(int index)

publicFunction.BuilderremoveStateMessages(intindex)

Output only. State Messages for this Cloud Function.

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

Parameter
Name Description
index int
Returns
Type Description

setBuildConfig(BuildConfig value)

publicFunction.BuildersetBuildConfig(BuildConfigvalue)

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

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

Parameter
Name Description
value BuildConfig
Returns
Type Description

setBuildConfig(BuildConfig.Builder builderForValue)

publicFunction.BuildersetBuildConfig(BuildConfig.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue BuildConfig.Builder
Returns
Type Description

setDescription(String value)

publicFunction.BuildersetDescription(Stringvalue)

User-provided description of a function.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Function.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

publicFunction.BuildersetDescriptionBytes(ByteStringvalue)

User-provided description of a function.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Function.Builder

This builder for chaining.

setEnvironment(Environment value)

publicFunction.BuildersetEnvironment(Environmentvalue)

Describe whether the function is gen1 or gen2.

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

Parameter
Name Description
value Environment

The environment to set.

Returns
Type Description
Function.Builder

This builder for chaining.

setEnvironmentValue(int value)

publicFunction.BuildersetEnvironmentValue(intvalue)

Describe whether the function is gen1 or gen2.

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

Parameter
Name Description
value int

The enum numeric value on the wire for environment to set.

Returns
Type Description
Function.Builder

This builder for chaining.

setEventTrigger(EventTrigger value)

publicFunction.BuildersetEventTrigger(EventTriggervalue)

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

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

Parameter
Name Description
value EventTrigger
Returns
Type Description

setEventTrigger(EventTrigger.Builder builderForValue)

publicFunction.BuildersetEventTrigger(EventTrigger.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue EventTrigger.Builder
Returns
Type Description

setField(Descriptors.FieldDescriptor field, Object value)

publicFunction.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setName(String value)

publicFunction.BuildersetName(Stringvalue)

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

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Function.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicFunction.BuildersetNameBytes(ByteStringvalue)

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

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Function.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicFunction.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setServiceConfig(ServiceConfig value)

publicFunction.BuildersetServiceConfig(ServiceConfigvalue)

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

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

Parameter
Name Description
Returns
Type Description

setServiceConfig(ServiceConfig.Builder builderForValue)

publicFunction.BuildersetServiceConfig(ServiceConfig.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue ServiceConfig.Builder
Returns
Type Description

setState(Function.State value)

publicFunction.BuildersetState(Function.Statevalue)

Output only. State of the function.

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

Parameter
Name Description
value Function.State

The state to set.

Returns
Type Description
Function.Builder

This builder for chaining.

setStateMessages(int index, StateMessage value)

publicFunction.BuildersetStateMessages(intindex,StateMessagevalue)

Output only. State Messages for this Cloud Function.

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

Parameters
Name Description
index int
value StateMessage
Returns
Type Description

setStateMessages(int index, StateMessage.Builder builderForValue)

publicFunction.BuildersetStateMessages(intindex,StateMessage.BuilderbuilderForValue)

Output only. State Messages for this Cloud Function.

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

Parameters
Name Description
index int
builderForValue StateMessage.Builder
Returns
Type Description

setStateValue(int value)

publicFunction.BuildersetStateValue(intvalue)

Output only. State of the function.

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

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Function.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalFunction.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setUpdateTime(Timestamp value)

publicFunction.BuildersetUpdateTime(Timestampvalue)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description

setUpdateTime(Timestamp.Builder builderForValue)

publicFunction.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月18日 UTC.