Class CustomAttribute

  • All Implemented Interfaces:
    CustomAttributeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class CustomAttribute
    extends com.google.protobuf.GeneratedMessageV3
    implements CustomAttributeOrBuilder
     Custom attribute values that are either filterable or non-filterable.
     
    Protobuf type google.cloud.talent.v4.CustomAttribute
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CustomAttribute.Builder
      Custom attribute values that are either filterable or non-filterable.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      static CustomAttribute getDefaultInstance()  
      CustomAttribute getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      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.
      com.google.protobuf.Parser<CustomAttribute> getParserForType()  
      int getSerializedSize()  
      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.
      com.google.protobuf.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.
      com.google.protobuf.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.
      int hashCode()  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static CustomAttribute.Builder newBuilder()  
      static CustomAttribute.Builder newBuilder​(CustomAttribute prototype)  
      CustomAttribute.Builder newBuilderForType()  
      protected CustomAttribute.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static CustomAttribute parseDelimitedFrom​(InputStream input)  
      static CustomAttribute parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CustomAttribute parseFrom​(byte[] data)  
      static CustomAttribute parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CustomAttribute parseFrom​(com.google.protobuf.ByteString data)  
      static CustomAttribute parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CustomAttribute parseFrom​(com.google.protobuf.CodedInputStream input)  
      static CustomAttribute parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CustomAttribute parseFrom​(InputStream input)  
      static CustomAttribute parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CustomAttribute parseFrom​(ByteBuffer data)  
      static CustomAttribute parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<CustomAttribute> parser()  
      CustomAttribute.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Field Detail

      • STRING_VALUES_FIELD_NUMBER

        public static final int STRING_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LONG_VALUES_FIELD_NUMBER

        public static final int LONG_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FILTERABLE_FIELD_NUMBER

        public static final int FILTERABLE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KEYWORD_SEARCHABLE_FIELD_NUMBER

        public static final int KEYWORD_SEARCHABLE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getStringValuesList

        public com.google.protobuf.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;
        Specified by:
        getStringValuesList in interface CustomAttributeOrBuilder
        Returns:
        A list containing the stringValues.
      • getStringValuesCount

        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;
        Specified by:
        getStringValuesCount in interface CustomAttributeOrBuilder
        Returns:
        The count of stringValues.
      • getStringValues

        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;
        Specified by:
        getStringValues in interface CustomAttributeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The stringValues at the given index.
      • getStringValuesBytes

        public com.google.protobuf.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;
        Specified by:
        getStringValuesBytes in interface CustomAttributeOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the stringValues at the given index.
      • getLongValuesList

        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;
        Specified by:
        getLongValuesList in interface CustomAttributeOrBuilder
        Returns:
        A list containing the longValues.
      • getLongValuesCount

        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;
        Specified by:
        getLongValuesCount in interface CustomAttributeOrBuilder
        Returns:
        The count of longValues.
      • getLongValues

        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;
        Specified by:
        getLongValues in interface CustomAttributeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The longValues at the given index.
      • 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][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;
        Specified by:
        getFilterable in interface CustomAttributeOrBuilder
        Returns:
        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;
        Specified by:
        getKeywordSearchable in interface CustomAttributeOrBuilder
        Returns:
        The keywordSearchable.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static CustomAttribute parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CustomAttribute parseFrom​(ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CustomAttribute parseFrom​(com.google.protobuf.ByteString data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CustomAttribute parseFrom​(com.google.protobuf.ByteString data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CustomAttribute parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CustomAttribute parseFrom​(byte[] data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CustomAttribute parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

        public CustomAttribute.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public CustomAttribute.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected CustomAttribute.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<CustomAttribute> parser()
      • getParserForType

        public com.google.protobuf.Parser<CustomAttribute> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public CustomAttribute getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder