Class InstancesSetMachineTypeRequest.Builder (1.93.0)

public static final class InstancesSetMachineTypeRequest.Builder extends GeneratedMessage.Builder<InstancesSetMachineTypeRequest.Builder> implements InstancesSetMachineTypeRequestOrBuilder

Protobuf type google.cloud.compute.v1.InstancesSetMachineTypeRequest

Static Methods

getDescriptor()

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

Methods

build()

public InstancesSetMachineTypeRequest build()
Returns
Type Description
InstancesSetMachineTypeRequest

buildPartial()

public InstancesSetMachineTypeRequest buildPartial()
Returns
Type Description
InstancesSetMachineTypeRequest

clear()

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

clearMachineType()

public InstancesSetMachineTypeRequest.Builder clearMachineType()

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1

optional string machine_type = 227711026;

Returns
Type Description
InstancesSetMachineTypeRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public InstancesSetMachineTypeRequest getDefaultInstanceForType()
Returns
Type Description
InstancesSetMachineTypeRequest

getDescriptorForType()

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

getMachineType()

public String getMachineType()

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1

optional string machine_type = 227711026;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1

optional string machine_type = 227711026;

Returns
Type Description
ByteString

The bytes for machineType.

hasMachineType()

public boolean hasMachineType()

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1

optional string machine_type = 227711026;

Returns
Type Description
boolean

Whether the machineType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstancesSetMachineTypeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setMachineType(String value)

public InstancesSetMachineTypeRequest.Builder setMachineType(String value)

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1

optional string machine_type = 227711026;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
InstancesSetMachineTypeRequest.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public InstancesSetMachineTypeRequest.Builder setMachineTypeBytes(ByteString value)

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1

optional string machine_type = 227711026;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
InstancesSetMachineTypeRequest.Builder

This builder for chaining.