Class ConditionalOverride.Builder (3.46.0)

public static final class ConditionalOverride.Builder extends GeneratedMessageV3.Builder<ConditionalOverride.Builder> implements ConditionalOverrideOrBuilder

Specifies the override to conditionally apply.

Protobuf type google.cloud.channel.v1.ConditionalOverride

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConditionalOverride.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConditionalOverride.Builder
Overrides

build()

public ConditionalOverride build()
Returns
Type Description
ConditionalOverride

buildPartial()

public ConditionalOverride buildPartial()
Returns
Type Description
ConditionalOverride

clear()

public ConditionalOverride.Builder clear()
Returns
Type Description
ConditionalOverride.Builder
Overrides

clearAdjustment()

public ConditionalOverride.Builder clearAdjustment()

Required. Information about the applied override's adjustment.

.google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConditionalOverride.Builder

clearField(Descriptors.FieldDescriptor field)

public ConditionalOverride.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConditionalOverride.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConditionalOverride.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConditionalOverride.Builder
Overrides

clearRebillingBasis()

public ConditionalOverride.Builder clearRebillingBasis()

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
ConditionalOverride.Builder

This builder for chaining.

clearRepricingCondition()

public ConditionalOverride.Builder clearRepricingCondition()

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
ConditionalOverride.Builder

clone()

public ConditionalOverride.Builder clone()
Returns
Type Description
ConditionalOverride.Builder
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
Type Description
RepricingAdjustment

The adjustment.

getAdjustmentBuilder()

public RepricingAdjustment.Builder getAdjustmentBuilder()

Required. Information about the applied override's adjustment.

.google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RepricingAdjustment.Builder

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
Type Description
RepricingAdjustmentOrBuilder

getDefaultInstanceForType()

public ConditionalOverride getDefaultInstanceForType()
Returns
Type Description
ConditionalOverride

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
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
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
Type Description
RepricingCondition

The repricingCondition.

getRepricingConditionBuilder()

public RepricingCondition.Builder getRepricingConditionBuilder()

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
RepricingCondition.Builder

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
Type Description
RepricingConditionOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdjustment(RepricingAdjustment value)

public ConditionalOverride.Builder mergeAdjustment(RepricingAdjustment value)

Required. Information about the applied override's adjustment.

.google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RepricingAdjustment
Returns
Type Description
ConditionalOverride.Builder

mergeFrom(ConditionalOverride other)

public ConditionalOverride.Builder mergeFrom(ConditionalOverride other)
Parameter
Name Description
other ConditionalOverride
Returns
Type Description
ConditionalOverride.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConditionalOverride.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionalOverride.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConditionalOverride.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConditionalOverride.Builder
Overrides

mergeRepricingCondition(RepricingCondition value)

public ConditionalOverride.Builder mergeRepricingCondition(RepricingCondition value)

Required. Specifies the condition which, if met, will apply the override.

.google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RepricingCondition
Returns
Type Description
ConditionalOverride.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConditionalOverride.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConditionalOverride.Builder
Overrides

setAdjustment(RepricingAdjustment value)

public ConditionalOverride.Builder setAdjustment(RepricingAdjustment value)

Required. Information about the applied override's adjustment.

.google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RepricingAdjustment
Returns
Type Description
ConditionalOverride.Builder

setAdjustment(RepricingAdjustment.Builder builderForValue)

public ConditionalOverride.Builder setAdjustment(RepricingAdjustment.Builder builderForValue)

Required. Information about the applied override's adjustment.

.google.cloud.channel.v1.RepricingAdjustment adjustment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RepricingAdjustment.Builder
Returns
Type Description
ConditionalOverride.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConditionalOverride.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConditionalOverride.Builder
Overrides

setRebillingBasis(RebillingBasis value)

public ConditionalOverride.Builder setRebillingBasis(RebillingBasis value)

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];

Parameter
Name Description
value RebillingBasis

The rebillingBasis to set.

Returns
Type Description
ConditionalOverride.Builder

This builder for chaining.

setRebillingBasisValue(int value)

public ConditionalOverride.Builder setRebillingBasisValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for rebillingBasis to set.

Returns
Type Description
ConditionalOverride.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConditionalOverride.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConditionalOverride.Builder
Overrides

setRepricingCondition(RepricingCondition value)

public ConditionalOverride.Builder setRepricingCondition(RepricingCondition value)

Required. Specifies the condition which, if met, will apply the override.

.google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RepricingCondition
Returns
Type Description
ConditionalOverride.Builder

setRepricingCondition(RepricingCondition.Builder builderForValue)

public ConditionalOverride.Builder setRepricingCondition(RepricingCondition.Builder builderForValue)

Required. Specifies the condition which, if met, will apply the override.

.google.cloud.channel.v1.RepricingCondition repricing_condition = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RepricingCondition.Builder
Returns
Type Description
ConditionalOverride.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ConditionalOverride.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConditionalOverride.Builder
Overrides