Class Environment.Builder (1.41.0)

public static final class Environment.Builder extends GeneratedMessageV3.Builder<Environment.Builder> implements EnvironmentOrBuilder

An environment for running orchestration tasks.

Protobuf type google.cloud.orchestration.airflow.service.v1.Environment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Environment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Environment.Builder
Overrides

build()

public Environment build()
Returns
TypeDescription
Environment

buildPartial()

public Environment buildPartial()
Returns
TypeDescription
Environment

clear()

public Environment.Builder clear()
Returns
TypeDescription
Environment.Builder
Overrides

clearConfig()

public Environment.Builder clearConfig()

Configuration parameters for this environment.

.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2;

Returns
TypeDescription
Environment.Builder

clearCreateTime()

public Environment.Builder clearCreateTime()

Output only. The time at which this environment was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Environment.Builder

clearField(Descriptors.FieldDescriptor field)

public Environment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Environment.Builder
Overrides

clearLabels()

public Environment.Builder clearLabels()
Returns
TypeDescription
Environment.Builder

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
TypeDescription
Environment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Environment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Environment.Builder
Overrides

clearSatisfiesPzs()

public Environment.Builder clearSatisfiesPzs()

Output only. Reserved for future use.

bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearState()

public Environment.Builder clearState()

The current state of the environment.

.google.cloud.orchestration.airflow.service.v1.Environment.State state = 4;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearStorageConfig()

public Environment.Builder clearStorageConfig()

Optional. Storage configuration for this environment.

.google.cloud.orchestration.airflow.service.v1.StorageConfig storage_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Environment.Builder

clearUpdateTime()

public Environment.Builder clearUpdateTime()

Output only. The time at which this environment was last modified.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Environment.Builder

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;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clone()

public Environment.Builder clone()
Returns
TypeDescription
Environment.Builder
Overrides

containsLabels(String key)

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}{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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getConfig()

public EnvironmentConfig getConfig()

Configuration parameters for this environment.

.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2;

Returns
TypeDescription
EnvironmentConfig

The config.

getConfigBuilder()

public EnvironmentConfig.Builder getConfigBuilder()

Configuration parameters for this environment.

.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2;

Returns
TypeDescription
EnvironmentConfig.Builder

getConfigOrBuilder()

public EnvironmentConfigOrBuilder getConfigOrBuilder()

Configuration parameters for this environment.

.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2;

Returns
TypeDescription
EnvironmentConfigOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which this environment was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which this environment was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which this environment was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Environment getDefaultInstanceForType()
Returns
TypeDescription
Environment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

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}{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;

Returns
TypeDescription
int

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}{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;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

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}{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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

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}{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;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

getSatisfiesPzs()

public boolean getSatisfiesPzs()

Output only. Reserved for future use.

bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The satisfiesPzs.

getState()

public Environment.State getState()

The current state of the environment.

.google.cloud.orchestration.airflow.service.v1.Environment.State state = 4;

Returns
TypeDescription
Environment.State

The state.

getStateValue()

public int getStateValue()

The current state of the environment.

.google.cloud.orchestration.airflow.service.v1.Environment.State state = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStorageConfig()

public StorageConfig getStorageConfig()

Optional. Storage configuration for this environment.

.google.cloud.orchestration.airflow.service.v1.StorageConfig storage_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageConfig

The storageConfig.

getStorageConfigBuilder()

public StorageConfig.Builder getStorageConfigBuilder()

Optional. Storage configuration for this environment.

.google.cloud.orchestration.airflow.service.v1.StorageConfig storage_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageConfig.Builder

getStorageConfigOrBuilder()

public StorageConfigOrBuilder getStorageConfigOrBuilder()

Optional. Storage configuration for this environment.

.google.cloud.orchestration.airflow.service.v1.StorageConfig storage_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StorageConfigOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which this environment was last modified.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which this environment was last modified.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which this environment was last modified.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
TimestampOrBuilder

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;

Returns
TypeDescription
String

The uuid.

getUuidBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for uuid.

hasConfig()

public boolean hasConfig()

Configuration parameters for this environment.

.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2;

Returns
TypeDescription
boolean

Whether the config field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which this environment was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasStorageConfig()

public boolean hasStorageConfig()

Optional. Storage configuration for this environment.

.google.cloud.orchestration.airflow.service.v1.StorageConfig storage_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the storageConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which this environment was last modified.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConfig(EnvironmentConfig value)

public Environment.Builder mergeConfig(EnvironmentConfig value)

Configuration parameters for this environment.

.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2;

Parameter
NameDescription
valueEnvironmentConfig
Returns
TypeDescription
Environment.Builder

mergeCreateTime(Timestamp value)

public Environment.Builder mergeCreateTime(Timestamp value)

Output only. The time at which this environment was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Environment.Builder

mergeFrom(Environment other)

public Environment.Builder mergeFrom(Environment other)
Parameter
NameDescription
otherEnvironment
Returns
TypeDescription
Environment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Environment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Environment.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Environment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Environment.Builder
Overrides

mergeStorageConfig(StorageConfig value)

public Environment.Builder mergeStorageConfig(StorageConfig value)

Optional. Storage configuration for this environment.

.google.cloud.orchestration.airflow.service.v1.StorageConfig storage_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageConfig
Returns
TypeDescription
Environment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Environment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Environment.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Environment.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which this environment was last modified.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Environment.Builder

putAllLabels(Map<String,String> values)

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}{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;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Environment.Builder

putLabels(String key, String value)

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}{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;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Environment.Builder

removeLabels(String key)

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}{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;

Parameter
NameDescription
keyString
Returns
TypeDescription
Environment.Builder

setConfig(EnvironmentConfig value)

public Environment.Builder setConfig(EnvironmentConfig value)

Configuration parameters for this environment.

.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2;

Parameter
NameDescription
valueEnvironmentConfig
Returns
TypeDescription
Environment.Builder

setConfig(EnvironmentConfig.Builder builderForValue)

public Environment.Builder setConfig(EnvironmentConfig.Builder builderForValue)

Configuration parameters for this environment.

.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2;

Parameter
NameDescription
builderForValueEnvironmentConfig.Builder
Returns
TypeDescription
Environment.Builder

setCreateTime(Timestamp value)

public Environment.Builder setCreateTime(Timestamp value)

Output only. The time at which this environment was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Environment.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Environment.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which this environment was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Environment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Environment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Environment.Builder
Overrides

setName(String value)

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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Environment.Builder setNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Environment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Environment.Builder
Overrides

setSatisfiesPzs(boolean value)

public Environment.Builder setSatisfiesPzs(boolean value)

Output only. Reserved for future use.

bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The satisfiesPzs to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setState(Environment.State value)

public Environment.Builder setState(Environment.State value)

The current state of the environment.

.google.cloud.orchestration.airflow.service.v1.Environment.State state = 4;

Parameter
NameDescription
valueEnvironment.State

The state to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setStateValue(int value)

public Environment.Builder setStateValue(int value)

The current state of the environment.

.google.cloud.orchestration.airflow.service.v1.Environment.State state = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setStorageConfig(StorageConfig value)

public Environment.Builder setStorageConfig(StorageConfig value)

Optional. Storage configuration for this environment.

.google.cloud.orchestration.airflow.service.v1.StorageConfig storage_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStorageConfig
Returns
TypeDescription
Environment.Builder

setStorageConfig(StorageConfig.Builder builderForValue)

public Environment.Builder setStorageConfig(StorageConfig.Builder builderForValue)

Optional. Storage configuration for this environment.

.google.cloud.orchestration.airflow.service.v1.StorageConfig storage_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueStorageConfig.Builder
Returns
TypeDescription
Environment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Environment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Environment.Builder
Overrides

setUpdateTime(Timestamp value)

public Environment.Builder setUpdateTime(Timestamp value)

Output only. The time at which this environment was last modified.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Environment.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Environment.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which this environment was last modified.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Environment.Builder

setUuid(String value)

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;

Parameter
NameDescription
valueString

The uuid to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public Environment.Builder setUuidBytes(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;

Parameter
NameDescription
valueByteString

The bytes for uuid to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.