Class SetInstanceMachineTypeRequest.Builder (1.46.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetInstanceMachineTypeRequest build()
Returns
Type Description
SetInstanceMachineTypeRequest

buildPartial()

public SetInstanceMachineTypeRequest buildPartial()
Returns
Type Description
SetInstanceMachineTypeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SetInstanceMachineTypeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SetInstanceMachineTypeRequest.Builder
Overrides

clearMachineType()

public SetInstanceMachineTypeRequest.Builder clearMachineType()

Required. The Compute Engine machine type.

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

Returns
Type Description
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
Type Description
SetInstanceMachineTypeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SetInstanceMachineTypeRequest getDefaultInstanceForType()
Returns
Type Description
SetInstanceMachineTypeRequest

getDescriptorForType()

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

getMachineType()

public String getMachineType()

Required. The Compute Engine machine type.

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

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Required. The Compute Engine machine type.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SetInstanceMachineTypeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineType(String value)

public SetInstanceMachineTypeRequest.Builder setMachineType(String value)

Required. The Compute Engine machine type.

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

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
SetInstanceMachineTypeRequest.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public SetInstanceMachineTypeRequest.Builder setMachineTypeBytes(ByteString value)

Required. The Compute Engine machine type.

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

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
SetInstanceMachineTypeRequest.Builder

This builder for chaining.

setName(String value)

public SetInstanceMachineTypeRequest.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SetInstanceMachineTypeRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SetInstanceMachineTypeRequest.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SetInstanceMachineTypeRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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