Class Function.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
- com.google.cloud.functions.v2beta.Function.Builder
-
- All Implemented Interfaces:
FunctionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Function
public static final class Function.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder> implements FunctionOrBuilder
Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
Protobuf typegoogle.cloud.functions.v2beta.Function
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Function.BuilderaddAllStateMessages(Iterable<? extends StateMessage> values)Output only.Function.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Function.BuilderaddStateMessages(int index, StateMessage value)Output only.Function.BuilderaddStateMessages(int index, StateMessage.Builder builderForValue)Output only.Function.BuilderaddStateMessages(StateMessage value)Output only.Function.BuilderaddStateMessages(StateMessage.Builder builderForValue)Output only.StateMessage.BuilderaddStateMessagesBuilder()Output only.StateMessage.BuilderaddStateMessagesBuilder(int index)Output only.Functionbuild()FunctionbuildPartial()Function.Builderclear()Function.BuilderclearBuildConfig()Describes the Build step of the function that builds a container from the given source.Function.BuilderclearDescription()User-provided description of a function.Function.BuilderclearEnvironment()Describe whether the function is 1st Gen or 2nd Gen.Function.BuilderclearEventTrigger()An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.Function.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Function.BuilderclearKmsKeyName()[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.Function.BuilderclearLabels()Function.BuilderclearName()A user-defined name of the function.Function.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Function.BuilderclearServiceConfig()Describes the Service being deployed.Function.BuilderclearState()Output only.Function.BuilderclearStateMessages()Output only.Function.BuilderclearUpdateTime()Output only.Function.BuilderclearUrl()Output only.Function.Builderclone()booleancontainsLabels(String key)Labels associated with this Cloud Function.BuildConfiggetBuildConfig()Describes the Build step of the function that builds a container from the given source.BuildConfig.BuildergetBuildConfigBuilder()Describes the Build step of the function that builds a container from the given source.BuildConfigOrBuildergetBuildConfigOrBuilder()Describes the Build step of the function that builds a container from the given source.FunctiongetDefaultInstanceForType()StringgetDescription()User-provided description of a function.com.google.protobuf.ByteStringgetDescriptionBytes()User-provided description of a function.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EnvironmentgetEnvironment()Describe whether the function is 1st Gen or 2nd Gen.intgetEnvironmentValue()Describe whether the function is 1st Gen or 2nd Gen.EventTriggergetEventTrigger()An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.EventTrigger.BuildergetEventTriggerBuilder()An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.EventTriggerOrBuildergetEventTriggerOrBuilder()An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.StringgetKmsKeyName()[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.com.google.protobuf.ByteStringgetKmsKeyNameBytes()[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels associated with this Cloud Function.Map<String,String>getLabelsMap()Labels associated with this Cloud Function.StringgetLabelsOrDefault(String key, String defaultValue)Labels associated with this Cloud Function.StringgetLabelsOrThrow(String key)Labels associated with this Cloud Function.Map<String,String>getMutableLabels()Deprecated.StringgetName()A user-defined name of the function.com.google.protobuf.ByteStringgetNameBytes()A user-defined name of the function.ServiceConfiggetServiceConfig()Describes the Service being deployed.ServiceConfig.BuildergetServiceConfigBuilder()Describes the Service being deployed.ServiceConfigOrBuildergetServiceConfigOrBuilder()Describes the Service being deployed.Function.StategetState()Output only.StateMessagegetStateMessages(int index)Output only.StateMessage.BuildergetStateMessagesBuilder(int index)Output only.List<StateMessage.Builder>getStateMessagesBuilderList()Output only.intgetStateMessagesCount()Output only.List<StateMessage>getStateMessagesList()Output only.StateMessageOrBuildergetStateMessagesOrBuilder(int index)Output only.List<? extends StateMessageOrBuilder>getStateMessagesOrBuilderList()Output only.intgetStateValue()Output only.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.StringgetUrl()Output only.com.google.protobuf.ByteStringgetUrlBytes()Output only.booleanhasBuildConfig()Describes the Build step of the function that builds a container from the given source.booleanhasEventTrigger()An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.booleanhasServiceConfig()Describes the Service being deployed.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Function.BuildermergeBuildConfig(BuildConfig value)Describes the Build step of the function that builds a container from the given source.Function.BuildermergeEventTrigger(EventTrigger value)An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.Function.BuildermergeFrom(Function other)Function.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Function.BuildermergeFrom(com.google.protobuf.Message other)Function.BuildermergeServiceConfig(ServiceConfig value)Describes the Service being deployed.Function.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Function.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.Function.BuilderputAllLabels(Map<String,String> values)Labels associated with this Cloud Function.Function.BuilderputLabels(String key, String value)Labels associated with this Cloud Function.Function.BuilderremoveLabels(String key)Labels associated with this Cloud Function.Function.BuilderremoveStateMessages(int index)Output only.Function.BuildersetBuildConfig(BuildConfig value)Describes the Build step of the function that builds a container from the given source.Function.BuildersetBuildConfig(BuildConfig.Builder builderForValue)Describes the Build step of the function that builds a container from the given source.Function.BuildersetDescription(String value)User-provided description of a function.Function.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)User-provided description of a function.Function.BuildersetEnvironment(Environment value)Describe whether the function is 1st Gen or 2nd Gen.Function.BuildersetEnvironmentValue(int value)Describe whether the function is 1st Gen or 2nd Gen.Function.BuildersetEventTrigger(EventTrigger value)An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.Function.BuildersetEventTrigger(EventTrigger.Builder builderForValue)An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.Function.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Function.BuildersetKmsKeyName(String value)[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.Function.BuildersetKmsKeyNameBytes(com.google.protobuf.ByteString value)[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.Function.BuildersetName(String value)A user-defined name of the function.Function.BuildersetNameBytes(com.google.protobuf.ByteString value)A user-defined name of the function.Function.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Function.BuildersetServiceConfig(ServiceConfig value)Describes the Service being deployed.Function.BuildersetServiceConfig(ServiceConfig.Builder builderForValue)Describes the Service being deployed.Function.BuildersetState(Function.State value)Output only.Function.BuildersetStateMessages(int index, StateMessage value)Output only.Function.BuildersetStateMessages(int index, StateMessage.Builder builderForValue)Output only.Function.BuildersetStateValue(int value)Output only.Function.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Function.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.Function.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Function.BuildersetUrl(String value)Output only.Function.BuildersetUrlBytes(com.google.protobuf.ByteString value)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
clear
public Function.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
getDefaultInstanceForType
public Function getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Function build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Function buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Function.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
setField
public Function.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
clearField
public Function.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
clearOneof
public Function.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
setRepeatedField
public Function.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
addRepeatedField
public Function.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
mergeFrom
public Function.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Function.Builder>
-
mergeFrom
public Function.Builder mergeFrom(Function other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
mergeFrom
public Function.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Function.Builder>- Throws:
IOException
-
getName
public String getName()
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Specified by:
getNamein interfaceFunctionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Specified by:
getNameBytesin interfaceFunctionOrBuilder- Returns:
- The bytes for name.
-
setName
public Function.Builder setName(String value)
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Function.Builder clearName()
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Function.Builder setNameBytes(com.google.protobuf.ByteString value)
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
User-provided description of a function.
string description = 2;- Specified by:
getDescriptionin interfaceFunctionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
User-provided description of a function.
string description = 2;- Specified by:
getDescriptionBytesin interfaceFunctionOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Function.Builder setDescription(String value)
User-provided description of a function.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Function.Builder clearDescription()
User-provided description of a function.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Function.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
User-provided description of a function.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasBuildConfig
public boolean hasBuildConfig()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2beta.BuildConfig build_config = 3;- Specified by:
hasBuildConfigin interfaceFunctionOrBuilder- Returns:
- Whether the buildConfig field is set.
-
getBuildConfig
public BuildConfig getBuildConfig()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2beta.BuildConfig build_config = 3;- Specified by:
getBuildConfigin interfaceFunctionOrBuilder- Returns:
- The buildConfig.
-
setBuildConfig
public Function.Builder setBuildConfig(BuildConfig value)
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2beta.BuildConfig build_config = 3;
-
setBuildConfig
public Function.Builder setBuildConfig(BuildConfig.Builder builderForValue)
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2beta.BuildConfig build_config = 3;
-
mergeBuildConfig
public Function.Builder mergeBuildConfig(BuildConfig value)
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2beta.BuildConfig build_config = 3;
-
clearBuildConfig
public Function.Builder clearBuildConfig()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2beta.BuildConfig build_config = 3;
-
getBuildConfigBuilder
public BuildConfig.Builder getBuildConfigBuilder()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2beta.BuildConfig build_config = 3;
-
getBuildConfigOrBuilder
public BuildConfigOrBuilder getBuildConfigOrBuilder()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2beta.BuildConfig build_config = 3;- Specified by:
getBuildConfigOrBuilderin interfaceFunctionOrBuilder
-
hasServiceConfig
public boolean hasServiceConfig()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2beta.ServiceConfig service_config = 4;- Specified by:
hasServiceConfigin interfaceFunctionOrBuilder- Returns:
- Whether the serviceConfig field is set.
-
getServiceConfig
public ServiceConfig getServiceConfig()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2beta.ServiceConfig service_config = 4;- Specified by:
getServiceConfigin interfaceFunctionOrBuilder- Returns:
- The serviceConfig.
-
setServiceConfig
public Function.Builder setServiceConfig(ServiceConfig value)
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2beta.ServiceConfig service_config = 4;
-
setServiceConfig
public Function.Builder setServiceConfig(ServiceConfig.Builder builderForValue)
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2beta.ServiceConfig service_config = 4;
-
mergeServiceConfig
public Function.Builder mergeServiceConfig(ServiceConfig value)
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2beta.ServiceConfig service_config = 4;
-
clearServiceConfig
public Function.Builder clearServiceConfig()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2beta.ServiceConfig service_config = 4;
-
getServiceConfigBuilder
public ServiceConfig.Builder getServiceConfigBuilder()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2beta.ServiceConfig service_config = 4;
-
getServiceConfigOrBuilder
public ServiceConfigOrBuilder getServiceConfigOrBuilder()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2beta.ServiceConfig service_config = 4;- Specified by:
getServiceConfigOrBuilderin interfaceFunctionOrBuilder
-
hasEventTrigger
public boolean hasEventTrigger()
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
.google.cloud.functions.v2beta.EventTrigger event_trigger = 5;- Specified by:
hasEventTriggerin interfaceFunctionOrBuilder- Returns:
- Whether the eventTrigger field is set.
-
getEventTrigger
public EventTrigger getEventTrigger()
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
.google.cloud.functions.v2beta.EventTrigger event_trigger = 5;- Specified by:
getEventTriggerin interfaceFunctionOrBuilder- Returns:
- The eventTrigger.
-
setEventTrigger
public Function.Builder setEventTrigger(EventTrigger value)
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
.google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
-
setEventTrigger
public Function.Builder setEventTrigger(EventTrigger.Builder builderForValue)
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
.google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
-
mergeEventTrigger
public Function.Builder mergeEventTrigger(EventTrigger value)
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
.google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
-
clearEventTrigger
public Function.Builder clearEventTrigger()
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
.google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
-
getEventTriggerBuilder
public EventTrigger.Builder getEventTriggerBuilder()
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
.google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
-
getEventTriggerOrBuilder
public EventTriggerOrBuilder getEventTriggerOrBuilder()
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
.google.cloud.functions.v2beta.EventTrigger event_trigger = 5;- Specified by:
getEventTriggerOrBuilderin interfaceFunctionOrBuilder
-
getStateValue
public int getStateValue()
Output only. State of the function.
.google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceFunctionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Function.Builder setStateValue(int value)
Output only. State of the function.
.google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public Function.State getState()
Output only. State of the function.
.google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceFunctionOrBuilder- Returns:
- The state.
-
setState
public Function.Builder setState(Function.State value)
Output only. State of the function.
.google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Function.Builder clearState()
Output only. State of the function.
.google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceFunctionOrBuilder- 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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceFunctionOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public Function.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public Function.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public Function.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public Function.Builder clearUpdateTime()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last update timestamp of a Cloud Function.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceFunctionOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:FunctionOrBuilderLabels associated with this Cloud Function.
map<string, string> labels = 8;- Specified by:
getLabelsCountin interfaceFunctionOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 8;- Specified by:
containsLabelsin interfaceFunctionOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceFunctionOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels associated with this Cloud Function.
map<string, string> labels = 8;- Specified by:
getLabelsMapin interfaceFunctionOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this Cloud Function.
map<string, string> labels = 8;- Specified by:
getLabelsOrDefaultin interfaceFunctionOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 8;- Specified by:
getLabelsOrThrowin interfaceFunctionOrBuilder
-
clearLabels
public Function.Builder clearLabels()
-
removeLabels
public Function.Builder removeLabels(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Function.Builder putLabels(String key, String value)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
-
putAllLabels
public Function.Builder putAllLabels(Map<String,String> values)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
-
getStateMessagesList
public List<StateMessage> getStateMessagesList()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateMessagesListin interfaceFunctionOrBuilder
-
getStateMessagesCount
public int getStateMessagesCount()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateMessagesCountin interfaceFunctionOrBuilder
-
getStateMessages
public StateMessage getStateMessages(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateMessagesin interfaceFunctionOrBuilder
-
setStateMessages
public Function.Builder setStateMessages(int index, StateMessage value)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setStateMessages
public Function.Builder setStateMessages(int index, StateMessage.Builder builderForValue)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addStateMessages
public Function.Builder addStateMessages(StateMessage value)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addStateMessages
public Function.Builder addStateMessages(int index, StateMessage value)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addStateMessages
public Function.Builder addStateMessages(StateMessage.Builder builderForValue)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addStateMessages
public Function.Builder addStateMessages(int index, StateMessage.Builder builderForValue)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addAllStateMessages
public Function.Builder addAllStateMessages(Iterable<? extends StateMessage> values)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearStateMessages
public Function.Builder clearStateMessages()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
removeStateMessages
public Function.Builder removeStateMessages(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getStateMessagesBuilder
public StateMessage.Builder getStateMessagesBuilder(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getStateMessagesOrBuilder
public StateMessageOrBuilder getStateMessagesOrBuilder(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateMessagesOrBuilderin interfaceFunctionOrBuilder
-
getStateMessagesOrBuilderList
public List<? extends StateMessageOrBuilder> getStateMessagesOrBuilderList()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateMessagesOrBuilderListin interfaceFunctionOrBuilder
-
addStateMessagesBuilder
public StateMessage.Builder addStateMessagesBuilder()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addStateMessagesBuilder
public StateMessage.Builder addStateMessagesBuilder(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getStateMessagesBuilderList
public List<StateMessage.Builder> getStateMessagesBuilderList()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getEnvironmentValue
public int getEnvironmentValue()
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2beta.Environment environment = 10;- Specified by:
getEnvironmentValuein interfaceFunctionOrBuilder- Returns:
- The enum numeric value on the wire for environment.
-
setEnvironmentValue
public Function.Builder setEnvironmentValue(int value)
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2beta.Environment environment = 10;- Parameters:
value- The enum numeric value on the wire for environment to set.- Returns:
- This builder for chaining.
-
getEnvironment
public Environment getEnvironment()
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2beta.Environment environment = 10;- Specified by:
getEnvironmentin interfaceFunctionOrBuilder- Returns:
- The environment.
-
setEnvironment
public Function.Builder setEnvironment(Environment value)
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2beta.Environment environment = 10;- Parameters:
value- The environment to set.- Returns:
- This builder for chaining.
-
clearEnvironment
public Function.Builder clearEnvironment()
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2beta.Environment environment = 10;- Returns:
- This builder for chaining.
-
getUrl
public String getUrl()
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUrlin interfaceFunctionOrBuilder- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUrlBytesin interfaceFunctionOrBuilder- Returns:
- The bytes for url.
-
setUrl
public Function.Builder setUrl(String value)
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The url to set.- Returns:
- This builder for chaining.
-
clearUrl
public Function.Builder clearUrl()
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUrlBytes
public Function.Builder setUrlBytes(com.google.protobuf.ByteString value)
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for url to set.- Returns:
- This builder for chaining.
-
getKmsKeyName
public String getKmsKeyName()
[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) = { ... }- Specified by:
getKmsKeyNamein interfaceFunctionOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()
[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) = { ... }- Specified by:
getKmsKeyNameBytesin interfaceFunctionOrBuilder- Returns:
- The bytes for kmsKeyName.
-
setKmsKeyName
public Function.Builder setKmsKeyName(String value)
[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) = { ... }- Parameters:
value- The kmsKeyName to set.- Returns:
- This builder for chaining.
-
clearKmsKeyName
public Function.Builder clearKmsKeyName()
[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:
- This builder for chaining.
-
setKmsKeyNameBytes
public Function.Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value)
[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) = { ... }- Parameters:
value- The bytes for kmsKeyName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Function.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
mergeUnknownFields
public final Function.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
-
-