• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/aiplatform/v1/specialist_pool.proto
18 
19 package com.google.cloud.aiplatform.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * SpecialistPool represents customers' own workforce to work on their data
26  * labeling jobs. It includes a group of specialist managers and workers.
27  * Managers are responsible for managing the workers in this pool as well as
28  * customers' data labeling jobs associated with this pool. Customers create
29  * specialist pool as well as start data labeling jobs on Cloud, managers and
30  * workers handle the jobs using CrowdCompute console.
31  * </pre>
32  *
33  * Protobuf type {@code google.cloud.aiplatform.v1.SpecialistPool}
34  */
35 public final class SpecialistPool extends com.google.protobuf.GeneratedMessageV3
36     implements
37     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SpecialistPool)
38     SpecialistPoolOrBuilder {
39   private static final long serialVersionUID = 0L;
40   // Use SpecialistPool.newBuilder() to construct.
SpecialistPool(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)41   private SpecialistPool(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
42     super(builder);
43   }
44 
SpecialistPool()45   private SpecialistPool() {
46     name_ = "";
47     displayName_ = "";
48     specialistManagerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY;
49     pendingDataLabelingJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
50     specialistWorkerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY;
51   }
52 
53   @java.lang.Override
54   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)55   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
56     return new SpecialistPool();
57   }
58 
59   @java.lang.Override
getUnknownFields()60   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
61     return this.unknownFields;
62   }
63 
getDescriptor()64   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
65     return com.google.cloud.aiplatform.v1.SpecialistPoolProto
66         .internal_static_google_cloud_aiplatform_v1_SpecialistPool_descriptor;
67   }
68 
69   @java.lang.Override
70   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()71       internalGetFieldAccessorTable() {
72     return com.google.cloud.aiplatform.v1.SpecialistPoolProto
73         .internal_static_google_cloud_aiplatform_v1_SpecialistPool_fieldAccessorTable
74         .ensureFieldAccessorsInitialized(
75             com.google.cloud.aiplatform.v1.SpecialistPool.class,
76             com.google.cloud.aiplatform.v1.SpecialistPool.Builder.class);
77   }
78 
79   public static final int NAME_FIELD_NUMBER = 1;
80 
81   @SuppressWarnings("serial")
82   private volatile java.lang.Object name_ = "";
83   /**
84    *
85    *
86    * <pre>
87    * Required. The resource name of the SpecialistPool.
88    * </pre>
89    *
90    * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
91    *
92    * @return The name.
93    */
94   @java.lang.Override
getName()95   public java.lang.String getName() {
96     java.lang.Object ref = name_;
97     if (ref instanceof java.lang.String) {
98       return (java.lang.String) ref;
99     } else {
100       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
101       java.lang.String s = bs.toStringUtf8();
102       name_ = s;
103       return s;
104     }
105   }
106   /**
107    *
108    *
109    * <pre>
110    * Required. The resource name of the SpecialistPool.
111    * </pre>
112    *
113    * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
114    *
115    * @return The bytes for name.
116    */
117   @java.lang.Override
getNameBytes()118   public com.google.protobuf.ByteString getNameBytes() {
119     java.lang.Object ref = name_;
120     if (ref instanceof java.lang.String) {
121       com.google.protobuf.ByteString b =
122           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
123       name_ = b;
124       return b;
125     } else {
126       return (com.google.protobuf.ByteString) ref;
127     }
128   }
129 
130   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
131 
132   @SuppressWarnings("serial")
133   private volatile java.lang.Object displayName_ = "";
134   /**
135    *
136    *
137    * <pre>
138    * Required. The user-defined name of the SpecialistPool.
139    * The name can be up to 128 characters long and can consist of any UTF-8
140    * characters.
141    * This field should be unique on project-level.
142    * </pre>
143    *
144    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
145    *
146    * @return The displayName.
147    */
148   @java.lang.Override
getDisplayName()149   public java.lang.String getDisplayName() {
150     java.lang.Object ref = displayName_;
151     if (ref instanceof java.lang.String) {
152       return (java.lang.String) ref;
153     } else {
154       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
155       java.lang.String s = bs.toStringUtf8();
156       displayName_ = s;
157       return s;
158     }
159   }
160   /**
161    *
162    *
163    * <pre>
164    * Required. The user-defined name of the SpecialistPool.
165    * The name can be up to 128 characters long and can consist of any UTF-8
166    * characters.
167    * This field should be unique on project-level.
168    * </pre>
169    *
170    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
171    *
172    * @return The bytes for displayName.
173    */
174   @java.lang.Override
getDisplayNameBytes()175   public com.google.protobuf.ByteString getDisplayNameBytes() {
176     java.lang.Object ref = displayName_;
177     if (ref instanceof java.lang.String) {
178       com.google.protobuf.ByteString b =
179           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
180       displayName_ = b;
181       return b;
182     } else {
183       return (com.google.protobuf.ByteString) ref;
184     }
185   }
186 
187   public static final int SPECIALIST_MANAGERS_COUNT_FIELD_NUMBER = 3;
188   private int specialistManagersCount_ = 0;
189   /**
190    *
191    *
192    * <pre>
193    * Output only. The number of managers in this SpecialistPool.
194    * </pre>
195    *
196    * <code>int32 specialist_managers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
197    *
198    * @return The specialistManagersCount.
199    */
200   @java.lang.Override
getSpecialistManagersCount()201   public int getSpecialistManagersCount() {
202     return specialistManagersCount_;
203   }
204 
205   public static final int SPECIALIST_MANAGER_EMAILS_FIELD_NUMBER = 4;
206 
207   @SuppressWarnings("serial")
208   private com.google.protobuf.LazyStringList specialistManagerEmails_;
209   /**
210    *
211    *
212    * <pre>
213    * The email addresses of the managers in the SpecialistPool.
214    * </pre>
215    *
216    * <code>repeated string specialist_manager_emails = 4;</code>
217    *
218    * @return A list containing the specialistManagerEmails.
219    */
getSpecialistManagerEmailsList()220   public com.google.protobuf.ProtocolStringList getSpecialistManagerEmailsList() {
221     return specialistManagerEmails_;
222   }
223   /**
224    *
225    *
226    * <pre>
227    * The email addresses of the managers in the SpecialistPool.
228    * </pre>
229    *
230    * <code>repeated string specialist_manager_emails = 4;</code>
231    *
232    * @return The count of specialistManagerEmails.
233    */
getSpecialistManagerEmailsCount()234   public int getSpecialistManagerEmailsCount() {
235     return specialistManagerEmails_.size();
236   }
237   /**
238    *
239    *
240    * <pre>
241    * The email addresses of the managers in the SpecialistPool.
242    * </pre>
243    *
244    * <code>repeated string specialist_manager_emails = 4;</code>
245    *
246    * @param index The index of the element to return.
247    * @return The specialistManagerEmails at the given index.
248    */
getSpecialistManagerEmails(int index)249   public java.lang.String getSpecialistManagerEmails(int index) {
250     return specialistManagerEmails_.get(index);
251   }
252   /**
253    *
254    *
255    * <pre>
256    * The email addresses of the managers in the SpecialistPool.
257    * </pre>
258    *
259    * <code>repeated string specialist_manager_emails = 4;</code>
260    *
261    * @param index The index of the value to return.
262    * @return The bytes of the specialistManagerEmails at the given index.
263    */
getSpecialistManagerEmailsBytes(int index)264   public com.google.protobuf.ByteString getSpecialistManagerEmailsBytes(int index) {
265     return specialistManagerEmails_.getByteString(index);
266   }
267 
268   public static final int PENDING_DATA_LABELING_JOBS_FIELD_NUMBER = 5;
269 
270   @SuppressWarnings("serial")
271   private com.google.protobuf.LazyStringList pendingDataLabelingJobs_;
272   /**
273    *
274    *
275    * <pre>
276    * Output only. The resource name of the pending data labeling jobs.
277    * </pre>
278    *
279    * <code>
280    * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
281    * </code>
282    *
283    * @return A list containing the pendingDataLabelingJobs.
284    */
getPendingDataLabelingJobsList()285   public com.google.protobuf.ProtocolStringList getPendingDataLabelingJobsList() {
286     return pendingDataLabelingJobs_;
287   }
288   /**
289    *
290    *
291    * <pre>
292    * Output only. The resource name of the pending data labeling jobs.
293    * </pre>
294    *
295    * <code>
296    * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
297    * </code>
298    *
299    * @return The count of pendingDataLabelingJobs.
300    */
getPendingDataLabelingJobsCount()301   public int getPendingDataLabelingJobsCount() {
302     return pendingDataLabelingJobs_.size();
303   }
304   /**
305    *
306    *
307    * <pre>
308    * Output only. The resource name of the pending data labeling jobs.
309    * </pre>
310    *
311    * <code>
312    * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
313    * </code>
314    *
315    * @param index The index of the element to return.
316    * @return The pendingDataLabelingJobs at the given index.
317    */
getPendingDataLabelingJobs(int index)318   public java.lang.String getPendingDataLabelingJobs(int index) {
319     return pendingDataLabelingJobs_.get(index);
320   }
321   /**
322    *
323    *
324    * <pre>
325    * Output only. The resource name of the pending data labeling jobs.
326    * </pre>
327    *
328    * <code>
329    * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
330    * </code>
331    *
332    * @param index The index of the value to return.
333    * @return The bytes of the pendingDataLabelingJobs at the given index.
334    */
getPendingDataLabelingJobsBytes(int index)335   public com.google.protobuf.ByteString getPendingDataLabelingJobsBytes(int index) {
336     return pendingDataLabelingJobs_.getByteString(index);
337   }
338 
339   public static final int SPECIALIST_WORKER_EMAILS_FIELD_NUMBER = 7;
340 
341   @SuppressWarnings("serial")
342   private com.google.protobuf.LazyStringList specialistWorkerEmails_;
343   /**
344    *
345    *
346    * <pre>
347    * The email addresses of workers in the SpecialistPool.
348    * </pre>
349    *
350    * <code>repeated string specialist_worker_emails = 7;</code>
351    *
352    * @return A list containing the specialistWorkerEmails.
353    */
getSpecialistWorkerEmailsList()354   public com.google.protobuf.ProtocolStringList getSpecialistWorkerEmailsList() {
355     return specialistWorkerEmails_;
356   }
357   /**
358    *
359    *
360    * <pre>
361    * The email addresses of workers in the SpecialistPool.
362    * </pre>
363    *
364    * <code>repeated string specialist_worker_emails = 7;</code>
365    *
366    * @return The count of specialistWorkerEmails.
367    */
getSpecialistWorkerEmailsCount()368   public int getSpecialistWorkerEmailsCount() {
369     return specialistWorkerEmails_.size();
370   }
371   /**
372    *
373    *
374    * <pre>
375    * The email addresses of workers in the SpecialistPool.
376    * </pre>
377    *
378    * <code>repeated string specialist_worker_emails = 7;</code>
379    *
380    * @param index The index of the element to return.
381    * @return The specialistWorkerEmails at the given index.
382    */
getSpecialistWorkerEmails(int index)383   public java.lang.String getSpecialistWorkerEmails(int index) {
384     return specialistWorkerEmails_.get(index);
385   }
386   /**
387    *
388    *
389    * <pre>
390    * The email addresses of workers in the SpecialistPool.
391    * </pre>
392    *
393    * <code>repeated string specialist_worker_emails = 7;</code>
394    *
395    * @param index The index of the value to return.
396    * @return The bytes of the specialistWorkerEmails at the given index.
397    */
getSpecialistWorkerEmailsBytes(int index)398   public com.google.protobuf.ByteString getSpecialistWorkerEmailsBytes(int index) {
399     return specialistWorkerEmails_.getByteString(index);
400   }
401 
402   private byte memoizedIsInitialized = -1;
403 
404   @java.lang.Override
isInitialized()405   public final boolean isInitialized() {
406     byte isInitialized = memoizedIsInitialized;
407     if (isInitialized == 1) return true;
408     if (isInitialized == 0) return false;
409 
410     memoizedIsInitialized = 1;
411     return true;
412   }
413 
414   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)415   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
416     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
417       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
418     }
419     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
420       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
421     }
422     if (specialistManagersCount_ != 0) {
423       output.writeInt32(3, specialistManagersCount_);
424     }
425     for (int i = 0; i < specialistManagerEmails_.size(); i++) {
426       com.google.protobuf.GeneratedMessageV3.writeString(
427           output, 4, specialistManagerEmails_.getRaw(i));
428     }
429     for (int i = 0; i < pendingDataLabelingJobs_.size(); i++) {
430       com.google.protobuf.GeneratedMessageV3.writeString(
431           output, 5, pendingDataLabelingJobs_.getRaw(i));
432     }
433     for (int i = 0; i < specialistWorkerEmails_.size(); i++) {
434       com.google.protobuf.GeneratedMessageV3.writeString(
435           output, 7, specialistWorkerEmails_.getRaw(i));
436     }
437     getUnknownFields().writeTo(output);
438   }
439 
440   @java.lang.Override
getSerializedSize()441   public int getSerializedSize() {
442     int size = memoizedSize;
443     if (size != -1) return size;
444 
445     size = 0;
446     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
447       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
448     }
449     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
450       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
451     }
452     if (specialistManagersCount_ != 0) {
453       size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, specialistManagersCount_);
454     }
455     {
456       int dataSize = 0;
457       for (int i = 0; i < specialistManagerEmails_.size(); i++) {
458         dataSize += computeStringSizeNoTag(specialistManagerEmails_.getRaw(i));
459       }
460       size += dataSize;
461       size += 1 * getSpecialistManagerEmailsList().size();
462     }
463     {
464       int dataSize = 0;
465       for (int i = 0; i < pendingDataLabelingJobs_.size(); i++) {
466         dataSize += computeStringSizeNoTag(pendingDataLabelingJobs_.getRaw(i));
467       }
468       size += dataSize;
469       size += 1 * getPendingDataLabelingJobsList().size();
470     }
471     {
472       int dataSize = 0;
473       for (int i = 0; i < specialistWorkerEmails_.size(); i++) {
474         dataSize += computeStringSizeNoTag(specialistWorkerEmails_.getRaw(i));
475       }
476       size += dataSize;
477       size += 1 * getSpecialistWorkerEmailsList().size();
478     }
479     size += getUnknownFields().getSerializedSize();
480     memoizedSize = size;
481     return size;
482   }
483 
484   @java.lang.Override
equals(final java.lang.Object obj)485   public boolean equals(final java.lang.Object obj) {
486     if (obj == this) {
487       return true;
488     }
489     if (!(obj instanceof com.google.cloud.aiplatform.v1.SpecialistPool)) {
490       return super.equals(obj);
491     }
492     com.google.cloud.aiplatform.v1.SpecialistPool other =
493         (com.google.cloud.aiplatform.v1.SpecialistPool) obj;
494 
495     if (!getName().equals(other.getName())) return false;
496     if (!getDisplayName().equals(other.getDisplayName())) return false;
497     if (getSpecialistManagersCount() != other.getSpecialistManagersCount()) return false;
498     if (!getSpecialistManagerEmailsList().equals(other.getSpecialistManagerEmailsList()))
499       return false;
500     if (!getPendingDataLabelingJobsList().equals(other.getPendingDataLabelingJobsList()))
501       return false;
502     if (!getSpecialistWorkerEmailsList().equals(other.getSpecialistWorkerEmailsList()))
503       return false;
504     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
505     return true;
506   }
507 
508   @java.lang.Override
hashCode()509   public int hashCode() {
510     if (memoizedHashCode != 0) {
511       return memoizedHashCode;
512     }
513     int hash = 41;
514     hash = (19 * hash) + getDescriptor().hashCode();
515     hash = (37 * hash) + NAME_FIELD_NUMBER;
516     hash = (53 * hash) + getName().hashCode();
517     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
518     hash = (53 * hash) + getDisplayName().hashCode();
519     hash = (37 * hash) + SPECIALIST_MANAGERS_COUNT_FIELD_NUMBER;
520     hash = (53 * hash) + getSpecialistManagersCount();
521     if (getSpecialistManagerEmailsCount() > 0) {
522       hash = (37 * hash) + SPECIALIST_MANAGER_EMAILS_FIELD_NUMBER;
523       hash = (53 * hash) + getSpecialistManagerEmailsList().hashCode();
524     }
525     if (getPendingDataLabelingJobsCount() > 0) {
526       hash = (37 * hash) + PENDING_DATA_LABELING_JOBS_FIELD_NUMBER;
527       hash = (53 * hash) + getPendingDataLabelingJobsList().hashCode();
528     }
529     if (getSpecialistWorkerEmailsCount() > 0) {
530       hash = (37 * hash) + SPECIALIST_WORKER_EMAILS_FIELD_NUMBER;
531       hash = (53 * hash) + getSpecialistWorkerEmailsList().hashCode();
532     }
533     hash = (29 * hash) + getUnknownFields().hashCode();
534     memoizedHashCode = hash;
535     return hash;
536   }
537 
parseFrom(java.nio.ByteBuffer data)538   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(java.nio.ByteBuffer data)
539       throws com.google.protobuf.InvalidProtocolBufferException {
540     return PARSER.parseFrom(data);
541   }
542 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)543   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(
544       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
545       throws com.google.protobuf.InvalidProtocolBufferException {
546     return PARSER.parseFrom(data, extensionRegistry);
547   }
548 
parseFrom( com.google.protobuf.ByteString data)549   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(
550       com.google.protobuf.ByteString data)
551       throws com.google.protobuf.InvalidProtocolBufferException {
552     return PARSER.parseFrom(data);
553   }
554 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)555   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(
556       com.google.protobuf.ByteString data,
557       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
558       throws com.google.protobuf.InvalidProtocolBufferException {
559     return PARSER.parseFrom(data, extensionRegistry);
560   }
561 
parseFrom(byte[] data)562   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(byte[] data)
563       throws com.google.protobuf.InvalidProtocolBufferException {
564     return PARSER.parseFrom(data);
565   }
566 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)567   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(
568       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
569       throws com.google.protobuf.InvalidProtocolBufferException {
570     return PARSER.parseFrom(data, extensionRegistry);
571   }
572 
parseFrom(java.io.InputStream input)573   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(java.io.InputStream input)
574       throws java.io.IOException {
575     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
576   }
577 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)578   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(
579       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
580       throws java.io.IOException {
581     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
582         PARSER, input, extensionRegistry);
583   }
584 
parseDelimitedFrom( java.io.InputStream input)585   public static com.google.cloud.aiplatform.v1.SpecialistPool parseDelimitedFrom(
586       java.io.InputStream input) throws java.io.IOException {
587     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
588   }
589 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)590   public static com.google.cloud.aiplatform.v1.SpecialistPool parseDelimitedFrom(
591       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
592       throws java.io.IOException {
593     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
594         PARSER, input, extensionRegistry);
595   }
596 
parseFrom( com.google.protobuf.CodedInputStream input)597   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(
598       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
599     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
600   }
601 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)602   public static com.google.cloud.aiplatform.v1.SpecialistPool parseFrom(
603       com.google.protobuf.CodedInputStream input,
604       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
605       throws java.io.IOException {
606     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
607         PARSER, input, extensionRegistry);
608   }
609 
610   @java.lang.Override
newBuilderForType()611   public Builder newBuilderForType() {
612     return newBuilder();
613   }
614 
newBuilder()615   public static Builder newBuilder() {
616     return DEFAULT_INSTANCE.toBuilder();
617   }
618 
newBuilder(com.google.cloud.aiplatform.v1.SpecialistPool prototype)619   public static Builder newBuilder(com.google.cloud.aiplatform.v1.SpecialistPool prototype) {
620     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
621   }
622 
623   @java.lang.Override
toBuilder()624   public Builder toBuilder() {
625     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
626   }
627 
628   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)629   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
630     Builder builder = new Builder(parent);
631     return builder;
632   }
633   /**
634    *
635    *
636    * <pre>
637    * SpecialistPool represents customers' own workforce to work on their data
638    * labeling jobs. It includes a group of specialist managers and workers.
639    * Managers are responsible for managing the workers in this pool as well as
640    * customers' data labeling jobs associated with this pool. Customers create
641    * specialist pool as well as start data labeling jobs on Cloud, managers and
642    * workers handle the jobs using CrowdCompute console.
643    * </pre>
644    *
645    * Protobuf type {@code google.cloud.aiplatform.v1.SpecialistPool}
646    */
647   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
648       implements
649       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SpecialistPool)
650       com.google.cloud.aiplatform.v1.SpecialistPoolOrBuilder {
getDescriptor()651     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
652       return com.google.cloud.aiplatform.v1.SpecialistPoolProto
653           .internal_static_google_cloud_aiplatform_v1_SpecialistPool_descriptor;
654     }
655 
656     @java.lang.Override
657     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()658         internalGetFieldAccessorTable() {
659       return com.google.cloud.aiplatform.v1.SpecialistPoolProto
660           .internal_static_google_cloud_aiplatform_v1_SpecialistPool_fieldAccessorTable
661           .ensureFieldAccessorsInitialized(
662               com.google.cloud.aiplatform.v1.SpecialistPool.class,
663               com.google.cloud.aiplatform.v1.SpecialistPool.Builder.class);
664     }
665 
666     // Construct using com.google.cloud.aiplatform.v1.SpecialistPool.newBuilder()
Builder()667     private Builder() {}
668 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)669     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
670       super(parent);
671     }
672 
673     @java.lang.Override
clear()674     public Builder clear() {
675       super.clear();
676       bitField0_ = 0;
677       name_ = "";
678       displayName_ = "";
679       specialistManagersCount_ = 0;
680       specialistManagerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY;
681       bitField0_ = (bitField0_ & ~0x00000008);
682       pendingDataLabelingJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
683       bitField0_ = (bitField0_ & ~0x00000010);
684       specialistWorkerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY;
685       bitField0_ = (bitField0_ & ~0x00000020);
686       return this;
687     }
688 
689     @java.lang.Override
getDescriptorForType()690     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
691       return com.google.cloud.aiplatform.v1.SpecialistPoolProto
692           .internal_static_google_cloud_aiplatform_v1_SpecialistPool_descriptor;
693     }
694 
695     @java.lang.Override
getDefaultInstanceForType()696     public com.google.cloud.aiplatform.v1.SpecialistPool getDefaultInstanceForType() {
697       return com.google.cloud.aiplatform.v1.SpecialistPool.getDefaultInstance();
698     }
699 
700     @java.lang.Override
build()701     public com.google.cloud.aiplatform.v1.SpecialistPool build() {
702       com.google.cloud.aiplatform.v1.SpecialistPool result = buildPartial();
703       if (!result.isInitialized()) {
704         throw newUninitializedMessageException(result);
705       }
706       return result;
707     }
708 
709     @java.lang.Override
buildPartial()710     public com.google.cloud.aiplatform.v1.SpecialistPool buildPartial() {
711       com.google.cloud.aiplatform.v1.SpecialistPool result =
712           new com.google.cloud.aiplatform.v1.SpecialistPool(this);
713       buildPartialRepeatedFields(result);
714       if (bitField0_ != 0) {
715         buildPartial0(result);
716       }
717       onBuilt();
718       return result;
719     }
720 
buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.SpecialistPool result)721     private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.SpecialistPool result) {
722       if (((bitField0_ & 0x00000008) != 0)) {
723         specialistManagerEmails_ = specialistManagerEmails_.getUnmodifiableView();
724         bitField0_ = (bitField0_ & ~0x00000008);
725       }
726       result.specialistManagerEmails_ = specialistManagerEmails_;
727       if (((bitField0_ & 0x00000010) != 0)) {
728         pendingDataLabelingJobs_ = pendingDataLabelingJobs_.getUnmodifiableView();
729         bitField0_ = (bitField0_ & ~0x00000010);
730       }
731       result.pendingDataLabelingJobs_ = pendingDataLabelingJobs_;
732       if (((bitField0_ & 0x00000020) != 0)) {
733         specialistWorkerEmails_ = specialistWorkerEmails_.getUnmodifiableView();
734         bitField0_ = (bitField0_ & ~0x00000020);
735       }
736       result.specialistWorkerEmails_ = specialistWorkerEmails_;
737     }
738 
buildPartial0(com.google.cloud.aiplatform.v1.SpecialistPool result)739     private void buildPartial0(com.google.cloud.aiplatform.v1.SpecialistPool result) {
740       int from_bitField0_ = bitField0_;
741       if (((from_bitField0_ & 0x00000001) != 0)) {
742         result.name_ = name_;
743       }
744       if (((from_bitField0_ & 0x00000002) != 0)) {
745         result.displayName_ = displayName_;
746       }
747       if (((from_bitField0_ & 0x00000004) != 0)) {
748         result.specialistManagersCount_ = specialistManagersCount_;
749       }
750     }
751 
752     @java.lang.Override
clone()753     public Builder clone() {
754       return super.clone();
755     }
756 
757     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)758     public Builder setField(
759         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
760       return super.setField(field, value);
761     }
762 
763     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)764     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
765       return super.clearField(field);
766     }
767 
768     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)769     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
770       return super.clearOneof(oneof);
771     }
772 
773     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)774     public Builder setRepeatedField(
775         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
776       return super.setRepeatedField(field, index, value);
777     }
778 
779     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)780     public Builder addRepeatedField(
781         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
782       return super.addRepeatedField(field, value);
783     }
784 
785     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)786     public Builder mergeFrom(com.google.protobuf.Message other) {
787       if (other instanceof com.google.cloud.aiplatform.v1.SpecialistPool) {
788         return mergeFrom((com.google.cloud.aiplatform.v1.SpecialistPool) other);
789       } else {
790         super.mergeFrom(other);
791         return this;
792       }
793     }
794 
mergeFrom(com.google.cloud.aiplatform.v1.SpecialistPool other)795     public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpecialistPool other) {
796       if (other == com.google.cloud.aiplatform.v1.SpecialistPool.getDefaultInstance()) return this;
797       if (!other.getName().isEmpty()) {
798         name_ = other.name_;
799         bitField0_ |= 0x00000001;
800         onChanged();
801       }
802       if (!other.getDisplayName().isEmpty()) {
803         displayName_ = other.displayName_;
804         bitField0_ |= 0x00000002;
805         onChanged();
806       }
807       if (other.getSpecialistManagersCount() != 0) {
808         setSpecialistManagersCount(other.getSpecialistManagersCount());
809       }
810       if (!other.specialistManagerEmails_.isEmpty()) {
811         if (specialistManagerEmails_.isEmpty()) {
812           specialistManagerEmails_ = other.specialistManagerEmails_;
813           bitField0_ = (bitField0_ & ~0x00000008);
814         } else {
815           ensureSpecialistManagerEmailsIsMutable();
816           specialistManagerEmails_.addAll(other.specialistManagerEmails_);
817         }
818         onChanged();
819       }
820       if (!other.pendingDataLabelingJobs_.isEmpty()) {
821         if (pendingDataLabelingJobs_.isEmpty()) {
822           pendingDataLabelingJobs_ = other.pendingDataLabelingJobs_;
823           bitField0_ = (bitField0_ & ~0x00000010);
824         } else {
825           ensurePendingDataLabelingJobsIsMutable();
826           pendingDataLabelingJobs_.addAll(other.pendingDataLabelingJobs_);
827         }
828         onChanged();
829       }
830       if (!other.specialistWorkerEmails_.isEmpty()) {
831         if (specialistWorkerEmails_.isEmpty()) {
832           specialistWorkerEmails_ = other.specialistWorkerEmails_;
833           bitField0_ = (bitField0_ & ~0x00000020);
834         } else {
835           ensureSpecialistWorkerEmailsIsMutable();
836           specialistWorkerEmails_.addAll(other.specialistWorkerEmails_);
837         }
838         onChanged();
839       }
840       this.mergeUnknownFields(other.getUnknownFields());
841       onChanged();
842       return this;
843     }
844 
845     @java.lang.Override
isInitialized()846     public final boolean isInitialized() {
847       return true;
848     }
849 
850     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)851     public Builder mergeFrom(
852         com.google.protobuf.CodedInputStream input,
853         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
854         throws java.io.IOException {
855       if (extensionRegistry == null) {
856         throw new java.lang.NullPointerException();
857       }
858       try {
859         boolean done = false;
860         while (!done) {
861           int tag = input.readTag();
862           switch (tag) {
863             case 0:
864               done = true;
865               break;
866             case 10:
867               {
868                 name_ = input.readStringRequireUtf8();
869                 bitField0_ |= 0x00000001;
870                 break;
871               } // case 10
872             case 18:
873               {
874                 displayName_ = input.readStringRequireUtf8();
875                 bitField0_ |= 0x00000002;
876                 break;
877               } // case 18
878             case 24:
879               {
880                 specialistManagersCount_ = input.readInt32();
881                 bitField0_ |= 0x00000004;
882                 break;
883               } // case 24
884             case 34:
885               {
886                 java.lang.String s = input.readStringRequireUtf8();
887                 ensureSpecialistManagerEmailsIsMutable();
888                 specialistManagerEmails_.add(s);
889                 break;
890               } // case 34
891             case 42:
892               {
893                 java.lang.String s = input.readStringRequireUtf8();
894                 ensurePendingDataLabelingJobsIsMutable();
895                 pendingDataLabelingJobs_.add(s);
896                 break;
897               } // case 42
898             case 58:
899               {
900                 java.lang.String s = input.readStringRequireUtf8();
901                 ensureSpecialistWorkerEmailsIsMutable();
902                 specialistWorkerEmails_.add(s);
903                 break;
904               } // case 58
905             default:
906               {
907                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
908                   done = true; // was an endgroup tag
909                 }
910                 break;
911               } // default:
912           } // switch (tag)
913         } // while (!done)
914       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
915         throw e.unwrapIOException();
916       } finally {
917         onChanged();
918       } // finally
919       return this;
920     }
921 
922     private int bitField0_;
923 
924     private java.lang.Object name_ = "";
925     /**
926      *
927      *
928      * <pre>
929      * Required. The resource name of the SpecialistPool.
930      * </pre>
931      *
932      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
933      *
934      * @return The name.
935      */
getName()936     public java.lang.String getName() {
937       java.lang.Object ref = name_;
938       if (!(ref instanceof java.lang.String)) {
939         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
940         java.lang.String s = bs.toStringUtf8();
941         name_ = s;
942         return s;
943       } else {
944         return (java.lang.String) ref;
945       }
946     }
947     /**
948      *
949      *
950      * <pre>
951      * Required. The resource name of the SpecialistPool.
952      * </pre>
953      *
954      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
955      *
956      * @return The bytes for name.
957      */
getNameBytes()958     public com.google.protobuf.ByteString getNameBytes() {
959       java.lang.Object ref = name_;
960       if (ref instanceof String) {
961         com.google.protobuf.ByteString b =
962             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
963         name_ = b;
964         return b;
965       } else {
966         return (com.google.protobuf.ByteString) ref;
967       }
968     }
969     /**
970      *
971      *
972      * <pre>
973      * Required. The resource name of the SpecialistPool.
974      * </pre>
975      *
976      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
977      *
978      * @param value The name to set.
979      * @return This builder for chaining.
980      */
setName(java.lang.String value)981     public Builder setName(java.lang.String value) {
982       if (value == null) {
983         throw new NullPointerException();
984       }
985       name_ = value;
986       bitField0_ |= 0x00000001;
987       onChanged();
988       return this;
989     }
990     /**
991      *
992      *
993      * <pre>
994      * Required. The resource name of the SpecialistPool.
995      * </pre>
996      *
997      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
998      *
999      * @return This builder for chaining.
1000      */
clearName()1001     public Builder clearName() {
1002       name_ = getDefaultInstance().getName();
1003       bitField0_ = (bitField0_ & ~0x00000001);
1004       onChanged();
1005       return this;
1006     }
1007     /**
1008      *
1009      *
1010      * <pre>
1011      * Required. The resource name of the SpecialistPool.
1012      * </pre>
1013      *
1014      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
1015      *
1016      * @param value The bytes for name to set.
1017      * @return This builder for chaining.
1018      */
setNameBytes(com.google.protobuf.ByteString value)1019     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1020       if (value == null) {
1021         throw new NullPointerException();
1022       }
1023       checkByteStringIsUtf8(value);
1024       name_ = value;
1025       bitField0_ |= 0x00000001;
1026       onChanged();
1027       return this;
1028     }
1029 
1030     private java.lang.Object displayName_ = "";
1031     /**
1032      *
1033      *
1034      * <pre>
1035      * Required. The user-defined name of the SpecialistPool.
1036      * The name can be up to 128 characters long and can consist of any UTF-8
1037      * characters.
1038      * This field should be unique on project-level.
1039      * </pre>
1040      *
1041      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1042      *
1043      * @return The displayName.
1044      */
getDisplayName()1045     public java.lang.String getDisplayName() {
1046       java.lang.Object ref = displayName_;
1047       if (!(ref instanceof java.lang.String)) {
1048         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1049         java.lang.String s = bs.toStringUtf8();
1050         displayName_ = s;
1051         return s;
1052       } else {
1053         return (java.lang.String) ref;
1054       }
1055     }
1056     /**
1057      *
1058      *
1059      * <pre>
1060      * Required. The user-defined name of the SpecialistPool.
1061      * The name can be up to 128 characters long and can consist of any UTF-8
1062      * characters.
1063      * This field should be unique on project-level.
1064      * </pre>
1065      *
1066      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1067      *
1068      * @return The bytes for displayName.
1069      */
getDisplayNameBytes()1070     public com.google.protobuf.ByteString getDisplayNameBytes() {
1071       java.lang.Object ref = displayName_;
1072       if (ref instanceof String) {
1073         com.google.protobuf.ByteString b =
1074             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1075         displayName_ = b;
1076         return b;
1077       } else {
1078         return (com.google.protobuf.ByteString) ref;
1079       }
1080     }
1081     /**
1082      *
1083      *
1084      * <pre>
1085      * Required. The user-defined name of the SpecialistPool.
1086      * The name can be up to 128 characters long and can consist of any UTF-8
1087      * characters.
1088      * This field should be unique on project-level.
1089      * </pre>
1090      *
1091      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1092      *
1093      * @param value The displayName to set.
1094      * @return This builder for chaining.
1095      */
setDisplayName(java.lang.String value)1096     public Builder setDisplayName(java.lang.String value) {
1097       if (value == null) {
1098         throw new NullPointerException();
1099       }
1100       displayName_ = value;
1101       bitField0_ |= 0x00000002;
1102       onChanged();
1103       return this;
1104     }
1105     /**
1106      *
1107      *
1108      * <pre>
1109      * Required. The user-defined name of the SpecialistPool.
1110      * The name can be up to 128 characters long and can consist of any UTF-8
1111      * characters.
1112      * This field should be unique on project-level.
1113      * </pre>
1114      *
1115      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1116      *
1117      * @return This builder for chaining.
1118      */
clearDisplayName()1119     public Builder clearDisplayName() {
1120       displayName_ = getDefaultInstance().getDisplayName();
1121       bitField0_ = (bitField0_ & ~0x00000002);
1122       onChanged();
1123       return this;
1124     }
1125     /**
1126      *
1127      *
1128      * <pre>
1129      * Required. The user-defined name of the SpecialistPool.
1130      * The name can be up to 128 characters long and can consist of any UTF-8
1131      * characters.
1132      * This field should be unique on project-level.
1133      * </pre>
1134      *
1135      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1136      *
1137      * @param value The bytes for displayName to set.
1138      * @return This builder for chaining.
1139      */
setDisplayNameBytes(com.google.protobuf.ByteString value)1140     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
1141       if (value == null) {
1142         throw new NullPointerException();
1143       }
1144       checkByteStringIsUtf8(value);
1145       displayName_ = value;
1146       bitField0_ |= 0x00000002;
1147       onChanged();
1148       return this;
1149     }
1150 
1151     private int specialistManagersCount_;
1152     /**
1153      *
1154      *
1155      * <pre>
1156      * Output only. The number of managers in this SpecialistPool.
1157      * </pre>
1158      *
1159      * <code>int32 specialist_managers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1160      * </code>
1161      *
1162      * @return The specialistManagersCount.
1163      */
1164     @java.lang.Override
getSpecialistManagersCount()1165     public int getSpecialistManagersCount() {
1166       return specialistManagersCount_;
1167     }
1168     /**
1169      *
1170      *
1171      * <pre>
1172      * Output only. The number of managers in this SpecialistPool.
1173      * </pre>
1174      *
1175      * <code>int32 specialist_managers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1176      * </code>
1177      *
1178      * @param value The specialistManagersCount to set.
1179      * @return This builder for chaining.
1180      */
setSpecialistManagersCount(int value)1181     public Builder setSpecialistManagersCount(int value) {
1182 
1183       specialistManagersCount_ = value;
1184       bitField0_ |= 0x00000004;
1185       onChanged();
1186       return this;
1187     }
1188     /**
1189      *
1190      *
1191      * <pre>
1192      * Output only. The number of managers in this SpecialistPool.
1193      * </pre>
1194      *
1195      * <code>int32 specialist_managers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1196      * </code>
1197      *
1198      * @return This builder for chaining.
1199      */
clearSpecialistManagersCount()1200     public Builder clearSpecialistManagersCount() {
1201       bitField0_ = (bitField0_ & ~0x00000004);
1202       specialistManagersCount_ = 0;
1203       onChanged();
1204       return this;
1205     }
1206 
1207     private com.google.protobuf.LazyStringList specialistManagerEmails_ =
1208         com.google.protobuf.LazyStringArrayList.EMPTY;
1209 
ensureSpecialistManagerEmailsIsMutable()1210     private void ensureSpecialistManagerEmailsIsMutable() {
1211       if (!((bitField0_ & 0x00000008) != 0)) {
1212         specialistManagerEmails_ =
1213             new com.google.protobuf.LazyStringArrayList(specialistManagerEmails_);
1214         bitField0_ |= 0x00000008;
1215       }
1216     }
1217     /**
1218      *
1219      *
1220      * <pre>
1221      * The email addresses of the managers in the SpecialistPool.
1222      * </pre>
1223      *
1224      * <code>repeated string specialist_manager_emails = 4;</code>
1225      *
1226      * @return A list containing the specialistManagerEmails.
1227      */
getSpecialistManagerEmailsList()1228     public com.google.protobuf.ProtocolStringList getSpecialistManagerEmailsList() {
1229       return specialistManagerEmails_.getUnmodifiableView();
1230     }
1231     /**
1232      *
1233      *
1234      * <pre>
1235      * The email addresses of the managers in the SpecialistPool.
1236      * </pre>
1237      *
1238      * <code>repeated string specialist_manager_emails = 4;</code>
1239      *
1240      * @return The count of specialistManagerEmails.
1241      */
getSpecialistManagerEmailsCount()1242     public int getSpecialistManagerEmailsCount() {
1243       return specialistManagerEmails_.size();
1244     }
1245     /**
1246      *
1247      *
1248      * <pre>
1249      * The email addresses of the managers in the SpecialistPool.
1250      * </pre>
1251      *
1252      * <code>repeated string specialist_manager_emails = 4;</code>
1253      *
1254      * @param index The index of the element to return.
1255      * @return The specialistManagerEmails at the given index.
1256      */
getSpecialistManagerEmails(int index)1257     public java.lang.String getSpecialistManagerEmails(int index) {
1258       return specialistManagerEmails_.get(index);
1259     }
1260     /**
1261      *
1262      *
1263      * <pre>
1264      * The email addresses of the managers in the SpecialistPool.
1265      * </pre>
1266      *
1267      * <code>repeated string specialist_manager_emails = 4;</code>
1268      *
1269      * @param index The index of the value to return.
1270      * @return The bytes of the specialistManagerEmails at the given index.
1271      */
getSpecialistManagerEmailsBytes(int index)1272     public com.google.protobuf.ByteString getSpecialistManagerEmailsBytes(int index) {
1273       return specialistManagerEmails_.getByteString(index);
1274     }
1275     /**
1276      *
1277      *
1278      * <pre>
1279      * The email addresses of the managers in the SpecialistPool.
1280      * </pre>
1281      *
1282      * <code>repeated string specialist_manager_emails = 4;</code>
1283      *
1284      * @param index The index to set the value at.
1285      * @param value The specialistManagerEmails to set.
1286      * @return This builder for chaining.
1287      */
setSpecialistManagerEmails(int index, java.lang.String value)1288     public Builder setSpecialistManagerEmails(int index, java.lang.String value) {
1289       if (value == null) {
1290         throw new NullPointerException();
1291       }
1292       ensureSpecialistManagerEmailsIsMutable();
1293       specialistManagerEmails_.set(index, value);
1294       onChanged();
1295       return this;
1296     }
1297     /**
1298      *
1299      *
1300      * <pre>
1301      * The email addresses of the managers in the SpecialistPool.
1302      * </pre>
1303      *
1304      * <code>repeated string specialist_manager_emails = 4;</code>
1305      *
1306      * @param value The specialistManagerEmails to add.
1307      * @return This builder for chaining.
1308      */
addSpecialistManagerEmails(java.lang.String value)1309     public Builder addSpecialistManagerEmails(java.lang.String value) {
1310       if (value == null) {
1311         throw new NullPointerException();
1312       }
1313       ensureSpecialistManagerEmailsIsMutable();
1314       specialistManagerEmails_.add(value);
1315       onChanged();
1316       return this;
1317     }
1318     /**
1319      *
1320      *
1321      * <pre>
1322      * The email addresses of the managers in the SpecialistPool.
1323      * </pre>
1324      *
1325      * <code>repeated string specialist_manager_emails = 4;</code>
1326      *
1327      * @param values The specialistManagerEmails to add.
1328      * @return This builder for chaining.
1329      */
addAllSpecialistManagerEmails(java.lang.Iterable<java.lang.String> values)1330     public Builder addAllSpecialistManagerEmails(java.lang.Iterable<java.lang.String> values) {
1331       ensureSpecialistManagerEmailsIsMutable();
1332       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, specialistManagerEmails_);
1333       onChanged();
1334       return this;
1335     }
1336     /**
1337      *
1338      *
1339      * <pre>
1340      * The email addresses of the managers in the SpecialistPool.
1341      * </pre>
1342      *
1343      * <code>repeated string specialist_manager_emails = 4;</code>
1344      *
1345      * @return This builder for chaining.
1346      */
clearSpecialistManagerEmails()1347     public Builder clearSpecialistManagerEmails() {
1348       specialistManagerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1349       bitField0_ = (bitField0_ & ~0x00000008);
1350       onChanged();
1351       return this;
1352     }
1353     /**
1354      *
1355      *
1356      * <pre>
1357      * The email addresses of the managers in the SpecialistPool.
1358      * </pre>
1359      *
1360      * <code>repeated string specialist_manager_emails = 4;</code>
1361      *
1362      * @param value The bytes of the specialistManagerEmails to add.
1363      * @return This builder for chaining.
1364      */
addSpecialistManagerEmailsBytes(com.google.protobuf.ByteString value)1365     public Builder addSpecialistManagerEmailsBytes(com.google.protobuf.ByteString value) {
1366       if (value == null) {
1367         throw new NullPointerException();
1368       }
1369       checkByteStringIsUtf8(value);
1370       ensureSpecialistManagerEmailsIsMutable();
1371       specialistManagerEmails_.add(value);
1372       onChanged();
1373       return this;
1374     }
1375 
1376     private com.google.protobuf.LazyStringList pendingDataLabelingJobs_ =
1377         com.google.protobuf.LazyStringArrayList.EMPTY;
1378 
ensurePendingDataLabelingJobsIsMutable()1379     private void ensurePendingDataLabelingJobsIsMutable() {
1380       if (!((bitField0_ & 0x00000010) != 0)) {
1381         pendingDataLabelingJobs_ =
1382             new com.google.protobuf.LazyStringArrayList(pendingDataLabelingJobs_);
1383         bitField0_ |= 0x00000010;
1384       }
1385     }
1386     /**
1387      *
1388      *
1389      * <pre>
1390      * Output only. The resource name of the pending data labeling jobs.
1391      * </pre>
1392      *
1393      * <code>
1394      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1395      * </code>
1396      *
1397      * @return A list containing the pendingDataLabelingJobs.
1398      */
getPendingDataLabelingJobsList()1399     public com.google.protobuf.ProtocolStringList getPendingDataLabelingJobsList() {
1400       return pendingDataLabelingJobs_.getUnmodifiableView();
1401     }
1402     /**
1403      *
1404      *
1405      * <pre>
1406      * Output only. The resource name of the pending data labeling jobs.
1407      * </pre>
1408      *
1409      * <code>
1410      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1411      * </code>
1412      *
1413      * @return The count of pendingDataLabelingJobs.
1414      */
getPendingDataLabelingJobsCount()1415     public int getPendingDataLabelingJobsCount() {
1416       return pendingDataLabelingJobs_.size();
1417     }
1418     /**
1419      *
1420      *
1421      * <pre>
1422      * Output only. The resource name of the pending data labeling jobs.
1423      * </pre>
1424      *
1425      * <code>
1426      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1427      * </code>
1428      *
1429      * @param index The index of the element to return.
1430      * @return The pendingDataLabelingJobs at the given index.
1431      */
getPendingDataLabelingJobs(int index)1432     public java.lang.String getPendingDataLabelingJobs(int index) {
1433       return pendingDataLabelingJobs_.get(index);
1434     }
1435     /**
1436      *
1437      *
1438      * <pre>
1439      * Output only. The resource name of the pending data labeling jobs.
1440      * </pre>
1441      *
1442      * <code>
1443      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1444      * </code>
1445      *
1446      * @param index The index of the value to return.
1447      * @return The bytes of the pendingDataLabelingJobs at the given index.
1448      */
getPendingDataLabelingJobsBytes(int index)1449     public com.google.protobuf.ByteString getPendingDataLabelingJobsBytes(int index) {
1450       return pendingDataLabelingJobs_.getByteString(index);
1451     }
1452     /**
1453      *
1454      *
1455      * <pre>
1456      * Output only. The resource name of the pending data labeling jobs.
1457      * </pre>
1458      *
1459      * <code>
1460      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1461      * </code>
1462      *
1463      * @param index The index to set the value at.
1464      * @param value The pendingDataLabelingJobs to set.
1465      * @return This builder for chaining.
1466      */
setPendingDataLabelingJobs(int index, java.lang.String value)1467     public Builder setPendingDataLabelingJobs(int index, java.lang.String value) {
1468       if (value == null) {
1469         throw new NullPointerException();
1470       }
1471       ensurePendingDataLabelingJobsIsMutable();
1472       pendingDataLabelingJobs_.set(index, value);
1473       onChanged();
1474       return this;
1475     }
1476     /**
1477      *
1478      *
1479      * <pre>
1480      * Output only. The resource name of the pending data labeling jobs.
1481      * </pre>
1482      *
1483      * <code>
1484      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1485      * </code>
1486      *
1487      * @param value The pendingDataLabelingJobs to add.
1488      * @return This builder for chaining.
1489      */
addPendingDataLabelingJobs(java.lang.String value)1490     public Builder addPendingDataLabelingJobs(java.lang.String value) {
1491       if (value == null) {
1492         throw new NullPointerException();
1493       }
1494       ensurePendingDataLabelingJobsIsMutable();
1495       pendingDataLabelingJobs_.add(value);
1496       onChanged();
1497       return this;
1498     }
1499     /**
1500      *
1501      *
1502      * <pre>
1503      * Output only. The resource name of the pending data labeling jobs.
1504      * </pre>
1505      *
1506      * <code>
1507      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1508      * </code>
1509      *
1510      * @param values The pendingDataLabelingJobs to add.
1511      * @return This builder for chaining.
1512      */
addAllPendingDataLabelingJobs(java.lang.Iterable<java.lang.String> values)1513     public Builder addAllPendingDataLabelingJobs(java.lang.Iterable<java.lang.String> values) {
1514       ensurePendingDataLabelingJobsIsMutable();
1515       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pendingDataLabelingJobs_);
1516       onChanged();
1517       return this;
1518     }
1519     /**
1520      *
1521      *
1522      * <pre>
1523      * Output only. The resource name of the pending data labeling jobs.
1524      * </pre>
1525      *
1526      * <code>
1527      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1528      * </code>
1529      *
1530      * @return This builder for chaining.
1531      */
clearPendingDataLabelingJobs()1532     public Builder clearPendingDataLabelingJobs() {
1533       pendingDataLabelingJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1534       bitField0_ = (bitField0_ & ~0x00000010);
1535       onChanged();
1536       return this;
1537     }
1538     /**
1539      *
1540      *
1541      * <pre>
1542      * Output only. The resource name of the pending data labeling jobs.
1543      * </pre>
1544      *
1545      * <code>
1546      * repeated string pending_data_labeling_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1547      * </code>
1548      *
1549      * @param value The bytes of the pendingDataLabelingJobs to add.
1550      * @return This builder for chaining.
1551      */
addPendingDataLabelingJobsBytes(com.google.protobuf.ByteString value)1552     public Builder addPendingDataLabelingJobsBytes(com.google.protobuf.ByteString value) {
1553       if (value == null) {
1554         throw new NullPointerException();
1555       }
1556       checkByteStringIsUtf8(value);
1557       ensurePendingDataLabelingJobsIsMutable();
1558       pendingDataLabelingJobs_.add(value);
1559       onChanged();
1560       return this;
1561     }
1562 
1563     private com.google.protobuf.LazyStringList specialistWorkerEmails_ =
1564         com.google.protobuf.LazyStringArrayList.EMPTY;
1565 
ensureSpecialistWorkerEmailsIsMutable()1566     private void ensureSpecialistWorkerEmailsIsMutable() {
1567       if (!((bitField0_ & 0x00000020) != 0)) {
1568         specialistWorkerEmails_ =
1569             new com.google.protobuf.LazyStringArrayList(specialistWorkerEmails_);
1570         bitField0_ |= 0x00000020;
1571       }
1572     }
1573     /**
1574      *
1575      *
1576      * <pre>
1577      * The email addresses of workers in the SpecialistPool.
1578      * </pre>
1579      *
1580      * <code>repeated string specialist_worker_emails = 7;</code>
1581      *
1582      * @return A list containing the specialistWorkerEmails.
1583      */
getSpecialistWorkerEmailsList()1584     public com.google.protobuf.ProtocolStringList getSpecialistWorkerEmailsList() {
1585       return specialistWorkerEmails_.getUnmodifiableView();
1586     }
1587     /**
1588      *
1589      *
1590      * <pre>
1591      * The email addresses of workers in the SpecialistPool.
1592      * </pre>
1593      *
1594      * <code>repeated string specialist_worker_emails = 7;</code>
1595      *
1596      * @return The count of specialistWorkerEmails.
1597      */
getSpecialistWorkerEmailsCount()1598     public int getSpecialistWorkerEmailsCount() {
1599       return specialistWorkerEmails_.size();
1600     }
1601     /**
1602      *
1603      *
1604      * <pre>
1605      * The email addresses of workers in the SpecialistPool.
1606      * </pre>
1607      *
1608      * <code>repeated string specialist_worker_emails = 7;</code>
1609      *
1610      * @param index The index of the element to return.
1611      * @return The specialistWorkerEmails at the given index.
1612      */
getSpecialistWorkerEmails(int index)1613     public java.lang.String getSpecialistWorkerEmails(int index) {
1614       return specialistWorkerEmails_.get(index);
1615     }
1616     /**
1617      *
1618      *
1619      * <pre>
1620      * The email addresses of workers in the SpecialistPool.
1621      * </pre>
1622      *
1623      * <code>repeated string specialist_worker_emails = 7;</code>
1624      *
1625      * @param index The index of the value to return.
1626      * @return The bytes of the specialistWorkerEmails at the given index.
1627      */
getSpecialistWorkerEmailsBytes(int index)1628     public com.google.protobuf.ByteString getSpecialistWorkerEmailsBytes(int index) {
1629       return specialistWorkerEmails_.getByteString(index);
1630     }
1631     /**
1632      *
1633      *
1634      * <pre>
1635      * The email addresses of workers in the SpecialistPool.
1636      * </pre>
1637      *
1638      * <code>repeated string specialist_worker_emails = 7;</code>
1639      *
1640      * @param index The index to set the value at.
1641      * @param value The specialistWorkerEmails to set.
1642      * @return This builder for chaining.
1643      */
setSpecialistWorkerEmails(int index, java.lang.String value)1644     public Builder setSpecialistWorkerEmails(int index, java.lang.String value) {
1645       if (value == null) {
1646         throw new NullPointerException();
1647       }
1648       ensureSpecialistWorkerEmailsIsMutable();
1649       specialistWorkerEmails_.set(index, value);
1650       onChanged();
1651       return this;
1652     }
1653     /**
1654      *
1655      *
1656      * <pre>
1657      * The email addresses of workers in the SpecialistPool.
1658      * </pre>
1659      *
1660      * <code>repeated string specialist_worker_emails = 7;</code>
1661      *
1662      * @param value The specialistWorkerEmails to add.
1663      * @return This builder for chaining.
1664      */
addSpecialistWorkerEmails(java.lang.String value)1665     public Builder addSpecialistWorkerEmails(java.lang.String value) {
1666       if (value == null) {
1667         throw new NullPointerException();
1668       }
1669       ensureSpecialistWorkerEmailsIsMutable();
1670       specialistWorkerEmails_.add(value);
1671       onChanged();
1672       return this;
1673     }
1674     /**
1675      *
1676      *
1677      * <pre>
1678      * The email addresses of workers in the SpecialistPool.
1679      * </pre>
1680      *
1681      * <code>repeated string specialist_worker_emails = 7;</code>
1682      *
1683      * @param values The specialistWorkerEmails to add.
1684      * @return This builder for chaining.
1685      */
addAllSpecialistWorkerEmails(java.lang.Iterable<java.lang.String> values)1686     public Builder addAllSpecialistWorkerEmails(java.lang.Iterable<java.lang.String> values) {
1687       ensureSpecialistWorkerEmailsIsMutable();
1688       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, specialistWorkerEmails_);
1689       onChanged();
1690       return this;
1691     }
1692     /**
1693      *
1694      *
1695      * <pre>
1696      * The email addresses of workers in the SpecialistPool.
1697      * </pre>
1698      *
1699      * <code>repeated string specialist_worker_emails = 7;</code>
1700      *
1701      * @return This builder for chaining.
1702      */
clearSpecialistWorkerEmails()1703     public Builder clearSpecialistWorkerEmails() {
1704       specialistWorkerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1705       bitField0_ = (bitField0_ & ~0x00000020);
1706       onChanged();
1707       return this;
1708     }
1709     /**
1710      *
1711      *
1712      * <pre>
1713      * The email addresses of workers in the SpecialistPool.
1714      * </pre>
1715      *
1716      * <code>repeated string specialist_worker_emails = 7;</code>
1717      *
1718      * @param value The bytes of the specialistWorkerEmails to add.
1719      * @return This builder for chaining.
1720      */
addSpecialistWorkerEmailsBytes(com.google.protobuf.ByteString value)1721     public Builder addSpecialistWorkerEmailsBytes(com.google.protobuf.ByteString value) {
1722       if (value == null) {
1723         throw new NullPointerException();
1724       }
1725       checkByteStringIsUtf8(value);
1726       ensureSpecialistWorkerEmailsIsMutable();
1727       specialistWorkerEmails_.add(value);
1728       onChanged();
1729       return this;
1730     }
1731 
1732     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1733     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1734       return super.setUnknownFields(unknownFields);
1735     }
1736 
1737     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1738     public final Builder mergeUnknownFields(
1739         final com.google.protobuf.UnknownFieldSet unknownFields) {
1740       return super.mergeUnknownFields(unknownFields);
1741     }
1742 
1743     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.SpecialistPool)
1744   }
1745 
1746   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SpecialistPool)
1747   private static final com.google.cloud.aiplatform.v1.SpecialistPool DEFAULT_INSTANCE;
1748 
1749   static {
1750     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SpecialistPool();
1751   }
1752 
getDefaultInstance()1753   public static com.google.cloud.aiplatform.v1.SpecialistPool getDefaultInstance() {
1754     return DEFAULT_INSTANCE;
1755   }
1756 
1757   private static final com.google.protobuf.Parser<SpecialistPool> PARSER =
1758       new com.google.protobuf.AbstractParser<SpecialistPool>() {
1759         @java.lang.Override
1760         public SpecialistPool parsePartialFrom(
1761             com.google.protobuf.CodedInputStream input,
1762             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1763             throws com.google.protobuf.InvalidProtocolBufferException {
1764           Builder builder = newBuilder();
1765           try {
1766             builder.mergeFrom(input, extensionRegistry);
1767           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1768             throw e.setUnfinishedMessage(builder.buildPartial());
1769           } catch (com.google.protobuf.UninitializedMessageException e) {
1770             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1771           } catch (java.io.IOException e) {
1772             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1773                 .setUnfinishedMessage(builder.buildPartial());
1774           }
1775           return builder.buildPartial();
1776         }
1777       };
1778 
parser()1779   public static com.google.protobuf.Parser<SpecialistPool> parser() {
1780     return PARSER;
1781   }
1782 
1783   @java.lang.Override
getParserForType()1784   public com.google.protobuf.Parser<SpecialistPool> getParserForType() {
1785     return PARSER;
1786   }
1787 
1788   @java.lang.Override
getDefaultInstanceForType()1789   public com.google.cloud.aiplatform.v1.SpecialistPool getDefaultInstanceForType() {
1790     return DEFAULT_INSTANCE;
1791   }
1792 }
1793