Class PerformanceSample.Builder (0.31.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PerformanceSample build()
Returns
Type Description
PerformanceSample

buildPartial()

public PerformanceSample buildPartial()
Returns
Type Description
PerformanceSample

clear()

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

clearCpu()

public PerformanceSample.Builder clearCpu()

CPU usage sample.

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

Returns
Type Description
PerformanceSample.Builder

clearDisk()

public PerformanceSample.Builder clearDisk()

Disk usage sample.

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

Returns
Type Description
PerformanceSample.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMemory()

public PerformanceSample.Builder clearMemory()

Memory usage sample.

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

Returns
Type Description
PerformanceSample.Builder

clearNetwork()

public PerformanceSample.Builder clearNetwork()

Network usage sample.

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

Returns
Type Description
PerformanceSample.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PerformanceSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PerformanceSample.Builder
Overrides

clearSampleTime()

public PerformanceSample.Builder clearSampleTime()

Time the sample was collected. If omitted, the frame report time will be used.

.google.protobuf.Timestamp sample_time = 1;

Returns
Type Description
PerformanceSample.Builder

clone()

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

getCpu()

public CpuUsageSample getCpu()

CPU usage sample.

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

Returns
Type Description
CpuUsageSample

The cpu.

getCpuBuilder()

public CpuUsageSample.Builder getCpuBuilder()

CPU usage sample.

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

Returns
Type Description
CpuUsageSample.Builder

getCpuOrBuilder()

public CpuUsageSampleOrBuilder getCpuOrBuilder()

CPU usage sample.

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

Returns
Type Description
CpuUsageSampleOrBuilder

getDefaultInstanceForType()

public PerformanceSample getDefaultInstanceForType()
Returns
Type Description
PerformanceSample

getDescriptorForType()

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

getDisk()

public DiskUsageSample getDisk()

Disk usage sample.

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

Returns
Type Description
DiskUsageSample

The disk.

getDiskBuilder()

public DiskUsageSample.Builder getDiskBuilder()

Disk usage sample.

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

Returns
Type Description
DiskUsageSample.Builder

getDiskOrBuilder()

public DiskUsageSampleOrBuilder getDiskOrBuilder()

Disk usage sample.

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

Returns
Type Description
DiskUsageSampleOrBuilder

getMemory()

public MemoryUsageSample getMemory()

Memory usage sample.

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

Returns
Type Description
MemoryUsageSample

The memory.

getMemoryBuilder()

public MemoryUsageSample.Builder getMemoryBuilder()

Memory usage sample.

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

Returns
Type Description
MemoryUsageSample.Builder

getMemoryOrBuilder()

public MemoryUsageSampleOrBuilder getMemoryOrBuilder()

Memory usage sample.

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

Returns
Type Description
MemoryUsageSampleOrBuilder

getNetwork()

public NetworkUsageSample getNetwork()

Network usage sample.

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

Returns
Type Description
NetworkUsageSample

The network.

getNetworkBuilder()

public NetworkUsageSample.Builder getNetworkBuilder()

Network usage sample.

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

Returns
Type Description
NetworkUsageSample.Builder

getNetworkOrBuilder()

public NetworkUsageSampleOrBuilder getNetworkOrBuilder()

Network usage sample.

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

Returns
Type Description
NetworkUsageSampleOrBuilder

getSampleTime()

public Timestamp getSampleTime()

Time the sample was collected. If omitted, the frame report time will be used.

.google.protobuf.Timestamp sample_time = 1;

Returns
Type Description
Timestamp

The sampleTime.

getSampleTimeBuilder()

public Timestamp.Builder getSampleTimeBuilder()

Time the sample was collected. If omitted, the frame report time will be used.

.google.protobuf.Timestamp sample_time = 1;

Returns
Type Description
Builder

getSampleTimeOrBuilder()

public TimestampOrBuilder getSampleTimeOrBuilder()

Time the sample was collected. If omitted, the frame report time will be used.

.google.protobuf.Timestamp sample_time = 1;

Returns
Type Description
TimestampOrBuilder

hasCpu()

public boolean hasCpu()

CPU usage sample.

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

Returns
Type Description
boolean

Whether the cpu field is set.

hasDisk()

public boolean hasDisk()

Disk usage sample.

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

Returns
Type Description
boolean

Whether the disk field is set.

hasMemory()

public boolean hasMemory()

Memory usage sample.

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

Returns
Type Description
boolean

Whether the memory field is set.

hasNetwork()

public boolean hasNetwork()

Network usage sample.

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

Returns
Type Description
boolean

Whether the network field is set.

hasSampleTime()

public boolean hasSampleTime()

Time the sample was collected. If omitted, the frame report time will be used.

.google.protobuf.Timestamp sample_time = 1;

Returns
Type Description
boolean

Whether the sampleTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCpu(CpuUsageSample value)

public PerformanceSample.Builder mergeCpu(CpuUsageSample value)

CPU usage sample.

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

Parameter
Name Description
value CpuUsageSample
Returns
Type Description
PerformanceSample.Builder

mergeDisk(DiskUsageSample value)

public PerformanceSample.Builder mergeDisk(DiskUsageSample value)

Disk usage sample.

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

Parameter
Name Description
value DiskUsageSample
Returns
Type Description
PerformanceSample.Builder

mergeFrom(PerformanceSample other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMemory(MemoryUsageSample value)

public PerformanceSample.Builder mergeMemory(MemoryUsageSample value)

Memory usage sample.

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

Parameter
Name Description
value MemoryUsageSample
Returns
Type Description
PerformanceSample.Builder

mergeNetwork(NetworkUsageSample value)

public PerformanceSample.Builder mergeNetwork(NetworkUsageSample value)

Network usage sample.

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

Parameter
Name Description
value NetworkUsageSample
Returns
Type Description
PerformanceSample.Builder

mergeSampleTime(Timestamp value)

public PerformanceSample.Builder mergeSampleTime(Timestamp value)

Time the sample was collected. If omitted, the frame report time will be used.

.google.protobuf.Timestamp sample_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
PerformanceSample.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCpu(CpuUsageSample value)

public PerformanceSample.Builder setCpu(CpuUsageSample value)

CPU usage sample.

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

Parameter
Name Description
value CpuUsageSample
Returns
Type Description
PerformanceSample.Builder

setCpu(CpuUsageSample.Builder builderForValue)

public PerformanceSample.Builder setCpu(CpuUsageSample.Builder builderForValue)

CPU usage sample.

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

Parameter
Name Description
builderForValue CpuUsageSample.Builder
Returns
Type Description
PerformanceSample.Builder

setDisk(DiskUsageSample value)

public PerformanceSample.Builder setDisk(DiskUsageSample value)

Disk usage sample.

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

Parameter
Name Description
value DiskUsageSample
Returns
Type Description
PerformanceSample.Builder

setDisk(DiskUsageSample.Builder builderForValue)

public PerformanceSample.Builder setDisk(DiskUsageSample.Builder builderForValue)

Disk usage sample.

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

Parameter
Name Description
builderForValue DiskUsageSample.Builder
Returns
Type Description
PerformanceSample.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemory(MemoryUsageSample value)

public PerformanceSample.Builder setMemory(MemoryUsageSample value)

Memory usage sample.

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

Parameter
Name Description
value MemoryUsageSample
Returns
Type Description
PerformanceSample.Builder

setMemory(MemoryUsageSample.Builder builderForValue)

public PerformanceSample.Builder setMemory(MemoryUsageSample.Builder builderForValue)

Memory usage sample.

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

Parameter
Name Description
builderForValue MemoryUsageSample.Builder
Returns
Type Description
PerformanceSample.Builder

setNetwork(NetworkUsageSample value)

public PerformanceSample.Builder setNetwork(NetworkUsageSample value)

Network usage sample.

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

Parameter
Name Description
value NetworkUsageSample
Returns
Type Description
PerformanceSample.Builder

setNetwork(NetworkUsageSample.Builder builderForValue)

public PerformanceSample.Builder setNetwork(NetworkUsageSample.Builder builderForValue)

Network usage sample.

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

Parameter
Name Description
builderForValue NetworkUsageSample.Builder
Returns
Type Description
PerformanceSample.Builder

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

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

setSampleTime(Timestamp value)

public PerformanceSample.Builder setSampleTime(Timestamp value)

Time the sample was collected. If omitted, the frame report time will be used.

.google.protobuf.Timestamp sample_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
PerformanceSample.Builder

setSampleTime(Timestamp.Builder builderForValue)

public PerformanceSample.Builder setSampleTime(Timestamp.Builder builderForValue)

Time the sample was collected. If omitted, the frame report time will be used.

.google.protobuf.Timestamp sample_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PerformanceSample.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final PerformanceSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PerformanceSample.Builder
Overrides