Class UserWorkloadsConfigMap.Builder (1.47.0)

public static final class UserWorkloadsConfigMap.Builder extends GeneratedMessageV3.Builder<UserWorkloadsConfigMap.Builder> implements UserWorkloadsConfigMapOrBuilder

User workloads ConfigMap used by Airflow tasks that run with Kubernetes executor or KubernetesPodOperator.

Protobuf type google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserWorkloadsConfigMap build()
Returns
Type Description
UserWorkloadsConfigMap

buildPartial()

public UserWorkloadsConfigMap buildPartial()
Returns
Type Description
UserWorkloadsConfigMap

clear()

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

clearData()

public UserWorkloadsConfigMap.Builder clearData()
Returns
Type Description
UserWorkloadsConfigMap.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public UserWorkloadsConfigMap.Builder clearName()

Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
UserWorkloadsConfigMap.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public UserWorkloadsConfigMap.Builder clone()
Returns
Type Description
UserWorkloadsConfigMap.Builder
Overrides

containsData(String key)

public boolean containsData(String key)

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getData() (deprecated)

public Map<String,String> getData()

Use #getDataMap() instead.

Returns
Type Description
Map<String,String>

getDataCount()

public int getDataCount()

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDataMap()

public Map<String,String> getDataMap()

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getDataOrDefault(String key, String defaultValue)

public String getDataOrDefault(String key, String defaultValue)

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDataOrThrow(String key)

public String getDataOrThrow(String key)

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public UserWorkloadsConfigMap getDefaultInstanceForType()
Returns
Type Description
UserWorkloadsConfigMap

getDescriptorForType()

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

getMutableData() (deprecated)

public Map<String,String> getMutableData()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserWorkloadsConfigMap other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserWorkloadsConfigMap.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserWorkloadsConfigMap.Builder
Overrides

putAllData(Map<String,String> values)

public UserWorkloadsConfigMap.Builder putAllData(Map<String,String> values)

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
UserWorkloadsConfigMap.Builder

putData(String key, String value)

public UserWorkloadsConfigMap.Builder putData(String key, String value)

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
UserWorkloadsConfigMap.Builder

removeData(String key)

public UserWorkloadsConfigMap.Builder removeData(String key)

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
UserWorkloadsConfigMap.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public UserWorkloadsConfigMap.Builder setName(String value)

Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UserWorkloadsConfigMap.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UserWorkloadsConfigMap.Builder setNameBytes(ByteString value)

Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UserWorkloadsConfigMap.Builder

This builder for chaining.

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

public UserWorkloadsConfigMap.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UserWorkloadsConfigMap.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UserWorkloadsConfigMap.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserWorkloadsConfigMap.Builder
Overrides