Class RepricingAdjustment.Builder (3.32.0)

public static final class RepricingAdjustment.Builder extends GeneratedMessageV3.Builder<RepricingAdjustment.Builder> implements RepricingAdjustmentOrBuilder

A type that represents the various adjustments you can apply to a bill.

Protobuf type google.cloud.channel.v1.RepricingAdjustment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RepricingAdjustment build()
Returns
TypeDescription
RepricingAdjustment

buildPartial()

public RepricingAdjustment buildPartial()
Returns
TypeDescription
RepricingAdjustment

clear()

public RepricingAdjustment.Builder clear()
Returns
TypeDescription
RepricingAdjustment.Builder
Overrides

clearAdjustment()

public RepricingAdjustment.Builder clearAdjustment()
Returns
TypeDescription
RepricingAdjustment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RepricingAdjustment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RepricingAdjustment.Builder
Overrides

clearPercentageAdjustment()

public RepricingAdjustment.Builder clearPercentageAdjustment()

Flat markup or markdown on an entire bill.

.google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2;

Returns
TypeDescription
RepricingAdjustment.Builder

clone()

public RepricingAdjustment.Builder clone()
Returns
TypeDescription
RepricingAdjustment.Builder
Overrides

getAdjustmentCase()

public RepricingAdjustment.AdjustmentCase getAdjustmentCase()
Returns
TypeDescription
RepricingAdjustment.AdjustmentCase

getDefaultInstanceForType()

public RepricingAdjustment getDefaultInstanceForType()
Returns
TypeDescription
RepricingAdjustment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPercentageAdjustment()

public PercentageAdjustment getPercentageAdjustment()

Flat markup or markdown on an entire bill.

.google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2;

Returns
TypeDescription
PercentageAdjustment

The percentageAdjustment.

getPercentageAdjustmentBuilder()

public PercentageAdjustment.Builder getPercentageAdjustmentBuilder()

Flat markup or markdown on an entire bill.

.google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2;

Returns
TypeDescription
PercentageAdjustment.Builder

getPercentageAdjustmentOrBuilder()

public PercentageAdjustmentOrBuilder getPercentageAdjustmentOrBuilder()

Flat markup or markdown on an entire bill.

.google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2;

Returns
TypeDescription
PercentageAdjustmentOrBuilder

hasPercentageAdjustment()

public boolean hasPercentageAdjustment()

Flat markup or markdown on an entire bill.

.google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2;

Returns
TypeDescription
boolean

Whether the percentageAdjustment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RepricingAdjustment other)

public RepricingAdjustment.Builder mergeFrom(RepricingAdjustment other)
Parameter
NameDescription
otherRepricingAdjustment
Returns
TypeDescription
RepricingAdjustment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RepricingAdjustment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RepricingAdjustment.Builder
Overrides

mergePercentageAdjustment(PercentageAdjustment value)

public RepricingAdjustment.Builder mergePercentageAdjustment(PercentageAdjustment value)

Flat markup or markdown on an entire bill.

.google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2;

Parameter
NameDescription
valuePercentageAdjustment
Returns
TypeDescription
RepricingAdjustment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RepricingAdjustment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RepricingAdjustment.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPercentageAdjustment(PercentageAdjustment value)

public RepricingAdjustment.Builder setPercentageAdjustment(PercentageAdjustment value)

Flat markup or markdown on an entire bill.

.google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2;

Parameter
NameDescription
valuePercentageAdjustment
Returns
TypeDescription
RepricingAdjustment.Builder

setPercentageAdjustment(PercentageAdjustment.Builder builderForValue)

public RepricingAdjustment.Builder setPercentageAdjustment(PercentageAdjustment.Builder builderForValue)

Flat markup or markdown on an entire bill.

.google.cloud.channel.v1.PercentageAdjustment percentage_adjustment = 2;

Parameter
NameDescription
builderForValuePercentageAdjustment.Builder
Returns
TypeDescription
RepricingAdjustment.Builder

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

public RepricingAdjustment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RepricingAdjustment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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