Class 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.GeneratedMessageV3
    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:
    Serialized Form
    • 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
      • 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.
      • 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.
      • 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.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 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
      • newBuilderForType

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

        public CompensationInfo.CompensationEntry.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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