Class PerformanceSample (0.1.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
TypeDescription
int

DISK_FIELD_NUMBER

public static final int DISK_FIELD_NUMBER
Field Value
TypeDescription
int

MEMORY_FIELD_NUMBER

public static final int MEMORY_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

SAMPLE_TIME_FIELD_NUMBER

public static final int SAMPLE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PerformanceSample getDefaultInstance()
Returns
TypeDescription
PerformanceSample

getDescriptor()

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

newBuilder()

public static PerformanceSample.Builder newBuilder()
Returns
TypeDescription
PerformanceSample.Builder

newBuilder(PerformanceSample prototype)

public static PerformanceSample.Builder newBuilder(PerformanceSample prototype)
Parameter
NameDescription
prototypePerformanceSample
Returns
TypeDescription
PerformanceSample.Builder

parseDelimitedFrom(InputStream input)

public static PerformanceSample parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PerformanceSample parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PerformanceSample parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PerformanceSample parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PerformanceSample parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PerformanceSample parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PerformanceSample parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PerformanceSample
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PerformanceSample> parser()
Returns
TypeDescription
Parser<PerformanceSample>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCpu()

public CpuUsageSample getCpu()

CPU usage sample.

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

Returns
TypeDescription
CpuUsageSample

The cpu.

getCpuOrBuilder()

public CpuUsageSampleOrBuilder getCpuOrBuilder()

CPU usage sample.

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

Returns
TypeDescription
CpuUsageSampleOrBuilder

getDefaultInstanceForType()

public PerformanceSample getDefaultInstanceForType()
Returns
TypeDescription
PerformanceSample

getDisk()

public DiskUsageSample getDisk()

Disk usage sample.

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

Returns
TypeDescription
DiskUsageSample

The disk.

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.

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.

getNetworkOrBuilder()

public NetworkUsageSampleOrBuilder getNetworkOrBuilder()

Network usage sample.

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

Returns
TypeDescription
NetworkUsageSampleOrBuilder

getParserForType()

public Parser<PerformanceSample> getParserForType()
Returns
TypeDescription
Parser<PerformanceSample>
Overrides

getSampleTime()

public Timestamp getSampleTime()

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Returns
TypeDescription
Timestamp

The sampleTime.

getSampleTimeOrBuilder()

public TimestampOrBuilder getSampleTimeOrBuilder()

Time the sample was collected.

.google.protobuf.Timestamp sample_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PerformanceSample.Builder newBuilderForType()
Returns
TypeDescription
PerformanceSample.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PerformanceSample.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PerformanceSample.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PerformanceSample.Builder toBuilder()
Returns
TypeDescription
PerformanceSample.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException