Interface Common.FixedOrPercentOrBuilder (2.30.0)

public static interface Common.FixedOrPercentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFixed()

public abstract int getFixed()

Specifies a fixed value.

int32 fixed = 1;

Returns
TypeDescription
int

The fixed.

getModeCase()

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

getPercent()

public abstract 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 abstract boolean hasFixed()

Specifies a fixed value.

int32 fixed = 1;

Returns
TypeDescription
boolean

Whether the fixed field is set.

hasPercent()

public abstract 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.