Class UtilizationReport.Builder (1.13.0)

public static final class UtilizationReport.Builder extends GeneratedMessageV3.Builder<UtilizationReport.Builder> implements UtilizationReportOrBuilder

Utilization report details the utilization (CPU, memory, etc.) of selected source VMs.

Protobuf type google.cloud.vmmigration.v1.UtilizationReport

Static Methods

getDescriptor()

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

Methods

addAllVms(Iterable<? extends VmUtilizationInfo> values)

public UtilizationReport.Builder addAllVms(Iterable<? extends VmUtilizationInfo> values)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vmmigration.v1.VmUtilizationInfo>
Returns
TypeDescription
UtilizationReport.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVms(VmUtilizationInfo value)

public UtilizationReport.Builder addVms(VmUtilizationInfo value)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameter
NameDescription
valueVmUtilizationInfo
Returns
TypeDescription
UtilizationReport.Builder

addVms(VmUtilizationInfo.Builder builderForValue)

public UtilizationReport.Builder addVms(VmUtilizationInfo.Builder builderForValue)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameter
NameDescription
builderForValueVmUtilizationInfo.Builder
Returns
TypeDescription
UtilizationReport.Builder

addVms(int index, VmUtilizationInfo value)

public UtilizationReport.Builder addVms(int index, VmUtilizationInfo value)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameters
NameDescription
indexint
valueVmUtilizationInfo
Returns
TypeDescription
UtilizationReport.Builder

addVms(int index, VmUtilizationInfo.Builder builderForValue)

public UtilizationReport.Builder addVms(int index, VmUtilizationInfo.Builder builderForValue)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameters
NameDescription
indexint
builderForValueVmUtilizationInfo.Builder
Returns
TypeDescription
UtilizationReport.Builder

addVmsBuilder()

public VmUtilizationInfo.Builder addVmsBuilder()

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Returns
TypeDescription
VmUtilizationInfo.Builder

addVmsBuilder(int index)

public VmUtilizationInfo.Builder addVmsBuilder(int index)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmUtilizationInfo.Builder

build()

public UtilizationReport build()
Returns
TypeDescription
UtilizationReport

buildPartial()

public UtilizationReport buildPartial()
Returns
TypeDescription
UtilizationReport

clear()

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

clearCreateTime()

public UtilizationReport.Builder clearCreateTime()

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.Builder

clearDisplayName()

public UtilizationReport.Builder clearDisplayName()

The report display name, as assigned by the user.

string display_name = 2;

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

clearError()

public UtilizationReport.Builder clearError()

Output only. Provides details on the state of the report in case of an error.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFrameEndTime()

public UtilizationReport.Builder clearFrameEndTime()

Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.

.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.Builder

clearName()

public UtilizationReport.Builder clearName()

Output only. The report unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public UtilizationReport.Builder clearState()

Output only. Current state of the report.

.google.cloud.vmmigration.v1.UtilizationReport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

clearStateTime()

public UtilizationReport.Builder clearStateTime()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.Builder

clearTimeFrame()

public UtilizationReport.Builder clearTimeFrame()

Time frame of the report.

.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

clearVmCount()

public UtilizationReport.Builder clearVmCount()

Output only. Total number of VMs included in the report.

int32 vm_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

clearVms()

public UtilizationReport.Builder clearVms()

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Returns
TypeDescription
UtilizationReport.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public UtilizationReport getDefaultInstanceForType()
Returns
TypeDescription
UtilizationReport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The report display name, as assigned by the user.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The report display name, as assigned by the user.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getError()

public Status getError()

Output only. Provides details on the state of the report in case of an error.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Output only. Provides details on the state of the report in case of an error.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. Provides details on the state of the report in case of an error.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getFrameEndTime()

public Timestamp getFrameEndTime()

Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.

.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The frameEndTime.

getFrameEndTimeBuilder()

public Timestamp.Builder getFrameEndTimeBuilder()

Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.

.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getFrameEndTimeOrBuilder()

public TimestampOrBuilder getFrameEndTimeOrBuilder()

Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.

.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Output only. The report unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The report unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public UtilizationReport.State getState()

Output only. Current state of the report.

.google.cloud.vmmigration.v1.UtilizationReport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.State

The state.

getStateTime()

public Timestamp getStateTime()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The stateTime.

getStateTimeBuilder()

public Timestamp.Builder getStateTimeBuilder()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getStateTimeOrBuilder()

public TimestampOrBuilder getStateTimeOrBuilder()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getStateValue()

public int getStateValue()

Output only. Current state of the report.

.google.cloud.vmmigration.v1.UtilizationReport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTimeFrame()

public UtilizationReport.TimeFrame getTimeFrame()

Time frame of the report.

.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;

Returns
TypeDescription
UtilizationReport.TimeFrame

The timeFrame.

getTimeFrameValue()

public int getTimeFrameValue()

Time frame of the report.

.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for timeFrame.

getVmCount()

public int getVmCount()

Output only. Total number of VMs included in the report.

int32 vm_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The vmCount.

getVms(int index)

public VmUtilizationInfo getVms(int index)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmUtilizationInfo

getVmsBuilder(int index)

public VmUtilizationInfo.Builder getVmsBuilder(int index)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmUtilizationInfo.Builder

getVmsBuilderList()

public List<VmUtilizationInfo.Builder> getVmsBuilderList()

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Returns
TypeDescription
List<Builder>

getVmsCount()

public int getVmsCount()

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Returns
TypeDescription
int

getVmsList()

public List<VmUtilizationInfo> getVmsList()

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Returns
TypeDescription
List<VmUtilizationInfo>

getVmsOrBuilder(int index)

public VmUtilizationInfoOrBuilder getVmsOrBuilder(int index)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmUtilizationInfoOrBuilder

getVmsOrBuilderList()

public List<? extends VmUtilizationInfoOrBuilder> getVmsOrBuilderList()

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Returns
TypeDescription
List<? extends com.google.cloud.vmmigration.v1.VmUtilizationInfoOrBuilder>

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasError()

public boolean hasError()

Output only. Provides details on the state of the report in case of an error.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the error field is set.

hasFrameEndTime()

public boolean hasFrameEndTime()

Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.

.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the frameEndTime field is set.

hasStateTime()

public boolean hasStateTime()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the stateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public UtilizationReport.Builder mergeCreateTime(Timestamp value)

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
UtilizationReport.Builder

mergeError(Status value)

public UtilizationReport.Builder mergeError(Status value)

Output only. Provides details on the state of the report in case of an error.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
UtilizationReport.Builder

mergeFrameEndTime(Timestamp value)

public UtilizationReport.Builder mergeFrameEndTime(Timestamp value)

Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.

.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
UtilizationReport.Builder

mergeFrom(UtilizationReport other)

public UtilizationReport.Builder mergeFrom(UtilizationReport other)
Parameter
NameDescription
otherUtilizationReport
Returns
TypeDescription
UtilizationReport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStateTime(Timestamp value)

public UtilizationReport.Builder mergeStateTime(Timestamp value)

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
UtilizationReport.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVms(int index)

public UtilizationReport.Builder removeVms(int index)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
UtilizationReport.Builder

setCreateTime(Timestamp value)

public UtilizationReport.Builder setCreateTime(Timestamp value)

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
UtilizationReport.Builder

setCreateTime(Timestamp.Builder builderForValue)

public UtilizationReport.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UtilizationReport.Builder

setDisplayName(String value)

public UtilizationReport.Builder setDisplayName(String value)

The report display name, as assigned by the user.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public UtilizationReport.Builder setDisplayNameBytes(ByteString value)

The report display name, as assigned by the user.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

setError(Status value)

public UtilizationReport.Builder setError(Status value)

Output only. Provides details on the state of the report in case of an error.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
UtilizationReport.Builder

setError(Status.Builder builderForValue)

public UtilizationReport.Builder setError(Status.Builder builderForValue)

Output only. Provides details on the state of the report in case of an error.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
UtilizationReport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFrameEndTime(Timestamp value)

public UtilizationReport.Builder setFrameEndTime(Timestamp value)

Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.

.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
UtilizationReport.Builder

setFrameEndTime(Timestamp.Builder builderForValue)

public UtilizationReport.Builder setFrameEndTime(Timestamp.Builder builderForValue)

Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.

.google.protobuf.Timestamp frame_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UtilizationReport.Builder

setName(String value)

public UtilizationReport.Builder setName(String value)

Output only. The report unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UtilizationReport.Builder setNameBytes(ByteString value)

Output only. The report unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

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

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

setState(UtilizationReport.State value)

public UtilizationReport.Builder setState(UtilizationReport.State value)

Output only. Current state of the report.

.google.cloud.vmmigration.v1.UtilizationReport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueUtilizationReport.State

The state to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

setStateTime(Timestamp value)

public UtilizationReport.Builder setStateTime(Timestamp value)

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
UtilizationReport.Builder

setStateTime(Timestamp.Builder builderForValue)

public UtilizationReport.Builder setStateTime(Timestamp.Builder builderForValue)

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UtilizationReport.Builder

setStateValue(int value)

public UtilizationReport.Builder setStateValue(int value)

Output only. Current state of the report.

.google.cloud.vmmigration.v1.UtilizationReport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

setTimeFrame(UtilizationReport.TimeFrame value)

public UtilizationReport.Builder setTimeFrame(UtilizationReport.TimeFrame value)

Time frame of the report.

.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;

Parameter
NameDescription
valueUtilizationReport.TimeFrame

The timeFrame to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

setTimeFrameValue(int value)

public UtilizationReport.Builder setTimeFrameValue(int value)

Time frame of the report.

.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame time_frame = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for timeFrame to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmCount(int value)

public UtilizationReport.Builder setVmCount(int value)

Output only. Total number of VMs included in the report.

int32 vm_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The vmCount to set.

Returns
TypeDescription
UtilizationReport.Builder

This builder for chaining.

setVms(int index, VmUtilizationInfo value)

public UtilizationReport.Builder setVms(int index, VmUtilizationInfo value)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameters
NameDescription
indexint
valueVmUtilizationInfo
Returns
TypeDescription
UtilizationReport.Builder

setVms(int index, VmUtilizationInfo.Builder builderForValue)

public UtilizationReport.Builder setVms(int index, VmUtilizationInfo.Builder builderForValue)

List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

repeated .google.cloud.vmmigration.v1.VmUtilizationInfo vms = 10;

Parameters
NameDescription
indexint
builderForValueVmUtilizationInfo.Builder
Returns
TypeDescription
UtilizationReport.Builder