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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ClusterSelector build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ClusterSelector buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ClusterSelector.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder mergeFrom(ClusterSelector other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public ClusterSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ClusterSelector.Builder>
IOException
public String 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];
getZone
in interface ClusterSelectorOrBuilder
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];
getZoneBytes
in interface ClusterSelectorOrBuilder
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];
value
- The zone to set.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];
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];
value
- The bytes for zone to set.public int getClusterLabelsCount()
ClusterSelectorOrBuilder
Required. The cluster labels. Cluster must have all labels to match.
map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
getClusterLabelsCount
in interface ClusterSelectorOrBuilder
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];
containsClusterLabels
in interface ClusterSelectorOrBuilder
@Deprecated public Map<String,String> getClusterLabels()
getClusterLabelsMap()
instead.getClusterLabels
in interface ClusterSelectorOrBuilder
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];
getClusterLabelsMap
in interface ClusterSelectorOrBuilder
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];
getClusterLabelsOrDefault
in interface ClusterSelectorOrBuilder
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];
getClusterLabelsOrThrow
in interface ClusterSelectorOrBuilder
public ClusterSelector.Builder clearClusterLabels()
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];
@Deprecated public Map<String,String> getMutableClusterLabels()
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];
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];
public final ClusterSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
public final ClusterSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ClusterSelector.Builder>
Copyright © 2022 Google LLC. All rights reserved.