Class DiskUsageSample.Builder (0.14.0)

public static final class DiskUsageSample.Builder extends GeneratedMessageV3.Builder<DiskUsageSample.Builder> implements DiskUsageSampleOrBuilder

Disk usage sample. Values are across all disks.

Protobuf type google.cloud.migrationcenter.v1.DiskUsageSample

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiskUsageSample build()
Returns
TypeDescription
DiskUsageSample

buildPartial()

public DiskUsageSample buildPartial()
Returns
TypeDescription
DiskUsageSample

clear()

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

clearAverageIops()

public DiskUsageSample.Builder clearAverageIops()

Average IOPS sampled over a short window. Must be non-negative.

float average_iops = 1;

Returns
TypeDescription
DiskUsageSample.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAverageIops()

public float getAverageIops()

Average IOPS sampled over a short window. Must be non-negative.

float average_iops = 1;

Returns
TypeDescription
float

The averageIops.

getDefaultInstanceForType()

public DiskUsageSample getDefaultInstanceForType()
Returns
TypeDescription
DiskUsageSample

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiskUsageSample other)

public DiskUsageSample.Builder mergeFrom(DiskUsageSample other)
Parameter
NameDescription
otherDiskUsageSample
Returns
TypeDescription
DiskUsageSample.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAverageIops(float value)

public DiskUsageSample.Builder setAverageIops(float value)

Average IOPS sampled over a short window. Must be non-negative.

float average_iops = 1;

Parameter
NameDescription
valuefloat

The averageIops to set.

Returns
TypeDescription
DiskUsageSample.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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