public static final class ClusterSelector.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder> implements ClusterSelectorOrBuilder
A selector that chooses target cluster for jobs based on metadata.Protobuf type
google.cloud.dataproc.v1.ClusterSelector| Modifier and Type | Method and Description |
|---|---|
ClusterSelector.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClusterSelector |
build() |
ClusterSelector |
buildPartial() |
ClusterSelector.Builder |
clear() |
ClusterSelector.Builder |
clearClusterLabels() |
ClusterSelector.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ClusterSelector.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ClusterSelector.Builder |
clearZone()
Optional.
|
ClusterSelector.Builder |
clone() |
boolean |
containsClusterLabels(String key)
Required.
|
Map<String,String> |
getClusterLabels()
Deprecated.
|
int |
getClusterLabelsCount()
Required.
|
Map<String,String> |
getClusterLabelsMap()
Required.
|
String |
getClusterLabelsOrDefault(String key,
String defaultValue)
Required.
|
String |
getClusterLabelsOrThrow(String key)
Required.
|
ClusterSelector |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMutableClusterLabels()
Deprecated.
|
String |
getZone()
Optional.
|
com.google.protobuf.ByteString |
getZoneBytes()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
ClusterSelector.Builder |
mergeFrom(ClusterSelector other) |
ClusterSelector.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClusterSelector.Builder |
mergeFrom(com.google.protobuf.Message other) |
ClusterSelector.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ClusterSelector.Builder |
putAllClusterLabels(Map<String,String> values)
Required.
|
ClusterSelector.Builder |
putClusterLabels(String key,
String value)
Required.
|
ClusterSelector.Builder |
removeClusterLabels(String key)
Required.
|
ClusterSelector.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClusterSelector.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ClusterSelector.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ClusterSelector.Builder |
setZone(String value)
Optional.
|
ClusterSelector.Builder |
setZoneBytes(com.google.protobuf.ByteString value)
Optional.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ClusterSelector build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ClusterSelector buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ClusterSelector.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClusterSelector.Builder>public ClusterSelector.Builder mergeFrom(ClusterSelector other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public ClusterSelector.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClusterSelector.Builder>IOExceptionpublic 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;getZone in interface ClusterSelectorOrBuilderpublic com.google.protobuf.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;getZoneBytes in interface ClusterSelectorOrBuilderpublic 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;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;public ClusterSelector.Builder setZoneBytes(com.google.protobuf.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;public int getClusterLabelsCount()
ClusterSelectorOrBuilderRequired. The cluster labels. Cluster must have all labels to match.
map<string, string> cluster_labels = 2;getClusterLabelsCount in interface ClusterSelectorOrBuilderpublic boolean containsClusterLabels(String key)
Required. The cluster labels. Cluster must have all labels to match.
map<string, string> cluster_labels = 2;containsClusterLabels in interface ClusterSelectorOrBuilder@Deprecated public Map<String,String> getClusterLabels()
getClusterLabelsMap() instead.getClusterLabels in interface ClusterSelectorOrBuilderpublic Map<String,String> getClusterLabelsMap()
Required. The cluster labels. Cluster must have all labels to match.
map<string, string> cluster_labels = 2;getClusterLabelsMap in interface ClusterSelectorOrBuilderpublic String getClusterLabelsOrDefault(String key, String defaultValue)
Required. The cluster labels. Cluster must have all labels to match.
map<string, string> cluster_labels = 2;getClusterLabelsOrDefault in interface ClusterSelectorOrBuilderpublic String getClusterLabelsOrThrow(String key)
Required. The cluster labels. Cluster must have all labels to match.
map<string, string> cluster_labels = 2;getClusterLabelsOrThrow in interface ClusterSelectorOrBuilderpublic 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;@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;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;public final ClusterSelector.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>public final ClusterSelector.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>Copyright © 2019 Google LLC. All rights reserved.