public static final class ClusterSelector.Builder extends GeneratedMessageV3.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.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ClusterSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ClusterSelector build()
buildPartial()
public ClusterSelector buildPartial()
clear()
public ClusterSelector.Builder clear()
Overrides
clearClusterLabels()
public ClusterSelector.Builder clearClusterLabels()
clearField(Descriptors.FieldDescriptor field)
public ClusterSelector.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ClusterSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clone()
public ClusterSelector.Builder clone()
Overrides
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()
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];
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
|
getDefaultInstanceForType()
public ClusterSelector getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableClusterLabels()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClusterSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public ClusterSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClusterSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ClusterSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.
|