Class CustomAttribute (2.4.6)

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

Static Fields

FILTERABLE_FIELD_NUMBER

public static final int FILTERABLE_FIELD_NUMBER
Field Value
TypeDescription
int

KEYWORD_SEARCHABLE_FIELD_NUMBER

public static final int KEYWORD_SEARCHABLE_FIELD_NUMBER
Field Value
TypeDescription
int

LONG_VALUES_FIELD_NUMBER

public static final int LONG_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

STRING_VALUES_FIELD_NUMBER

public static final int STRING_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomAttribute getDefaultInstance()
Returns
TypeDescription
CustomAttribute

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CustomAttribute.Builder newBuilder()
Returns
TypeDescription
CustomAttribute.Builder

newBuilder(CustomAttribute prototype)

public static CustomAttribute.Builder newBuilder(CustomAttribute prototype)
Parameter
NameDescription
prototypeCustomAttribute
Returns
TypeDescription
CustomAttribute.Builder

parseDelimitedFrom(InputStream input)

public static CustomAttribute parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomAttribute parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomAttribute parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomAttribute parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CustomAttribute parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomAttribute parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomAttribute parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CustomAttribute> parser()
Returns
TypeDescription
Parser<CustomAttribute>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CustomAttribute getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<Long>

A list containing the longValues.

getParserForType()

public Parser<CustomAttribute> getParserForType()
Returns
TypeDescription
Parser<CustomAttribute>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the stringValues.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CustomAttribute.Builder newBuilderForType()
Returns
TypeDescription
CustomAttribute.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomAttribute.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomAttribute.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CustomAttribute.Builder toBuilder()
Returns
TypeDescription
CustomAttribute.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException