Class Common.FixedOrPercent.Builder (2.4.3)

public static final class Common.FixedOrPercent.Builder extends GeneratedMessageV3.Builder<Common.FixedOrPercent.Builder> implements Common.FixedOrPercentOrBuilder

Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value.

Protobuf type google.cloud.osconfig.v1beta.FixedOrPercent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Common.FixedOrPercent build()
Returns
TypeDescription
Common.FixedOrPercent

buildPartial()

public Common.FixedOrPercent buildPartial()
Returns
TypeDescription
Common.FixedOrPercent

clear()

public Common.FixedOrPercent.Builder clear()
Returns
TypeDescription
Common.FixedOrPercent.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFixed()

public Common.FixedOrPercent.Builder clearFixed()

Specifies a fixed value.

int32 fixed = 1;

Returns
TypeDescription
Common.FixedOrPercent.Builder

This builder for chaining.

clearMode()

public Common.FixedOrPercent.Builder clearMode()
Returns
TypeDescription
Common.FixedOrPercent.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPercent()

public Common.FixedOrPercent.Builder clearPercent()

Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

int32 percent = 2;

Returns
TypeDescription
Common.FixedOrPercent.Builder

This builder for chaining.

clone()

public Common.FixedOrPercent.Builder clone()
Returns
TypeDescription
Common.FixedOrPercent.Builder
Overrides

getDefaultInstanceForType()

public Common.FixedOrPercent getDefaultInstanceForType()
Returns
TypeDescription
Common.FixedOrPercent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFixed()

public int getFixed()

Specifies a fixed value.

int32 fixed = 1;

Returns
TypeDescription
int

The fixed.

getModeCase()

public Common.FixedOrPercent.ModeCase getModeCase()
Returns
TypeDescription
Common.FixedOrPercent.ModeCase

getPercent()

public int getPercent()

Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

int32 percent = 2;

Returns
TypeDescription
int

The percent.

hasFixed()

public boolean hasFixed()

Specifies a fixed value.

int32 fixed = 1;

Returns
TypeDescription
boolean

Whether the fixed field is set.

hasPercent()

public boolean hasPercent()

Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

int32 percent = 2;

Returns
TypeDescription
boolean

Whether the percent field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTa