Class MemoryUsageSample.Builder (0.24.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MemoryUsageSample.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MemoryUsageSample.Builder
Overrides

build()

public MemoryUsageSample build()
Returns
Type Description
MemoryUsageSample

buildPartial()

public MemoryUsageSample buildPartial()
Returns
Type Description
MemoryUsageSample

clear()

public MemoryUsageSample.Builder clear()
Returns
Type Description
MemoryUsageSample.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MemoryUsageSample.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MemoryUsageSample.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MemoryUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
MemoryUsageSample.Builder

This builder for chaining.

clone()

public MemoryUsageSample.Builder clone()
Returns
Type Description
MemoryUsageSample.Builder
Overrides

getDefaultInstanceForType()

public MemoryUsageSample getDefaultInstanceForType()
Returns
Type Description
MemoryUsageSample

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUtilizedPercentage()

public float getUtilizedPercentage()

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

float utilized_percentage = 1;

Returns
Type Description
float

The utilizedPercentage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MemoryUsageSample other)

public MemoryUsageSample.Builder mergeFrom(MemoryUsageSample other)
Parameter
Name Description
other MemoryUsageSample
Returns
Type Description
MemoryUsageSample.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MemoryUsageSample.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MemoryUsageSample.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MemoryUsageSample.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MemoryUsageSample.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MemoryUsageSample.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MemoryUsageSample.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MemoryUsageSample.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MemoryUsageSample.Builder
Overrides

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

public MemoryUsageSample.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MemoryUsageSample.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MemoryUsageSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value float

The utilizedPercentage to set.

Returns
Type Description
MemoryUsageSample.Builder

This builder for chaining.