Class MemoryUsageSample.Builder (0.19.0)

public static final class MemoryUsageSample.Builder extends GeneratedMessageV3.Builder<MemoryUsageSample.Builder> implements MemoryUsageSampleOrBuilder

Memory usage sample.

Protobuf type google.cloud.migrationcenter.v1.MemoryUsageSample

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MemoryUsageSample.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

build()

public MemoryUsageSample build()
Returns
TypeDescription
MemoryUsageSample

buildPartial()

public MemoryUsageSample buildPartial()
Returns
TypeDescription
MemoryUsageSample

clear()

public MemoryUsageSample.Builder clear()
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MemoryUsageSample.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MemoryUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

clearUtilizedPercentage()

public MemoryUsageSample.Builder clearUtilizedPercentage()

Percentage of system memory utilized. Must be in the interval [0, 100].

float utilized_percentage = 1;

Returns
TypeDescription
MemoryUsageSample.Builder

This builder for chaining.

clone()

public MemoryUsageSample.Builder clone()
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

getDefaultInstanceForType()

public MemoryUsageSample getDefaultInstanceForType()
Returns
TypeDescription
MemoryUsageSample

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUtilizedPercentage()

public float getUtilizedPercentage()

Percentage of system memory utilized. Must be in the interval [0, 100].

float utilized_percentage = 1;

Returns
TypeDescription
float

The utilizedPercentage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MemoryUsageSample other)

public MemoryUsageSample.Builder mergeFrom(MemoryUsageSample other)
Parameter
NameDescription
otherMemoryUsageSample
Returns
TypeDescription
MemoryUsageSample.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MemoryUsageSample.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MemoryUsageSample.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MemoryUsageSample.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MemoryUsageSample.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MemoryUsageSample.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MemoryUsageSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MemoryUsageSample.Builder
Overrides

setUtilizedPercentage(float value)

public MemoryUsageSample.Builder setUtilizedPercentage(float value)

Percentage of system memory utilized. Must be in the interval [0, 100].

float utilized_percentage = 1;

Parameter
NameDescription
valuefloat

The utilizedPercentage to set.

Returns
TypeDescription
MemoryUsageSample.Builder

This builder for chaining.