public final class ConditionalOverride extends GeneratedMessageV3 implements ConditionalOverrideOrBuilder
Specifies the override to conditionally apply.
Protobuf type google.cloud.channel.v1.ConditionalOverride
Static Fields
ADJUSTMENT_FIELD_NUMBER
public static final int ADJUSTMENT_FIELD_NUMBER
Field Value
REBILLING_BASIS_FIELD_NUMBER
public static final int REBILLING_BASIS_FIELD_NUMBER
Field Value
REPRICING_CONDITION_FIELD_NUMBER
public static final int REPRICING_CONDITION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ConditionalOverride getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ConditionalOverride.Builder newBuilder()
Returns
newBuilder(ConditionalOverride prototype)
public static ConditionalOverride.Builder newBuilder(ConditionalOverride prototype)
Parameter
Returns
public static ConditionalOverride parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConditionalOverride parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ConditionalOverride parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConditionalOverride parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ConditionalOverride parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConditionalOverride parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConditionalOverride parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ConditionalOverride parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConditionalOverride parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConditionalOverride parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ConditionalOverride parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConditionalOverride parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ConditionalOverride> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAdjustment()
public RepricingAdjustment getAdjustment()
Required. Information about the applied override's adjustment.
.google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getAdjustmentOrBuilder()
public RepricingAdjustmentOrBuilder getAdjustmentOrBuilder()
Required. Information about the applied override's adjustment.
.google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public ConditionalOverride getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ConditionalOverride> getParserForType()
Returns
Overrides
getRebillingBasis()
public RebillingBasis getRebillingBasis()
Required. The RebillingBasis to
use for the applied override. Shows the relative cost based on your
repricing costs.
.google.cloud.channel.v1.RebillingBasis rebilling_basis = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getRebillingBasisValue()
public int getRebillingBasisValue()
Required. The RebillingBasis to
use for the applied override. Shows the relative cost based on your
repricing costs.
.google.cloud.channel.v1.RebillingBasis rebilling_basis = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
int | The enum numeric value on the wire for rebillingBasis.
|
getRepricingCondition()
public RepricingCondition getRepricingCondition()
Required. Specifies the condition which, if met, will apply the override.
.google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getRepricingConditionOrBuilder()
public RepricingConditionOrBuilder getRepricingConditionOrBuilder()
Required. Specifies the condition which, if met, will apply the override.
.google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasAdjustment()
public boolean hasAdjustment()
Required. Information about the applied override's adjustment.
.google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the adjustment field is set.
|
hasRepricingCondition()
public boolean hasRepricingCondition()
Required. Specifies the condition which, if met, will apply the override.
.google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the repricingCondition field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ConditionalOverride.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConditionalOverride.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ConditionalOverride.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions