Class RepricingConfig (3.48.0)

public final class RepricingConfig extends GeneratedMessageV3 implements RepricingConfigOrBuilder

Configuration for repricing a Google bill over a period of time.

Protobuf type google.cloud.channel.v1.RepricingConfig

Static Fields

ADJUSTMENT_FIELD_NUMBER

public static final int ADJUSTMENT_FIELD_NUMBER
Field Value
Type Description
int

CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER

public static final int CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER
Field Value
Type Description
int

CONDITIONAL_OVERRIDES_FIELD_NUMBER

public static final int CONDITIONAL_OVERRIDES_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER

public static final int EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER
Field Value
Type Description
int

ENTITLEMENT_GRANULARITY_FIELD_NUMBER

public static final int ENTITLEMENT_GRANULARITY_FIELD_NUMBER
Field Value
Type Description
int

REBILLING_BASIS_FIELD_NUMBER

public static final int REBILLING_BASIS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RepricingConfig getDefaultInstance()
Returns
Type Description
RepricingConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RepricingConfig.Builder newBuilder()
Returns
Type Description
RepricingConfig.Builder

newBuilder(RepricingConfig prototype)

public static RepricingConfig.Builder newBuilder(RepricingConfig prototype)
Parameter
Name Description
prototype RepricingConfig
Returns
Type Description
RepricingConfig.Builder

parseDelimitedFrom(InputStream input)

public static RepricingConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RepricingConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepricingConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RepricingConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RepricingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepricingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RepricingConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RepricingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepricingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RepricingConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RepricingConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepricingConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RepricingConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RepricingConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepricingConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RepricingConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RepricingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepricingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RepricingConfig> parser()
Returns
Type Description
Parser<RepricingConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdjustment()

public RepricingAdjustment getAdjustment()

Required. Information about the adjustment.

.google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RepricingAdjustment

The adjustment.

getAdjustmentOrBuilder()

public RepricingAdjustmentOrBuilder getAdjustmentOrBuilder()

Required. Information about the adjustment.

.google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RepricingAdjustmentOrBuilder

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 supports this value. Deprecated: This is no longer supported. Use RepricingConfig.entitlement_granularity instead.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];

Returns
Type Description
RepricingConfig.ChannelPartnerGranularity

The channelPartnerGranularity.

getChannelPartnerGranularityOrBuilder() (deprecated)

public RepricingConfig.ChannelPartnerGranularityOrBuilder getChannelPartnerGranularityOrBuilder()

Applies the repricing configuration at the channel partner level. Only ChannelPartnerRepricingConfig supports this value. Deprecated: This is no longer supported. Use RepricingConfig.entitlement_granularity instead.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];

Returns
Type Description
RepricingConfig.ChannelPartnerGranularityOrBuilder

getConditionalOverrides(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ConditionalOverride

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;

Returns
Type Description
int

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;

Returns
Type Description
List<ConditionalOverride>

getConditionalOverridesOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ConditionalOverrideOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.channel.v1.ConditionalOverrideOrBuilder>

getDefaultInstanceForType()

public RepricingConfig getDefaultInstanceForType()
Returns
Type Description
RepricingConfig

getEffectiveInvoiceMonth()

public 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];

Returns
Type Description
com.google.type.Date

The effectiveInvoiceMonth.

getEffectiveInvoiceMonthOrBuilder()

public 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];

Returns
Type Description
com.google.type.DateOrBuilder

getEntitlementGranularity()

public RepricingConfig.EntitlementGranularity getEntitlementGranularity()

Applies the repricing configuration at the entitlement level.

Note: If a ChannelPartnerRepricingConfig using RepricingConfig.EntitlementGranularity becomes effective, then no existing or future RepricingConfig.ChannelPartnerGranularity will apply to the RepricingConfig.EntitlementGranularity.entitlement. This is the recommended value for both CustomerRepricingConfig and ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;

Returns
Type Description
RepricingConfig.EntitlementGranularity

The entitlementGranularity.

getEntitlementGranularityOrBuilder()

public RepricingConfig.EntitlementGranularityOrBuilder getEntitlementGranularityOrBuilder()

Applies the repricing configuration at the entitlement level.

Note: If a ChannelPartnerRepricingConfig using RepricingConfig.EntitlementGranularity becomes effective, then no existing or future RepricingConfig.ChannelPartnerGranularity will apply to the RepricingConfig.EntitlementGranularity.entitlement. This is the recommended value for both CustomerRepricingConfig and ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;

Returns
Type Description
RepricingConfig.EntitlementGranularityOrBuilder

getGranularityCase()

public RepricingConfig.GranularityCase getGranularityCase()
Returns
Type Description
RepricingConfig.GranularityCase

getParserForType()

public Parser<RepricingConfig> getParserForType()
Returns
Type Description
Parser<RepricingConfig>
Overrides

getRebillingBasis()

public RebillingBasis getRebillingBasis()

Required. The 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];

Returns
Type Description
RebillingBasis

The rebillingBasis.

getRebillingBasisValue()

public int getRebillingBasisValue()

Required. The 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];

Returns
Type Description
int

The enum numeric value on the wire for rebillingBasis.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAdjustment()

public boolean hasAdjustment()

Required. Information about the adjustment.

.google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the adjustment field is set.

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 supports this value. Deprecated: This is no longer supported. Use RepricingConfig.entitlement_granularity instead.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];

Returns
Type Description
boolean

Whether the channelPartnerGranularity field is set.

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];

Returns
Type Description
boolean

Whether the effectiveInvoiceMonth field is set.

hasEntitlementGranularity()

public boolean hasEntitlementGranularity()

Applies the repricing configuration at the entitlement level.

Note: If a ChannelPartnerRepricingConfig using RepricingConfig.EntitlementGranularity becomes effective, then no existing or future RepricingConfig.ChannelPartnerGranularity will apply to the RepricingConfig.EntitlementGranularity.entitlement. This is the recommended value for both CustomerRepricingConfig and ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;

Returns
Type Description
boolean

Whether the entitlementGranularity field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RepricingConfig.Builder newBuilderForType()
Returns
Type Description
RepricingConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RepricingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RepricingConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RepricingConfig.Builder toBuilder()
Returns
Type Description
RepricingConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException