Class ConditionalOverride (3.27.0)

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

REBILLING_BASIS_FIELD_NUMBER

public static final int REBILLING_BASIS_FIELD_NUMBER
Field Value
TypeDescription
int

REPRICING_CONDITION_FIELD_NUMBER

public static final int REPRICING_CONDITION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConditionalOverride getDefaultInstance()
Returns
TypeDescription
ConditionalOverride

getDescriptor()

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

newBuilder()

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

newBuilder(ConditionalOverride prototype)

public static ConditionalOverride.Builder newBuilder(ConditionalOverride prototype)
Parameter
NameDescription
prototypeConditionalOverride
Returns
TypeDescription
ConditionalOverride.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

The adjustment.

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

getDefaultInstanceForType()

public ConditionalOverride getDefaultInstanceForType()
Returns
TypeDescription
ConditionalOverride

getParserForType()

public Parser<ConditionalOverride> getParserForType()
Returns
TypeDescription
Parser<ConditionalOverride>
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
TypeDescription
RebillingBasis

The rebillingBasis.

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

The repricingCondition.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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
TypeDescription
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
TypeDescription
boolean

Whether the repricingCondition 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 ConditionalOverride.Builder newBuilderForType()
Returns
TypeDescription
ConditionalOverride.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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