public static final class SetInstanceMachineTypeRequest.Builder extends GeneratedMessage.Builder<SetInstanceMachineTypeRequest.Builder> implements SetInstanceMachineTypeRequestOrBuilderRequest for setting instance machine type.
Protobuf type google.cloud.notebooks.v1.SetInstanceMachineTypeRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SetInstanceMachineTypeRequest.BuilderImplements
SetInstanceMachineTypeRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
getDefaultInstanceForType()
public SetInstanceMachineTypeRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SetInstanceMachineTypeRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SetInstanceMachineTypeRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SetInstanceMachineTypeRequest.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
SetInstanceMachineTypeRequest.Builder |
This builder for chaining. |