Class Environment.Builder (1.28.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Environment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Environment.Builder
Overrides

build()

public Environment build()
Returns
Type Description
Environment

buildPartial()

public Environment buildPartial()
Returns
Type Description
Environment

clear()

public Environment.Builder clear()
Returns
Type Description
Environment.Builder
Overrides

clearConfig()

public Environment.Builder clearConfig()

Configuration parameters for this environment.

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

Returns
Type Description
Environment.Builder

clearCreateTime()

public Environment.Builder clearCreateTime()

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

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Environment.Builder

clearField(Descriptors.FieldDescriptor field)

public Environment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Environment.Builder
Overrides

clearLabels()

public Environment.Builder clearLabels()
Returns
Type Description
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
Type Description
Environment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Environment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Environment.Builder
Overrides

clearState()

public Environment.Builder clearState()

The current state of the environment.

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

Returns
Type Description
Environment.Builder

This builder for chaining.

clearUpdateTime()

public Environment.Builder clearUpdateTime()

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

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
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
Type Description
Environment.Builder

This builder for chaining.

clone()

public Environment.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getConfig()

public EnvironmentConfig getConfig()

Configuration parameters for this environment.

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

Returns
Type Description
EnvironmentConfig

The config.

getConfigBuilder()

public EnvironmentConfig.Builder getConfigBuilder()

Configuration parameters for this environment.

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

Returns
Type Description
EnvironmentConfig.Builder

getConfigOrBuilder()

public EnvironmentConfigOrBuilder getConfigOrBuilder()

Configuration parameters for this environment.

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

Returns
Type Description
EnvironmentConfigOrBuilder

getCreateTime()

public Timestamp getCreateTime()

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

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
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
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Environment getDefaultInstanceForType()
Returns
Type Description
Environment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getState()

public Environment.State getState()

The current state of the environment.

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

Returns
Type Description
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
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

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

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
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
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for uuid.

hasConfig()

public boolean hasConfig()

Configuration parameters for this environment.

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

Returns
Type Description
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
Type Description
boolean

Whether the createTime 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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value EnvironmentConfig
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Environment.Builder

mergeFrom(Environment other)

public Environment.Builder mergeFrom(Environment other)
Parameter
Name Description
other Environment
Returns
Type Description
Environment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Environment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Environment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Environment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Environment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Environment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
value EnvironmentConfig
Returns
Type Description
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
Name Description
builderForValue EnvironmentConfig.Builder
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Environment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Environment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Environment.Builder
Overrides

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
Name Description
value Environment.State

The state to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
Environment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Environment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The uuid to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for uuid to set.

Returns
Type Description
Environment.Builder

This builder for chaining.