Class ConditionalOverride.Builder (3.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConditionalOverride.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConditionalOverride.Builder
Overrides

build()

public ConditionalOverride build()
Returns
TypeDescription
ConditionalOverride

buildPartial()

public ConditionalOverride buildPartial()
Returns
TypeDescription
ConditionalOverride

clear()

public ConditionalOverride.Builder clear()
Returns
TypeDescription
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
TypeDescription
ConditionalOverride.Builder

clearField(Descriptors.FieldDescriptor field)

public ConditionalOverride.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConditionalOverride.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConditionalOverride.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConditionalOverride.Builder

clone()

public ConditionalOverride.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RepricingAdjustmentOrBuilder

getDefaultInstanceForType()

public ConditionalOverride getDefaultInstanceForType()
Returns
TypeDescription
ConditionalOverride

getDescriptorForType()

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueRepricingAdjustment
Returns
TypeDescription
ConditionalOverride.Builder

mergeFrom(ConditionalOverride other)

public ConditionalOverride.Builder mergeFrom(ConditionalOverride other)
Parameter
NameDescription
otherConditionalOverride
Returns
TypeDescription
ConditionalOverride.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConditionalOverride.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionalOverride.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConditionalOverride.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRepricingCondition
Returns
TypeDescription
ConditionalOverride.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConditionalOverride.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueRepricingAdjustment
Returns
TypeDescription
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
NameDescription
builderForValueRepricingAdjustment.Builder
Returns
TypeDescription
ConditionalOverride.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConditionalOverride.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRebillingBasis

The rebillingBasis to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRepricingCondition
Returns
TypeDescription
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
NameDescription
builderForValueRepricingCondition.Builder
Returns
TypeDescription
ConditionalOverride.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ConditionalOverride.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConditionalOverride.Builder
Overrides