Class InstancesSetMachineTypeRequest.Builder (1.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstancesSetMachineTypeRequest build()
Returns
TypeDescription
InstancesSetMachineTypeRequest

buildPartial()

public InstancesSetMachineTypeRequest buildPartial()
Returns
TypeDescription
InstancesSetMachineTypeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public InstancesSetMachineTypeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
InstancesSetMachineTypeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InstancesSetMachineTypeRequest getDefaultInstanceForType()
Returns
TypeDescription
InstancesSetMachineTypeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the machineType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstancesSetMachineTypeRequest other)

public InstancesSetMachineTypeRequest.Builder mergeFrom(InstancesSetMachineTypeRequest other)
Parameter
NameDescription
otherInstancesSetMachineTypeRequest
Returns
TypeDescription
InstancesSetMachineTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public InstancesSetMachineTypeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The machineType to set.

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

The bytes for machineType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstancesSetMachineTypeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstancesSetMachineTypeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstancesSetMachineTypeRequest.Builder
Overrides