Google Cloud OsConfig V1 Client - Class FixedOrPercent (1.0.5)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class FixedOrPercent.

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

Generated from protobuf message google.cloud.osconfig.v1.FixedOrPercent

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ fixed
int

Specifies a fixed value.

↳ percent
int

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

getFixed

Specifies a fixed value.

Returns
Type
Description
int

hasFixed

setFixed

Specifies a fixed value.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getPercent

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

Returns
Type
Description
int

hasPercent

setPercent

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

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getMode

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: