Class InstancesSetMachineTypeRequest.Builder (1.56.0)

public static final class InstancesSetMachineTypeRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public InstancesSetMachineTypeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public InstancesSetMachineTypeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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