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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstancesSetMachineTypeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InstancesSetMachineTypeRequest build()
Returns
buildPartial()
public InstancesSetMachineTypeRequest buildPartial()
Returns
clear()
public InstancesSetMachineTypeRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public InstancesSetMachineTypeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public InstancesSetMachineTypeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public InstancesSetMachineTypeRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public InstancesSetMachineTypeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InstancesSetMachineTypeRequest other)
public InstancesSetMachineTypeRequest.Builder mergeFrom(InstancesSetMachineTypeRequest other)
Parameter
Returns
public InstancesSetMachineTypeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InstancesSetMachineTypeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstancesSetMachineTypeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InstancesSetMachineTypeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstancesSetMachineTypeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InstancesSetMachineTypeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides