Class JobPlacement.Builder (4.40.0)

public static final class JobPlacement.Builder extends GeneratedMessageV3.Builder<JobPlacement.Builder> implements JobPlacementOrBuilder

Dataproc job config.

Protobuf type google.cloud.dataproc.v1.JobPlacement

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobPlacement build()
Returns
Type Description
JobPlacement

buildPartial()

public JobPlacement buildPartial()
Returns
Type Description
JobPlacement

clear()

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

clearClusterLabels()

public JobPlacement.Builder clearClusterLabels()
Returns
Type Description
JobPlacement.Builder

clearClusterName()

public JobPlacement.Builder clearClusterName()

Required. The name of the cluster where the job will be submitted.

string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobPlacement.Builder

This builder for chaining.

clearClusterUuid()

public JobPlacement.Builder clearClusterUuid()

Output only. A cluster UUID generated by the Dataproc service when the job is submitted.

string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobPlacement.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsClusterLabels(String key)

public boolean containsClusterLabels(String key)

Optional. Cluster labels to identify a cluster where the job will be submitted.

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getClusterLabels() (deprecated)

public Map<String,String> getClusterLabels()
Returns
Type Description
Map<String,String>

getClusterLabelsCount()

public int getClusterLabelsCount()

Optional. Cluster labels to identify a cluster where the job will be submitted.

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

Returns
Type Description
int

getClusterLabelsMap()

public Map<String,String> getClusterLabelsMap()

Optional. Cluster labels to identify a cluster where the job will be submitted.

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

Returns
Type Description
Map<String,String>

getClusterLabelsOrDefault(String key, String defaultValue)

public String getClusterLabelsOrDefault(String key, String defaultValue)

Optional. Cluster labels to identify a cluster where the job will be submitted.

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

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getClusterLabelsOrThrow(String key)

public String getClusterLabelsOrThrow(String key)

Optional. Cluster labels to identify a cluster where the job will be submitted.

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

Parameter
Name Description
key String
Returns
Type Description
String

getClusterName()

public String getClusterName()

Required. The name of the cluster where the job will be submitted.

string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The clusterName.

getClusterNameBytes()

public ByteString getClusterNameBytes()

Required. The name of the cluster where the job will be submitted.

string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for clusterName.

getClusterUuid()

public String getClusterUuid()

Output only. A cluster UUID generated by the Dataproc service when the job is submitted.

string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clusterUuid.

getClusterUuidBytes()

public ByteString getClusterUuidBytes()

Output only. A cluster UUID generated by the Dataproc service when the job is submitted.

string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clusterUuid.

getDefaultInstanceForType()

public JobPlacement getDefaultInstanceForType()
Returns
Type Description
JobPlacement

getDescriptorForType()

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

getMutableClusterLabels() (deprecated)

public Map<String,String> getMutableClusterLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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(JobPlacement other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllClusterLabels(Map<String,String> values)

public JobPlacement.Builder putAllClusterLabels(Map<String,String> values)

Optional. Cluster labels to identify a cluster where the job will be submitted.

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

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

putClusterLabels(String key, String value)

public JobPlacement.Builder putClusterLabels(String key, String value)

Optional. Cluster labels to identify a cluster where the job will be submitted.

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

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

removeClusterLabels(String key)

public JobPlacement.Builder removeClusterLabels(String key)

Optional. Cluster labels to identify a cluster where the job will be submitted.

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

Parameter
Name Description
key String
Returns
Type Description
JobPlacement.Builder

setClusterName(String value)

public JobPlacement.Builder setClusterName(String value)

Required. The name of the cluster where the job will be submitted.

string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The clusterName to set.

Returns
Type Description
JobPlacement.Builder

This builder for chaining.

setClusterNameBytes(ByteString value)

public JobPlacement.Builder setClusterNameBytes(ByteString value)

Required. The name of the cluster where the job will be submitted.

string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for clusterName to set.

Returns
Type Description
JobPlacement.Builder

This builder for chaining.

setClusterUuid(String value)

public JobPlacement.Builder setClusterUuid(String value)

Output only. A cluster UUID generated by the Dataproc service when the job is submitted.

string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clusterUuid to set.

Returns
Type Description
JobPlacement.Builder

This builder for chaining.

setClusterUuidBytes(ByteString value)

public JobPlacement.Builder setClusterUuidBytes(ByteString value)

Output only. A cluster UUID generated by the Dataproc service when the job is submitted.

string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clusterUuid to set.

Returns
Type Description
JobPlacement.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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