Class GuestOsFeature.Builder (1.55.0)

public static final class GuestOsFeature.Builder extends GeneratedMessageV3.Builder<GuestOsFeature.Builder> implements GuestOsFeatureOrBuilder

Guest OS features.

Protobuf type google.cloud.compute.v1.GuestOsFeature

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GuestOsFeature build()
Returns
Type Description
GuestOsFeature

buildPartial()

public GuestOsFeature buildPartial()
Returns
Type Description
GuestOsFeature

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public GuestOsFeature.Builder clearType()

The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
GuestOsFeature.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GuestOsFeature getDefaultInstanceForType()
Returns
Type Description
GuestOsFeature

getDescriptorForType()

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

getType()

public String getType()

The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasType()

public boolean hasType()

The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GuestOsFeature other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setType(String value)

public GuestOsFeature.Builder setType(String value)

The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features. Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
GuestOsFeature.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public GuestOsFeature.Builder setTypeBytes(ByteString value)

The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features. Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
GuestOsFeature.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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