Class SetInstanceMachineTypeRequest.Builder (1.27.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
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
TypeDescription
SetInstanceMachineTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The machineType to set.

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

The bytes for machineType to set.

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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