Class DailyResourceUsageAggregation.Builder (0.15.0)

public static final class DailyResourceUsageAggregation.Builder extends GeneratedMessageV3.Builder<DailyResourceUsageAggregation.Builder> implements DailyResourceUsageAggregationOrBuilder

Usage data aggregation for a single day.

Protobuf type google.cloud.migrationcenter.v1.DailyResourceUsageAggregation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DailyResourceUsageAggregation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

build()

public DailyResourceUsageAggregation build()
Returns
TypeDescription
DailyResourceUsageAggregation

buildPartial()

public DailyResourceUsageAggregation buildPartial()
Returns
TypeDescription
DailyResourceUsageAggregation

clear()

public DailyResourceUsageAggregation.Builder clear()
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

clearCpu()

public DailyResourceUsageAggregation.Builder clearCpu()

CPU usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Builder

clearDate()

public DailyResourceUsageAggregation.Builder clearDate()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
TypeDescription
DailyResourceUsageAggregation.Builder

clearDisk()

public DailyResourceUsageAggregation.Builder clearDisk()

Disk usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Builder

clearField(Descriptors.FieldDescriptor field)

public DailyResourceUsageAggregation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

clearMemory()

public DailyResourceUsageAggregation.Builder clearMemory()

Memory usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Builder

clearNetwork()

public DailyResourceUsageAggregation.Builder clearNetwork()

Network usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DailyResourceUsageAggregation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

clone()

public DailyResourceUsageAggregation.Builder clone()
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

getCpu()

public DailyResourceUsageAggregation.CPU getCpu()

CPU usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.CPU

The cpu.

getCpuBuilder()

public DailyResourceUsageAggregation.CPU.Builder getCpuBuilder()

CPU usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder

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.

getDateBuilder()

public Date.Builder getDateBuilder()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
TypeDescription
com.google.type.Date.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisk()

public DailyResourceUsageAggregation.Disk getDisk()

Disk usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Disk

The disk.

getDiskBuilder()

public DailyResourceUsageAggregation.Disk.Builder getDiskBuilder()

Disk usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Disk.Builder

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.

getMemoryBuilder()

public DailyResourceUsageAggregation.Memory.Builder getMemoryBuilder()

Memory usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Memory.Builder

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.

getNetworkBuilder()

public DailyResourceUsageAggregation.Network.Builder getNetworkBuilder()

Network usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.Network.Builder

getNetworkOrBuilder()

public DailyResourceUsageAggregation.NetworkOrBuilder getNetworkOrBuilder()

Network usage.

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

Returns
TypeDescription
DailyResourceUsageAggregation.NetworkOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCpu(DailyResourceUsageAggregation.CPU value)

public DailyResourceUsageAggregation.Builder mergeCpu(DailyResourceUsageAggregation.CPU value)

CPU usage.

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

Parameter
NameDescription
valueDailyResourceUsageAggregation.CPU
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

mergeDate(Date value)

public DailyResourceUsageAggregation.Builder mergeDate(Date value)

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

mergeDisk(DailyResourceUsageAggregation.Disk value)

public DailyResourceUsageAggregation.Builder mergeDisk(DailyResourceUsageAggregation.Disk value)

Disk usage.

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

Parameter
NameDescription
valueDailyResourceUsageAggregation.Disk
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

mergeFrom(DailyResourceUsageAggregation other)

public DailyResourceUsageAggregation.Builder mergeFrom(DailyResourceUsageAggregation other)
Parameter
NameDescription
otherDailyResourceUsageAggregation
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DailyResourceUsageAggregation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DailyResourceUsageAggregation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

mergeMemory(DailyResourceUsageAggregation.Memory value)

public DailyResourceUsageAggregation.Builder mergeMemory(DailyResourceUsageAggregation.Memory value)

Memory usage.

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

Parameter
NameDescription
valueDailyResourceUsageAggregation.Memory
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

mergeNetwork(DailyResourceUsageAggregation.Network value)

public DailyResourceUsageAggregation.Builder mergeNetwork(DailyResourceUsageAggregation.Network value)

Network usage.

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

Parameter
NameDescription
valueDailyResourceUsageAggregation.Network
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DailyResourceUsageAggregation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

setCpu(DailyResourceUsageAggregation.CPU value)

public DailyResourceUsageAggregation.Builder setCpu(DailyResourceUsageAggregation.CPU value)

CPU usage.

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

Parameter
NameDescription
valueDailyResourceUsageAggregation.CPU
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setCpu(DailyResourceUsageAggregation.CPU.Builder builderForValue)

public DailyResourceUsageAggregation.Builder setCpu(DailyResourceUsageAggregation.CPU.Builder builderForValue)

CPU usage.

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

Parameter
NameDescription
builderForValueDailyResourceUsageAggregation.CPU.Builder
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setDate(Date value)

public DailyResourceUsageAggregation.Builder setDate(Date value)

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setDate(Date.Builder builderForValue)

public DailyResourceUsageAggregation.Builder setDate(Date.Builder builderForValue)

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Parameter
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setDisk(DailyResourceUsageAggregation.Disk value)

public DailyResourceUsageAggregation.Builder setDisk(DailyResourceUsageAggregation.Disk value)

Disk usage.

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

Parameter
NameDescription
valueDailyResourceUsageAggregation.Disk
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setDisk(DailyResourceUsageAggregation.Disk.Builder builderForValue)

public DailyResourceUsageAggregation.Builder setDisk(DailyResourceUsageAggregation.Disk.Builder builderForValue)

Disk usage.

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

Parameter
NameDescription
builderForValueDailyResourceUsageAggregation.Disk.Builder
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DailyResourceUsageAggregation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

setMemory(DailyResourceUsageAggregation.Memory value)

public DailyResourceUsageAggregation.Builder setMemory(DailyResourceUsageAggregation.Memory value)

Memory usage.

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

Parameter
NameDescription
valueDailyResourceUsageAggregation.Memory
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setMemory(DailyResourceUsageAggregation.Memory.Builder builderForValue)

public DailyResourceUsageAggregation.Builder setMemory(DailyResourceUsageAggregation.Memory.Builder builderForValue)

Memory usage.

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

Parameter
NameDescription
builderForValueDailyResourceUsageAggregation.Memory.Builder
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setNetwork(DailyResourceUsageAggregation.Network value)

public DailyResourceUsageAggregation.Builder setNetwork(DailyResourceUsageAggregation.Network value)

Network usage.

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

Parameter
NameDescription
valueDailyResourceUsageAggregation.Network
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setNetwork(DailyResourceUsageAggregation.Network.Builder builderForValue)

public DailyResourceUsageAggregation.Builder setNetwork(DailyResourceUsageAggregation.Network.Builder builderForValue)

Network usage.

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

Parameter
NameDescription
builderForValueDailyResourceUsageAggregation.Network.Builder
Returns
TypeDescription
DailyResourceUsageAggregation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DailyResourceUsageAggregation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DailyResourceUsageAggregation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DailyResourceUsageAggregation.Builder
Overrides