Class RepricingConfig (3.6.1)

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
TypeDescription
int

CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER

public static final int CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER
Field Value
TypeDescription
int

EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER

public static final int EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITLEMENT_GRANULARITY_FIELD_NUMBER

public static final int ENTITLEMENT_GRANULARITY_FIELD_NUMBER
Field Value
TypeDescription
int

REBILLING_BASIS_FIELD_NUMBER

public static final int REBILLING_BASIS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RepricingConfig getDefaultInstance()
Returns
TypeDescription
RepricingConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RepricingConfig.Builder newBuilder()
Returns
TypeDescription
RepricingConfig.Builder

newBuilder(RepricingConfig prototype)

public static RepricingConfig.Builder newBuilder(RepricingConfig prototype)
Parameter
NameDescription
prototypeRepricingConfig
Returns
TypeDescription
RepricingConfig.Builder

parseDelimitedFrom(InputStream input)

public static RepricingConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RepricingConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RepricingConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RepricingConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RepricingConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RepricingConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RepricingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepricingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RepricingConfig> parser()
Returns
TypeDescription
Parser<RepricingConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

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

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.

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.

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

getParserForType()

public Parser<RepricingConfig> getParserForType()
Returns
TypeDescription
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
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RepricingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RepricingConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException