Package com.google.cloud.functions.v2
Interface FunctionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Function,Function.Builder
public interface FunctionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description 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.BuildConfigOrBuildergetBuildConfigOrBuilder()Describes the Build step of the function that builds a container from the given source.StringgetDescription()User-provided description of a function.com.google.protobuf.ByteStringgetDescriptionBytes()User-provided description of a function.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.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.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.ServiceConfigOrBuildergetServiceConfigOrBuilder()Describes the Service being deployed.Function.StategetState()Output only.StateMessagegetStateMessages(int index)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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
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:
- The name.
-
getNameBytes
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;- Returns:
- The bytes for name.
-
getDescription
String getDescription()
User-provided description of a function.
string description = 2;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
User-provided description of a function.
string description = 2;- Returns:
- The bytes for description.
-
hasBuildConfig
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:
- Whether the buildConfig field is set.
-
getBuildConfig
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:
- The buildConfig.
-
getBuildConfigOrBuilder
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;
-
hasServiceConfig
boolean hasServiceConfig()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;- Returns:
- Whether the serviceConfig field is set.
-
getServiceConfig
ServiceConfig getServiceConfig()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;- Returns:
- The serviceConfig.
-
getServiceConfigOrBuilder
ServiceConfigOrBuilder getServiceConfigOrBuilder()
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
.google.cloud.functions.v2.ServiceConfig service_config = 4;
-
hasEventTrigger
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:
- Whether the eventTrigger field is set.
-
getEventTrigger
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:
- The eventTrigger.
-
getEventTriggerOrBuilder
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;
-
getStateValue
int getStateValue()
Output only. State of the function.
.google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for state.
-
getState
Function.State getState()
Output only. State of the function.
.google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
hasUpdateTime
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:
- Whether the updateTime field is set.
-
getUpdateTime
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];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
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];
-
getLabelsCount
int getLabelsCount()
Labels associated with this Cloud Function.
map<string, string> labels = 8;
-
containsLabels
boolean containsLabels(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Labels associated with this Cloud Function.
map<string, string> labels = 8;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Labels associated with this Cloud Function.
map<string, string> labels = 8;
-
getStateMessagesList
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];
-
getStateMessages
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];
-
getStateMessagesCount
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];
-
getStateMessagesOrBuilderList
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];
-
getStateMessagesOrBuilder
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];
-
getEnvironmentValue
int getEnvironmentValue()
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2.Environment environment = 10;- Returns:
- The enum numeric value on the wire for environment.
-
getEnvironment
Environment getEnvironment()
Describe whether the function is 1st Gen or 2nd Gen.
.google.cloud.functions.v2.Environment environment = 10;- Returns:
- The environment.
-
getUrl
String getUrl()
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The url.
-
getUrlBytes
com.google.protobuf.ByteString getUrlBytes()
Output only. The deployed url for the function.
string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for url.
-
getKmsKeyName
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:
- The kmsKeyName.
-
getKmsKeyNameBytes
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) = { ... }- Returns:
- The bytes for kmsKeyName.
-
-