Class SpecialistPool.Builder (3.12.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.v1beta1.SpecialistPool

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The pendingDataLabelingJobs to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The specialistManagerEmails to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The specialistWorkerEmails to add.

Returns
TypeDescription
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
NameDescription
valueString

The pendingDataLabelingJobs to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the pendingDataLabelingJobs to add.

Returns
TypeDescription
SpecialistPool.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SpecialistPool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The specialistManagerEmails to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the specialistManagerEmails to add.

Returns
TypeDescription
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
NameDescription
valueString

The specialistWorkerEmails to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the specialistWorkerEmails to add.

Returns
TypeDescription
SpecialistPool.Builder

This builder for chaining.

build()

public SpecialistPool build()
Returns
TypeDescription
SpecialistPool

buildPartial()

public SpecialistPool buildPartial()
Returns
TypeDescription
SpecialistPool

clear()

public SpecialistPool.Builder clear()
Returns
TypeDescription
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
TypeDescription
SpecialistPool.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SpecialistPool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SpecialistPool.Builder
Overrides

clearName()

public SpecialistPool.Builder clearName()

Required. The resource name of the SpecialistPool.

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

Returns
TypeDescription
SpecialistPool.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SpecialistPool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SpecialistPool.Builder

This builder for chaining.

clone()

public SpecialistPool.Builder clone()
Returns
TypeDescription
SpecialistPool.Builder
Overrides

getDefaultInstanceForType()

public SpecialistPool getDefaultInstanceForType()
Returns
TypeDescription
SpecialistPool

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the SpecialistPool.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of specialistWorkerEmails.

getSpecialistWorkerEmailsList()

public ProtocolStringList getSpecialistWorkerEmailsList()

The email addresses of workers in the SpecialistPool.

repeated string specialist_worker_emails = 7;

Returns
TypeDescription
ProtocolStringList

A list containing the specialistWorkerEmails.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SpecialistPool other)

public SpecialistPool.Builder mergeFrom(SpecialistPool other)
Parameter
NameDescription
otherSpecialistPool
Returns
TypeDescription
SpecialistPool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SpecialistPool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SpecialistPool.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SpecialistPool.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SpecialistPool.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpecialistPool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
SpecialistPool.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SpecialistPool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The pendingDataLabelingJobs to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The specialistManagerEmails to set.

Returns
TypeDescription
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
NameDescription
valueint

The specialistManagersCount to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The specialistWorkerEmails to set.

Returns
TypeDescription
SpecialistPool.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SpecialistPool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SpecialistPool.Builder
Overrides