public final class PerformanceSample extends GeneratedMessageV3 implements PerformanceSampleOrBuilder
Performance data sample.
Protobuf type google.cloud.migrationcenter.v1.PerformanceSample
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int CPU_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DISK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MEMORY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NETWORK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SAMPLE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static PerformanceSample getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static PerformanceSample.Builder newBuilder()
public static PerformanceSample.Builder newBuilder(PerformanceSample prototype)
public static PerformanceSample parseDelimitedFrom(InputStream input)
public static PerformanceSample parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceSample parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static PerformanceSample parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PerformanceSample parseFrom(ByteString data)
public static PerformanceSample parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PerformanceSample parseFrom(CodedInputStream input)
public static PerformanceSample parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceSample parseFrom(InputStream input)
public static PerformanceSample parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceSample parseFrom(ByteBuffer data)
public static PerformanceSample parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<PerformanceSample> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public CpuUsageSample getCpu()
CPU usage sample.
.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;
public CpuUsageSampleOrBuilder getCpuOrBuilder()
CPU usage sample.
.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;
public PerformanceSample getDefaultInstanceForType()
public DiskUsageSample getDisk()
Disk usage sample.
.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;
public DiskUsageSampleOrBuilder getDiskOrBuilder()
Disk usage sample.
.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;
public MemoryUsageSample getMemory()
Memory usage sample.
.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;
public MemoryUsageSampleOrBuilder getMemoryOrBuilder()
Memory usage sample.
.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;
public NetworkUsageSample getNetwork()
Network usage sample.
.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;
public NetworkUsageSampleOrBuilder getNetworkOrBuilder()
Network usage sample.
.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;
public Parser<PerformanceSample> getParserForType()
Overrides
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.
|
public TimestampOrBuilder getSampleTimeOrBuilder()
Time the sample was collected.
If omitted, the frame report time will be used.
.google.protobuf.Timestamp sample_time = 1;
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
CPU usage sample.
.google.cloud.migrationcenter.v1.CpuUsageSample cpu = 3;
Returns |
---|
Type | Description |
boolean | Whether the cpu field is set.
|
Disk usage sample.
.google.cloud.migrationcenter.v1.DiskUsageSample disk = 5;
Returns |
---|
Type | Description |
boolean | Whether the disk field is set.
|
public boolean hasMemory()
Memory usage sample.
.google.cloud.migrationcenter.v1.MemoryUsageSample memory = 2;
Returns |
---|
Type | Description |
boolean | Whether the memory field is set.
|
public boolean hasNetwork()
Network usage sample.
.google.cloud.migrationcenter.v1.NetworkUsageSample network = 4;
Returns |
---|
Type | Description |
boolean | Whether the network field is set.
|
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.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PerformanceSample.Builder newBuilderForType()
protected PerformanceSample.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public PerformanceSample.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides