Class DailyResourceUsageAggregation.Builder (0.35.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DailyResourceUsageAggregation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DailyResourceUsageAggregation.Builder
Overrides

build()

public DailyResourceUsageAggregation build()
Returns
Type Description
DailyResourceUsageAggregation

buildPartial()

public DailyResourceUsageAggregation buildPartial()
Returns
Type Description
DailyResourceUsageAggregation

clear()

public DailyResourceUsageAggregation.Builder clear()
Returns
Type Description
DailyResourceUsageAggregation.Builder
Overrides

clearCpu()

public DailyResourceUsageAggregation.Builder clearCpu()

CPU usage.

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

Returns
Type Description
DailyResourceUsageAggregation.Builder

clearDate()

public DailyResourceUsageAggregation.Builder clearDate()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
Type Description
DailyResourceUsageAggregation.Builder

clearDisk()

public DailyResourceUsageAggregation.Builder clearDisk()

Disk usage.

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

Returns
Type Description
DailyResourceUsageAggregation.Builder

clearField(Descriptors.FieldDescriptor field)

public DailyResourceUsageAggregation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DailyResourceUsageAggregation.Builder
Overrides

clearMemory()

public DailyResourceUsageAggregation.Builder clearMemory()

Memory usage.

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

Returns
Type Description
DailyResourceUsageAggregation.Builder

clearNetwork()

public DailyResourceUsageAggregation.Builder clearNetwork()

Network usage.

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

Returns
Type Description
DailyResourceUsageAggregation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DailyResourceUsageAggregation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DailyResourceUsageAggregation.Builder
Overrides

clone()

public DailyResourceUsageAggregation.Builder clone()
Returns
Type Description
DailyResourceUsageAggregation.Builder
Overrides

getCpu()

public DailyResourceUsageAggregation.CPU getCpu()

CPU usage.

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

Returns
Type Description
DailyResourceUsageAggregation.CPU

The cpu.

getCpuBuilder()

public DailyResourceUsageAggregation.CPU.Builder getCpuBuilder()

CPU usage.

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

Returns
Type Description
DailyResourceUsageAggregation.CPU.Builder

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.

getDateBuilder()

public Date.Builder getDateBuilder()

Aggregation date. Day boundaries are at midnight UTC.

.google.type.Date date = 1;

Returns
Type Description
com.google.type.Date.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisk()

public DailyResourceUsageAggregation.Disk getDisk()

Disk usage.

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

Returns
Type Description
DailyResourceUsageAggregation.Disk

The disk.

getDiskBuilder()

public DailyResourceUsageAggregation.Disk.Builder getDiskBuilder()

Disk usage.

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

Returns
Type Description
DailyResourceUsageAggregation.Disk.Builder

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.

getMemoryBuilder()

public DailyResourceUsageAggregation.Memory.Builder getMemoryBuilder()

Memory usage.

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

Returns
Type Description
DailyResourceUsageAggregation.Memory.Builder

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.

getNetworkBuilder()

public DailyResourceUsageAggregation.Network.Builder getNetworkBuilder()

Network usage.

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

Returns
Type Description
DailyResourceUsageAggregation.Network.Builder

getNetworkOrBuilder()

public DailyResourceUsageAggregation.NetworkOrBuilder getNetworkOrBuilder()

Network usage.

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

Returns
Type Description
DailyResourceUsageAggregation.NetworkOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCpu(DailyResourceUsageAggregation.CPU value)

public DailyResourceUsageAggregation.Builder mergeCpu(DailyResourceUsageAggregation.CPU value)

CPU usage.

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

Parameter
Name Description
value DailyResourceUsageAggregation.CPU
Returns
Type Description
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
Name Description
value com.google.type.Date
Returns
Type Description
DailyResourceUsageAggregation.Builder

mergeDisk(DailyResourceUsageAggregation.Disk value)

public DailyResourceUsageAggregation.Builder mergeDisk(DailyResourceUsageAggregation.Disk value)

Disk usage.

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

Parameter
Name Description
value DailyResourceUsageAggregation.Disk
Returns
Type Description
DailyResourceUsageAggregation.Builder

mergeFrom(DailyResourceUsageAggregation other)

public DailyResourceUsageAggregation.Builder mergeFrom(DailyResourceUsageAggregation other)
Parameter
Name Description
other DailyResourceUsageAggregation
Returns
Type Description
DailyResourceUsageAggregation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DailyResourceUsageAggregation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DailyResourceUsageAggregation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DailyResourceUsageAggregation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value DailyResourceUsageAggregation.Memory
Returns
Type Description
DailyResourceUsageAggregation.Builder

mergeNetwork(DailyResourceUsageAggregation.Network value)

public DailyResourceUsageAggregation.Builder mergeNetwork(DailyResourceUsageAggregation.Network value)

Network usage.

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

Parameter
Name Description
value DailyResourceUsageAggregation.Network
Returns
Type Description
DailyResourceUsageAggregation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DailyResourceUsageAggregation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value DailyResourceUsageAggregation.CPU
Returns
Type Description
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
Name Description
builderForValue DailyResourceUsageAggregation.CPU.Builder
Returns
Type Description
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
Name Description
value com.google.type.Date
Returns
Type Description
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
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
DailyResourceUsageAggregation.Builder

setDisk(DailyResourceUsageAggregation.Disk value)

public DailyResourceUsageAggregation.Builder setDisk(DailyResourceUsageAggregation.Disk value)

Disk usage.

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

Parameter
Name Description
value DailyResourceUsageAggregation.Disk
Returns
Type Description
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
Name Description
builderForValue DailyResourceUsageAggregation.Disk.Builder
Returns
Type Description
DailyResourceUsageAggregation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DailyResourceUsageAggregation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value DailyResourceUsageAggregation.Memory
Returns
Type Description
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
Name Description
builderForValue DailyResourceUsageAggregation.Memory.Builder
Returns
Type Description
DailyResourceUsageAggregation.Builder

setNetwork(DailyResourceUsageAggregation.Network value)

public DailyResourceUsageAggregation.Builder setNetwork(DailyResourceUsageAggregation.Network value)

Network usage.

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

Parameter
Name Description
value DailyResourceUsageAggregation.Network
Returns
Type Description
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
Name Description
builderForValue DailyResourceUsageAggregation.Network.Builder
Returns
Type Description
DailyResourceUsageAggregation.Builder

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

public DailyResourceUsageAggregation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DailyResourceUsageAggregation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DailyResourceUsageAggregation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DailyResourceUsageAggregation.Builder
Overrides