Class SetInstanceMachineTypeRequest.Builder (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class SetInstanceMachineTypeRequest.Builder extends GeneratedMessageV3.Builder<SetInstanceMachineTypeRequest.Builder> implements SetInstanceMachineTypeRequestOrBuilder

Request for setting instance machine type.

Protobuf type google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetInstanceMachineTypeRequest build()
Returns
TypeDescription
SetInstanceMachineTypeRequest

buildPartial()

public SetInstanceMachineTypeRequest buildPartial()
Returns
TypeDescription
SetInstanceMachineTypeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMachineType()

public SetInstanceMachineTypeRequest.Builder clearMachineType()

Required. The Compute Engine machine type.

string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SetInstanceMachineTypeRequest.Builder

This builder for chaining.

clearName()

public SetInstanceMachineTypeRequest.Builder clearName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SetInstanceMachineTypeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SetInstanceMachineTypeRequest getDefaultInstanceForType()
Returns
TypeDescription
SetInstanceMachineTypeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMachineType()

public String getMachineType()

Required. The Compute Engine machine type.

string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Required. The Compute Engine machine type.

string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for machineType.

getName()

public String getName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SetInstanceMachineTypeRequest other)

public SetInstanceMachineTypeRequest.Builder mergeFrom(SetInstanceMachineTypeRequest other)
Parameter
NameDescription
otherSetInstanceMachineTypeRequest
Returns