Class ClusterSelector.Builder

  • All Implemented Interfaces:
    ClusterSelectorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ClusterSelector

    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • clear

        public ClusterSelector.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • getDefaultInstanceForType

        public ClusterSelector getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ClusterSelector build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ClusterSelector buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ClusterSelector.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • setField

        public ClusterSelector.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • clearField

        public ClusterSelector.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • clearOneof

        public ClusterSelector.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • setRepeatedField

        public ClusterSelector.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • addRepeatedField

        public ClusterSelector.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • mergeFrom

        public ClusterSelector.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClusterSelector.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • mergeFrom

        public ClusterSelector.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClusterSelector.Builder>
        Throws:
        IOException
      • getZone

        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];
        Specified by:
        getZone in interface ClusterSelectorOrBuilder
        Returns:
        The zone.
      • getZoneBytes

        public 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 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getZoneBytes in interface ClusterSelectorOrBuilder
        Returns:
        The bytes for zone.
      • setZone

        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];
        Parameters:
        value - The zone to set.
        Returns:
        This builder for chaining.
      • 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];
        Returns:
        This builder for chaining.
      • setZoneBytes

        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 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for zone to set.
        Returns:
        This builder for chaining.
      • getClusterLabelsCount

        public int getClusterLabelsCount()
        Description copied from interface: ClusterSelectorOrBuilder
         Required. The cluster labels. Cluster must have all labels
         to match.
         
        map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getClusterLabelsCount in interface ClusterSelectorOrBuilder
      • containsClusterLabels

        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];
        Specified by:
        containsClusterLabels in interface ClusterSelectorOrBuilder
      • 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];
        Specified by:
        getClusterLabelsMap in interface ClusterSelectorOrBuilder
      • getClusterLabelsOrDefault

        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];
        Specified by:
        getClusterLabelsOrDefault in interface ClusterSelectorOrBuilder
      • getClusterLabelsOrThrow

        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];
        Specified by:
        getClusterLabelsOrThrow in interface ClusterSelectorOrBuilder
      • removeClusterLabels

        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];
      • getMutableClusterLabels

        @Deprecated
        public Map<String,​String> getMutableClusterLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putClusterLabels

        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];
      • putAllClusterLabels

        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];
      • setUnknownFields

        public final ClusterSelector.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>
      • mergeUnknownFields

        public final ClusterSelector.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterSelector.Builder>