Class CustomAttribute (2.45.0)

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
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()
Returns
Type Description
CustomAttribute

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CustomAttribute.Builder newBuilder()
Returns
Type Description
CustomAttribute.Builder

newBuilder(CustomAttribute prototype)

public static CustomAttribute.Builder newBuilder(CustomAttribute prototype)
Parameter
Name Description
prototype CustomAttribute
Returns
Type Description
CustomAttribute.Builder

parseDelimitedFrom(InputStream input)

public static CustomAttribute parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomAttribute
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomAttribute
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CustomAttribute parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CustomAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomAttribute parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CustomAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomAttribute parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CustomAttribute
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomAttribute
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CustomAttribute parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomAttribute
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomAttribute
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CustomAttribute parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CustomAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CustomAttribute> parser()
Returns
Type Description
Parser<CustomAttribute>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CustomAttribute getDefaultInstanceForType()
Returns
Type Description
CustomAttribute

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
Type Description
Parser<CustomAttribute>
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_values, 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_values, 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_values, 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_values, 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
ProtocolStringList

A list containing the stringValues.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CustomAttribute.Builder newBuilderForType()
Returns
Type Description
CustomAttribute.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomAttribute.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CustomAttribute.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CustomAttribute.Builder toBuilder()
Returns
Type Description
CustomAttribute.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException