Class DailyResourceUsageAggregation (0.28.0)

public final class DailyResourceUsageAggregation extends GeneratedMessageV3 implements DailyResourceUsageAggregationOrBuilder

Usage data aggregation for a single day.

Protobuf type google.cloud.migrationcenter.v1.DailyResourceUsageAggregation

Static Fields

CPU_FIELD_NUMBER

public static final int CPU_FIELD_NUMBER
Field Value
Type Description
int

DATE_FIELD_NUMBER

public static final int DATE_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

Static Methods

getDefaultInstance()

public static DailyResourceUsageAggregation getDefaultInstance()
Returns
Type Description
DailyResourceUsageAggregation

getDescriptor()

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

newBuilder()

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

newBuilder(DailyResourceUsageAggregation prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCpu()

public DailyResourceUsageAggregation.CPU getCpu()

CPU usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.CPU cpu = 2;

Returns
Type Description
DailyResourceUsageAggregation.CPU

The cpu.

getCpuOrBuilder()

public DailyResourceUsageAggregation.CPUOrBuilder getCpuOrBuilder()

CPU usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.CPU cpu = 2;

Returns
Type Description
DailyResourceUsageAggregation.CPUOrBuilder

getDate()

public Date getDate()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
Type Description
com.google.type.Date

The date.

getDateOrBuilder()

public DateOrBuilder getDateOrBuilder()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
Type Description
com.google.type.DateOrBuilder

getDefaultInstanceForType()

public DailyResourceUsageAggregation getDefaultInstanceForType()
Returns
Type Description
DailyResourceUsageAggregation

getDisk()

public DailyResourceUsageAggregation.Disk getDisk()

Disk usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Disk disk = 5;

Returns
Type Description
DailyResourceUsageAggregation.Disk

The disk.

getDiskOrBuilder()

public DailyResourceUsageAggregation.DiskOrBuilder getDiskOrBuilder()

Disk usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Disk disk = 5;

Returns
Type Description
DailyResourceUsageAggregation.DiskOrBuilder

getMemory()

public DailyResourceUsageAggregation.Memory getMemory()

Memory usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Memory memory = 3;

Returns
Type Description
DailyResourceUsageAggregation.Memory

The memory.

getMemoryOrBuilder()

public DailyResourceUsageAggregation.MemoryOrBuilder getMemoryOrBuilder()

Memory usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Memory memory = 3;

Returns
Type Description
DailyResourceUsageAggregation.MemoryOrBuilder

getNetwork()

public DailyResourceUsageAggregation.Network getNetwork()

Network usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Network network = 4;

Returns
Type Description
DailyResourceUsageAggregation.Network

The network.

getNetworkOrBuilder()

public DailyResourceUsageAggregation.NetworkOrBuilder getNetworkOrBuilder()

Network usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Network network = 4;

Returns
Type Description
DailyResourceUsageAggregation.NetworkOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCpu()

public boolean hasCpu()

CPU usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.CPU cpu = 2;

Returns
Type Description
boolean

Whether the cpu field is set.

hasDate()

public boolean hasDate()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
Type Description
boolean

Whether the date field is set.

hasDisk()

public boolean hasDisk()

Disk usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Disk disk = 5;

Returns
Type Description
boolean

Whether the disk field is set.

hasMemory()

public boolean hasMemory()

Memory usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Memory memory = 3;

Returns
Type Description
boolean

Whether the memory field is set.

hasNetwork()

public boolean hasNetwork()

Network usage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Network network = 4;

Returns
Type Description
boolean

Whether the network 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 DailyResourceUsageAggregation.Builder newBuilderForType()
Returns
Type Description
DailyResourceUsageAggregation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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