public static final class JobPlacement.Builder extends GeneratedMessage.Builder<JobPlacement.Builder> implements JobPlacementOrBuilderDataproc job config.
Protobuf type google.cloud.dataproc.v1.JobPlacement
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > JobPlacement.BuilderImplements
JobPlacementOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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()Use #getClusterLabelsMap() instead.
| 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 |
|
getMutableClusterLabels() (deprecated)
public Map<String,String> getMutableClusterLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public JobPlacement.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
JobPlacement.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for clusterUuid to set. |
| Returns | |
|---|---|
| Type | Description |
JobPlacement.Builder |
This builder for chaining. |