Class Environment.Builder

  • All Implemented Interfaces:
    EnvironmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Environment

    public static final class Environment.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    implements EnvironmentOrBuilder
     An environment for running orchestration tasks.
     
    Protobuf type google.cloud.orchestration.airflow.service.v1beta1.Environment
    • 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<Environment.Builder>
      • internalGetMutableMapField

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

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

        public Environment.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<Environment.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<Environment.Builder>
      • getDefaultInstanceForType

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

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

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

        public Environment.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<Environment.Builder>
      • setField

        public Environment.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<Environment.Builder>
      • clearField

        public Environment.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<Environment.Builder>
      • clearOneof

        public Environment.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<Environment.Builder>
      • setRepeatedField

        public Environment.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<Environment.Builder>
      • addRepeatedField

        public Environment.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<Environment.Builder>
      • mergeFrom

        public Environment.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<Environment.Builder>
      • isInitialized

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

        public Environment.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<Environment.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The resource name of the environment, in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
        
         EnvironmentId must start with a lowercase letter followed by up to 63
         lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
         
        string name = 1;
        Specified by:
        getName in interface EnvironmentOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name of the environment, in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
        
         EnvironmentId must start with a lowercase letter followed by up to 63
         lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
         
        string name = 1;
        Specified by:
        getNameBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Environment.Builder setName​(String value)
         The resource name of the environment, in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
        
         EnvironmentId must start with a lowercase letter followed by up to 63
         lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Environment.Builder clearName()
         The resource name of the environment, in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
        
         EnvironmentId must start with a lowercase letter followed by up to 63
         lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Environment.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource name of the environment, in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
        
         EnvironmentId must start with a lowercase letter followed by up to 63
         lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasConfig

        public boolean hasConfig()
         Configuration parameters for this environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2;
        Specified by:
        hasConfig in interface EnvironmentOrBuilder
        Returns:
        Whether the config field is set.
      • getConfig

        public EnvironmentConfig getConfig()
         Configuration parameters for this environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2;
        Specified by:
        getConfig in interface EnvironmentOrBuilder
        Returns:
        The config.
      • setConfig

        public Environment.Builder setConfig​(EnvironmentConfig value)
         Configuration parameters for this environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2;
      • setConfig

        public Environment.Builder setConfig​(EnvironmentConfig.Builder builderForValue)
         Configuration parameters for this environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2;
      • mergeConfig

        public Environment.Builder mergeConfig​(EnvironmentConfig value)
         Configuration parameters for this environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2;
      • clearConfig

        public Environment.Builder clearConfig()
         Configuration parameters for this environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2;
      • getConfigBuilder

        public EnvironmentConfig.Builder getConfigBuilder()
         Configuration parameters for this environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2;
      • getUuid

        public String getUuid()
         Output only. The UUID (Universally Unique IDentifier) associated with this
         environment. This value is generated when the environment is created.
         
        string uuid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUuid in interface EnvironmentOrBuilder
        Returns:
        The uuid.
      • getUuidBytes

        public com.google.protobuf.ByteString getUuidBytes()
         Output only. The UUID (Universally Unique IDentifier) associated with this
         environment. This value is generated when the environment is created.
         
        string uuid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUuidBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for uuid.
      • setUuid

        public Environment.Builder setUuid​(String value)
         Output only. The UUID (Universally Unique IDentifier) associated with this
         environment. This value is generated when the environment is created.
         
        string uuid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The uuid to set.
        Returns:
        This builder for chaining.
      • clearUuid

        public Environment.Builder clearUuid()
         Output only. The UUID (Universally Unique IDentifier) associated with this
         environment. This value is generated when the environment is created.
         
        string uuid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUuidBytes

        public Environment.Builder setUuidBytes​(com.google.protobuf.ByteString value)
         Output only. The UUID (Universally Unique IDentifier) associated with this
         environment. This value is generated when the environment is created.
         
        string uuid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for uuid to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         The current state of the environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.Environment.State state = 4;
        Specified by:
        getStateValue in interface EnvironmentOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Environment.Builder setStateValue​(int value)
         The current state of the environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.Environment.State state = 4;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Environment.State getState()
         The current state of the environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.Environment.State state = 4;
        Specified by:
        getState in interface EnvironmentOrBuilder
        Returns:
        The state.
      • setState

        public Environment.Builder setState​(Environment.State value)
         The current state of the environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.Environment.State state = 4;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Environment.Builder clearState()
         The current state of the environment.
         
        .google.cloud.orchestration.airflow.service.v1beta1.Environment.State state = 4;
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time at which this environment was created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface EnvironmentOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which this environment was created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface EnvironmentOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Environment.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this environment was created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Environment.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which this environment was created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Environment.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this environment was created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Environment.Builder clearCreateTime()
         Output only. The time at which this environment was created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time at which this environment was created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time at which this environment was created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface EnvironmentOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time at which this environment was last modified.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface EnvironmentOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time at which this environment was last modified.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface EnvironmentOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Environment.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this environment was last modified.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Environment.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which this environment was last modified.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Environment.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this environment was last modified.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Environment.Builder clearUpdateTime()
         Output only. The time at which this environment was last modified.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The time at which this environment was last modified.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time at which this environment was last modified.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface EnvironmentOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: EnvironmentOrBuilder
         Optional. User-defined labels for this environment.
         The labels map can contain no more than 64 entries. Entries of the labels
         map are UTF8 strings that comply with the following restrictions:
        
         * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
         * Values must conform to regexp:  [\p{Ll}\p{Lo}\p{N}_-]{0,63}
         * Both keys and values are additionally constrained to be <= 128 bytes in
         size.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface EnvironmentOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. User-defined labels for this environment.
         The labels map can contain no more than 64 entries. Entries of the labels
         map are UTF8 strings that comply with the following restrictions:
        
         * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
         * Values must conform to regexp:  [\p{Ll}\p{Lo}\p{N}_-]{0,63}
         * Both keys and values are additionally constrained to be <= 128 bytes in
         size.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface EnvironmentOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. User-defined labels for this environment.
         The labels map can contain no more than 64 entries. Entries of the labels
         map are UTF8 strings that comply with the following restrictions:
        
         * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
         * Values must conform to regexp:  [\p{Ll}\p{Lo}\p{N}_-]{0,63}
         * Both keys and values are additionally constrained to be <= 128 bytes in
         size.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface EnvironmentOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. User-defined labels for this environment.
         The labels map can contain no more than 64 entries. Entries of the labels
         map are UTF8 strings that comply with the following restrictions:
        
         * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
         * Values must conform to regexp:  [\p{Ll}\p{Lo}\p{N}_-]{0,63}
         * Both keys and values are additionally constrained to be <= 128 bytes in
         size.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface EnvironmentOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. User-defined labels for this environment.
         The labels map can contain no more than 64 entries. Entries of the labels
         map are UTF8 strings that comply with the following restrictions:
        
         * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
         * Values must conform to regexp:  [\p{Ll}\p{Lo}\p{N}_-]{0,63}
         * Both keys and values are additionally constrained to be <= 128 bytes in
         size.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface EnvironmentOrBuilder
      • removeLabels

        public Environment.Builder removeLabels​(String key)
         Optional. User-defined labels for this environment.
         The labels map can contain no more than 64 entries. Entries of the labels
         map are UTF8 strings that comply with the following restrictions:
        
         * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
         * Values must conform to regexp:  [\p{Ll}\p{Lo}\p{N}_-]{0,63}
         * Both keys and values are additionally constrained to be <= 128 bytes in
         size.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Environment.Builder putLabels​(String key,
                                             String value)
         Optional. User-defined labels for this environment.
         The labels map can contain no more than 64 entries. Entries of the labels
         map are UTF8 strings that comply with the following restrictions:
        
         * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
         * Values must conform to regexp:  [\p{Ll}\p{Lo}\p{N}_-]{0,63}
         * Both keys and values are additionally constrained to be <= 128 bytes in
         size.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
      • putAllLabels

        public Environment.Builder putAllLabels​(Map<String,​String> values)
         Optional. User-defined labels for this environment.
         The labels map can contain no more than 64 entries. Entries of the labels
         map are UTF8 strings that comply with the following restrictions:
        
         * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
         * Values must conform to regexp:  [\p{Ll}\p{Lo}\p{N}_-]{0,63}
         * Both keys and values are additionally constrained to be <= 128 bytes in
         size.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final Environment.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<Environment.Builder>
      • mergeUnknownFields

        public final Environment.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<Environment.Builder>