• 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/talent/v4/common.proto
18 
19 package com.google.cloud.talent.v4;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Custom attribute values that are either filterable or non-filterable.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.talent.v4.CustomAttribute}
29  */
30 public final class CustomAttribute extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.CustomAttribute)
33     CustomAttributeOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use CustomAttribute.newBuilder() to construct.
CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
CustomAttribute()40   private CustomAttribute() {
41     stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
42     longValues_ = emptyLongList();
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new CustomAttribute();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.cloud.talent.v4.CommonProto
58         .internal_static_google_cloud_talent_v4_CustomAttribute_descriptor;
59   }
60 
61   @java.lang.Override
62   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()63       internalGetFieldAccessorTable() {
64     return com.google.cloud.talent.v4.CommonProto
65         .internal_static_google_cloud_talent_v4_CustomAttribute_fieldAccessorTable
66         .ensureFieldAccessorsInitialized(
67             com.google.cloud.talent.v4.CustomAttribute.class,
68             com.google.cloud.talent.v4.CustomAttribute.Builder.class);
69   }
70 
71   public static final int STRING_VALUES_FIELD_NUMBER = 1;
72 
73   @SuppressWarnings("serial")
74   private com.google.protobuf.LazyStringList stringValues_;
75   /**
76    *
77    *
78    * <pre>
79    * Exactly one of
80    * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
81    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
82    * specified.
83    * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
84    * `CASE_INSENSITIVE_MATCH`) search.
85    * For filterable `string_value`s, a maximum total number of 200 values
86    * is allowed, with each `string_value` has a byte size of no more than
87    * 500B. For unfilterable `string_values`, the maximum total byte size of
88    * unfilterable `string_values` is 50KB.
89    * Empty string isn't allowed.
90    * </pre>
91    *
92    * <code>repeated string string_values = 1;</code>
93    *
94    * @return A list containing the stringValues.
95    */
getStringValuesList()96   public com.google.protobuf.ProtocolStringList getStringValuesList() {
97     return stringValues_;
98   }
99   /**
100    *
101    *
102    * <pre>
103    * Exactly one of
104    * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
105    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
106    * specified.
107    * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
108    * `CASE_INSENSITIVE_MATCH`) search.
109    * For filterable `string_value`s, a maximum total number of 200 values
110    * is allowed, with each `string_value` has a byte size of no more than
111    * 500B. For unfilterable `string_values`, the maximum total byte size of
112    * unfilterable `string_values` is 50KB.
113    * Empty string isn't allowed.
114    * </pre>
115    *
116    * <code>repeated string string_values = 1;</code>
117    *
118    * @return The count of stringValues.
119    */
getStringValuesCount()120   public int getStringValuesCount() {
121     return stringValues_.size();
122   }
123   /**
124    *
125    *
126    * <pre>
127    * Exactly one of
128    * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
129    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
130    * specified.
131    * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
132    * `CASE_INSENSITIVE_MATCH`) search.
133    * For filterable `string_value`s, a maximum total number of 200 values
134    * is allowed, with each `string_value` has a byte size of no more than
135    * 500B. For unfilterable `string_values`, the maximum total byte size of
136    * unfilterable `string_values` is 50KB.
137    * Empty string isn't allowed.
138    * </pre>
139    *
140    * <code>repeated string string_values = 1;</code>
141    *
142    * @param index The index of the element to return.
143    * @return The stringValues at the given index.
144    */
getStringValues(int index)145   public java.lang.String getStringValues(int index) {
146     return stringValues_.get(index);
147   }
148   /**
149    *
150    *
151    * <pre>
152    * Exactly one of
153    * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
154    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
155    * specified.
156    * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
157    * `CASE_INSENSITIVE_MATCH`) search.
158    * For filterable `string_value`s, a maximum total number of 200 values
159    * is allowed, with each `string_value` has a byte size of no more than
160    * 500B. For unfilterable `string_values`, the maximum total byte size of
161    * unfilterable `string_values` is 50KB.
162    * Empty string isn't allowed.
163    * </pre>
164    *
165    * <code>repeated string string_values = 1;</code>
166    *
167    * @param index The index of the value to return.
168    * @return The bytes of the stringValues at the given index.
169    */
getStringValuesBytes(int index)170   public com.google.protobuf.ByteString getStringValuesBytes(int index) {
171     return stringValues_.getByteString(index);
172   }
173 
174   public static final int LONG_VALUES_FIELD_NUMBER = 2;
175 
176   @SuppressWarnings("serial")
177   private com.google.protobuf.Internal.LongList longValues_;
178   /**
179    *
180    *
181    * <pre>
182    * Exactly one of
183    * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
184    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
185    * specified.
186    * This field is used to perform number range search.
187    * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
188    * Currently at most 1
189    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
190    * supported.
191    * </pre>
192    *
193    * <code>repeated int64 long_values = 2;</code>
194    *
195    * @return A list containing the longValues.
196    */
197   @java.lang.Override
getLongValuesList()198   public java.util.List<java.lang.Long> getLongValuesList() {
199     return longValues_;
200   }
201   /**
202    *
203    *
204    * <pre>
205    * Exactly one of
206    * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
207    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
208    * specified.
209    * This field is used to perform number range search.
210    * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
211    * Currently at most 1
212    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
213    * supported.
214    * </pre>
215    *
216    * <code>repeated int64 long_values = 2;</code>
217    *
218    * @return The count of longValues.
219    */
getLongValuesCount()220   public int getLongValuesCount() {
221     return longValues_.size();
222   }
223   /**
224    *
225    *
226    * <pre>
227    * Exactly one of
228    * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
229    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
230    * specified.
231    * This field is used to perform number range search.
232    * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
233    * Currently at most 1
234    * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
235    * supported.
236    * </pre>
237    *
238    * <code>repeated int64 long_values = 2;</code>
239    *
240    * @param index The index of the element to return.
241    * @return The longValues at the given index.
242    */
getLongValues(int index)243   public long getLongValues(int index) {
244     return longValues_.getLong(index);
245   }
246 
247   private int longValuesMemoizedSerializedSize = -1;
248 
249   public static final int FILTERABLE_FIELD_NUMBER = 3;
250   private boolean filterable_ = false;
251   /**
252    *
253    *
254    * <pre>
255    * If the `filterable` flag is true, the custom field values may be used for
256    * custom attribute filters
257    * [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter].
258    * If false, these values may not be used for custom attribute filters.
259    * Default is false.
260    * </pre>
261    *
262    * <code>bool filterable = 3;</code>
263    *
264    * @return The filterable.
265    */
266   @java.lang.Override
getFilterable()267   public boolean getFilterable() {
268     return filterable_;
269   }
270 
271   public static final int KEYWORD_SEARCHABLE_FIELD_NUMBER = 4;
272   private boolean keywordSearchable_ = false;
273   /**
274    *
275    *
276    * <pre>
277    * If the `keyword_searchable` flag is true, the keywords in custom fields are
278    * searchable by keyword match.
279    * If false, the values are not searchable by keyword match.
280    * Default is false.
281    * </pre>
282    *
283    * <code>bool keyword_searchable = 4;</code>
284    *
285    * @return The keywordSearchable.
286    */
287   @java.lang.Override
getKeywordSearchable()288   public boolean getKeywordSearchable() {
289     return keywordSearchable_;
290   }
291 
292   private byte memoizedIsInitialized = -1;
293 
294   @java.lang.Override
isInitialized()295   public final boolean isInitialized() {
296     byte isInitialized = memoizedIsInitialized;
297     if (isInitialized == 1) return true;
298     if (isInitialized == 0) return false;
299 
300     memoizedIsInitialized = 1;
301     return true;
302   }
303 
304   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)305   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
306     getSerializedSize();
307     for (int i = 0; i < stringValues_.size(); i++) {
308       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringValues_.getRaw(i));
309     }
310     if (getLongValuesList().size() > 0) {
311       output.writeUInt32NoTag(18);
312       output.writeUInt32NoTag(longValuesMemoizedSerializedSize);
313     }
314     for (int i = 0; i < longValues_.size(); i++) {
315       output.writeInt64NoTag(longValues_.getLong(i));
316     }
317     if (filterable_ != false) {
318       output.writeBool(3, filterable_);
319     }
320     if (keywordSearchable_ != false) {
321       output.writeBool(4, keywordSearchable_);
322     }
323     getUnknownFields().writeTo(output);
324   }
325 
326   @java.lang.Override
getSerializedSize()327   public int getSerializedSize() {
328     int size = memoizedSize;
329     if (size != -1) return size;
330 
331     size = 0;
332     {
333       int dataSize = 0;
334       for (int i = 0; i < stringValues_.size(); i++) {
335         dataSize += computeStringSizeNoTag(stringValues_.getRaw(i));
336       }
337       size += dataSize;
338       size += 1 * getStringValuesList().size();
339     }
340     {
341       int dataSize = 0;
342       for (int i = 0; i < longValues_.size(); i++) {
343         dataSize +=
344             com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(longValues_.getLong(i));
345       }
346       size += dataSize;
347       if (!getLongValuesList().isEmpty()) {
348         size += 1;
349         size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
350       }
351       longValuesMemoizedSerializedSize = dataSize;
352     }
353     if (filterable_ != false) {
354       size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, filterable_);
355     }
356     if (keywordSearchable_ != false) {
357       size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, keywordSearchable_);
358     }
359     size += getUnknownFields().getSerializedSize();
360     memoizedSize = size;
361     return size;
362   }
363 
364   @java.lang.Override
equals(final java.lang.Object obj)365   public boolean equals(final java.lang.Object obj) {
366     if (obj == this) {
367       return true;
368     }
369     if (!(obj instanceof com.google.cloud.talent.v4.CustomAttribute)) {
370       return super.equals(obj);
371     }
372     com.google.cloud.talent.v4.CustomAttribute other =
373         (com.google.cloud.talent.v4.CustomAttribute) obj;
374 
375     if (!getStringValuesList().equals(other.getStringValuesList())) return false;
376     if (!getLongValuesList().equals(other.getLongValuesList())) return false;
377     if (getFilterable() != other.getFilterable()) return false;
378     if (getKeywordSearchable() != other.getKeywordSearchable()) return false;
379     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
380     return true;
381   }
382 
383   @java.lang.Override
hashCode()384   public int hashCode() {
385     if (memoizedHashCode != 0) {
386       return memoizedHashCode;
387     }
388     int hash = 41;
389     hash = (19 * hash) + getDescriptor().hashCode();
390     if (getStringValuesCount() > 0) {
391       hash = (37 * hash) + STRING_VALUES_FIELD_NUMBER;
392       hash = (53 * hash) + getStringValuesList().hashCode();
393     }
394     if (getLongValuesCount() > 0) {
395       hash = (37 * hash) + LONG_VALUES_FIELD_NUMBER;
396       hash = (53 * hash) + getLongValuesList().hashCode();
397     }
398     hash = (37 * hash) + FILTERABLE_FIELD_NUMBER;
399     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFilterable());
400     hash = (37 * hash) + KEYWORD_SEARCHABLE_FIELD_NUMBER;
401     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeywordSearchable());
402     hash = (29 * hash) + getUnknownFields().hashCode();
403     memoizedHashCode = hash;
404     return hash;
405   }
406 
parseFrom(java.nio.ByteBuffer data)407   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(java.nio.ByteBuffer data)
408       throws com.google.protobuf.InvalidProtocolBufferException {
409     return PARSER.parseFrom(data);
410   }
411 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)412   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(
413       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
414       throws com.google.protobuf.InvalidProtocolBufferException {
415     return PARSER.parseFrom(data, extensionRegistry);
416   }
417 
parseFrom( com.google.protobuf.ByteString data)418   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(
419       com.google.protobuf.ByteString data)
420       throws com.google.protobuf.InvalidProtocolBufferException {
421     return PARSER.parseFrom(data);
422   }
423 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)424   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(
425       com.google.protobuf.ByteString data,
426       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
427       throws com.google.protobuf.InvalidProtocolBufferException {
428     return PARSER.parseFrom(data, extensionRegistry);
429   }
430 
parseFrom(byte[] data)431   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(byte[] data)
432       throws com.google.protobuf.InvalidProtocolBufferException {
433     return PARSER.parseFrom(data);
434   }
435 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)436   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(
437       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
438       throws com.google.protobuf.InvalidProtocolBufferException {
439     return PARSER.parseFrom(data, extensionRegistry);
440   }
441 
parseFrom(java.io.InputStream input)442   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(java.io.InputStream input)
443       throws java.io.IOException {
444     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
445   }
446 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)447   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(
448       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
449       throws java.io.IOException {
450     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
451         PARSER, input, extensionRegistry);
452   }
453 
parseDelimitedFrom( java.io.InputStream input)454   public static com.google.cloud.talent.v4.CustomAttribute parseDelimitedFrom(
455       java.io.InputStream input) throws java.io.IOException {
456     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
457   }
458 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)459   public static com.google.cloud.talent.v4.CustomAttribute parseDelimitedFrom(
460       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
461       throws java.io.IOException {
462     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
463         PARSER, input, extensionRegistry);
464   }
465 
parseFrom( com.google.protobuf.CodedInputStream input)466   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(
467       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
468     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
469   }
470 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)471   public static com.google.cloud.talent.v4.CustomAttribute parseFrom(
472       com.google.protobuf.CodedInputStream input,
473       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
474       throws java.io.IOException {
475     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
476         PARSER, input, extensionRegistry);
477   }
478 
479   @java.lang.Override
newBuilderForType()480   public Builder newBuilderForType() {
481     return newBuilder();
482   }
483 
newBuilder()484   public static Builder newBuilder() {
485     return DEFAULT_INSTANCE.toBuilder();
486   }
487 
newBuilder(com.google.cloud.talent.v4.CustomAttribute prototype)488   public static Builder newBuilder(com.google.cloud.talent.v4.CustomAttribute prototype) {
489     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
490   }
491 
492   @java.lang.Override
toBuilder()493   public Builder toBuilder() {
494     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
495   }
496 
497   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)498   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
499     Builder builder = new Builder(parent);
500     return builder;
501   }
502   /**
503    *
504    *
505    * <pre>
506    * Custom attribute values that are either filterable or non-filterable.
507    * </pre>
508    *
509    * Protobuf type {@code google.cloud.talent.v4.CustomAttribute}
510    */
511   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
512       implements
513       // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.CustomAttribute)
514       com.google.cloud.talent.v4.CustomAttributeOrBuilder {
getDescriptor()515     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
516       return com.google.cloud.talent.v4.CommonProto
517           .internal_static_google_cloud_talent_v4_CustomAttribute_descriptor;
518     }
519 
520     @java.lang.Override
521     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()522         internalGetFieldAccessorTable() {
523       return com.google.cloud.talent.v4.CommonProto
524           .internal_static_google_cloud_talent_v4_CustomAttribute_fieldAccessorTable
525           .ensureFieldAccessorsInitialized(
526               com.google.cloud.talent.v4.CustomAttribute.class,
527               com.google.cloud.talent.v4.CustomAttribute.Builder.class);
528     }
529 
530     // Construct using com.google.cloud.talent.v4.CustomAttribute.newBuilder()
Builder()531     private Builder() {}
532 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)533     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
534       super(parent);
535     }
536 
537     @java.lang.Override
clear()538     public Builder clear() {
539       super.clear();
540       bitField0_ = 0;
541       stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
542       bitField0_ = (bitField0_ & ~0x00000001);
543       longValues_ = emptyLongList();
544       filterable_ = false;
545       keywordSearchable_ = false;
546       return this;
547     }
548 
549     @java.lang.Override
getDescriptorForType()550     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
551       return com.google.cloud.talent.v4.CommonProto
552           .internal_static_google_cloud_talent_v4_CustomAttribute_descriptor;
553     }
554 
555     @java.lang.Override
getDefaultInstanceForType()556     public com.google.cloud.talent.v4.CustomAttribute getDefaultInstanceForType() {
557       return com.google.cloud.talent.v4.CustomAttribute.getDefaultInstance();
558     }
559 
560     @java.lang.Override
build()561     public com.google.cloud.talent.v4.CustomAttribute build() {
562       com.google.cloud.talent.v4.CustomAttribute result = buildPartial();
563       if (!result.isInitialized()) {
564         throw newUninitializedMessageException(result);
565       }
566       return result;
567     }
568 
569     @java.lang.Override
buildPartial()570     public com.google.cloud.talent.v4.CustomAttribute buildPartial() {
571       com.google.cloud.talent.v4.CustomAttribute result =
572           new com.google.cloud.talent.v4.CustomAttribute(this);
573       buildPartialRepeatedFields(result);
574       if (bitField0_ != 0) {
575         buildPartial0(result);
576       }
577       onBuilt();
578       return result;
579     }
580 
buildPartialRepeatedFields(com.google.cloud.talent.v4.CustomAttribute result)581     private void buildPartialRepeatedFields(com.google.cloud.talent.v4.CustomAttribute result) {
582       if (((bitField0_ & 0x00000001) != 0)) {
583         stringValues_ = stringValues_.getUnmodifiableView();
584         bitField0_ = (bitField0_ & ~0x00000001);
585       }
586       result.stringValues_ = stringValues_;
587       if (((bitField0_ & 0x00000002) != 0)) {
588         longValues_.makeImmutable();
589         bitField0_ = (bitField0_ & ~0x00000002);
590       }
591       result.longValues_ = longValues_;
592     }
593 
buildPartial0(com.google.cloud.talent.v4.CustomAttribute result)594     private void buildPartial0(com.google.cloud.talent.v4.CustomAttribute result) {
595       int from_bitField0_ = bitField0_;
596       if (((from_bitField0_ & 0x00000004) != 0)) {
597         result.filterable_ = filterable_;
598       }
599       if (((from_bitField0_ & 0x00000008) != 0)) {
600         result.keywordSearchable_ = keywordSearchable_;
601       }
602     }
603 
604     @java.lang.Override
clone()605     public Builder clone() {
606       return super.clone();
607     }
608 
609     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)610     public Builder setField(
611         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
612       return super.setField(field, value);
613     }
614 
615     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)616     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
617       return super.clearField(field);
618     }
619 
620     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)621     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
622       return super.clearOneof(oneof);
623     }
624 
625     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)626     public Builder setRepeatedField(
627         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
628       return super.setRepeatedField(field, index, value);
629     }
630 
631     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)632     public Builder addRepeatedField(
633         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
634       return super.addRepeatedField(field, value);
635     }
636 
637     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)638     public Builder mergeFrom(com.google.protobuf.Message other) {
639       if (other instanceof com.google.cloud.talent.v4.CustomAttribute) {
640         return mergeFrom((com.google.cloud.talent.v4.CustomAttribute) other);
641       } else {
642         super.mergeFrom(other);
643         return this;
644       }
645     }
646 
mergeFrom(com.google.cloud.talent.v4.CustomAttribute other)647     public Builder mergeFrom(com.google.cloud.talent.v4.CustomAttribute other) {
648       if (other == com.google.cloud.talent.v4.CustomAttribute.getDefaultInstance()) return this;
649       if (!other.stringValues_.isEmpty()) {
650         if (stringValues_.isEmpty()) {
651           stringValues_ = other.stringValues_;
652           bitField0_ = (bitField0_ & ~0x00000001);
653         } else {
654           ensureStringValuesIsMutable();
655           stringValues_.addAll(other.stringValues_);
656         }
657         onChanged();
658       }
659       if (!other.longValues_.isEmpty()) {
660         if (longValues_.isEmpty()) {
661           longValues_ = other.longValues_;
662           bitField0_ = (bitField0_ & ~0x00000002);
663         } else {
664           ensureLongValuesIsMutable();
665           longValues_.addAll(other.longValues_);
666         }
667         onChanged();
668       }
669       if (other.getFilterable() != false) {
670         setFilterable(other.getFilterable());
671       }
672       if (other.getKeywordSearchable() != false) {
673         setKeywordSearchable(other.getKeywordSearchable());
674       }
675       this.mergeUnknownFields(other.getUnknownFields());
676       onChanged();
677       return this;
678     }
679 
680     @java.lang.Override
isInitialized()681     public final boolean isInitialized() {
682       return true;
683     }
684 
685     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)686     public Builder mergeFrom(
687         com.google.protobuf.CodedInputStream input,
688         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
689         throws java.io.IOException {
690       if (extensionRegistry == null) {
691         throw new java.lang.NullPointerException();
692       }
693       try {
694         boolean done = false;
695         while (!done) {
696           int tag = input.readTag();
697           switch (tag) {
698             case 0:
699               done = true;
700               break;
701             case 10:
702               {
703                 java.lang.String s = input.readStringRequireUtf8();
704                 ensureStringValuesIsMutable();
705                 stringValues_.add(s);
706                 break;
707               } // case 10
708             case 16:
709               {
710                 long v = input.readInt64();
711                 ensureLongValuesIsMutable();
712                 longValues_.addLong(v);
713                 break;
714               } // case 16
715             case 18:
716               {
717                 int length = input.readRawVarint32();
718                 int limit = input.pushLimit(length);
719                 ensureLongValuesIsMutable();
720                 while (input.getBytesUntilLimit() > 0) {
721                   longValues_.addLong(input.readInt64());
722                 }
723                 input.popLimit(limit);
724                 break;
725               } // case 18
726             case 24:
727               {
728                 filterable_ = input.readBool();
729                 bitField0_ |= 0x00000004;
730                 break;
731               } // case 24
732             case 32:
733               {
734                 keywordSearchable_ = input.readBool();
735                 bitField0_ |= 0x00000008;
736                 break;
737               } // case 32
738             default:
739               {
740                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
741                   done = true; // was an endgroup tag
742                 }
743                 break;
744               } // default:
745           } // switch (tag)
746         } // while (!done)
747       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
748         throw e.unwrapIOException();
749       } finally {
750         onChanged();
751       } // finally
752       return this;
753     }
754 
755     private int bitField0_;
756 
757     private com.google.protobuf.LazyStringList stringValues_ =
758         com.google.protobuf.LazyStringArrayList.EMPTY;
759 
ensureStringValuesIsMutable()760     private void ensureStringValuesIsMutable() {
761       if (!((bitField0_ & 0x00000001) != 0)) {
762         stringValues_ = new com.google.protobuf.LazyStringArrayList(stringValues_);
763         bitField0_ |= 0x00000001;
764       }
765     }
766     /**
767      *
768      *
769      * <pre>
770      * Exactly one of
771      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
772      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
773      * specified.
774      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
775      * `CASE_INSENSITIVE_MATCH`) search.
776      * For filterable `string_value`s, a maximum total number of 200 values
777      * is allowed, with each `string_value` has a byte size of no more than
778      * 500B. For unfilterable `string_values`, the maximum total byte size of
779      * unfilterable `string_values` is 50KB.
780      * Empty string isn't allowed.
781      * </pre>
782      *
783      * <code>repeated string string_values = 1;</code>
784      *
785      * @return A list containing the stringValues.
786      */
getStringValuesList()787     public com.google.protobuf.ProtocolStringList getStringValuesList() {
788       return stringValues_.getUnmodifiableView();
789     }
790     /**
791      *
792      *
793      * <pre>
794      * Exactly one of
795      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
796      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
797      * specified.
798      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
799      * `CASE_INSENSITIVE_MATCH`) search.
800      * For filterable `string_value`s, a maximum total number of 200 values
801      * is allowed, with each `string_value` has a byte size of no more than
802      * 500B. For unfilterable `string_values`, the maximum total byte size of
803      * unfilterable `string_values` is 50KB.
804      * Empty string isn't allowed.
805      * </pre>
806      *
807      * <code>repeated string string_values = 1;</code>
808      *
809      * @return The count of stringValues.
810      */
getStringValuesCount()811     public int getStringValuesCount() {
812       return stringValues_.size();
813     }
814     /**
815      *
816      *
817      * <pre>
818      * Exactly one of
819      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
820      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
821      * specified.
822      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
823      * `CASE_INSENSITIVE_MATCH`) search.
824      * For filterable `string_value`s, a maximum total number of 200 values
825      * is allowed, with each `string_value` has a byte size of no more than
826      * 500B. For unfilterable `string_values`, the maximum total byte size of
827      * unfilterable `string_values` is 50KB.
828      * Empty string isn't allowed.
829      * </pre>
830      *
831      * <code>repeated string string_values = 1;</code>
832      *
833      * @param index The index of the element to return.
834      * @return The stringValues at the given index.
835      */
getStringValues(int index)836     public java.lang.String getStringValues(int index) {
837       return stringValues_.get(index);
838     }
839     /**
840      *
841      *
842      * <pre>
843      * Exactly one of
844      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
845      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
846      * specified.
847      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
848      * `CASE_INSENSITIVE_MATCH`) search.
849      * For filterable `string_value`s, a maximum total number of 200 values
850      * is allowed, with each `string_value` has a byte size of no more than
851      * 500B. For unfilterable `string_values`, the maximum total byte size of
852      * unfilterable `string_values` is 50KB.
853      * Empty string isn't allowed.
854      * </pre>
855      *
856      * <code>repeated string string_values = 1;</code>
857      *
858      * @param index The index of the value to return.
859      * @return The bytes of the stringValues at the given index.
860      */
getStringValuesBytes(int index)861     public com.google.protobuf.ByteString getStringValuesBytes(int index) {
862       return stringValues_.getByteString(index);
863     }
864     /**
865      *
866      *
867      * <pre>
868      * Exactly one of
869      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
870      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
871      * specified.
872      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
873      * `CASE_INSENSITIVE_MATCH`) search.
874      * For filterable `string_value`s, a maximum total number of 200 values
875      * is allowed, with each `string_value` has a byte size of no more than
876      * 500B. For unfilterable `string_values`, the maximum total byte size of
877      * unfilterable `string_values` is 50KB.
878      * Empty string isn't allowed.
879      * </pre>
880      *
881      * <code>repeated string string_values = 1;</code>
882      *
883      * @param index The index to set the value at.
884      * @param value The stringValues to set.
885      * @return This builder for chaining.
886      */
setStringValues(int index, java.lang.String value)887     public Builder setStringValues(int index, java.lang.String value) {
888       if (value == null) {
889         throw new NullPointerException();
890       }
891       ensureStringValuesIsMutable();
892       stringValues_.set(index, value);
893       onChanged();
894       return this;
895     }
896     /**
897      *
898      *
899      * <pre>
900      * Exactly one of
901      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
902      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
903      * specified.
904      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
905      * `CASE_INSENSITIVE_MATCH`) search.
906      * For filterable `string_value`s, a maximum total number of 200 values
907      * is allowed, with each `string_value` has a byte size of no more than
908      * 500B. For unfilterable `string_values`, the maximum total byte size of
909      * unfilterable `string_values` is 50KB.
910      * Empty string isn't allowed.
911      * </pre>
912      *
913      * <code>repeated string string_values = 1;</code>
914      *
915      * @param value The stringValues to add.
916      * @return This builder for chaining.
917      */
addStringValues(java.lang.String value)918     public Builder addStringValues(java.lang.String value) {
919       if (value == null) {
920         throw new NullPointerException();
921       }
922       ensureStringValuesIsMutable();
923       stringValues_.add(value);
924       onChanged();
925       return this;
926     }
927     /**
928      *
929      *
930      * <pre>
931      * Exactly one of
932      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
933      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
934      * specified.
935      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
936      * `CASE_INSENSITIVE_MATCH`) search.
937      * For filterable `string_value`s, a maximum total number of 200 values
938      * is allowed, with each `string_value` has a byte size of no more than
939      * 500B. For unfilterable `string_values`, the maximum total byte size of
940      * unfilterable `string_values` is 50KB.
941      * Empty string isn't allowed.
942      * </pre>
943      *
944      * <code>repeated string string_values = 1;</code>
945      *
946      * @param values The stringValues to add.
947      * @return This builder for chaining.
948      */
addAllStringValues(java.lang.Iterable<java.lang.String> values)949     public Builder addAllStringValues(java.lang.Iterable<java.lang.String> values) {
950       ensureStringValuesIsMutable();
951       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringValues_);
952       onChanged();
953       return this;
954     }
955     /**
956      *
957      *
958      * <pre>
959      * Exactly one of
960      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
961      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
962      * specified.
963      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
964      * `CASE_INSENSITIVE_MATCH`) search.
965      * For filterable `string_value`s, a maximum total number of 200 values
966      * is allowed, with each `string_value` has a byte size of no more than
967      * 500B. For unfilterable `string_values`, the maximum total byte size of
968      * unfilterable `string_values` is 50KB.
969      * Empty string isn't allowed.
970      * </pre>
971      *
972      * <code>repeated string string_values = 1;</code>
973      *
974      * @return This builder for chaining.
975      */
clearStringValues()976     public Builder clearStringValues() {
977       stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
978       bitField0_ = (bitField0_ & ~0x00000001);
979       onChanged();
980       return this;
981     }
982     /**
983      *
984      *
985      * <pre>
986      * Exactly one of
987      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
988      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
989      * specified.
990      * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
991      * `CASE_INSENSITIVE_MATCH`) search.
992      * For filterable `string_value`s, a maximum total number of 200 values
993      * is allowed, with each `string_value` has a byte size of no more than
994      * 500B. For unfilterable `string_values`, the maximum total byte size of
995      * unfilterable `string_values` is 50KB.
996      * Empty string isn't allowed.
997      * </pre>
998      *
999      * <code>repeated string string_values = 1;</code>
1000      *
1001      * @param value The bytes of the stringValues to add.
1002      * @return This builder for chaining.
1003      */
addStringValuesBytes(com.google.protobuf.ByteString value)1004     public Builder addStringValuesBytes(com.google.protobuf.ByteString value) {
1005       if (value == null) {
1006         throw new NullPointerException();
1007       }
1008       checkByteStringIsUtf8(value);
1009       ensureStringValuesIsMutable();
1010       stringValues_.add(value);
1011       onChanged();
1012       return this;
1013     }
1014 
1015     private com.google.protobuf.Internal.LongList longValues_ = emptyLongList();
1016 
ensureLongValuesIsMutable()1017     private void ensureLongValuesIsMutable() {
1018       if (!((bitField0_ & 0x00000002) != 0)) {
1019         longValues_ = mutableCopy(longValues_);
1020         bitField0_ |= 0x00000002;
1021       }
1022     }
1023     /**
1024      *
1025      *
1026      * <pre>
1027      * Exactly one of
1028      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
1029      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
1030      * specified.
1031      * This field is used to perform number range search.
1032      * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
1033      * Currently at most 1
1034      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
1035      * supported.
1036      * </pre>
1037      *
1038      * <code>repeated int64 long_values = 2;</code>
1039      *
1040      * @return A list containing the longValues.
1041      */
getLongValuesList()1042     public java.util.List<java.lang.Long> getLongValuesList() {
1043       return ((bitField0_ & 0x00000002) != 0)
1044           ? java.util.Collections.unmodifiableList(longValues_)
1045           : longValues_;
1046     }
1047     /**
1048      *
1049      *
1050      * <pre>
1051      * Exactly one of
1052      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
1053      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
1054      * specified.
1055      * This field is used to perform number range search.
1056      * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
1057      * Currently at most 1
1058      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
1059      * supported.
1060      * </pre>
1061      *
1062      * <code>repeated int64 long_values = 2;</code>
1063      *
1064      * @return The count of longValues.
1065      */
getLongValuesCount()1066     public int getLongValuesCount() {
1067       return longValues_.size();
1068     }
1069     /**
1070      *
1071      *
1072      * <pre>
1073      * Exactly one of
1074      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
1075      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
1076      * specified.
1077      * This field is used to perform number range search.
1078      * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
1079      * Currently at most 1
1080      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
1081      * supported.
1082      * </pre>
1083      *
1084      * <code>repeated int64 long_values = 2;</code>
1085      *
1086      * @param index The index of the element to return.
1087      * @return The longValues at the given index.
1088      */
getLongValues(int index)1089     public long getLongValues(int index) {
1090       return longValues_.getLong(index);
1091     }
1092     /**
1093      *
1094      *
1095      * <pre>
1096      * Exactly one of
1097      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
1098      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
1099      * specified.
1100      * This field is used to perform number range search.
1101      * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
1102      * Currently at most 1
1103      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
1104      * supported.
1105      * </pre>
1106      *
1107      * <code>repeated int64 long_values = 2;</code>
1108      *
1109      * @param index The index to set the value at.
1110      * @param value The longValues to set.
1111      * @return This builder for chaining.
1112      */
setLongValues(int index, long value)1113     public Builder setLongValues(int index, long value) {
1114 
1115       ensureLongValuesIsMutable();
1116       longValues_.setLong(index, value);
1117       onChanged();
1118       return this;
1119     }
1120     /**
1121      *
1122      *
1123      * <pre>
1124      * Exactly one of
1125      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
1126      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
1127      * specified.
1128      * This field is used to perform number range search.
1129      * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
1130      * Currently at most 1
1131      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
1132      * supported.
1133      * </pre>
1134      *
1135      * <code>repeated int64 long_values = 2;</code>
1136      *
1137      * @param value The longValues to add.
1138      * @return This builder for chaining.
1139      */
addLongValues(long value)1140     public Builder addLongValues(long value) {
1141 
1142       ensureLongValuesIsMutable();
1143       longValues_.addLong(value);
1144       onChanged();
1145       return this;
1146     }
1147     /**
1148      *
1149      *
1150      * <pre>
1151      * Exactly one of
1152      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
1153      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
1154      * specified.
1155      * This field is used to perform number range search.
1156      * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
1157      * Currently at most 1
1158      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
1159      * supported.
1160      * </pre>
1161      *
1162      * <code>repeated int64 long_values = 2;</code>
1163      *
1164      * @param values The longValues to add.
1165      * @return This builder for chaining.
1166      */
addAllLongValues(java.lang.Iterable<? extends java.lang.Long> values)1167     public Builder addAllLongValues(java.lang.Iterable<? extends java.lang.Long> values) {
1168       ensureLongValuesIsMutable();
1169       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, longValues_);
1170       onChanged();
1171       return this;
1172     }
1173     /**
1174      *
1175      *
1176      * <pre>
1177      * Exactly one of
1178      * [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or
1179      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be
1180      * specified.
1181      * This field is used to perform number range search.
1182      * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
1183      * Currently at most 1
1184      * [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is
1185      * supported.
1186      * </pre>
1187      *
1188      * <code>repeated int64 long_values = 2;</code>
1189      *
1190      * @return This builder for chaining.
1191      */
clearLongValues()1192     public Builder clearLongValues() {
1193       longValues_ = emptyLongList();
1194       bitField0_ = (bitField0_ & ~0x00000002);
1195       onChanged();
1196       return this;
1197     }
1198 
1199     private boolean filterable_;
1200     /**
1201      *
1202      *
1203      * <pre>
1204      * If the `filterable` flag is true, the custom field values may be used for
1205      * custom attribute filters
1206      * [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter].
1207      * If false, these values may not be used for custom attribute filters.
1208      * Default is false.
1209      * </pre>
1210      *
1211      * <code>bool filterable = 3;</code>
1212      *
1213      * @return The filterable.
1214      */
1215     @java.lang.Override
getFilterable()1216     public boolean getFilterable() {
1217       return filterable_;
1218     }
1219     /**
1220      *
1221      *
1222      * <pre>
1223      * If the `filterable` flag is true, the custom field values may be used for
1224      * custom attribute filters
1225      * [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter].
1226      * If false, these values may not be used for custom attribute filters.
1227      * Default is false.
1228      * </pre>
1229      *
1230      * <code>bool filterable = 3;</code>
1231      *
1232      * @param value The filterable to set.
1233      * @return This builder for chaining.
1234      */
setFilterable(boolean value)1235     public Builder setFilterable(boolean value) {
1236 
1237       filterable_ = value;
1238       bitField0_ |= 0x00000004;
1239       onChanged();
1240       return this;
1241     }
1242     /**
1243      *
1244      *
1245      * <pre>
1246      * If the `filterable` flag is true, the custom field values may be used for
1247      * custom attribute filters
1248      * [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter].
1249      * If false, these values may not be used for custom attribute filters.
1250      * Default is false.
1251      * </pre>
1252      *
1253      * <code>bool filterable = 3;</code>
1254      *
1255      * @return This builder for chaining.
1256      */
clearFilterable()1257     public Builder clearFilterable() {
1258       bitField0_ = (bitField0_ & ~0x00000004);
1259       filterable_ = false;
1260       onChanged();
1261       return this;
1262     }
1263 
1264     private boolean keywordSearchable_;
1265     /**
1266      *
1267      *
1268      * <pre>
1269      * If the `keyword_searchable` flag is true, the keywords in custom fields are
1270      * searchable by keyword match.
1271      * If false, the values are not searchable by keyword match.
1272      * Default is false.
1273      * </pre>
1274      *
1275      * <code>bool keyword_searchable = 4;</code>
1276      *
1277      * @return The keywordSearchable.
1278      */
1279     @java.lang.Override
getKeywordSearchable()1280     public boolean getKeywordSearchable() {
1281       return keywordSearchable_;
1282     }
1283     /**
1284      *
1285      *
1286      * <pre>
1287      * If the `keyword_searchable` flag is true, the keywords in custom fields are
1288      * searchable by keyword match.
1289      * If false, the values are not searchable by keyword match.
1290      * Default is false.
1291      * </pre>
1292      *
1293      * <code>bool keyword_searchable = 4;</code>
1294      *
1295      * @param value The keywordSearchable to set.
1296      * @return This builder for chaining.
1297      */
setKeywordSearchable(boolean value)1298     public Builder setKeywordSearchable(boolean value) {
1299 
1300       keywordSearchable_ = value;
1301       bitField0_ |= 0x00000008;
1302       onChanged();
1303       return this;
1304     }
1305     /**
1306      *
1307      *
1308      * <pre>
1309      * If the `keyword_searchable` flag is true, the keywords in custom fields are
1310      * searchable by keyword match.
1311      * If false, the values are not searchable by keyword match.
1312      * Default is false.
1313      * </pre>
1314      *
1315      * <code>bool keyword_searchable = 4;</code>
1316      *
1317      * @return This builder for chaining.
1318      */
clearKeywordSearchable()1319     public Builder clearKeywordSearchable() {
1320       bitField0_ = (bitField0_ & ~0x00000008);
1321       keywordSearchable_ = false;
1322       onChanged();
1323       return this;
1324     }
1325 
1326     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1327     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1328       return super.setUnknownFields(unknownFields);
1329     }
1330 
1331     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1332     public final Builder mergeUnknownFields(
1333         final com.google.protobuf.UnknownFieldSet unknownFields) {
1334       return super.mergeUnknownFields(unknownFields);
1335     }
1336 
1337     // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.CustomAttribute)
1338   }
1339 
1340   // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.CustomAttribute)
1341   private static final com.google.cloud.talent.v4.CustomAttribute DEFAULT_INSTANCE;
1342 
1343   static {
1344     DEFAULT_INSTANCE = new com.google.cloud.talent.v4.CustomAttribute();
1345   }
1346 
getDefaultInstance()1347   public static com.google.cloud.talent.v4.CustomAttribute getDefaultInstance() {
1348     return DEFAULT_INSTANCE;
1349   }
1350 
1351   private static final com.google.protobuf.Parser<CustomAttribute> PARSER =
1352       new com.google.protobuf.AbstractParser<CustomAttribute>() {
1353         @java.lang.Override
1354         public CustomAttribute parsePartialFrom(
1355             com.google.protobuf.CodedInputStream input,
1356             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1357             throws com.google.protobuf.InvalidProtocolBufferException {
1358           Builder builder = newBuilder();
1359           try {
1360             builder.mergeFrom(input, extensionRegistry);
1361           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1362             throw e.setUnfinishedMessage(builder.buildPartial());
1363           } catch (com.google.protobuf.UninitializedMessageException e) {
1364             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1365           } catch (java.io.IOException e) {
1366             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1367                 .setUnfinishedMessage(builder.buildPartial());
1368           }
1369           return builder.buildPartial();
1370         }
1371       };
1372 
parser()1373   public static com.google.protobuf.Parser<CustomAttribute> parser() {
1374     return PARSER;
1375   }
1376 
1377   @java.lang.Override
getParserForType()1378   public com.google.protobuf.Parser<CustomAttribute> getParserForType() {
1379     return PARSER;
1380   }
1381 
1382   @java.lang.Override
getDefaultInstanceForType()1383   public com.google.cloud.talent.v4.CustomAttribute getDefaultInstanceForType() {
1384     return DEFAULT_INSTANCE;
1385   }
1386 }
1387