Class RepricingConfig.Builder (3.28.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.ConditionalOverride>
Returns
TypeDescription
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
NameDescription
valueConditionalOverride
Returns
TypeDescription
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
NameDescription
builderForValueConditionalOverride.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConditionalOverride
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConditionalOverride.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ConditionalOverride.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RepricingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RepricingConfig.Builder
Overrides

build()

public RepricingConfig build()
Returns
TypeDescription
RepricingConfig

buildPartial()

public RepricingConfig buildPartial()
Returns
TypeDescription
RepricingConfig

clear()

public RepricingConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
RepricingConfig.Builder

clearChannelPartnerGranularity()

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

clearField(Descriptors.FieldDescriptor field)

public RepricingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RepricingConfig.Builder
Overrides

clearGranularity()

public RepricingConfig.Builder clearGranularity()
Returns
TypeDescription
RepricingConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RepricingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RepricingConfig.Builder

This builder for chaining.

clone()

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

getAdjustmentOrBuilder()

public RepricingAdjustmentOrBuilder getAdjustmentOrBuilder()

Required. Information about the adjustment.

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

Returns
TypeDescription
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
TypeDescription
RepricingConfig.ChannelPartnerGranularity

The channelPartnerGranularity.

getChannelPartnerGranularityBuilder()

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

getChannelPartnerGranularityOrBuilder()

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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.channel.v1.ConditionalOverrideOrBuilder>

getDefaultInstanceForType()

public RepricingConfig getDefaultInstanceForType()
Returns
TypeDescription
RepricingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RepricingConfig.EntitlementGranularityOrBuilder

getGranularityCase()

public RepricingConfig.GranularityCase getGranularityCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the entitlementGranularity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueRepricingAdjustment
Returns
TypeDescription
RepricingConfig.Builder

mergeChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity value)

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
NameDescription
valueRepricingConfig.ChannelPartnerGranularity
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
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
NameDescription
valueRepricingConfig.EntitlementGranularity
Returns
TypeDescription
RepricingConfig.Builder

mergeFrom(RepricingConfig other)

public RepricingConfig.Builder mergeFrom(RepricingConfig other)
Parameter
NameDescription
otherRepricingConfig
Returns
TypeDescription
RepricingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RepricingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepricingConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RepricingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RepricingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RepricingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueRepricingAdjustment
Returns
TypeDescription
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
NameDescription
builderForValueRepricingAdjustment.Builder
Returns
TypeDescription
RepricingConfig.Builder

setChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity value)

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
NameDescription
valueRepricingConfig.ChannelPartnerGranularity
Returns
TypeDescription
RepricingConfig.Builder

setChannelPartnerGranularity(RepricingConfig.ChannelPartnerGranularity.Builder builderForValue)

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
NameDescription
builderForValueRepricingConfig.ChannelPartnerGranularity.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConditionalOverride
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConditionalOverride.Builder
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
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
NameDescription
valueRepricingConfig.EntitlementGranularity
Returns
TypeDescription
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
NameDescription
builderForValueRepricingConfig.EntitlementGranularity.Builder
Returns
TypeDescription
RepricingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RepricingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRebillingBasis

The rebillingBasis to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RepricingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RepricingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RepricingConfig.Builder
Overrides