Class 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.GeneratedMessageV3.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 Detail

      • 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.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CompensationInfo.CompensationEntry.Builder>
      • 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.
      • setType

        public CompensationInfo.CompensationEntry.Builder setType​(CompensationInfo.CompensationType 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 type to set.
        Returns:
        This builder for chaining.
      • clearType

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

        public CompensationInfo.CompensationEntry.Builder setUnit​(CompensationInfo.CompensationUnit 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 unit to set.
        Returns:
        This builder for chaining.
      • clearUnit

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

        public com.google.type.Money.Builder getAmountBuilder()
         Compensation amount.
         
        .google.type.Money amount = 3;
      • 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