Class RepricingConfig.Builder (3.48.0)

public static final class RepricingConfig.Builder extends GeneratedMessageV3.Builder<RepricingConfig.Builder> implements RepricingConfigOrBuilder

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

Protobuf type google.cloud.channel.v1.RepricingConfig

Static Methods

getDescriptor()

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

Methods

addAllConditionalOverrides(Iterable<? extends ConditionalOverride> values)

public RepricingConfig.Builder addAllConditionalOverrides(Iterable<? extends ConditionalOverride> values)

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
values Iterable<? extends com.google.cloud.channel.v1.ConditionalOverride>
Returns
Type Description
RepricingConfig.Builder

addConditionalOverrides(ConditionalOverride value)

public RepricingConfig.Builder addConditionalOverrides(ConditionalOverride value)

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
value ConditionalOverride
Returns
Type Description
RepricingConfig.Builder

addConditionalOverrides(ConditionalOverride.Builder builderForValue)

public RepricingConfig.Builder addConditionalOverrides(ConditionalOverride.Builder builderForValue)

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
builderForValue ConditionalOverride.Builder
Returns
Type Description
RepricingConfig.Builder

addConditionalOverrides(int index, ConditionalOverride value)

public RepricingConfig.Builder addConditionalOverrides(int index, ConditionalOverride value)

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;

Parameters
Name Description
index int
value ConditionalOverride
Returns
Type Description
RepricingConfig.Builder

addConditionalOverrides(int index, ConditionalOverride.Builder builderForValue)

public RepricingConfig.Builder addConditionalOverrides(int index, ConditionalOverride.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ConditionalOverride.Builder
Returns
Type Description
RepricingConfig.Builder

addConditionalOverridesBuilder()

public ConditionalOverride.Builder addConditionalOverridesBuilder()

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
ConditionalOverride.Builder

addConditionalOverridesBuilder(int index)

public ConditionalOverride.Builder addConditionalOverridesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RepricingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RepricingConfig.Builder
Overrides

build()

public RepricingConfig build()
Returns
Type Description
RepricingConfig

buildPartial()

public RepricingConfig buildPartial()
Returns
Type Description
RepricingConfig

clear()

public RepricingConfig.Builder clear()
Returns
Type Description
RepricingConfig.Builder
Overrides

clearAdjustment()

public RepricingConfig.Builder clearAdjustment()

Required. Information about the adjustment.

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

Returns
Type Description
RepricingConfig.Builder

clearChannelPartnerGranularity() (deprecated)

public RepricingConfig.Builder clearChannelPartnerGranularity()

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.Builder

clearConditionalOverrides()

public RepricingConfig.Builder clearConditionalOverrides()

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
RepricingConfig.Builder

clearEffectiveInvoiceMonth()

public RepricingConfig.Builder clearEffectiveInvoiceMonth()

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
RepricingConfig.Builder

clearEntitlementGranularity()

public RepricingConfig.Builder clearEntitlementGranularity()

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.Builder

clearField(Descriptors.FieldDescriptor field)

public RepricingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RepricingConfig.Builder
Overrides

clearGranularity()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RepricingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RepricingConfig.Builder
Overrides

clearRebillingBasis()

public RepricingConfig.Builder clearRebillingBasis()

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
RepricingConfig.Builder

This builder for chaining.

clone()

public RepricingConfig.Builder clone()
Returns
Type Description
RepricingConfig.Builder
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.

getAdjustmentBuilder()

public RepricingAdjustment.Builder getAdjustmentBuilder()

Required. Information about the adjustment.

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

Returns
Type Description
RepricingAdjustment.Builder

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.

getChannelPartnerGranularityBuilder() (deprecated)

public RepricingConfig.ChannelPartnerGranularity.Builder getChannelPartnerGranularityBuilder()

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.Builder

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

getConditionalOverridesBuilder(int index)

public ConditionalOverride.Builder getConditionalOverridesBuilder(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.Builder

getConditionalOverridesBuilderList()

public List<ConditionalOverride.Builder> getConditionalOverridesBuilderList()

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<Builder>

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getEffectiveInvoiceMonthBuilder()

public Date.Builder getEffectiveInvoiceMonthBuilder()

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.Builder

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.

getEntitlementGranularityBuilder()

public RepricingConfig.EntitlementGranularity.Builder getEntitlementGranularityBuilder()

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.Builder

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdjustment(RepricingAdjustment value)

public RepricingConfig.Builder mergeAdjustment(RepricingAdjustment value)

Required. Information about the adjustment.

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

Parameter
Name Description
value RepricingAdjustment
Returns
Type Description
RepricingConfig.Builder

mergeChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity value) (deprecated)

public RepricingConfig.Builder mergeChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity value)

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

Parameter
Name Description
value RepricingConfig.ChannelPartnerGranularity
Returns
Type Description
RepricingConfig.Builder

mergeEffectiveInvoiceMonth(Date value)

public RepricingConfig.Builder mergeEffectiveInvoiceMonth(Date value)

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

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
RepricingConfig.Builder

mergeEntitlementGranularity(RepricingConfig.EntitlementGranularity value)

public RepricingConfig.Builder mergeEntitlementGranularity(RepricingConfig.EntitlementGranularity value)

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;

Parameter
Name Description
value RepricingConfig.EntitlementGranularity
Returns
Type Description
RepricingConfig.Builder

mergeFrom(RepricingConfig other)

public RepricingConfig.Builder mergeFrom(RepricingConfig other)
Parameter
Name Description
other RepricingConfig
Returns
Type Description
RepricingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RepricingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepricingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RepricingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RepricingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RepricingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RepricingConfig.Builder
Overrides

removeConditionalOverrides(int index)

public RepricingConfig.Builder removeConditionalOverrides(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
RepricingConfig.Builder

setAdjustment(RepricingAdjustment value)

public RepricingConfig.Builder setAdjustment(RepricingAdjustment value)

Required. Information about the adjustment.

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

Parameter
Name Description
value RepricingAdjustment
Returns
Type Description
RepricingConfig.Builder

setAdjustment(RepricingAdjustment.Builder builderForValue)

public RepricingConfig.Builder setAdjustment(RepricingAdjustment.Builder builderForValue)

Required. Information about the adjustment.

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

Parameter
Name Description
builderForValue RepricingAdjustment.Builder
Returns
Type Description
RepricingConfig.Builder

setChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity value) (deprecated)

public RepricingConfig.Builder setChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity value)

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

Parameter
Name Description
value RepricingConfig.ChannelPartnerGranularity
Returns
Type Description
RepricingConfig.Builder

setChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity.Builder builderForValue) (deprecated)

public RepricingConfig.Builder setChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity.Builder builderForValue)

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

Parameter
Name Description
builderForValue RepricingConfig.ChannelPartnerGranularity.Builder
Returns
Type Description
RepricingConfig.Builder

setConditionalOverrides(int index, ConditionalOverride value)

public RepricingConfig.Builder setConditionalOverrides(int index, ConditionalOverride value)

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;

Parameters
Name Description
index int
value ConditionalOverride
Returns
Type Description
RepricingConfig.Builder

setConditionalOverrides(int index, ConditionalOverride.Builder builderForValue)

public RepricingConfig.Builder setConditionalOverrides(int index, ConditionalOverride.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ConditionalOverride.Builder
Returns
Type Description
RepricingConfig.Builder

setEffectiveInvoiceMonth(Date value)

public RepricingConfig.Builder setEffectiveInvoiceMonth(Date value)

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

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
RepricingConfig.Builder

setEffectiveInvoiceMonth(Date.Builder builderForValue)

public RepricingConfig.Builder setEffectiveInvoiceMonth(Date.Builder builderForValue)

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

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
RepricingConfig.Builder

setEntitlementGranularity(RepricingConfig.EntitlementGranularity value)

public RepricingConfig.Builder setEntitlementGranularity(RepricingConfig.EntitlementGranularity value)

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;

Parameter
Name Description
value RepricingConfig.EntitlementGranularity
Returns
Type Description
RepricingConfig.Builder

setEntitlementGranularity(RepricingConfig.EntitlementGranularity.Builder builderForValue)

public RepricingConfig.Builder setEntitlementGranularity(RepricingConfig.EntitlementGranularity.Builder builderForValue)

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;

Parameter
Name Description
builderForValue RepricingConfig.EntitlementGranularity.Builder
Returns
Type Description
RepricingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RepricingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RepricingConfig.Builder
Overrides

setRebillingBasis(RebillingBasis value)

public RepricingConfig.Builder setRebillingBasis(RebillingBasis value)

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

Parameter
Name Description
value RebillingBasis

The rebillingBasis to set.

Returns
Type Description
RepricingConfig.Builder

This builder for chaining.

setRebillingBasisValue(int value)

public RepricingConfig.Builder setRebillingBasisValue(int value)

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

Parameter
Name Description
value int

The enum numeric value on the wire for rebillingBasis to set.

Returns
Type Description
RepricingConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RepricingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RepricingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RepricingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RepricingConfig.Builder
Overrides