Class Function.Builder (2.14.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.83.0 (latest)
- 2.82.0
- 2.80.0
- 2.78.0
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.72.0
- 2.70.0
- 2.69.0
- 2.66.0
- 2.65.0
- 2.64.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.4
- 2.4.3
- 2.3.6
publicstaticfinalclass Function.BuilderextendsGeneratedMessageV3.Builder<Function.Builder>implementsFunctionOrBuilderDescribes 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Function.BuilderImplements
FunctionOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()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];
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicFunction.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)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];
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];
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];
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];
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];
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];
build()
publicFunctionbuild()buildPartial()
publicFunctionbuildPartial()clear()
publicFunction.Builderclear()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;
clearDescription()
publicFunction.BuilderclearDescription()User-provided description of a function.
string description = 2;
Function.Builder
This builder for chaining.
clearEnvironment()
publicFunction.BuilderclearEnvironment()Describe whether the function is gen1 or gen2.
.google.cloud.functions.v2alpha.Environment environment = 10;
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;
clearField(Descriptors.FieldDescriptor field)
publicFunction.BuilderclearField(Descriptors.FieldDescriptorfield)clearLabels()
publicFunction.BuilderclearLabels()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;
Function.Builder
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
publicFunction.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clearServiceConfig()
publicFunction.BuilderclearServiceConfig()Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2alpha.ServiceConfig service_config = 4;
clearState()
publicFunction.BuilderclearState()Output only. State of the function.
.google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
clone()
publicFunction.Builderclone()containsLabels(String key)
publicbooleancontainsLabels(Stringkey)Labels associated with this Cloud Function.
map<string, string> labels = 8;
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;
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;
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;
getDefaultInstanceForType()
publicFunctiongetDefaultInstanceForType()getDescription()
publicStringgetDescription()User-provided description of a function.
string description = 2;
String
The description.
getDescriptionBytes()
publicByteStringgetDescriptionBytes()User-provided description of a function.
string description = 2;
ByteString
The bytes for description.
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()getEnvironment()
publicEnvironmentgetEnvironment()Describe whether the function is gen1 or gen2.
.google.cloud.functions.v2alpha.Environment environment = 10;
Environment
The environment.
getEnvironmentValue()
publicintgetEnvironmentValue()Describe whether the function is gen1 or gen2.
.google.cloud.functions.v2alpha.Environment environment = 10;
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;
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;
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;
getLabels()
publicMap<String,String>getLabels()Use #getLabelsMap() instead.
getLabelsCount()
publicintgetLabelsCount()Labels associated with this Cloud Function.
map<string, string> labels = 8;
getLabelsMap()
publicMap<String,String>getLabelsMap()Labels associated with this Cloud Function.
map<string, string> labels = 8;
getLabelsOrDefault(String key, String defaultValue)
publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)Labels associated with this Cloud Function.
map<string, string> labels = 8;
getLabelsOrThrow(String key)
publicStringgetLabelsOrThrow(Stringkey)Labels associated with this Cloud Function.
map<string, string> labels = 8;
getMutableLabels()
publicMap<String,String>getMutableLabels()Use alternate mutation accessors instead.
getName()
publicStringgetName() A user-defined name of the function. Function names must be unique
globally and match pattern projects/*/locations/*/functions/*
string name = 1;
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;
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;
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;
getServiceConfigOrBuilder()
publicServiceConfigOrBuildergetServiceConfigOrBuilder()Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2alpha.ServiceConfig service_config = 4;
getState()
publicFunction.StategetState()Output only. State of the function.
.google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
getUpdateTimeOrBuilder()
publicTimestampOrBuildergetUpdateTimeOrBuilder()Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
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;
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;
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;
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];
boolean
Whether the updateTime field is set.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)internalGetMutableMapField(int number)
protectedMapFieldinternalGetMutableMapField(intnumber)isInitialized()
publicfinalbooleanisInitialized()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;
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;
mergeFrom(Function other)
publicFunction.BuildermergeFrom(Functionother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicFunction.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicFunction.BuildermergeFrom(Messageother)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;
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalFunction.BuildermergeUnknownFields(UnknownFieldSetunknownFields)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];
putAllLabels(Map<String,String> values)
publicFunction.BuilderputAllLabels(Map<String,String>values)Labels associated with this Cloud Function.
map<string, string> labels = 8;
putLabels(String key, String value)
publicFunction.BuilderputLabels(Stringkey,Stringvalue)Labels associated with this Cloud Function.
map<string, string> labels = 8;
removeLabels(String key)
publicFunction.BuilderremoveLabels(Stringkey)Labels associated with this Cloud Function.
map<string, string> labels = 8;
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];
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;
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;
setDescription(String value)
publicFunction.BuildersetDescription(Stringvalue)User-provided description of a function.
string description = 2;
Function.Builder
This builder for chaining.
setDescriptionBytes(ByteString value)
publicFunction.BuildersetDescriptionBytes(ByteStringvalue)User-provided description of a function.
string description = 2;
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;
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;
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
publicFunction.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)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;
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;
Function.Builder
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicFunction.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)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;
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;
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];
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];
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];
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];
Function.Builder
This builder for chaining.
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalFunction.BuildersetUnknownFields(UnknownFieldSetunknownFields)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];
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];