Class DailyResourceUsageAggregation (0.23.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
TypeDescription
int

DATE_FIELD_NUMBER

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

Static Methods

getDefaultInstance()

public static DailyResourceUsageAggregation getDefaultInstance()
Returns
TypeDescription
DailyResourceUsageAggregation

getDescriptor()

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

newBuilder()

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

newBuilder(DailyResourceUsageAggregation prototype)

public static DailyResourceUsageAggregation.Builder newBuilder(DailyResourceUsageAggregation prototype)
Parameter
NameDescription
prototypeDailyResourceUsageAggregation
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCpu()

public DailyResourceUsageAggregation.CPU getCpu()

CPU usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.CPU

The cpu.

getCpuOrBuilder()

public DailyResourceUsageAggregation.CPUOrBuilder getCpuOrBuilder()

CPU usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.CPUOrBuilder

getDate()

public Date getDate()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
TypeDescription
com.google.type.Date

The date.

getDateOrBuilder()

public DateOrBuilder getDateOrBuilder()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
TypeDescription
com.google.type.DateOrBuilder

getDefaultInstanceForType()

public DailyResourceUsageAggregation getDefaultInstanceForType()
Returns
TypeDescription
DailyResourceUsageAggregation

getDisk()

public DailyResourceUsageAggregation.Disk getDisk()

Disk usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Disk

The disk.

getDiskOrBuilder()

public DailyResourceUsageAggregation.DiskOrBuilder getDiskOrBuilder()

Disk usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.DiskOrBuilder

getMemory()

public DailyResourceUsageAggregation.Memory getMemory()

Memory usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Memory

The memory.

getMemoryOrBuilder()

public DailyResourceUsageAggregation.MemoryOrBuilder getMemoryOrBuilder()

Memory usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.MemoryOrBuilder

getNetwork()

public DailyResourceUsageAggregation.Network getNetwork()

Network usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Network

The network.

getNetworkOrBuilder()

public DailyResourceUsageAggregation.NetworkOrBuilder getNetworkOrBuilder()

Network usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.NetworkOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCpu()

public boolean hasCpu()

CPU usage.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the date field is set.

hasDisk()

public boolean hasDisk()

Disk usage.

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

Returns
TypeDescription
boolean

Whether the disk field is set.

hasMemory()

public boolean hasMemory()

Memory usage.

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

Returns
TypeDescription
boolean

Whether the memory field is set.

hasNetwork()

public boolean hasNetwork()

Network usage.

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

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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