public static final class CustomAttribute.Builder extends GeneratedMessageV3.Builder<CustomAttribute.Builder> implements CustomAttributeOrBuilder
Custom attribute values that are either filterable or non-filterable.Protobuf type
google.cloud.talent.v4.CustomAttribute
Modifier and Type | Method and Description |
---|---|
CustomAttribute.Builder |
addAllLongValues(Iterable<? extends Long> values)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute.Builder |
addAllStringValues(Iterable<String> values)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute.Builder |
addLongValues(long value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
CustomAttribute.Builder |
addStringValues(String value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute.Builder |
addStringValuesBytes(ByteString value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute |
build() |
CustomAttribute |
buildPartial() |
CustomAttribute.Builder |
clear() |
CustomAttribute.Builder |
clearField(Descriptors.FieldDescriptor field) |
CustomAttribute.Builder |
clearFilterable()
If the `filterable` flag is true, the custom field values may be used for
custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter].
|
CustomAttribute.Builder |
clearKeywordSearchable()
If the `keyword_searchable` flag is true, the keywords in custom fields are
searchable by keyword match.
|
CustomAttribute.Builder |
clearLongValues()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
CustomAttribute.Builder |
clearStringValues()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute.Builder |
clone() |
CustomAttribute |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getFilterable()
If the `filterable` flag is true, the custom field values may be used for
custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter].
|
boolean |
getKeywordSearchable()
If the `keyword_searchable` flag is true, the keywords in custom fields are
searchable by keyword match.
|
long |
getLongValues(int index)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
int |
getLongValuesCount()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
List<Long> |
getLongValuesList()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
String |
getStringValues(int index)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
ByteString |
getStringValuesBytes(int index)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
int |
getStringValuesCount()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
ProtocolStringList |
getStringValuesList()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CustomAttribute.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
CustomAttribute.Builder |
mergeFrom(CustomAttribute other) |
CustomAttribute.Builder |
mergeFrom(Message other) |
CustomAttribute.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
CustomAttribute.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
CustomAttribute.Builder |
setFilterable(boolean value)
If the `filterable` flag is true, the custom field values may be used for
custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter].
|
CustomAttribute.Builder |
setKeywordSearchable(boolean value)
If the `keyword_searchable` flag is true, the keywords in custom fields are
searchable by keyword match.
|
CustomAttribute.Builder |
setLongValues(int index,
long value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
CustomAttribute.Builder |
setStringValues(int index,
String value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
|
CustomAttribute.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public CustomAttribute build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public CustomAttribute buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public CustomAttribute.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder mergeFrom(CustomAttribute other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public CustomAttribute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CustomAttribute.Builder>
IOException
public ProtocolStringList getStringValuesList()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
getStringValuesList
in interface CustomAttributeOrBuilder
public int getStringValuesCount()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
getStringValuesCount
in interface CustomAttributeOrBuilder
public String getStringValues(int index)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
getStringValues
in interface CustomAttributeOrBuilder
index
- The index of the element to return.public ByteString getStringValuesBytes(int index)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
getStringValuesBytes
in interface CustomAttributeOrBuilder
index
- The index of the value to return.public CustomAttribute.Builder setStringValues(int index, String value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
index
- The index to set the value at.value
- The stringValues to set.public CustomAttribute.Builder addStringValues(String value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
value
- The stringValues to add.public CustomAttribute.Builder addAllStringValues(Iterable<String> values)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
values
- The stringValues to add.public CustomAttribute.Builder clearStringValues()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
public CustomAttribute.Builder addStringValuesBytes(ByteString value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum total number of 200 values is allowed, with each `string_value` has a byte size of no more than 500B. For unfilterable `string_values`, the maximum total byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed.
repeated string string_values = 1;
value
- The bytes of the stringValues to add.public List<Long> getLongValuesList()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. Currently at most 1 [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is supported.
repeated int64 long_values = 2;
getLongValuesList
in interface CustomAttributeOrBuilder
public int getLongValuesCount()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. Currently at most 1 [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is supported.
repeated int64 long_values = 2;
getLongValuesCount
in interface CustomAttributeOrBuilder
public long getLongValues(int index)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. Currently at most 1 [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is supported.
repeated int64 long_values = 2;
getLongValues
in interface CustomAttributeOrBuilder
index
- The index of the element to return.public CustomAttribute.Builder setLongValues(int index, long value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. Currently at most 1 [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is supported.
repeated int64 long_values = 2;
index
- The index to set the value at.value
- The longValues to set.public CustomAttribute.Builder addLongValues(long value)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. Currently at most 1 [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is supported.
repeated int64 long_values = 2;
value
- The longValues to add.public CustomAttribute.Builder addAllLongValues(Iterable<? extends Long> values)
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. Currently at most 1 [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is supported.
repeated int64 long_values = 2;
values
- The longValues to add.public CustomAttribute.Builder clearLongValues()
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified. This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. Currently at most 1 [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is supported.
repeated int64 long_values = 2;
public boolean getFilterable()
If the `filterable` flag is true, the custom field values may be used for custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter]. If false, these values may not be used for custom attribute filters. Default is false.
bool filterable = 3;
getFilterable
in interface CustomAttributeOrBuilder
public CustomAttribute.Builder setFilterable(boolean value)
If the `filterable` flag is true, the custom field values may be used for custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter]. If false, these values may not be used for custom attribute filters. Default is false.
bool filterable = 3;
value
- The filterable to set.public CustomAttribute.Builder clearFilterable()
If the `filterable` flag is true, the custom field values may be used for custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter]. If false, these values may not be used for custom attribute filters. Default is false.
bool filterable = 3;
public boolean getKeywordSearchable()
If the `keyword_searchable` flag is true, the keywords in custom fields are searchable by keyword match. If false, the values are not searchable by keyword match. Default is false.
bool keyword_searchable = 4;
getKeywordSearchable
in interface CustomAttributeOrBuilder
public CustomAttribute.Builder setKeywordSearchable(boolean value)
If the `keyword_searchable` flag is true, the keywords in custom fields are searchable by keyword match. If false, the values are not searchable by keyword match. Default is false.
bool keyword_searchable = 4;
value
- The keywordSearchable to set.public CustomAttribute.Builder clearKeywordSearchable()
If the `keyword_searchable` flag is true, the keywords in custom fields are searchable by keyword match. If false, the values are not searchable by keyword match. Default is false.
bool keyword_searchable = 4;
public final CustomAttribute.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
public final CustomAttribute.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<CustomAttribute.Builder>
Copyright © 2022 Google LLC. All rights reserved.