Class PerformanceSample.Builder (0.3.0)

public static final class PerformanceSample.Builder extends GeneratedMessageV3.Builder<PerformanceSample.Builder> implements PerformanceSampleOrBuilder

Performance data sample.

Protobuf type google.cloud.migrationcenter.v1.PerformanceSample

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PerformanceSample build()
Returns
TypeDescription
PerformanceSample

buildPartial()

public PerformanceSample buildPartial()
Returns
TypeDescription
PerformanceSample

clear()

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

clearCpu()

public PerformanceSample.Builder clearCpu()

CPU usage sample.

.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;

Returns
TypeDescription
PerformanceSample.Builder

clearDisk()

public PerformanceSample.Builder clearDisk()

Disk usage sample.

.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;

Returns
TypeDescription
PerformanceSample.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMemory()

public PerformanceSample.Builder clearMemory()

Memory usage sample.

.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;

Returns
TypeDescription
PerformanceSample.Builder

clearNetwork()

public PerformanceSample.Builder clearNetwork()

Network usage sample.

.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;

Returns
TypeDescription
PerformanceSample.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSampleTime()

public PerformanceSample.Builder clearSampleTime()

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Returns
TypeDescription
PerformanceSample.Builder

clone()

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

getCpu()

public CpuUsageSample getCpu()

CPU usage sample.

.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;

Returns
TypeDescription
CpuUsageSample

The cpu.

getCpuBuilder()

public CpuUsageSample.Builder getCpuBuilder()

CPU usage sample.

.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;

Returns
TypeDescription
CpuUsageSample.Builder

getCpuOrBuilder()

public CpuUsageSampleOrBuilder getCpuOrBuilder()

CPU usage sample.

.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;

Returns
TypeDescription
CpuUsageSampleOrBuilder

getDefaultInstanceForType()

public PerformanceSample getDefaultInstanceForType()
Returns
TypeDescription
PerformanceSample

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisk()

public DiskUsageSample getDisk()

Disk usage sample.

.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;

Returns
TypeDescription
DiskUsageSample

The disk.

getDiskBuilder()

public DiskUsageSample.Builder getDiskBuilder()

Disk usage sample.

.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;

Returns
TypeDescription
DiskUsageSample.Builder

getDiskOrBuilder()

public DiskUsageSampleOrBuilder getDiskOrBuilder()

Disk usage sample.

.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;

Returns
TypeDescription
DiskUsageSampleOrBuilder

getMemory()

public MemoryUsageSample getMemory()

Memory usage sample.

.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;

Returns
TypeDescription
MemoryUsageSample

The memory.

getMemoryBuilder()

public MemoryUsageSample.Builder getMemoryBuilder()

Memory usage sample.

.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;

Returns
TypeDescription
MemoryUsageSample.Builder

getMemoryOrBuilder()

public MemoryUsageSampleOrBuilder getMemoryOrBuilder()

Memory usage sample.

.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;

Returns
TypeDescription
MemoryUsageSampleOrBuilder

getNetwork()

public NetworkUsageSample getNetwork()

Network usage sample.

.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;

Returns
TypeDescription
NetworkUsageSample

The network.

getNetworkBuilder()

public NetworkUsageSample.Builder getNetworkBuilder()

Network usage sample.

.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;

Returns
TypeDescription
NetworkUsageSample.Builder

getNetworkOrBuilder()

public NetworkUsageSampleOrBuilder getNetworkOrBuilder()

Network usage sample.

.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;

Returns
TypeDescription
NetworkUsageSampleOrBuilder

getSampleTime()

public Timestamp getSampleTime()

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Returns
TypeDescription
Timestamp

The sampleTime.

getSampleTimeBuilder()

public Timestamp.Builder getSampleTimeBuilder()

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Returns
TypeDescription
Builder

getSampleTimeOrBuilder()

public TimestampOrBuilder getSampleTimeOrBuilder()

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Returns
TypeDescription
TimestampOrBuilder

hasCpu()

public boolean hasCpu()

CPU usage sample.

.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;

Returns
TypeDescription
boolean

Whether the cpu field is set.

hasDisk()

public boolean hasDisk()

Disk usage sample.

.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;

Returns
TypeDescription
boolean

Whether the disk field is set.

hasMemory()

public boolean hasMemory()

Memory usage sample.

.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;

Returns
TypeDescription
boolean

Whether the memory field is set.

hasNetwork()

public boolean hasNetwork()

Network usage sample.

.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;

Returns
TypeDescription
boolean

Whether the network field is set.

hasSampleTime()

public boolean hasSampleTime()

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Returns
TypeDescription
boolean

Whether the sampleTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCpu(CpuUsageSample value)

public PerformanceSample.Builder mergeCpu(CpuUsageSample value)

CPU usage sample.

.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;

Parameter
NameDescription
valueCpuUsageSample
Returns
TypeDescription
PerformanceSample.Builder

mergeDisk(DiskUsageSample value)

public PerformanceSample.Builder mergeDisk(DiskUsageSample value)

Disk usage sample.

.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;

Parameter
NameDescription
valueDiskUsageSample
Returns
TypeDescription
PerformanceSample.Builder

mergeFrom(PerformanceSample other)

public PerformanceSample.Builder mergeFrom(PerformanceSample other)
Parameter
NameDescription
otherPerformanceSample
Returns
TypeDescription
PerformanceSample.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMemory(MemoryUsageSample value)

public PerformanceSample.Builder mergeMemory(MemoryUsageSample value)

Memory usage sample.

.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;

Parameter
NameDescription
valueMemoryUsageSample
Returns
TypeDescription
PerformanceSample.Builder

mergeNetwork(NetworkUsageSample value)

public PerformanceSample.Builder mergeNetwork(NetworkUsageSample value)

Network usage sample.

.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;

Parameter
NameDescription
valueNetworkUsageSample
Returns
TypeDescription
PerformanceSample.Builder

mergeSampleTime(Timestamp value)

public PerformanceSample.Builder mergeSampleTime(Timestamp value)

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PerformanceSample.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCpu(CpuUsageSample value)

public PerformanceSample.Builder setCpu(CpuUsageSample value)

CPU usage sample.

.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;

Parameter
NameDescription
valueCpuUsageSample
Returns
TypeDescription
PerformanceSample.Builder

setCpu(CpuUsageSample.Builder builderForValue)

public PerformanceSample.Builder setCpu(CpuUsageSample.Builder builderForValue)

CPU usage sample.

.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;

Parameter
NameDescription
builderForValueCpuUsageSample.Builder
Returns
TypeDescription
PerformanceSample.Builder

setDisk(DiskUsageSample value)

public PerformanceSample.Builder setDisk(DiskUsageSample value)

Disk usage sample.

.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;

Parameter
NameDescription
valueDiskUsageSample
Returns
TypeDescription
PerformanceSample.Builder

setDisk(DiskUsageSample.Builder builderForValue)

public PerformanceSample.Builder setDisk(DiskUsageSample.Builder builderForValue)

Disk usage sample.

.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;

Parameter
NameDescription
builderForValueDiskUsageSample.Builder
Returns
TypeDescription
PerformanceSample.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemory(MemoryUsageSample value)

public PerformanceSample.Builder setMemory(MemoryUsageSample value)

Memory usage sample.

.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;

Parameter
NameDescription
valueMemoryUsageSample
Returns
TypeDescription
PerformanceSample.Builder

setMemory(MemoryUsageSample.Builder builderForValue)

public PerformanceSample.Builder setMemory(MemoryUsageSample.Builder builderForValue)

Memory usage sample.

.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;

Parameter
NameDescription
builderForValueMemoryUsageSample.Builder
Returns
TypeDescription
PerformanceSample.Builder

setNetwork(NetworkUsageSample value)

public PerformanceSample.Builder setNetwork(NetworkUsageSample value)

Network usage sample.

.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;

Parameter
NameDescription
valueNetworkUsageSample
Returns
TypeDescription
PerformanceSample.Builder

setNetwork(NetworkUsageSample.Builder builderForValue)

public PerformanceSample.Builder setNetwork(NetworkUsageSample.Builder builderForValue)

Network usage sample.

.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;

Parameter
NameDescription
builderForValueNetworkUsageSample.Builder
Returns
TypeDescription
PerformanceSample.Builder

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

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

setSampleTime(Timestamp value)

public PerformanceSample.Builder setSampleTime(Timestamp value)

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PerformanceSample.Builder

setSampleTime(Timestamp.Builder builderForValue)

public PerformanceSample.Builder setSampleTime(Timestamp.Builder builderForValue)

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
PerformanceSample.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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