Class PerformanceSample (0.30.0)

public final class PerformanceSample extends GeneratedMessageV3 implements PerformanceSampleOrBuilder

Performance data sample.

Protobuf type google.cloud.migrationcenter.v1.PerformanceSample

Static Fields

CPU_FIELD_NUMBER

public static final int CPU_FIELD_NUMBER
Field Value
Type Description
int

DISK_FIELD_NUMBER

public static final int DISK_FIELD_NUMBER
Field Value
Type Description
int

MEMORY_FIELD_NUMBER

public static final int MEMORY_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

SAMPLE_TIME_FIELD_NUMBER

public static final int SAMPLE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PerformanceSample getDefaultInstance()
Returns
Type Description
PerformanceSample

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PerformanceSample.Builder newBuilder()
Returns
Type Description
PerformanceSample.Builder

newBuilder(PerformanceSample prototype)

public static PerformanceSample.Builder newBuilder(PerformanceSample prototype)
Parameter
Name Description
prototype PerformanceSample
Returns
Type Description
PerformanceSample.Builder

parseDelimitedFrom(InputStream input)

public static PerformanceSample parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PerformanceSample
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceSample
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PerformanceSample parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PerformanceSample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceSample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PerformanceSample parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PerformanceSample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceSample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PerformanceSample parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PerformanceSample
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceSample
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PerformanceSample parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PerformanceSample
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceSample
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PerformanceSample parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PerformanceSample
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceSample
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PerformanceSample> parser()
Returns
Type Description
Parser<PerformanceSample>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCpu()

public CpuUsageSample getCpu()

CPU usage sample.

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

Returns
Type Description
CpuUsageSample

The cpu.

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

getDisk()

public DiskUsageSample getDisk()

Disk usage sample.

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

Returns
Type Description
DiskUsageSample

The disk.

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.

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.

getNetworkOrBuilder()

public NetworkUsageSampleOrBuilder getNetworkOrBuilder()

Network usage sample.

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

Returns
Type Description
NetworkUsageSampleOrBuilder

getParserForType()

public Parser<PerformanceSample> getParserForType()
Returns
Type Description
Parser<PerformanceSample>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PerformanceSample.Builder newBuilderForType()
Returns
Type Description
PerformanceSample.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PerformanceSample.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PerformanceSample.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PerformanceSample.Builder toBuilder()
Returns
Type Description
PerformanceSample.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException