Class CompensationInfo.CompensationEntry.Builder

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

public static final class CompensationInfo.CompensationEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<CompensationInfo.CompensationEntry.Builder> implements CompensationInfo.CompensationEntryOrBuilder
 A compensation entry that represents one component of compensation, such
 as base pay, bonus, or other compensation type.

 Annualization: One compensation entry can be annualized if
 - it contains valid
 [amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
 or
 [range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range].
 - and its
 [expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year]
 is set or can be derived. Its annualized range is determined as
 ([amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
 or
 [range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range])
 times
 [expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
 
Protobuf type google.cloud.talent.v4.CompensationInfo.CompensationEntry
  • 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<CompensationInfo.CompensationEntry.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<CompensationInfo.CompensationEntry.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<CompensationInfo.CompensationEntry.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public CompensationInfo.CompensationEntry.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<CompensationInfo.CompensationEntry.Builder>
      Throws:
      IOException
    • getCompensationAmountCase

      Specified by:
      getCompensationAmountCase in interface CompensationInfo.CompensationEntryOrBuilder
    • clearCompensationAmount

      public CompensationInfo.CompensationEntry.Builder clearCompensationAmount()
    • getTypeValue

      public int getTypeValue()
       Compensation type.
      
       Default is
       [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;
      Specified by:
      getTypeValue in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public CompensationInfo.CompensationEntry.Builder setTypeValue(int value)
       Compensation type.
      
       Default is
       [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Compensation type.
      
       Default is
       [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;
      Specified by:
      getType in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      The type.
    • setType

       Compensation type.
      
       Default is
       [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Compensation type.
      
       Default is
       [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;
      Returns:
      This builder for chaining.
    • getUnitValue

      public int getUnitValue()
       Frequency of the specified amount.
      
       Default is
       [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;
      Specified by:
      getUnitValue in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      The enum numeric value on the wire for unit.
    • setUnitValue

      public CompensationInfo.CompensationEntry.Builder setUnitValue(int value)
       Frequency of the specified amount.
      
       Default is
       [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;
      Parameters:
      value - The enum numeric value on the wire for unit to set.
      Returns:
      This builder for chaining.
    • getUnit

       Frequency of the specified amount.
      
       Default is
       [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;
      Specified by:
      getUnit in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      The unit.
    • setUnit

       Frequency of the specified amount.
      
       Default is
       [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;
      Parameters:
      value - The unit to set.
      Returns:
      This builder for chaining.
    • clearUnit

       Frequency of the specified amount.
      
       Default is
       [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       
      .google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;
      Returns:
      This builder for chaining.
    • hasAmount

      public boolean hasAmount()
       Compensation amount.
       
      .google.type.Money amount = 3;
      Specified by:
      hasAmount in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      Whether the amount field is set.
    • getAmount

      public Money getAmount()
       Compensation amount.
       
      .google.type.Money amount = 3;
      Specified by:
      getAmount in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      The amount.
    • setAmount

       Compensation amount.
       
      .google.type.Money amount = 3;
    • setAmount

      public CompensationInfo.CompensationEntry.Builder setAmount(Money.Builder builderForValue)
       Compensation amount.
       
      .google.type.Money amount = 3;
    • mergeAmount

       Compensation amount.
       
      .google.type.Money amount = 3;
    • clearAmount

       Compensation amount.
       
      .google.type.Money amount = 3;
    • getAmountBuilder

      public Money.Builder getAmountBuilder()
       Compensation amount.
       
      .google.type.Money amount = 3;
    • getAmountOrBuilder

      public MoneyOrBuilder getAmountOrBuilder()
       Compensation amount.
       
      .google.type.Money amount = 3;
      Specified by:
      getAmountOrBuilder in interface CompensationInfo.CompensationEntryOrBuilder
    • hasRange

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

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

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

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

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

       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;
    • getRangeBuilder

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

      public CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder()
       Compensation range.
       
      .google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;
      Specified by:
      getRangeOrBuilder in interface CompensationInfo.CompensationEntryOrBuilder
    • getDescription

      public String getDescription()
       Compensation description.  For example, could
       indicate equity terms or provide additional context to an estimated
       bonus.
       
      string description = 5;
      Specified by:
      getDescription in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Compensation description.  For example, could
       indicate equity terms or provide additional context to an estimated
       bonus.
       
      string description = 5;
      Specified by:
      getDescriptionBytes in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public CompensationInfo.CompensationEntry.Builder setDescription(String value)
       Compensation description.  For example, could
       indicate equity terms or provide additional context to an estimated
       bonus.
       
      string description = 5;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public CompensationInfo.CompensationEntry.Builder clearDescription()
       Compensation description.  For example, could
       indicate equity terms or provide additional context to an estimated
       bonus.
       
      string description = 5;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public CompensationInfo.CompensationEntry.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Compensation description.  For example, could
       indicate equity terms or provide additional context to an estimated
       bonus.
       
      string description = 5;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasExpectedUnitsPerYear

      public boolean hasExpectedUnitsPerYear()
       Expected number of units paid each year. If not specified, when
       [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
       FULLTIME, a default value is inferred based on
       [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
       Default values:
       - HOURLY: 2080
       - DAILY: 260
       - WEEKLY: 52
       - MONTHLY: 12
       - ANNUAL: 1
       
      .google.protobuf.DoubleValue expected_units_per_year = 6;
      Specified by:
      hasExpectedUnitsPerYear in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      Whether the expectedUnitsPerYear field is set.
    • getExpectedUnitsPerYear

      public com.google.protobuf.DoubleValue getExpectedUnitsPerYear()
       Expected number of units paid each year. If not specified, when
       [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
       FULLTIME, a default value is inferred based on
       [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
       Default values:
       - HOURLY: 2080
       - DAILY: 260
       - WEEKLY: 52
       - MONTHLY: 12
       - ANNUAL: 1
       
      .google.protobuf.DoubleValue expected_units_per_year = 6;
      Specified by:
      getExpectedUnitsPerYear in interface CompensationInfo.CompensationEntryOrBuilder
      Returns:
      The expectedUnitsPerYear.
    • setExpectedUnitsPerYear

      public CompensationInfo.CompensationEntry.Builder setExpectedUnitsPerYear(com.google.protobuf.DoubleValue value)
       Expected number of units paid each year. If not specified, when
       [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
       FULLTIME, a default value is inferred based on
       [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
       Default values:
       - HOURLY: 2080
       - DAILY: 260
       - WEEKLY: 52
       - MONTHLY: 12
       - ANNUAL: 1
       
      .google.protobuf.DoubleValue expected_units_per_year = 6;
    • setExpectedUnitsPerYear

      public CompensationInfo.CompensationEntry.Builder setExpectedUnitsPerYear(com.google.protobuf.DoubleValue.Builder builderForValue)
       Expected number of units paid each year. If not specified, when
       [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
       FULLTIME, a default value is inferred based on
       [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
       Default values:
       - HOURLY: 2080
       - DAILY: 260
       - WEEKLY: 52
       - MONTHLY: 12
       - ANNUAL: 1
       
      .google.protobuf.DoubleValue expected_units_per_year = 6;
    • mergeExpectedUnitsPerYear

      public CompensationInfo.CompensationEntry.Builder mergeExpectedUnitsPerYear(com.google.protobuf.DoubleValue value)
       Expected number of units paid each year. If not specified, when
       [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
       FULLTIME, a default value is inferred based on
       [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
       Default values:
       - HOURLY: 2080
       - DAILY: 260
       - WEEKLY: 52
       - MONTHLY: 12
       - ANNUAL: 1
       
      .google.protobuf.DoubleValue expected_units_per_year = 6;
    • clearExpectedUnitsPerYear

      public CompensationInfo.CompensationEntry.Builder clearExpectedUnitsPerYear()
       Expected number of units paid each year. If not specified, when
       [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
       FULLTIME, a default value is inferred based on
       [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
       Default values:
       - HOURLY: 2080
       - DAILY: 260
       - WEEKLY: 52
       - MONTHLY: 12
       - ANNUAL: 1
       
      .google.protobuf.DoubleValue expected_units_per_year = 6;
    • getExpectedUnitsPerYearBuilder

      public com.google.protobuf.DoubleValue.Builder getExpectedUnitsPerYearBuilder()
       Expected number of units paid each year. If not specified, when
       [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
       FULLTIME, a default value is inferred based on
       [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
       Default values:
       - HOURLY: 2080
       - DAILY: 260
       - WEEKLY: 52
       - MONTHLY: 12
       - ANNUAL: 1
       
      .google.protobuf.DoubleValue expected_units_per_year = 6;
    • getExpectedUnitsPerYearOrBuilder

      public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder()
       Expected number of units paid each year. If not specified, when
       [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
       FULLTIME, a default value is inferred based on
       [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
       Default values:
       - HOURLY: 2080
       - DAILY: 260
       - WEEKLY: 52
       - MONTHLY: 12
       - ANNUAL: 1
       
      .google.protobuf.DoubleValue expected_units_per_year = 6;
      Specified by:
      getExpectedUnitsPerYearOrBuilder in interface CompensationInfo.CompensationEntryOrBuilder