public final class CustomAttribute extends GeneratedMessageV3 implements CustomAttributeOrBuilder
Custom attribute values that are either filterable or non-filterable.
Protobuf type google.cloud.talent.v4.CustomAttribute
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
FILTERABLE_FIELD_NUMBER
public static final int FILTERABLE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
KEYWORD_SEARCHABLE_FIELD_NUMBER
public static final int KEYWORD_SEARCHABLE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LONG_VALUES_FIELD_NUMBER
public static final int LONG_VALUES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STRING_VALUES_FIELD_NUMBER
public static final int STRING_VALUES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static CustomAttribute getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CustomAttribute.Builder newBuilder()
newBuilder(CustomAttribute prototype)
public static CustomAttribute.Builder newBuilder(CustomAttribute prototype)
public static CustomAttribute parseDelimitedFrom(InputStream input)
public static CustomAttribute parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CustomAttribute parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomAttribute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CustomAttribute parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomAttribute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomAttribute parseFrom(CodedInputStream input)
public static CustomAttribute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomAttribute parseFrom(InputStream input)
public static CustomAttribute parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CustomAttribute parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomAttribute parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CustomAttribute> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public CustomAttribute getDefaultInstanceForType()
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CustomAttribute.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomAttribute.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public CustomAttribute.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides