Class 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 type google.cloud.functions.v2alpha.Function
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Function.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
      • setField

        public Function.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
      • clearField

        public Function.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
      • clearOneof

        public Function.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
      • setRepeatedField

        public Function.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
      • addRepeatedField

        public Function.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Function.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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
      • containsLabels

        public boolean containsLabels​(String key)
         Labels associated with this Cloud Function.
         
        map<string, string> labels = 8;
        Specified by:
        containsLabels in interface FunctionOrBuilder
      • 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.
      • setUnknownFields

        public final Function.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>
      • mergeUnknownFields

        public final Function.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Function.Builder>