Class CustomAttribute.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
com.google.cloud.talent.v4.CustomAttribute.Builder
All Implemented Interfaces:
CustomAttributeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CustomAttribute

public static final class CustomAttribute.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder> implements CustomAttributeOrBuilder
 Custom attribute values that are either filterable or non-filterable.
 
Protobuf type google.cloud.talent.v4.CustomAttribute
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllLongValues(Iterable<? extends Long> values)
    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.
    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.
    addLongValues(long value)
    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.
    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.
    addStringValuesBytes(com.google.protobuf.ByteString value)
    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.
     
     
     
    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 the `keyword_searchable` flag is true, the keywords in custom fields are searchable by keyword match.
    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.
    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.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    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
    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
    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.
    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.
    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
    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
    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
    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.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setFilterable(boolean value)
    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].
    setKeywordSearchable(boolean value)
    If the `keyword_searchable` flag is true, the keywords in custom fields are searchable by keyword match.
    setLongValues(int index, long value)
    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.
    setStringValues(int index, String value)
    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.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
    • clear

      public CustomAttribute.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
    • getDefaultInstanceForType

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

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

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

      public CustomAttribute.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
    • mergeFrom

      public CustomAttribute.Builder mergeFrom(CustomAttribute other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
    • mergeFrom

      public CustomAttribute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
      Throws:
      IOException
    • 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.
    • setStringValues

      public CustomAttribute.Builder setStringValues(int index, String value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The stringValues to set.
      Returns:
      This builder for chaining.
    • addStringValues

      public CustomAttribute.Builder addStringValues(String value)
       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;
      Parameters:
      value - The stringValues to add.
      Returns:
      This builder for chaining.
    • addAllStringValues

      public CustomAttribute.Builder addAllStringValues(Iterable<String> values)
       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;
      Parameters:
      values - The stringValues to add.
      Returns:
      This builder for chaining.
    • clearStringValues

      public CustomAttribute.Builder clearStringValues()
       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;
      Returns:
      This builder for chaining.
    • addStringValuesBytes

      public CustomAttribute.Builder addStringValuesBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes of the stringValues to add.
      Returns:
      This builder for chaining.
    • 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.
    • setLongValues

      public CustomAttribute.Builder setLongValues(int index, long value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The longValues to set.
      Returns:
      This builder for chaining.
    • addLongValues

      public CustomAttribute.Builder addLongValues(long value)
       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;
      Parameters:
      value - The longValues to add.
      Returns:
      This builder for chaining.
    • addAllLongValues

      public CustomAttribute.Builder addAllLongValues(Iterable<? extends Long> values)
       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;
      Parameters:
      values - The longValues to add.
      Returns:
      This builder for chaining.
    • clearLongValues

      public CustomAttribute.Builder clearLongValues()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setFilterable

      public CustomAttribute.Builder setFilterable(boolean value)
       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;
      Parameters:
      value - The filterable to set.
      Returns:
      This builder for chaining.
    • clearFilterable

      public CustomAttribute.Builder clearFilterable()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setKeywordSearchable

      public CustomAttribute.Builder setKeywordSearchable(boolean value)
       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;
      Parameters:
      value - The keywordSearchable to set.
      Returns:
      This builder for chaining.
    • clearKeywordSearchable

      public CustomAttribute.Builder clearKeywordSearchable()
       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:
      This builder for chaining.