Class Common.FixedOrPercent (2.29.0)

public static final class Common.FixedOrPercent extends GeneratedMessageV3 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 Fields

FIXED_FIELD_NUMBER

public static final int FIXED_FIELD_NUMBER
Field Value
TypeDescription
int

PERCENT_FIELD_NUMBER

public static final int PERCENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Common.FixedOrPercent getDefaultInstance()
Returns
TypeDescription
Common.FixedOrPercent

getDescriptor()

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

newBuilder()

public static Common.FixedOrPercent.Builder newBuilder()
Returns
TypeDescription
Common.FixedOrPercent.Builder

newBuilder(Common.FixedOrPercent prototype)

public static Common.FixedOrPercent.Builder newBuilder(Common.FixedOrPercent prototype)
Parameter
NameDescription
prototypeCommon.FixedOrPercent
Returns
TypeDescription
Common.FixedOrPercent.Builder

parseDelimitedFrom(InputStream input)

public static Common.FixedOrPercent parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Common.FixedOrPercent
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Common.FixedOrPercent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Common.FixedOrPercent
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Common.FixedOrPercent parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Common.FixedOrPercent
Exceptions
TypeDescription
InvalidProtocolBufferException