Class CompensationInfo.CompensationEntry

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

public static final class CompensationInfo.CompensationEntry extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

  • 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
    • getCompensationAmountCase

      Specified by:
      getCompensationAmountCase in interface CompensationInfo.CompensationEntryOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 CompensationInfo.CompensationEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static CompensationInfo.CompensationEntry parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CompensationInfo.CompensationEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CompensationInfo.CompensationEntry parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CompensationInfo.CompensationEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CompensationInfo.CompensationEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static CompensationInfo.CompensationEntry.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CompensationInfo.CompensationEntry.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CompensationInfo.CompensationEntry getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<CompensationInfo.CompensationEntry> 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.GeneratedMessage
    • getDefaultInstanceForType

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