public static final class JobPlacement.Builder extends GeneratedMessageV3.Builder<JobPlacement.Builder> implements JobPlacementOrBuilder
Dataproc job config.
Protobuf type google.cloud.dataproc.v1.JobPlacement
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public JobPlacement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public JobPlacement build()
Returns
buildPartial()
public JobPlacement buildPartial()
Returns
clear()
public JobPlacement.Builder clear()
Returns
Overrides
clearClusterLabels()
public JobPlacement.Builder clearClusterLabels()
Returns
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
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
clearField(Descriptors.FieldDescriptor field)
public JobPlacement.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public JobPlacement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public JobPlacement.Builder clone()
Returns
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
Returns
getClusterLabels()
public Map<String,String> getClusterLabels()
Returns
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
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
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
Returns
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
Returns
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMutableClusterLabels()
public Map<String,String> getMutableClusterLabels()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(JobPlacement other)
public JobPlacement.Builder mergeFrom(JobPlacement other)
Parameter
Returns
public JobPlacement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public JobPlacement.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final JobPlacement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
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
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public JobPlacement.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public JobPlacement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final JobPlacement.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides