Class RepricingConfig

  • All Implemented Interfaces:
    RepricingConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class RepricingConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements RepricingConfigOrBuilder
     Configuration for repricing a Google bill over a period of time.
     
    Protobuf type google.cloud.channel.v1.RepricingConfig
    See Also:
    Serialized Form
    • Field Detail

      • ENTITLEMENT_GRANULARITY_FIELD_NUMBER

        public static final int ENTITLEMENT_GRANULARITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER

        public static final int CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER

        public static final int EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADJUSTMENT_FIELD_NUMBER

        public static final int ADJUSTMENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REBILLING_BASIS_FIELD_NUMBER

        public static final int REBILLING_BASIS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONDITIONAL_OVERRIDES_FIELD_NUMBER

        public static final int CONDITIONAL_OVERRIDES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • hasEntitlementGranularity

        public boolean hasEntitlementGranularity()
         Applies the repricing configuration at the entitlement level.
        
         Note: If a
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
         using
         [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
         becomes effective, then no existing or future
         [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
         will apply to the
         [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
         This is the recommended value for both
         [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
         and
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
         
        .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
        Specified by:
        hasEntitlementGranularity in interface RepricingConfigOrBuilder
        Returns:
        Whether the entitlementGranularity field is set.
      • getEntitlementGranularity

        public RepricingConfig.EntitlementGranularity getEntitlementGranularity()
         Applies the repricing configuration at the entitlement level.
        
         Note: If a
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
         using
         [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
         becomes effective, then no existing or future
         [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
         will apply to the
         [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
         This is the recommended value for both
         [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
         and
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
         
        .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
        Specified by:
        getEntitlementGranularity in interface RepricingConfigOrBuilder
        Returns:
        The entitlementGranularity.
      • getEntitlementGranularityOrBuilder

        public RepricingConfig.EntitlementGranularityOrBuilder getEntitlementGranularityOrBuilder()
         Applies the repricing configuration at the entitlement level.
        
         Note: If a
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
         using
         [RepricingConfig.EntitlementGranularity][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity]
         becomes effective, then no existing or future
         [RepricingConfig.ChannelPartnerGranularity][google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity]
         will apply to the
         [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
         This is the recommended value for both
         [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]
         and
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig].
         
        .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
        Specified by:
        getEntitlementGranularityOrBuilder in interface RepricingConfigOrBuilder
      • hasChannelPartnerGranularity

        @Deprecated
        public boolean hasChannelPartnerGranularity()
        Deprecated.
        google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated. See google/cloud/channel/v1/repricing.proto;l=139
         Applies the repricing configuration at the channel partner level.
         Only
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
         supports this value. Deprecated: This is no longer supported. Use
         [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
         instead.
         
        .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
        Specified by:
        hasChannelPartnerGranularity in interface RepricingConfigOrBuilder
        Returns:
        Whether the channelPartnerGranularity field is set.
      • getChannelPartnerGranularity

        @Deprecated
        public RepricingConfig.ChannelPartnerGranularity getChannelPartnerGranularity()
        Deprecated.
        google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated. See google/cloud/channel/v1/repricing.proto;l=139
         Applies the repricing configuration at the channel partner level.
         Only
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
         supports this value. Deprecated: This is no longer supported. Use
         [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
         instead.
         
        .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
        Specified by:
        getChannelPartnerGranularity in interface RepricingConfigOrBuilder
        Returns:
        The channelPartnerGranularity.
      • getChannelPartnerGranularityOrBuilder

        @Deprecated
        public RepricingConfig.ChannelPartnerGranularityOrBuilder getChannelPartnerGranularityOrBuilder()
        Deprecated.
         Applies the repricing configuration at the channel partner level.
         Only
         [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
         supports this value. Deprecated: This is no longer supported. Use
         [RepricingConfig.entitlement_granularity][google.cloud.channel.v1.RepricingConfig.entitlement_granularity]
         instead.
         
        .google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
        Specified by:
        getChannelPartnerGranularityOrBuilder in interface RepricingConfigOrBuilder
      • hasEffectiveInvoiceMonth

        public boolean hasEffectiveInvoiceMonth()
         Required. The YearMonth when these adjustments activate. The Day field
         needs to be "0" since we only accept YearMonth repricing boundaries.
         
        .google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasEffectiveInvoiceMonth in interface RepricingConfigOrBuilder
        Returns:
        Whether the effectiveInvoiceMonth field is set.
      • getEffectiveInvoiceMonth

        public com.google.type.Date getEffectiveInvoiceMonth()
         Required. The YearMonth when these adjustments activate. The Day field
         needs to be "0" since we only accept YearMonth repricing boundaries.
         
        .google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getEffectiveInvoiceMonth in interface RepricingConfigOrBuilder
        Returns:
        The effectiveInvoiceMonth.
      • getEffectiveInvoiceMonthOrBuilder

        public com.google.type.DateOrBuilder getEffectiveInvoiceMonthOrBuilder()
         Required. The YearMonth when these adjustments activate. The Day field
         needs to be "0" since we only accept YearMonth repricing boundaries.
         
        .google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getEffectiveInvoiceMonthOrBuilder in interface RepricingConfigOrBuilder
      • hasAdjustment

        public boolean hasAdjustment()
         Required. Information about the adjustment.
         
        .google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAdjustment in interface RepricingConfigOrBuilder
        Returns:
        Whether the adjustment field is set.
      • getAdjustment

        public RepricingAdjustment getAdjustment()
         Required. Information about the adjustment.
         
        .google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAdjustment in interface RepricingConfigOrBuilder
        Returns:
        The adjustment.
      • getRebillingBasisValue

        public int getRebillingBasisValue()
         Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to
         use for this bill. Specifies the relative cost based on repricing costs you
         will apply.
         
        .google.cloud.channel.v1.RebillingBasis rebilling_basis = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRebillingBasisValue in interface RepricingConfigOrBuilder
        Returns:
        The enum numeric value on the wire for rebillingBasis.
      • getRebillingBasis

        public RebillingBasis getRebillingBasis()
         Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to
         use for this bill. Specifies the relative cost based on repricing costs you
         will apply.
         
        .google.cloud.channel.v1.RebillingBasis rebilling_basis = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRebillingBasis in interface RepricingConfigOrBuilder
        Returns:
        The rebillingBasis.
      • getConditionalOverridesList

        public List<ConditionalOverride> getConditionalOverridesList()
         The conditional overrides to apply for this configuration. If you list
         multiple overrides, only the first valid override is used.  If you don't
         list any overrides, the API uses the normal adjustment and rebilling basis.
         
        repeated .google.cloud.channel.v1.ConditionalOverride conditional_overrides = 6;
        Specified by:
        getConditionalOverridesList in interface RepricingConfigOrBuilder
      • getConditionalOverridesOrBuilderList

        public List<? extends ConditionalOverrideOrBuilder> getConditionalOverridesOrBuilderList()
         The conditional overrides to apply for this configuration. If you list
         multiple overrides, only the first valid override is used.  If you don't
         list any overrides, the API uses the normal adjustment and rebilling basis.
         
        repeated .google.cloud.channel.v1.ConditionalOverride conditional_overrides = 6;
        Specified by:
        getConditionalOverridesOrBuilderList in interface RepricingConfigOrBuilder
      • getConditionalOverridesCount

        public int getConditionalOverridesCount()
         The conditional overrides to apply for this configuration. If you list
         multiple overrides, only the first valid override is used.  If you don't
         list any overrides, the API uses the normal adjustment and rebilling basis.
         
        repeated .google.cloud.channel.v1.ConditionalOverride conditional_overrides = 6;
        Specified by:
        getConditionalOverridesCount in interface RepricingConfigOrBuilder
      • getConditionalOverrides

        public ConditionalOverride getConditionalOverrides​(int index)
         The conditional overrides to apply for this configuration. If you list
         multiple overrides, only the first valid override is used.  If you don't
         list any overrides, the API uses the normal adjustment and rebilling basis.
         
        repeated .google.cloud.channel.v1.ConditionalOverride conditional_overrides = 6;
        Specified by:
        getConditionalOverrides in interface RepricingConfigOrBuilder
      • getConditionalOverridesOrBuilder

        public ConditionalOverrideOrBuilder getConditionalOverridesOrBuilder​(int index)
         The conditional overrides to apply for this configuration. If you list
         multiple overrides, only the first valid override is used.  If you don't
         list any overrides, the API uses the normal adjustment and rebilling basis.
         
        repeated .google.cloud.channel.v1.ConditionalOverride conditional_overrides = 6;
        Specified by:
        getConditionalOverridesOrBuilder in interface RepricingConfigOrBuilder
      • 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 RepricingConfig parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected RepricingConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

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

        public com.google.protobuf.Parser<RepricingConfig> 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 RepricingConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder