public final class CustomAttribute extends GeneratedMessageV3 implements CustomAttributeOrBuilder
Custom attribute values that are either filterable or non-filterable.
Protobuf type google.cloud.talent.v4beta1.CustomAttribute
Static Fields
FILTERABLE_FIELD_NUMBER
public static final int FILTERABLE_FIELD_NUMBER
Field Value
KEYWORD_SEARCHABLE_FIELD_NUMBER
public static final int KEYWORD_SEARCHABLE_FIELD_NUMBER
Field Value
LONG_VALUES_FIELD_NUMBER
public static final int LONG_VALUES_FIELD_NUMBER
Field Value
STRING_VALUES_FIELD_NUMBER
public static final int STRING_VALUES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CustomAttribute getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CustomAttribute.Builder newBuilder()
Returns
newBuilder(CustomAttribute prototype)
public static CustomAttribute.Builder newBuilder(CustomAttribute prototype)
Parameter
Returns
public static CustomAttribute parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CustomAttribute parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CustomAttribute parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomAttribute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CustomAttribute parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomAttribute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CustomAttribute parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CustomAttribute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CustomAttribute parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CustomAttribute parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CustomAttribute parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomAttribute parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CustomAttribute> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public CustomAttribute getDefaultInstanceForType()
Returns
getFilterable()
public boolean getFilterable()
If the filterable
flag is true, the custom field values may be used for
custom attribute filters
JobQuery.custom_attribute_filter.
If false, these values may not be used for custom attribute filters.
Default is false.
bool filterable = 3;
Returns
Type | Description |
boolean | The filterable.
|
getKeywordSearchable()
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;
Returns
Type | Description |
boolean | The keywordSearchable.
|
getLongValues(int index)
public long getLongValues(int index)
Exactly one of
string_values
or 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 is
supported.
repeated int64 long_values = 2;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
long | The longValues at the given index.
|
getLongValuesCount()
public int getLongValuesCount()
Exactly one of
string_values
or 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 is
supported.
repeated int64 long_values = 2;
Returns
Type | Description |
int | The count of longValues.
|
getLongValuesList()
public List<Long> getLongValuesList()
Exactly one of
string_values
or 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 is
supported.
repeated int64 long_values = 2;
Returns
Type | Description |
List<Long> | A list containing the longValues.
|
getParserForType()
public Parser<CustomAttribute> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStringValues(int index)
public String getStringValues(int index)
Exactly one of
string_values
or 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;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The stringValues at the given index.
|
getStringValuesBytes(int index)
public ByteString getStringValuesBytes(int index)
Exactly one of
string_values
or 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;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the stringValues at the given index.
|
getStringValuesCount()
public int getStringValuesCount()
Exactly one of
string_values
or 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;
Returns
Type | Description |
int | The count of stringValues.
|
getStringValuesList()
public ProtocolStringList getStringValuesList()
Exactly one of
string_values
or 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;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CustomAttribute.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomAttribute.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CustomAttribute.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions