Class VmCreationConfig.Builder (2.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmCreationConfig build()
Returns
TypeDescription
VmCreationConfig

buildPartial()

public VmCreationConfig buildPartial()
Returns
TypeDescription
VmCreationConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnet()

public VmCreationConfig.Builder clearSubnet()

The subnet name the vm needs to be created in.

string subnet = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VmCreationConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VmCreationConfig getDefaultInstanceForType()
Returns
TypeDescription
VmCreationConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSubnet()

public String getSubnet()

The subnet name the vm needs to be created in.

string subnet = 3;

Returns
TypeDescription
String

The subnet.

getSubnetBytes()

public ByteString getSubnetBytes()

The subnet name the vm needs to be created in.

string subnet = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for vmMachineType.

getVmZone()

public String getVmZone()

The Google Cloud Platform zone to create the VM in.

string vm_zone = 2;

Returns
TypeDescription
String

The vmZone.

getVmZoneBytes()

public ByteString getVmZoneBytes()

The Google Cloud Platform zone to create the VM in.

string vm_zone = 2;

Returns
TypeDescription
ByteString

The bytes for vmZone.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VmCreationConfig other)

public VmCreationConfig.Builder mergeFrom(VmCreationConfig other)
Parameter
NameDescription
otherVmCreationConfig
Returns
TypeDescription
VmCreationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public VmCreationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The subnet to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subnet to set.

Returns
TypeDescription
VmCreationConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VmCreationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The vmMachineType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for vmMachineType to set.

Returns
TypeDescription
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
NameDescription
valueString

The vmZone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for vmZone to set.

Returns
TypeDescription
VmCreationConfig.Builder

This builder for chaining.