Class SpecialistPool.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SpecialistPool.Builder>
com.google.cloud.aiplatform.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public SpecialistPool.Builder mergeFrom(SpecialistPool other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.