public static final class ClusterSelector.Builder extends GeneratedMessage.Builder<ClusterSelector.Builder> implements ClusterSelectorOrBuilder
A selector that chooses target cluster for jobs based on metadata.
Protobuf type google.cloud.dataproc.v1.ClusterSelector
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public ClusterSelector build()
buildPartial()
public ClusterSelector buildPartial()
clear()
public ClusterSelector.Builder clear()
Overrides
clearClusterLabels()
public ClusterSelector.Builder clearClusterLabels()
clearZone()
public ClusterSelector.Builder clearZone()
Optional. The zone where workflow process executes. This parameter does not
affect the selection of the cluster.
If unspecified, the zone of the first cluster matching the selector
is used.
string zone = 1 [(.google.api.field_behavior) = OPTIONAL];
containsClusterLabels(String key)
public boolean containsClusterLabels(String key)
Required. The cluster labels. Cluster must have all labels
to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
key |
String
|
getClusterLabels() (deprecated)
public Map<String,String> getClusterLabels()
getClusterLabelsCount()
public int getClusterLabelsCount()
Required. The cluster labels. Cluster must have all labels
to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
|
getClusterLabelsMap()
public Map<String,String> getClusterLabelsMap()
Required. The cluster labels. Cluster must have all labels
to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
getClusterLabelsOrDefault(String key, String defaultValue)
public String getClusterLabelsOrDefault(String key, String defaultValue)
Required. The cluster labels. Cluster must have all labels
to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
|
getClusterLabelsOrThrow(String key)
public String getClusterLabelsOrThrow(String key)
Required. The cluster labels. Cluster must have all labels
to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
|
getDefaultInstanceForType()
public ClusterSelector getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableClusterLabels() (deprecated)
public Map<String,String> getMutableClusterLabels()
Use alternate mutation accessors instead.
getZone()
Optional. The zone where workflow process executes. This parameter does not
affect the selection of the cluster.
If unspecified, the zone of the first cluster matching the selector
is used.
string zone = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The zone.
|
getZoneBytes()
public ByteString getZoneBytes()
Optional. The zone where workflow process executes. This parameter does not
affect the selection of the cluster.
If unspecified, the zone of the first cluster matching the selector
is used.
string zone = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for zone.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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.GeneratedMessage.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.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ClusterSelector other)
public ClusterSelector.Builder mergeFrom(ClusterSelector other)
public ClusterSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ClusterSelector.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
putAllClusterLabels(Map<String,String> values)
public ClusterSelector.Builder putAllClusterLabels(Map<String,String> values)
Required. The cluster labels. Cluster must have all labels
to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
putClusterLabels(String key, String value)
public ClusterSelector.Builder putClusterLabels(String key, String value)
Required. The cluster labels. Cluster must have all labels
to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
removeClusterLabels(String key)
public ClusterSelector.Builder removeClusterLabels(String key)
Required. The cluster labels. Cluster must have all labels
to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
key |
String
|
setZone(String value)
public ClusterSelector.Builder setZone(String value)
Optional. The zone where workflow process executes. This parameter does not
affect the selection of the cluster.
If unspecified, the zone of the first cluster matching the selector
is used.
string zone = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
value |
String
The zone to set.
|
setZoneBytes(ByteString value)
public ClusterSelector.Builder setZoneBytes(ByteString value)
Optional. The zone where workflow process executes. This parameter does not
affect the selection of the cluster.
If unspecified, the zone of the first cluster matching the selector
is used.
string zone = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for zone to set.
|