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
CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER
public static final int CHANNEL_PARTNER_GRANULARITY_FIELD_NUMBER
Field Value
EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER
public static final int EFFECTIVE_INVOICE_MONTH_FIELD_NUMBER
Field Value
ENTITLEMENT_GRANULARITY_FIELD_NUMBER
public static final int ENTITLEMENT_GRANULARITY_FIELD_NUMBER
Field Value
REBILLING_BASIS_FIELD_NUMBER
public static final int REBILLING_BASIS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RepricingConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RepricingConfig.Builder newBuilder()
Returns
newBuilder(RepricingConfig prototype)
public static RepricingConfig.Builder newBuilder(RepricingConfig prototype)
Parameter
Returns
public static RepricingConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RepricingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RepricingConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RepricingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RepricingConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RepricingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RepricingConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RepricingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RepricingConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RepricingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RepricingConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RepricingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RepricingConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAdjustment()
public RepricingAdjustment getAdjustment()
Required. Information about the adjustment.
.google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getAdjustmentOrBuilder()
public RepricingAdjustmentOrBuilder getAdjustmentOrBuilder()
Required. Information about the adjustment.
.google.cloud.channel.v1.RepricingAdjustment adjustment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
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
getDefaultInstanceForType()
public RepricingConfig getDefaultInstanceForType()
Returns
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. This is
the only supported value for CustomerRepricingConfig.
.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
Returns
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
getGranularityCase()
public RepricingConfig.GranularityCase getGranularityCase()
Returns
getParserForType()
public Parser<RepricingConfig> getParserForType()
Returns
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
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
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
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. This is
the only supported value for CustomerRepricingConfig.
.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4;
Returns
Type | Description |
boolean | Whether the entitlementGranularity field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RepricingConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RepricingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RepricingConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions