Class Environment

  • All Implemented Interfaces:
    EnvironmentOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Environment
    extends com.google.protobuf.GeneratedMessageV3
    implements EnvironmentOrBuilder
     An environment for running orchestration tasks.
     
    Protobuf type google.cloud.orchestration.airflow.service.v1beta1.Environment
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Environment.Builder
      An environment for running orchestration tasks.
      static class  Environment.State
      State of the environment.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • internalGetFieldAccessorTable

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Environment parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Environment parseFrom​(ByteBuffer data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Environment parseFrom​(com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Environment parseFrom​(com.google.protobuf.ByteString data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Environment parseFrom​(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Environment parseFrom​(byte[] data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Environment parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Environment.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Environment getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Environment> parser()
      • getParserForType

        public com.google.protobuf.Parser<Environment> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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