Class Function.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Function.Builder>
com.google.cloud.functions.v2alpha.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.GeneratedMessage.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.v2alpha.Function
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Function.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Function.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Function.Builder>
    • clear

      public Function.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Function.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Function.Builder>
    • getDefaultInstanceForType

      public Function getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Function build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Function buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Function.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Function.Builder>
    • mergeFrom

      public Function.Builder mergeFrom(Function other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Function.Builder>
    • mergeFrom

      public Function.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getName in interface FunctionOrBuilder
      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:
      getNameBytes in interface FunctionOrBuilder
      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:
      getDescription in interface FunctionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       User-provided description of a function.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface FunctionOrBuilder
      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.v2alpha.BuildConfig build_config = 3;
      Specified by:
      hasBuildConfig in interface FunctionOrBuilder
      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.v2alpha.BuildConfig build_config = 3;
      Specified by:
      getBuildConfig in interface FunctionOrBuilder
      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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.BuildConfig build_config = 3;
      Specified by:
      getBuildConfigOrBuilder in interface FunctionOrBuilder
    • hasServiceConfig

      public boolean hasServiceConfig()
       Describes the Service being deployed. Currently deploys services to Cloud
       Run (fully managed).
       
      .google.cloud.functions.v2alpha.ServiceConfig service_config = 4;
      Specified by:
      hasServiceConfig in interface FunctionOrBuilder
      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.v2alpha.ServiceConfig service_config = 4;
      Specified by:
      getServiceConfig in interface FunctionOrBuilder
      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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.ServiceConfig service_config = 4;
    • getServiceConfigOrBuilder

      public ServiceConfigOrBuilder getServiceConfigOrBuilder()
       Describes the Service being deployed. Currently deploys services to Cloud
       Run (fully managed).
       
      .google.cloud.functions.v2alpha.ServiceConfig service_config = 4;
      Specified by:
      getServiceConfigOrBuilder in interface FunctionOrBuilder
    • 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.v2alpha.EventTrigger event_trigger = 5;
      Specified by:
      hasEventTrigger in interface FunctionOrBuilder
      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.v2alpha.EventTrigger event_trigger = 5;
      Specified by:
      getEventTrigger in interface FunctionOrBuilder
      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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.EventTrigger event_trigger = 5;
      Specified by:
      getEventTriggerOrBuilder in interface FunctionOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. State of the function.
       
      .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface FunctionOrBuilder
      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.v2alpha.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.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface FunctionOrBuilder
      Returns:
      The state.
    • setState

      public Function.Builder setState(Function.State value)
       Output only. State of the function.
       
      .google.cloud.functions.v2alpha.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.v2alpha.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:
      hasUpdateTime in interface FunctionOrBuilder
      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:
      getUpdateTime in interface FunctionOrBuilder
      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:
      getUpdateTimeOrBuilder in interface FunctionOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: FunctionOrBuilder
       Labels associated with this Cloud Function.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsCount in interface FunctionOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels associated with this Cloud Function.
       
      map<string, string> labels = 8;
      Specified by:
      containsLabels in interface FunctionOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface FunctionOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels associated with this Cloud Function.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsMap in interface FunctionOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels associated with this Cloud Function.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsOrDefault in interface FunctionOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels associated with this Cloud Function.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsOrThrow in interface FunctionOrBuilder
    • 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.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateMessagesList in interface FunctionOrBuilder
    • getStateMessagesCount

      public int getStateMessagesCount()
       Output only. State Messages for this Cloud Function.
       
      repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateMessagesCount in interface FunctionOrBuilder
    • getStateMessages

      public StateMessage getStateMessages(int index)
       Output only. State Messages for this Cloud Function.
       
      repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateMessages in interface FunctionOrBuilder
    • setStateMessages

      public Function.Builder setStateMessages(int index, StateMessage value)
       Output only. State Messages for this Cloud Function.
       
      repeated .google.cloud.functions.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateMessagesOrBuilder in interface FunctionOrBuilder
    • getStateMessagesOrBuilderList

      public List<? extends StateMessageOrBuilder> getStateMessagesOrBuilderList()
       Output only. State Messages for this Cloud Function.
       
      repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateMessagesOrBuilderList in interface FunctionOrBuilder
    • addStateMessagesBuilder

      public StateMessage.Builder addStateMessagesBuilder()
       Output only. State Messages for this Cloud Function.
       
      repeated .google.cloud.functions.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.Environment environment = 10;
      Specified by:
      getEnvironmentValue in interface FunctionOrBuilder
      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.v2alpha.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.v2alpha.Environment environment = 10;
      Specified by:
      getEnvironment in interface FunctionOrBuilder
      Returns:
      The environment.
    • setEnvironment

      public Function.Builder setEnvironment(Environment value)
       Describe whether the function is 1st Gen or 2nd Gen.
       
      .google.cloud.functions.v2alpha.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.v2alpha.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:
      getUrl in interface FunctionOrBuilder
      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:
      getUrlBytes in interface FunctionOrBuilder
      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:
      getKmsKeyName in interface FunctionOrBuilder
      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:
      getKmsKeyNameBytes in interface FunctionOrBuilder
      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.
    • getSatisfiesPzs

      public boolean getSatisfiesPzs()
       Output only. Reserved for future use.
       
      bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSatisfiesPzs in interface FunctionOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public Function.Builder setSatisfiesPzs(boolean value)
       Output only. Reserved for future use.
       
      bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The satisfiesPzs to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzs

      public Function.Builder clearSatisfiesPzs()
       Output only. Reserved for future use.
       
      bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The create timestamp of a Cloud Function. This is only
       applicable to 2nd Gen functions.
       
      .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface FunctionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The create timestamp of a Cloud Function. This is only
       applicable to 2nd Gen functions.
       
      .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface FunctionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Function.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp of a Cloud Function. This is only
       applicable to 2nd Gen functions.
       
      .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Function.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The create timestamp of a Cloud Function. This is only
       applicable to 2nd Gen functions.
       
      .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Function.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp of a Cloud Function. This is only
       applicable to 2nd Gen functions.
       
      .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Function.Builder clearCreateTime()
       Output only. The create timestamp of a Cloud Function. This is only
       applicable to 2nd Gen functions.
       
      .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The create timestamp of a Cloud Function. This is only
       applicable to 2nd Gen functions.
       
      .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The create timestamp of a Cloud Function. This is only
       applicable to 2nd Gen functions.
       
      .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface FunctionOrBuilder