public static final class SetInstanceAcceleratorRequest.Builder extends GeneratedMessage.Builder<SetInstanceAcceleratorRequest.Builder> implements SetInstanceAcceleratorRequestOrBuilderRequest for setting instance accelerator.
Protobuf type google.cloud.notebooks.v1.SetInstanceAcceleratorRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SetInstanceAcceleratorRequest.BuilderImplements
SetInstanceAcceleratorRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SetInstanceAcceleratorRequest build()| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest |
|
buildPartial()
public SetInstanceAcceleratorRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest |
|
clear()
public SetInstanceAcceleratorRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
|
clearCoreCount()
public SetInstanceAcceleratorRequest.Builder clearCoreCount() Required. Count of cores of this accelerator. Note that not all combinations
of type and core_count are valid. Check GPUs on
Compute Engine to
find a valid combination. TPUs are not supported.
int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
This builder for chaining. |
clearName()
public SetInstanceAcceleratorRequest.Builder clearName() Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
This builder for chaining. |
clearType()
public SetInstanceAcceleratorRequest.Builder clearType()Required. Type of this accelerator.
.google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
This builder for chaining. |
getCoreCount()
public long getCoreCount() Required. Count of cores of this accelerator. Note that not all combinations
of type and core_count are valid. Check GPUs on
Compute Engine to
find a valid combination. TPUs are not supported.
int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The coreCount. |
getDefaultInstanceForType()
public SetInstanceAcceleratorRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getType()
public Instance.AcceleratorType getType()Required. Type of this accelerator.
.google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Instance.AcceleratorType |
The type. |
getTypeValue()
public int getTypeValue()Required. Type of this accelerator.
.google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SetInstanceAcceleratorRequest other)
public SetInstanceAcceleratorRequest.Builder mergeFrom(SetInstanceAcceleratorRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
SetInstanceAcceleratorRequest |
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SetInstanceAcceleratorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SetInstanceAcceleratorRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
|
setCoreCount(long value)
public SetInstanceAcceleratorRequest.Builder setCoreCount(long value) Required. Count of cores of this accelerator. Note that not all combinations
of type and core_count are valid. Check GPUs on
Compute Engine to
find a valid combination. TPUs are not supported.
int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe coreCount to set. |
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
This builder for chaining. |
setName(String value)
public SetInstanceAcceleratorRequest.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 |
SetInstanceAcceleratorRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SetInstanceAcceleratorRequest.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 |
SetInstanceAcceleratorRequest.Builder |
This builder for chaining. |
setType(Instance.AcceleratorType value)
public SetInstanceAcceleratorRequest.Builder setType(Instance.AcceleratorType value)Required. Type of this accelerator.
.google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Instance.AcceleratorTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
This builder for chaining. |
setTypeValue(int value)
public SetInstanceAcceleratorRequest.Builder setTypeValue(int value)Required. Type of this accelerator.
.google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
SetInstanceAcceleratorRequest.Builder |
This builder for chaining. |