Class JobPlacement.Builder (4.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobPlacement build()
Returns
TypeDescription
JobPlacement

buildPartial()

public JobPlacement buildPartial()
Returns
TypeDescription
JobPlacement

clear()

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

clearClusterLabels()

public JobPlacement.Builder clearClusterLabels()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
JobPlacement.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public JobPlacement.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getClusterLabels()

public Map<String,String> getClusterLabels()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for clusterUuid.

getDefaultInstanceForType()

public JobPlacement getDefaultInstanceForType()
Returns
TypeDescription
JobPlacement

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableClusterLabels()

public Map<String,String> getMutableClusterLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobPlacement other)

public JobPlacement.Builder mergeFrom(JobPlacement other)
Parameter
NameDescription
otherJobPlacement
Returns
TypeDescription
JobPlacement.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobPlacement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueString

The clusterName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for clusterName to set.

Returns
TypeDescription
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
NameDescription
valueString

The clusterUuid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for clusterUuid to set.

Returns
TypeDescription
JobPlacement.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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