- 2.49.0 (latest)
- 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
public static final class Function.Builder extends 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 type google.cloud.functions.v2.Function
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Function.BuilderImplements
FunctionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllStateMessages(Iterable<? extends StateMessage> values)
public Function.Builder addAllStateMessages(Iterable<? extends StateMessage> values)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.functions.v2.StateMessage> |
Returns | |
---|---|
Type | Description |
Function.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Function.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Function.Builder |
addStateMessages(StateMessage value)
public Function.Builder addStateMessages(StateMessage value)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | StateMessage |
Returns | |
---|---|
Type | Description |
Function.Builder |
addStateMessages(StateMessage.Builder builderForValue)
public Function.Builder addStateMessages(StateMessage.Builder builderForValue)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | StateMessage.Builder |
Returns | |
---|---|
Type | Description |
Function.Builder |
addStateMessages(int index, StateMessage value)
public Function.Builder addStateMessages(int index, StateMessage value)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
value | StateMessage |
Returns | |
---|---|
Type | Description |
Function.Builder |
addStateMessages(int index, StateMessage.Builder builderForValue)
public Function.Builder addStateMessages(int index, StateMessage.Builder builderForValue)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | StateMessage.Builder |
Returns | |
---|---|
Type | Description |
Function.Builder |
addStateMessagesBuilder()
public StateMessage.Builder addStateMessagesBuilder()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
StateMessage.Builder |
addStateMessagesBuilder(int index)
public StateMessage.Builder addStateMessagesBuilder(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
StateMessage.Builder |
build()
public Function build()
Returns | |
---|---|
Type | Description |
Function |
buildPartial()
public Function buildPartial()
Returns | |
---|---|
Type | Description |
Function |
clear()
public Function.Builder clear()
Returns | |
---|---|
Type | Description |
Function.Builder |
clearBuildConfig()
public Function.Builder clearBuildConfig()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2.BuildConfig build_config = 3;
Returns | |
---|---|
Type | Description |
Function.Builder |
clearDescription()
public Function.Builder clearDescription()
User-provided description of a function.
string description = 2;
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
clearEnvironment()
public Function.Builder clearEnvironment()
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2.Environment environment = 10;
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
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.v2.EventTrigger event_trigger = 5;
Returns | |
---|---|
Type | Description |
Function.Builder |
clearField(Descriptors.FieldDescriptor field)
public Function.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Function.Builder |
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 | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
clearLabels()
public Function.Builder clearLabels()
Returns | |
---|---|
Type | Description |
Function.Builder |
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 | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Function.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Function.Builder |
clearServiceConfig()
public Function.Builder clearServiceConfig()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
Returns | |
---|---|
Type | Description |
Function.Builder |
clearState()
public Function.Builder clearState()
Output only. State of the function.
.google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
clearStateMessages()
public Function.Builder clearStateMessages()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Function.Builder |
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];
Returns | |
---|---|
Type | Description |
Function.Builder |
clearUrl()
public Function.Builder clearUrl()
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
clone()
public Function.Builder clone()
Returns | |
---|---|
Type | Description |
Function.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getBuildConfig()
public BuildConfig getBuildConfig()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2.BuildConfig build_config = 3;
Returns | |
---|---|
Type | Description |
BuildConfig | The buildConfig. |
getBuildConfigBuilder()
public BuildConfig.Builder getBuildConfigBuilder()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2.BuildConfig build_config = 3;
Returns | |
---|---|
Type | Description |
BuildConfig.Builder |
getBuildConfigOrBuilder()
public BuildConfigOrBuilder getBuildConfigOrBuilder()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2.BuildConfig build_config = 3;
Returns | |
---|---|
Type | Description |
BuildConfigOrBuilder |
getDefaultInstanceForType()
public Function getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Function |
getDescription()
public String getDescription()
User-provided description of a function.
string description = 2;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
User-provided description of a function.
string description = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEnvironment()
public Environment getEnvironment()
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2.Environment environment = 10;
Returns | |
---|---|
Type | Description |
Environment | The environment. |
getEnvironmentValue()
public int getEnvironmentValue()
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2.Environment environment = 10;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for environment. |
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.v2.EventTrigger event_trigger = 5;
Returns | |
---|---|
Type | Description |
EventTrigger | The eventTrigger. |
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.v2.EventTrigger event_trigger = 5;
Returns | |
---|---|
Type | Description |
EventTrigger.Builder |
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.v2.EventTrigger event_trigger = 5;
Returns | |
---|---|
Type | Description |
EventTriggerOrBuilder |
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) = { ... }
Returns | |
---|---|
Type | Description |
String | The kmsKeyName. |
getKmsKeyNameBytes()
public 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) = { ... }
Returns | |
---|---|
Type | Description |
ByteString | The bytes for kmsKeyName. |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Labels associated with this Cloud Function.
map<string, string> labels = 8;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels associated with this Cloud Function.
map<string, string> labels = 8;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
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;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
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()
public ServiceConfig getServiceConfig()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
Returns | |
---|---|
Type | Description |
ServiceConfig | The serviceConfig. |
getServiceConfigBuilder()
public ServiceConfig.Builder getServiceConfigBuilder()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
Returns | |
---|---|
Type | Description |
ServiceConfig.Builder |
getServiceConfigOrBuilder()
public ServiceConfigOrBuilder getServiceConfigOrBuilder()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
Returns | |
---|---|
Type | Description |
ServiceConfigOrBuilder |
getState()
public Function.State getState()
Output only. State of the function.
.google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Function.State | The state. |
getStateMessages(int index)
public StateMessage getStateMessages(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
StateMessage |
getStateMessagesBuilder(int index)
public StateMessage.Builder getStateMessagesBuilder(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
StateMessage.Builder |
getStateMessagesBuilderList()
public List<StateMessage.Builder> getStateMessagesBuilderList()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<Builder> |
getStateMessagesCount()
public int getStateMessagesCount()
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
getStateMessagesList()
public List<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 | |
---|---|
Type | Description |
List<StateMessage> |
getStateMessagesOrBuilder(int index)
public StateMessageOrBuilder getStateMessagesOrBuilder(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
StateMessageOrBuilder |
getStateMessagesOrBuilderList()
public List<? extends StateMessageOrBuilder> 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 | |
---|---|
Type | Description |
List<? extends com.google.cloud.functions.v2.StateMessageOrBuilder> |
getStateValue()
public int getStateValue()
Output only. State of the function.
.google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for state. |
getUpdateTime()
public Timestamp getUpdateTime()
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()
public 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];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
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 |
TimestampOrBuilder |
getUrl()
public String getUrl()
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The url. |
getUrlBytes()
public ByteString getUrlBytes()
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for url. |
hasBuildConfig()
public boolean hasBuildConfig()
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2.BuildConfig build_config = 3;
Returns | |
---|---|
Type | Description |
boolean | Whether the buildConfig field is set. |
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.v2.EventTrigger event_trigger = 5;
Returns | |
---|---|
Type | Description |
boolean | Whether the eventTrigger field is set. |
hasServiceConfig()
public boolean hasServiceConfig()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
Returns | |
---|---|
Type | Description |
boolean | Whether the serviceConfig field is set. |
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];
Returns | |
---|---|
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeBuildConfig(BuildConfig value)
public Function.Builder mergeBuildConfig(BuildConfig value)
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2.BuildConfig build_config = 3;
Parameter | |
---|---|
Name | Description |
value | BuildConfig |
Returns | |
---|---|
Type | Description |
Function.Builder |
mergeEventTrigger(EventTrigger value)
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.v2.EventTrigger event_trigger = 5;
Parameter | |
---|---|
Name | Description |
value | EventTrigger |
Returns | |
---|---|
Type | Description |
Function.Builder |
mergeFrom(Function other)
public Function.Builder mergeFrom(Function other)
Parameter | |
---|---|
Name | Description |
other | Function |
Returns | |
---|---|
Type | Description |
Function.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Function.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Function.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Function.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Function.Builder |
mergeServiceConfig(ServiceConfig value)
public Function.Builder mergeServiceConfig(ServiceConfig value)
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
Parameter | |
---|---|
Name | Description |
value | ServiceConfig |
Returns | |
---|---|
Type | Description |
Function.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Function.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Function.Builder |
mergeUpdateTime(Timestamp value)
public Function.Builder mergeUpdateTime(Timestamp value)
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 |
Function.Builder |
putAllLabels(Map<String,String> values)
public Function.Builder putAllLabels(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 |
Function.Builder |
putLabels(String key, String value)
public Function.Builder putLabels(String key, String value)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
Function.Builder |
removeLabels(String key)
public Function.Builder removeLabels(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
Function.Builder |
removeStateMessages(int index)
public Function.Builder removeStateMessages(int index)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Function.Builder |
setBuildConfig(BuildConfig value)
public Function.Builder setBuildConfig(BuildConfig value)
Describes the Build step of the function that builds a container from the given source.
.google.cloud.functions.v2.BuildConfig build_config = 3;
Parameter | |
---|---|
Name | Description |
value | BuildConfig |
Returns | |
---|---|
Type | Description |
Function.Builder |
setBuildConfig(BuildConfig.Builder builderForValue)
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.v2.BuildConfig build_config = 3;
Parameter | |
---|---|
Name | Description |
builderForValue | BuildConfig.Builder |
Returns | |
---|---|
Type | Description |
Function.Builder |
setDescription(String value)
public Function.Builder setDescription(String value)
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)
public Function.Builder setDescriptionBytes(ByteString value)
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)
public Function.Builder setEnvironment(Environment value)
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2.Environment environment = 10;
Parameter | |
---|---|
Name | Description |
value | Environment The environment to set. |
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
setEnvironmentValue(int value)
public Function.Builder setEnvironmentValue(int value)
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2.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)
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.v2.EventTrigger event_trigger = 5;
Parameter | |
---|---|
Name | Description |
value | EventTrigger |
Returns | |
---|---|
Type | Description |
Function.Builder |
setEventTrigger(EventTrigger.Builder builderForValue)
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.v2.EventTrigger event_trigger = 5;
Parameter | |
---|---|
Name | Description |
builderForValue | EventTrigger.Builder |
Returns | |
---|---|
Type | Description |
Function.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Function.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Function.Builder |
setKmsKeyName(String value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value | String The kmsKeyName to set. |
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
setKmsKeyNameBytes(ByteString value)
public Function.Builder setKmsKeyNameBytes(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) = { ... }
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for kmsKeyName to set. |
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
setName(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Function.Builder setNameBytes(ByteString value)
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)
public Function.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Function.Builder |
setServiceConfig(ServiceConfig value)
public Function.Builder setServiceConfig(ServiceConfig value)
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
Parameter | |
---|---|
Name | Description |
value | ServiceConfig |
Returns | |
---|---|
Type | Description |
Function.Builder |
setServiceConfig(ServiceConfig.Builder builderForValue)
public Function.Builder setServiceConfig(ServiceConfig.Builder builderForValue)
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
Parameter | |
---|---|
Name | Description |
builderForValue | ServiceConfig.Builder |
Returns | |
---|---|
Type | Description |
Function.Builder |
setState(Function.State value)
public Function.Builder setState(Function.State value)
Output only. State of the function.
.google.cloud.functions.v2.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)
public Function.Builder setStateMessages(int index, StateMessage value)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
value | StateMessage |
Returns | |
---|---|
Type | Description |
Function.Builder |
setStateMessages(int index, StateMessage.Builder builderForValue)
public Function.Builder setStateMessages(int index, StateMessage.Builder builderForValue)
Output only. State Messages for this Cloud Function.
repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | StateMessage.Builder |
Returns | |
---|---|
Type | Description |
Function.Builder |
setStateValue(int value)
public Function.Builder setStateValue(int value)
Output only. State of the function.
.google.cloud.functions.v2.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)
public final Function.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Function.Builder |
setUpdateTime(Timestamp value)
public Function.Builder setUpdateTime(Timestamp value)
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 |
Function.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public Function.Builder setUpdateTime(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];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Function.Builder |
setUrl(String value)
public Function.Builder setUrl(String value)
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | String The url to set. |
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |
setUrlBytes(ByteString value)
public Function.Builder setUrlBytes(ByteString value)
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for url to set. |
Returns | |
---|---|
Type | Description |
Function.Builder | This builder for chaining. |