Class VmCreationConfig.Builder (2.45.0)

public static final class VmCreationConfig.Builder extends GeneratedMessageV3.Builder<VmCreationConfig.Builder> implements VmCreationConfigOrBuilder

VM creation configuration message

Protobuf type google.cloud.clouddms.v1.VmCreationConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmCreationConfig build()
Returns
Type Description
VmCreationConfig

buildPartial()

public VmCreationConfig buildPartial()
Returns
Type Description
VmCreationConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnet()

public VmCreationConfig.Builder clearSubnet()

The subnet name the vm needs to be created in.

string subnet = 3;

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.

clearVmMachineType()

public VmCreationConfig.Builder clearVmMachineType()

Required. VM instance machine type to create.

string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.

clearVmZone()

public VmCreationConfig.Builder clearVmZone()

The Google Cloud Platform zone to create the VM in.

string vm_zone = 2;

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VmCreationConfig getDefaultInstanceForType()
Returns
Type Description
VmCreationConfig

getDescriptorForType()

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

getSubnet()

public String getSubnet()

The subnet name the vm needs to be created in.

string subnet = 3;

Returns
Type Description
String

The subnet.

getSubnetBytes()

public ByteString getSubnetBytes()

The subnet name the vm needs to be created in.

string subnet = 3;

Returns
Type Description
ByteString

The bytes for subnet.

getVmMachineType()

public String getVmMachineType()

Required. VM instance machine type to create.

string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The vmMachineType.

getVmMachineTypeBytes()

public ByteString getVmMachineTypeBytes()

Required. VM instance machine type to create.

string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for vmMachineType.

getVmZone()

public String getVmZone()

The Google Cloud Platform zone to create the VM in.

string vm_zone = 2;

Returns
Type Description
String

The vmZone.

getVmZoneBytes()

public ByteString getVmZoneBytes()

The Google Cloud Platform zone to create the VM in.

string vm_zone = 2;

Returns
Type Description
ByteString

The bytes for vmZone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VmCreationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSubnet(String value)

public VmCreationConfig.Builder setSubnet(String value)

The subnet name the vm needs to be created in.

string subnet = 3;

Parameter
Name Description
value String

The subnet to set.

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.

setSubnetBytes(ByteString value)

public VmCreationConfig.Builder setSubnetBytes(ByteString value)

The subnet name the vm needs to be created in.

string subnet = 3;

Parameter
Name Description
value ByteString

The bytes for subnet to set.

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmMachineType(String value)

public VmCreationConfig.Builder setVmMachineType(String value)

Required. VM instance machine type to create.

string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The vmMachineType to set.

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.

setVmMachineTypeBytes(ByteString value)

public VmCreationConfig.Builder setVmMachineTypeBytes(ByteString value)

Required. VM instance machine type to create.

string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for vmMachineType to set.

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.

setVmZone(String value)

public VmCreationConfig.Builder setVmZone(String value)

The Google Cloud Platform zone to create the VM in.

string vm_zone = 2;

Parameter
Name Description
value String

The vmZone to set.

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.

setVmZoneBytes(ByteString value)

public VmCreationConfig.Builder setVmZoneBytes(ByteString value)

The Google Cloud Platform zone to create the VM in.

string vm_zone = 2;

Parameter
Name Description
value ByteString

The bytes for vmZone to set.

Returns
Type Description
VmCreationConfig.Builder

This builder for chaining.