Class JobPlacement.Builder

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

    public static final class JobPlacement.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<JobPlacement.Builder>
    implements JobPlacementOrBuilder
     Dataproc job config.
     
    Protobuf type google.cloud.dataproc.v1.JobPlacement
    • 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<JobPlacement.Builder>
      • internalGetMutableMapField

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

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

        public JobPlacement.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<JobPlacement.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<JobPlacement.Builder>
      • getDefaultInstanceForType

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

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

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

        public JobPlacement.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<JobPlacement.Builder>
      • setField

        public JobPlacement.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<JobPlacement.Builder>
      • clearField

        public JobPlacement.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<JobPlacement.Builder>
      • clearOneof

        public JobPlacement.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<JobPlacement.Builder>
      • setRepeatedField

        public JobPlacement.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<JobPlacement.Builder>
      • addRepeatedField

        public JobPlacement.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<JobPlacement.Builder>
      • mergeFrom

        public JobPlacement.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<JobPlacement.Builder>
      • isInitialized

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

        public JobPlacement.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<JobPlacement.Builder>
        Throws:
        IOException
      • getClusterName

        public String getClusterName()
         Required. The name of the cluster where the job will be submitted.
         
        string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getClusterName in interface JobPlacementOrBuilder
        Returns:
        The clusterName.
      • getClusterNameBytes

        public com.google.protobuf.ByteString getClusterNameBytes()
         Required. The name of the cluster where the job will be submitted.
         
        string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getClusterNameBytes in interface JobPlacementOrBuilder
        Returns:
        The bytes for clusterName.
      • setClusterName

        public JobPlacement.Builder setClusterName​(String value)
         Required. The name of the cluster where the job will be submitted.
         
        string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The clusterName to set.
        Returns:
        This builder for chaining.
      • clearClusterName

        public JobPlacement.Builder clearClusterName()
         Required. The name of the cluster where the job will be submitted.
         
        string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setClusterNameBytes

        public JobPlacement.Builder setClusterNameBytes​(com.google.protobuf.ByteString value)
         Required. The name of the cluster where the job will be submitted.
         
        string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for clusterName to set.
        Returns:
        This builder for chaining.
      • getClusterUuid

        public String getClusterUuid()
         Output only. A cluster UUID generated by the Dataproc service when
         the job is submitted.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterUuid in interface JobPlacementOrBuilder
        Returns:
        The clusterUuid.
      • getClusterUuidBytes

        public com.google.protobuf.ByteString getClusterUuidBytes()
         Output only. A cluster UUID generated by the Dataproc service when
         the job is submitted.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterUuidBytes in interface JobPlacementOrBuilder
        Returns:
        The bytes for clusterUuid.
      • setClusterUuid

        public JobPlacement.Builder setClusterUuid​(String value)
         Output only. A cluster UUID generated by the Dataproc service when
         the job is submitted.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The clusterUuid to set.
        Returns:
        This builder for chaining.
      • clearClusterUuid

        public JobPlacement.Builder clearClusterUuid()
         Output only. A cluster UUID generated by the Dataproc service when
         the job is submitted.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setClusterUuidBytes

        public JobPlacement.Builder setClusterUuidBytes​(com.google.protobuf.ByteString value)
         Output only. A cluster UUID generated by the Dataproc service when
         the job is submitted.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for clusterUuid to set.
        Returns:
        This builder for chaining.
      • getClusterLabelsCount

        public int getClusterLabelsCount()
        Description copied from interface: JobPlacementOrBuilder
         Optional. Cluster labels to identify a cluster where the job will be
         submitted.
         
        map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getClusterLabelsCount in interface JobPlacementOrBuilder
      • containsClusterLabels

        public boolean containsClusterLabels​(String key)
         Optional. Cluster labels to identify a cluster where the job will be
         submitted.
         
        map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsClusterLabels in interface JobPlacementOrBuilder
      • getClusterLabelsMap

        public Map<String,​String> getClusterLabelsMap()
         Optional. Cluster labels to identify a cluster where the job will be
         submitted.
         
        map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getClusterLabelsMap in interface JobPlacementOrBuilder
      • getClusterLabelsOrDefault

        public String getClusterLabelsOrDefault​(String key,
                                                String defaultValue)
         Optional. Cluster labels to identify a cluster where the job will be
         submitted.
         
        map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getClusterLabelsOrDefault in interface JobPlacementOrBuilder
      • getClusterLabelsOrThrow

        public String getClusterLabelsOrThrow​(String key)
         Optional. Cluster labels to identify a cluster where the job will be
         submitted.
         
        map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getClusterLabelsOrThrow in interface JobPlacementOrBuilder
      • removeClusterLabels

        public JobPlacement.Builder removeClusterLabels​(String key)
         Optional. Cluster labels to identify a cluster where the job will be
         submitted.
         
        map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableClusterLabels

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

        public JobPlacement.Builder putClusterLabels​(String key,
                                                     String value)
         Optional. Cluster labels to identify a cluster where the job will be
         submitted.
         
        map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      • putAllClusterLabels

        public JobPlacement.Builder putAllClusterLabels​(Map<String,​String> values)
         Optional. Cluster labels to identify a cluster where the job will be
         submitted.
         
        map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final JobPlacement.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<JobPlacement.Builder>
      • mergeUnknownFields

        public final JobPlacement.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<JobPlacement.Builder>