Class CompensationFilter.Builder

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

public static final class CompensationFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<CompensationFilter.Builder> implements CompensationFilterOrBuilder
 Filter on job compensation type and amount.
 
Protobuf type google.cloud.talent.v4.CompensationFilter
  • 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<CompensationFilter.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<CompensationFilter.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<CompensationFilter.Builder>
    • getDefaultInstanceForType

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

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

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

      public CompensationFilter.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<CompensationFilter.Builder>
    • mergeFrom

    • isInitialized

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

      public CompensationFilter.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<CompensationFilter.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
       Required. Type of filter.
       
      .google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface CompensationFilterOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public CompensationFilter.Builder setTypeValue(int value)
       Required. Type of filter.
       
      .google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Required. Type of filter.
       
      .google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface CompensationFilterOrBuilder
      Returns:
      The type.
    • setType

       Required. Type of filter.
       
      .google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public CompensationFilter.Builder clearType()
       Required. Type of filter.
       
      .google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getUnitsList

      public List<CompensationInfo.CompensationUnit> getUnitsList()
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUnitsList in interface CompensationFilterOrBuilder
      Returns:
      A list containing the units.
    • getUnitsCount

      public int getUnitsCount()
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUnitsCount in interface CompensationFilterOrBuilder
      Returns:
      The count of units.
    • getUnits

      public CompensationInfo.CompensationUnit getUnits(int index)
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUnits in interface CompensationFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The units at the given index.
    • setUnits

       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The units to set.
      Returns:
      This builder for chaining.
    • addUnits

       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The units to add.
      Returns:
      This builder for chaining.
    • addAllUnits

       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The units to add.
      Returns:
      This builder for chaining.
    • clearUnits

      public CompensationFilter.Builder clearUnits()
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getUnitsValueList

      public List<Integer> getUnitsValueList()
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUnitsValueList in interface CompensationFilterOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for units.
    • getUnitsValue

      public int getUnitsValue(int index)
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUnitsValue in interface CompensationFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of units at the given index.
    • setUnitsValue

      public CompensationFilter.Builder setUnitsValue(int index, int value)
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for units to set.
      Returns:
      This builder for chaining.
    • addUnitsValue

      public CompensationFilter.Builder addUnitsValue(int value)
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for units to add.
      Returns:
      This builder for chaining.
    • addAllUnitsValue

      public CompensationFilter.Builder addAllUnitsValue(Iterable<Integer> values)
       Required. Specify desired `base compensation entry's`
       [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit].
       
      repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The enum numeric values on the wire for units to add.
      Returns:
      This builder for chaining.
    • hasRange

      public boolean hasRange()
       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;
      Specified by:
      hasRange in interface CompensationFilterOrBuilder
      Returns:
      Whether the range field is set.
    • getRange

       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;
      Specified by:
      getRange in interface CompensationFilterOrBuilder
      Returns:
      The range.
    • setRange

       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;
    • setRange

       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;
    • mergeRange

       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;
    • clearRange

      public CompensationFilter.Builder clearRange()
       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;
    • getRangeBuilder

       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;
    • getRangeOrBuilder

      public CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder()
       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;
      Specified by:
      getRangeOrBuilder in interface CompensationFilterOrBuilder
    • getIncludeJobsWithUnspecifiedCompensationRange

      public boolean getIncludeJobsWithUnspecifiedCompensationRange()
       If set to true, jobs with unspecified compensation range fields are
       included.
       
      bool include_jobs_with_unspecified_compensation_range = 4;
      Specified by:
      getIncludeJobsWithUnspecifiedCompensationRange in interface CompensationFilterOrBuilder
      Returns:
      The includeJobsWithUnspecifiedCompensationRange.
    • setIncludeJobsWithUnspecifiedCompensationRange

      public CompensationFilter.Builder setIncludeJobsWithUnspecifiedCompensationRange(boolean value)
       If set to true, jobs with unspecified compensation range fields are
       included.
       
      bool include_jobs_with_unspecified_compensation_range = 4;
      Parameters:
      value - The includeJobsWithUnspecifiedCompensationRange to set.
      Returns:
      This builder for chaining.
    • clearIncludeJobsWithUnspecifiedCompensationRange

      public CompensationFilter.Builder clearIncludeJobsWithUnspecifiedCompensationRange()
       If set to true, jobs with unspecified compensation range fields are
       included.
       
      bool include_jobs_with_unspecified_compensation_range = 4;
      Returns:
      This builder for chaining.