Class CreateClusterRequest.Builder

    • Method Detail

      • getDescriptor

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

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

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

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

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

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

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

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

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

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

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

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

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

        public CreateClusterRequest.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<CreateClusterRequest.Builder>
        Throws:
        IOException
      • getProjectId

        public String getProjectId()
         Required. The ID of the Google Cloud Platform project that the cluster
         belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectId in interface CreateClusterRequestOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Required. The ID of the Google Cloud Platform project that the cluster
         belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectIdBytes in interface CreateClusterRequestOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public CreateClusterRequest.Builder setProjectId​(String value)
         Required. The ID of the Google Cloud Platform project that the cluster
         belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public CreateClusterRequest.Builder clearProjectId()
         Required. The ID of the Google Cloud Platform project that the cluster
         belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public CreateClusterRequest.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the Google Cloud Platform project that the cluster
         belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getRegion

        public String getRegion()
         Required. The Dataproc region in which to handle the request.
         
        string region = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRegion in interface CreateClusterRequestOrBuilder
        Returns:
        The region.
      • getRegionBytes

        public com.google.protobuf.ByteString getRegionBytes()
         Required. The Dataproc region in which to handle the request.
         
        string region = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRegionBytes in interface CreateClusterRequestOrBuilder
        Returns:
        The bytes for region.
      • setRegion

        public CreateClusterRequest.Builder setRegion​(String value)
         Required. The Dataproc region in which to handle the request.
         
        string region = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public CreateClusterRequest.Builder clearRegion()
         Required. The Dataproc region in which to handle the request.
         
        string region = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setRegionBytes

        public CreateClusterRequest.Builder setRegionBytes​(com.google.protobuf.ByteString value)
         Required. The Dataproc region in which to handle the request.
         
        string region = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • hasCluster

        public boolean hasCluster()
         Required. The cluster to create.
         
        .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasCluster in interface CreateClusterRequestOrBuilder
        Returns:
        Whether the cluster field is set.
      • getCluster

        public Cluster getCluster()
         Required. The cluster to create.
         
        .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCluster in interface CreateClusterRequestOrBuilder
        Returns:
        The cluster.
      • setCluster

        public CreateClusterRequest.Builder setCluster​(Cluster value)
         Required. The cluster to create.
         
        .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • setCluster

        public CreateClusterRequest.Builder setCluster​(Cluster.Builder builderForValue)
         Required. The cluster to create.
         
        .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeCluster

        public CreateClusterRequest.Builder mergeCluster​(Cluster value)
         Required. The cluster to create.
         
        .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearCluster

        public CreateClusterRequest.Builder clearCluster()
         Required. The cluster to create.
         
        .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • getClusterBuilder

        public Cluster.Builder getClusterBuilder()
         Required. The cluster to create.
         
        .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • getRequestId

        public String getRequestId()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestId in interface CreateClusterRequestOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestIdBytes in interface CreateClusterRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public CreateClusterRequest.Builder setRequestId​(String value)
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public CreateClusterRequest.Builder clearRequestId()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public CreateClusterRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • getActionOnFailedPrimaryWorkersValue

        public int getActionOnFailedPrimaryWorkersValue()
         Optional. Failure action when primary worker creation fails.
         
        .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getActionOnFailedPrimaryWorkersValue in interface CreateClusterRequestOrBuilder
        Returns:
        The enum numeric value on the wire for actionOnFailedPrimaryWorkers.
      • setActionOnFailedPrimaryWorkersValue

        public CreateClusterRequest.Builder setActionOnFailedPrimaryWorkersValue​(int value)
         Optional. Failure action when primary worker creation fails.
         
        .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for actionOnFailedPrimaryWorkers to set.
        Returns:
        This builder for chaining.
      • getActionOnFailedPrimaryWorkers

        public FailureAction getActionOnFailedPrimaryWorkers()
         Optional. Failure action when primary worker creation fails.
         
        .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getActionOnFailedPrimaryWorkers in interface CreateClusterRequestOrBuilder
        Returns:
        The actionOnFailedPrimaryWorkers.
      • setActionOnFailedPrimaryWorkers

        public CreateClusterRequest.Builder setActionOnFailedPrimaryWorkers​(FailureAction value)
         Optional. Failure action when primary worker creation fails.
         
        .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The actionOnFailedPrimaryWorkers to set.
        Returns:
        This builder for chaining.
      • clearActionOnFailedPrimaryWorkers

        public CreateClusterRequest.Builder clearActionOnFailedPrimaryWorkers()
         Optional. Failure action when primary worker creation fails.
         
        .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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