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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ADJUSTMENT_FIELD_NUMBER
public static final int ADJUSTMENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER
public static final int CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CONDITIONAL_OVERRIDES_FIELD_NUMBER
public static final int CONDITIONAL_OVERRIDES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER
public static final int EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ENTITLEMENT_GRANULARITY_FIELD_NUMBER
public static final int ENTITLEMENT_GRANULARITY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REBILLING_BASIS_FIELD_NUMBER
public static final int REBILLING_BASIS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RepricingConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RepricingConfig.Builder newBuilder()
newBuilder(RepricingConfig prototype)
public static RepricingConfig.Builder newBuilder(RepricingConfig prototype)
public static RepricingConfig parseDelimitedFrom(InputStream input)
public static RepricingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RepricingConfig parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RepricingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RepricingConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RepricingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RepricingConfig parseFrom(CodedInputStream input)
public static RepricingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RepricingConfig parseFrom(InputStream input)
public static RepricingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RepricingConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RepricingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RepricingConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAdjustment()
public RepricingAdjustment getAdjustment()
Required. Information about the adjustment.
.google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];
getAdjustmentOrBuilder()
public RepricingAdjustmentOrBuilder getAdjustmentOrBuilder()
Required. Information about the adjustment.
.google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];
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];
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];
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
|
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;
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
|
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()
getEffectiveInvoiceMonth()
public Date getEffectiveInvoiceMonth()
Required. The YearMonth when these adjustments activate. The Day field
needs to be "0" since we only accept YearMonth repricing boundaries.
.google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
com.google.type.Date |
The effectiveInvoiceMonth.
|
getEffectiveInvoiceMonthOrBuilder()
public DateOrBuilder getEffectiveInvoiceMonthOrBuilder()
Required. The YearMonth when these adjustments activate. The Day field
needs to be "0" since we only accept YearMonth repricing boundaries.
.google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
com.google.type.DateOrBuilder |
|
getEntitlementGranularity()
public RepricingConfig.EntitlementGranularity getEntitlementGranularity()
Applies the repricing configuration at the entitlement level.
Note: If a
ChannelPartnerRepricingConfig
using
RepricingConfig.EntitlementGranularity
becomes effective, then no existing or future
RepricingConfig.ChannelPartnerGranularity
will apply to the
RepricingConfig.EntitlementGranularity.entitlement.
This is the recommended value for both
CustomerRepricingConfig
and
ChannelPartnerRepricingConfig.
.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
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;
getGranularityCase()
public RepricingConfig.GranularityCase getGranularityCase()
getParserForType()
public Parser<RepricingConfig> getParserForType()
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];
getRebillingBasisValue()
public int getRebillingBasisValue()
Required. The RebillingBasis to
use for this bill. Specifies the relative cost based on repricing costs you
will apply.
.google.cloud.channel.v1.RebillingBasis rebilling_basis = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for rebillingBasis.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasAdjustment()
public boolean hasAdjustment()
Required. Information about the adjustment.
.google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the adjustment field is set.
|
hasChannelPartnerGranularity() (deprecated)
public boolean hasChannelPartnerGranularity()
Deprecated. google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated.
See google/cloud/channel/v1/repricing.proto;l=139
Applies the repricing configuration at the channel partner level.
Only
ChannelPartnerRepricingConfig
supports this value. Deprecated: This is no longer supported. Use
RepricingConfig.entitlement_granularity
instead.
.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity channel_partner_granularity = 5 [deprecated = true];
Returns |
Type |
Description |
boolean |
Whether the channelPartnerGranularity field is set.
|
hasEffectiveInvoiceMonth()
public boolean hasEffectiveInvoiceMonth()
Required. The YearMonth when these adjustments activate. The Day field
needs to be "0" since we only accept YearMonth repricing boundaries.
.google.type.Date effective_invoice_month = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the effectiveInvoiceMonth field is set.
|
hasEntitlementGranularity()
public boolean hasEntitlementGranularity()
Applies the repricing configuration at the entitlement level.
Note: If a
ChannelPartnerRepricingConfig
using
RepricingConfig.EntitlementGranularity
becomes effective, then no existing or future
RepricingConfig.ChannelPartnerGranularity
will apply to the
RepricingConfig.EntitlementGranularity.entitlement.
This is the recommended value for both
CustomerRepricingConfig
and
ChannelPartnerRepricingConfig.
.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
Returns |
Type |
Description |
boolean |
Whether the entitlementGranularity field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RepricingConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RepricingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public RepricingConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides