Interface Common.FixedOrPercentOrBuilder (2.48.0)

public static interface Common.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 Common.FixedOrPercent.ModeCase getModeCase()
Returns
Type Description
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
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.