Class SpecialistPool.Builder

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

    public static final class SpecialistPool.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SpecialistPool.Builder>
    implements SpecialistPoolOrBuilder
     SpecialistPool represents customers' own workforce to work on their data
     labeling jobs. It includes a group of specialist managers and workers.
     Managers are responsible for managing the workers in this pool as well as
     customers' data labeling jobs associated with this pool. Customers create
     specialist pool as well as start data labeling jobs on Cloud, managers and
     workers handle the jobs using CrowdCompute console.
     
    Protobuf type google.cloud.aiplatform.v1.SpecialistPool
    • 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<SpecialistPool.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public SpecialistPool.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<SpecialistPool.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The resource name of the SpecialistPool.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface SpecialistPoolOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The resource name of the SpecialistPool.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface SpecialistPoolOrBuilder
        Returns:
        The bytes for name.
      • setName

        public SpecialistPool.Builder setName​(String value)
         Required. The resource name of the SpecialistPool.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public SpecialistPool.Builder clearName()
         Required. The resource name of the SpecialistPool.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public SpecialistPool.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The resource name of the SpecialistPool.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         Required. The user-defined name of the SpecialistPool.
         The name can be up to 128 characters long and can consist of any UTF-8
         characters.
         This field should be unique on project-level.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayName in interface SpecialistPoolOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Required. The user-defined name of the SpecialistPool.
         The name can be up to 128 characters long and can consist of any UTF-8
         characters.
         This field should be unique on project-level.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayNameBytes in interface SpecialistPoolOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public SpecialistPool.Builder setDisplayName​(String value)
         Required. The user-defined name of the SpecialistPool.
         The name can be up to 128 characters long and can consist of any UTF-8
         characters.
         This field should be unique on project-level.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public SpecialistPool.Builder clearDisplayName()
         Required. The user-defined name of the SpecialistPool.
         The name can be up to 128 characters long and can consist of any UTF-8
         characters.
         This field should be unique on project-level.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public SpecialistPool.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Required. The user-defined name of the SpecialistPool.
         The name can be up to 128 characters long and can consist of any UTF-8
         characters.
         This field should be unique on project-level.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getSpecialistManagersCount

        public int getSpecialistManagersCount()
         Output only. The number of managers in this SpecialistPool.
         
        int32 specialist_managers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSpecialistManagersCount in interface SpecialistPoolOrBuilder
        Returns:
        The specialistManagersCount.
      • setSpecialistManagersCount

        public SpecialistPool.Builder setSpecialistManagersCount​(int value)
         Output only. The number of managers in this SpecialistPool.
         
        int32 specialist_managers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The specialistManagersCount to set.
        Returns:
        This builder for chaining.
      • clearSpecialistManagersCount

        public SpecialistPool.Builder clearSpecialistManagersCount()
         Output only. The number of managers in this SpecialistPool.
         
        int32 specialist_managers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getSpecialistManagerEmailsList

        public com.google.protobuf.ProtocolStringList getSpecialistManagerEmailsList()
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Specified by:
        getSpecialistManagerEmailsList in interface SpecialistPoolOrBuilder
        Returns:
        A list containing the specialistManagerEmails.
      • getSpecialistManagerEmailsCount

        public int getSpecialistManagerEmailsCount()
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Specified by:
        getSpecialistManagerEmailsCount in interface SpecialistPoolOrBuilder
        Returns:
        The count of specialistManagerEmails.
      • getSpecialistManagerEmails

        public String getSpecialistManagerEmails​(int index)
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Specified by:
        getSpecialistManagerEmails in interface SpecialistPoolOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The specialistManagerEmails at the given index.
      • getSpecialistManagerEmailsBytes

        public com.google.protobuf.ByteString getSpecialistManagerEmailsBytes​(int index)
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Specified by:
        getSpecialistManagerEmailsBytes in interface SpecialistPoolOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the specialistManagerEmails at the given index.
      • setSpecialistManagerEmails

        public SpecialistPool.Builder setSpecialistManagerEmails​(int index,
                                                                 String value)
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Parameters:
        index - The index to set the value at.
        value - The specialistManagerEmails to set.
        Returns:
        This builder for chaining.
      • addSpecialistManagerEmails

        public SpecialistPool.Builder addSpecialistManagerEmails​(String value)
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Parameters:
        value - The specialistManagerEmails to add.
        Returns:
        This builder for chaining.
      • addAllSpecialistManagerEmails

        public SpecialistPool.Builder addAllSpecialistManagerEmails​(Iterable<String> values)
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Parameters:
        values - The specialistManagerEmails to add.
        Returns:
        This builder for chaining.
      • clearSpecialistManagerEmails

        public SpecialistPool.Builder clearSpecialistManagerEmails()
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Returns:
        This builder for chaining.
      • addSpecialistManagerEmailsBytes

        public SpecialistPool.Builder addSpecialistManagerEmailsBytes​(com.google.protobuf.ByteString value)
         The email addresses of the managers in the SpecialistPool.
         
        repeated string specialist_manager_emails = 4;
        Parameters:
        value - The bytes of the specialistManagerEmails to add.
        Returns:
        This builder for chaining.
      • getPendingDataLabelingJobsList

        public com.google.protobuf.ProtocolStringList getPendingDataLabelingJobsList()
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPendingDataLabelingJobsList in interface SpecialistPoolOrBuilder
        Returns:
        A list containing the pendingDataLabelingJobs.
      • getPendingDataLabelingJobsCount

        public int getPendingDataLabelingJobsCount()
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPendingDataLabelingJobsCount in interface SpecialistPoolOrBuilder
        Returns:
        The count of pendingDataLabelingJobs.
      • getPendingDataLabelingJobs

        public String getPendingDataLabelingJobs​(int index)
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPendingDataLabelingJobs in interface SpecialistPoolOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The pendingDataLabelingJobs at the given index.
      • getPendingDataLabelingJobsBytes

        public com.google.protobuf.ByteString getPendingDataLabelingJobsBytes​(int index)
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPendingDataLabelingJobsBytes in interface SpecialistPoolOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the pendingDataLabelingJobs at the given index.
      • setPendingDataLabelingJobs

        public SpecialistPool.Builder setPendingDataLabelingJobs​(int index,
                                                                 String value)
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The pendingDataLabelingJobs to set.
        Returns:
        This builder for chaining.
      • addPendingDataLabelingJobs

        public SpecialistPool.Builder addPendingDataLabelingJobs​(String value)
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The pendingDataLabelingJobs to add.
        Returns:
        This builder for chaining.
      • addAllPendingDataLabelingJobs

        public SpecialistPool.Builder addAllPendingDataLabelingJobs​(Iterable<String> values)
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The pendingDataLabelingJobs to add.
        Returns:
        This builder for chaining.
      • clearPendingDataLabelingJobs

        public SpecialistPool.Builder clearPendingDataLabelingJobs()
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • addPendingDataLabelingJobsBytes

        public SpecialistPool.Builder addPendingDataLabelingJobsBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the pending data labeling jobs.
         
        repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes of the pendingDataLabelingJobs to add.
        Returns:
        This builder for chaining.
      • getSpecialistWorkerEmailsList

        public com.google.protobuf.ProtocolStringList getSpecialistWorkerEmailsList()
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Specified by:
        getSpecialistWorkerEmailsList in interface SpecialistPoolOrBuilder
        Returns:
        A list containing the specialistWorkerEmails.
      • getSpecialistWorkerEmailsCount

        public int getSpecialistWorkerEmailsCount()
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Specified by:
        getSpecialistWorkerEmailsCount in interface SpecialistPoolOrBuilder
        Returns:
        The count of specialistWorkerEmails.
      • getSpecialistWorkerEmails

        public String getSpecialistWorkerEmails​(int index)
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Specified by:
        getSpecialistWorkerEmails in interface SpecialistPoolOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The specialistWorkerEmails at the given index.
      • getSpecialistWorkerEmailsBytes

        public com.google.protobuf.ByteString getSpecialistWorkerEmailsBytes​(int index)
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Specified by:
        getSpecialistWorkerEmailsBytes in interface SpecialistPoolOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the specialistWorkerEmails at the given index.
      • setSpecialistWorkerEmails

        public SpecialistPool.Builder setSpecialistWorkerEmails​(int index,
                                                                String value)
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Parameters:
        index - The index to set the value at.
        value - The specialistWorkerEmails to set.
        Returns:
        This builder for chaining.
      • addSpecialistWorkerEmails

        public SpecialistPool.Builder addSpecialistWorkerEmails​(String value)
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Parameters:
        value - The specialistWorkerEmails to add.
        Returns:
        This builder for chaining.
      • addAllSpecialistWorkerEmails

        public SpecialistPool.Builder addAllSpecialistWorkerEmails​(Iterable<String> values)
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Parameters:
        values - The specialistWorkerEmails to add.
        Returns:
        This builder for chaining.
      • clearSpecialistWorkerEmails

        public SpecialistPool.Builder clearSpecialistWorkerEmails()
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Returns:
        This builder for chaining.
      • addSpecialistWorkerEmailsBytes

        public SpecialistPool.Builder addSpecialistWorkerEmailsBytes​(com.google.protobuf.ByteString value)
         The email addresses of workers in the SpecialistPool.
         
        repeated string specialist_worker_emails = 7;
        Parameters:
        value - The bytes of the specialistWorkerEmails to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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