Class SpecialistPool.Builder (3.42.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPendingDataLabelingJobs(Iterable<String> values)

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

Parameter
Name Description
values Iterable<String>

The pendingDataLabelingJobs to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

addAllSpecialistManagerEmails(Iterable<String> values)

public SpecialistPool.Builder addAllSpecialistManagerEmails(Iterable<String> values)

The email addresses of the managers in the SpecialistPool.

repeated string specialist_manager_emails = 4;

Parameter
Name Description
values Iterable<String>

The specialistManagerEmails to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

addAllSpecialistWorkerEmails(Iterable<String> values)

public SpecialistPool.Builder addAllSpecialistWorkerEmails(Iterable<String> values)

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Parameter
Name Description
values Iterable<String>

The specialistWorkerEmails to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

addPendingDataLabelingJobs(String value)

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

Parameter
Name Description
value String

The pendingDataLabelingJobs to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

addPendingDataLabelingJobsBytes(ByteString value)

public SpecialistPool.Builder addPendingDataLabelingJobsBytes(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];

Parameter
Name Description
value ByteString

The bytes of the pendingDataLabelingJobs to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SpecialistPool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SpecialistPool.Builder
Overrides

addSpecialistManagerEmails(String value)

public SpecialistPool.Builder addSpecialistManagerEmails(String value)

The email addresses of the managers in the SpecialistPool.

repeated string specialist_manager_emails = 4;

Parameter
Name Description
value String

The specialistManagerEmails to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

addSpecialistManagerEmailsBytes(ByteString value)

public SpecialistPool.Builder addSpecialistManagerEmailsBytes(ByteString value)

The email addresses of the managers in the SpecialistPool.

repeated string specialist_manager_emails = 4;

Parameter
Name Description
value ByteString

The bytes of the specialistManagerEmails to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

addSpecialistWorkerEmails(String value)

public SpecialistPool.Builder addSpecialistWorkerEmails(String value)

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Parameter
Name Description
value String

The specialistWorkerEmails to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

addSpecialistWorkerEmailsBytes(ByteString value)

public SpecialistPool.Builder addSpecialistWorkerEmailsBytes(ByteString value)

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Parameter
Name Description
value ByteString

The bytes of the specialistWorkerEmails to add.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

build()

public SpecialistPool build()
Returns
Type Description
SpecialistPool

buildPartial()

public SpecialistPool buildPartial()
Returns
Type Description
SpecialistPool

clear()

public SpecialistPool.Builder clear()
Returns
Type Description
SpecialistPool.Builder
Overrides

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
Type Description
SpecialistPool.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SpecialistPool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SpecialistPool.Builder
Overrides

clearName()

public SpecialistPool.Builder clearName()

Required. The resource name of the SpecialistPool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SpecialistPool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SpecialistPool.Builder
Overrides

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
Type Description
SpecialistPool.Builder

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
Type Description
SpecialistPool.Builder

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
Type Description
SpecialistPool.Builder

This builder for chaining.

clearSpecialistWorkerEmails()

public SpecialistPool.Builder clearSpecialistWorkerEmails()

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

clone()

public SpecialistPool.Builder clone()
Returns
Type Description
SpecialistPool.Builder
Overrides

getDefaultInstanceForType()

public SpecialistPool getDefaultInstanceForType()
Returns
Type Description
SpecialistPool

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Required. The resource name of the SpecialistPool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the SpecialistPool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getPendingDataLabelingJobs(int index)

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pendingDataLabelingJobs at the given index.

getPendingDataLabelingJobsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pendingDataLabelingJobs at the given index.

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

Returns
Type Description
int

The count of pendingDataLabelingJobs.

getPendingDataLabelingJobsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the pendingDataLabelingJobs.

getSpecialistManagerEmails(int index)

public String getSpecialistManagerEmails(int index)

The email addresses of the managers in the SpecialistPool.

repeated string specialist_manager_emails = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The specialistManagerEmails at the given index.

getSpecialistManagerEmailsBytes(int index)

public ByteString getSpecialistManagerEmailsBytes(int index)

The email addresses of the managers in the SpecialistPool.

repeated string specialist_manager_emails = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the specialistManagerEmails at the given index.

getSpecialistManagerEmailsCount()

public int getSpecialistManagerEmailsCount()

The email addresses of the managers in the SpecialistPool.

repeated string specialist_manager_emails = 4;

Returns
Type Description
int

The count of specialistManagerEmails.

getSpecialistManagerEmailsList()

public ProtocolStringList getSpecialistManagerEmailsList()

The email addresses of the managers in the SpecialistPool.

repeated string specialist_manager_emails = 4;

Returns
Type Description
ProtocolStringList

A list containing the specialistManagerEmails.

getSpecialistManagersCount()

public int getSpecialistManagersCount()

Output only. The number of managers in this SpecialistPool.

int32 specialist_managers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The specialistManagersCount.

getSpecialistWorkerEmails(int index)

public String getSpecialistWorkerEmails(int index)

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The specialistWorkerEmails at the given index.

getSpecialistWorkerEmailsBytes(int index)

public ByteString getSpecialistWorkerEmailsBytes(int index)

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the specialistWorkerEmails at the given index.

getSpecialistWorkerEmailsCount()

public int getSpecialistWorkerEmailsCount()

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Returns
Type Description
int

The count of specialistWorkerEmails.

getSpecialistWorkerEmailsList()

public ProtocolStringList getSpecialistWorkerEmailsList()

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Returns
Type Description
ProtocolStringList

A list containing the specialistWorkerEmails.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SpecialistPool other)

public SpecialistPool.Builder mergeFrom(SpecialistPool other)
Parameter
Name Description
other SpecialistPool
Returns
Type Description
SpecialistPool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SpecialistPool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpecialistPool.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SpecialistPool.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SpecialistPool.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpecialistPool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SpecialistPool.Builder
Overrides

setDisplayName(String value)

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SpecialistPool.Builder setDisplayNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SpecialistPool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SpecialistPool.Builder
Overrides

setName(String value)

public SpecialistPool.Builder setName(String value)

Required. The resource name of the SpecialistPool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SpecialistPool.Builder setNameBytes(ByteString value)

Required. The resource name of the SpecialistPool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

setPendingDataLabelingJobs(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The pendingDataLabelingJobs to set.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SpecialistPool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SpecialistPool.Builder
Overrides

setSpecialistManagerEmails(int index, String value)

public SpecialistPool.Builder setSpecialistManagerEmails(int index, String value)

The email addresses of the managers in the SpecialistPool.

repeated string specialist_manager_emails = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The specialistManagerEmails to set.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

setSpecialistManagersCount(int value)

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

Parameter
Name Description
value int

The specialistManagersCount to set.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

setSpecialistWorkerEmails(int index, String value)

public SpecialistPool.Builder setSpecialistWorkerEmails(int index, String value)

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Parameters
Name Description
index int

The index to set the value at.

value String

The specialistWorkerEmails to set.

Returns
Type Description
SpecialistPool.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SpecialistPool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SpecialistPool.Builder
Overrides