Class VmCapabilities.Builder (1.74.0)

public static final class VmCapabilities.Builder extends GeneratedMessageV3.Builder<VmCapabilities.Builder> implements VmCapabilitiesOrBuilder

Migrating VM source information about the VM capabilities needed for some Compute Engine features.

Protobuf type google.cloud.vmmigration.v1.VmCapabilities

Static Methods

getDescriptor()

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

Methods

addAllOsCapabilities(Iterable<? extends OsCapability> values)

public VmCapabilities.Builder addAllOsCapabilities(Iterable<? extends OsCapability> values)

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.OsCapability>

The osCapabilities to add.

Returns
Type Description
VmCapabilities.Builder

This builder for chaining.

addAllOsCapabilitiesValue(Iterable<Integer> values)

public VmCapabilities.Builder addAllOsCapabilitiesValue(Iterable<Integer> values)

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for osCapabilities to add.

Returns
Type Description
VmCapabilities.Builder

This builder for chaining.

addOsCapabilities(OsCapability value)

public VmCapabilities.Builder addOsCapabilities(OsCapability value)

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value OsCapability

The osCapabilities to add.

Returns
Type Description
VmCapabilities.Builder

This builder for chaining.

addOsCapabilitiesValue(int value)

public VmCapabilities.Builder addOsCapabilitiesValue(int value)

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value int

The enum numeric value on the wire for osCapabilities to add.

Returns
Type Description
VmCapabilities.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmCapabilities build()
Returns
Type Description
VmCapabilities

buildPartial()

public VmCapabilities buildPartial()
Returns
Type Description
VmCapabilities

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLastOsCapabilitiesUpdateTime()

public VmCapabilities.Builder clearLastOsCapabilitiesUpdateTime()

Output only. The last time OS capabilities list was updated.

.google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VmCapabilities.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsCapabilities()

public VmCapabilities.Builder clearOsCapabilities()

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
VmCapabilities.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VmCapabilities getDefaultInstanceForType()
Returns
Type Description
VmCapabilities

getDescriptorForType()

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

getLastOsCapabilitiesUpdateTime()

public Timestamp getLastOsCapabilitiesUpdateTime()

Output only. The last time OS capabilities list was updated.

.google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastOsCapabilitiesUpdateTime.

getLastOsCapabilitiesUpdateTimeBuilder()

public Timestamp.Builder getLastOsCapabilitiesUpdateTimeBuilder()

Output only. The last time OS capabilities list was updated.

.google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getLastOsCapabilitiesUpdateTimeOrBuilder()

public TimestampOrBuilder getLastOsCapabilitiesUpdateTimeOrBuilder()

Output only. The last time OS capabilities list was updated.

.google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getOsCapabilities(int index)

public OsCapability getOsCapabilities(int index)

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
OsCapability

The osCapabilities at the given index.

getOsCapabilitiesCount()

public int getOsCapabilitiesCount()

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

The count of osCapabilities.

getOsCapabilitiesList()

public List<OsCapability> getOsCapabilitiesList()

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<OsCapability>

A list containing the osCapabilities.

getOsCapabilitiesValue(int index)

public int getOsCapabilitiesValue(int index)

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of osCapabilities at the given index.

getOsCapabilitiesValueList()

public List<Integer> getOsCapabilitiesValueList()

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for osCapabilities.

hasLastOsCapabilitiesUpdateTime()

public boolean hasLastOsCapabilitiesUpdateTime()

Output only. The last time OS capabilities list was updated.

.google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastOsCapabilitiesUpdateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VmCapabilities other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VmCapabilities.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VmCapabilities.Builder
Overrides

mergeLastOsCapabilitiesUpdateTime(Timestamp value)

public VmCapabilities.Builder mergeLastOsCapabilitiesUpdateTime(Timestamp value)

Output only. The last time OS capabilities list was updated.

.google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
VmCapabilities.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VmCapabilities.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VmCapabilities.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastOsCapabilitiesUpdateTime(Timestamp value)

public VmCapabilities.Builder setLastOsCapabilitiesUpdateTime(Timestamp value)

Output only. The last time OS capabilities list was updated.

.google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
VmCapabilities.Builder

setLastOsCapabilitiesUpdateTime(Timestamp.Builder builderForValue)

public VmCapabilities.Builder setLastOsCapabilitiesUpdateTime(Timestamp.Builder builderForValue)

Output only. The last time OS capabilities list was updated.

.google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VmCapabilities.Builder

setOsCapabilities(int index, OsCapability value)

public VmCapabilities.Builder setOsCapabilities(int index, OsCapability value)

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int

The index to set the value at.

value OsCapability

The osCapabilities to set.

Returns
Type Description
VmCapabilities.Builder

This builder for chaining.

setOsCapabilitiesValue(int index, int value)

public VmCapabilities.Builder setOsCapabilitiesValue(int index, int value)

Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.

repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
VmCapabilities.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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