Class RepricingConfig.Builder (3.10.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

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. This is the only supported value for ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;

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. This is the only supported value for CustomerRepricingConfig.

.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()

public RepricingConfig.ChannelPartnerGranularity getChannelPartnerGranularity()

Applies the repricing configuration at the channel partner level. This is the only supported value for ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;

Returns
TypeDescription
RepricingConfig.ChannelPartnerGranularity

The channelPartnerGranularity.

getChannelPartnerGranularityBuilder()

public RepricingConfig.ChannelPartnerGranularity.Builder getChannelPartnerGranularityBuilder()

Applies the repricing configuration at the channel partner level. This is the only supported value for ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;

Returns
TypeDescription
RepricingConfig.ChannelPartnerGranularity.Builder

getChannelPartnerGranularityOrBuilder()

public RepricingConfig.ChannelPartnerGranularityOrBuilder getChannelPartnerGranularityOrBuilder()

Applies the repricing configuration at the channel partner level. This is the only supported value for ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;

Returns
TypeDescription
RepricingConfig.ChannelPartnerGranularityOrBuilder

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. This is the only supported value for CustomerRepricingConfig.

.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. This is the only supported value for CustomerRepricingConfig.

.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. This is the only supported value for CustomerRepricingConfig.

.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()

public boolean hasChannelPartnerGranularity()

Applies the repricing configuration at the channel partner level. This is the only supported value for ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;

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. This is the only supported value for CustomerRepricingConfig.

.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. This is the only supported value for ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;

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. This is the only supported value for CustomerRepricingConfig.

.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

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. This is the only supported value for ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;

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. This is the only supported value for ChannelPartnerRepricingConfig.

.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5;

Parameter
NameDescription
builderForValueRepricingConfig.ChannelPartnerGranularity.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. This is the only supported value for CustomerRepricingConfig.

.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. This is the only supported value for CustomerRepricingConfig.

.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