Interface FixedOrPercentOrBuilder (2.56.0)

public interface FixedOrPercentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFixed()

public abstract int getFixed()

Specifies a fixed value.

int32 fixed = 1;

Returns
Type Description
int

The fixed.

getModeCase()

public abstract FixedOrPercent.ModeCase getModeCase()
Returns
Type Description
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
Type Description
int

The percent.

hasFixed()

public abstract boolean hasFixed()

Specifies a fixed value.

int32 fixed = 1;

Returns
Type Description
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
Type Description
boolean

Whether the percent field is set.