Class CreateRuntimeRequest.Builder (1.43.0)

public static final class CreateRuntimeRequest.Builder extends GeneratedMessageV3.Builder<CreateRuntimeRequest.Builder> implements CreateRuntimeRequestOrBuilder

Request for creating a Managed Notebook Runtime.

Protobuf type google.cloud.notebooks.v1.CreateRuntimeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateRuntimeRequest build()
Returns
Type Description
CreateRuntimeRequest

buildPartial()

public CreateRuntimeRequest buildPartial()
Returns
Type Description
CreateRuntimeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateRuntimeRequest.Builder clearParent()

Required. Format: parent=projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

clearRequestId()

public CreateRuntimeRequest.Builder clearRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

clearRuntime()

public CreateRuntimeRequest.Builder clearRuntime()

Required. The Runtime to be created.

.google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRuntimeRequest.Builder

clearRuntimeId()

public CreateRuntimeRequest.Builder clearRuntimeId()

Required. User-defined unique ID of this Runtime.

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

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateRuntimeRequest getDefaultInstanceForType()
Returns
Type Description
CreateRuntimeRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Format: parent=projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Format: parent=projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Idempotent request UUID.

string request_id = 4;

Returns
Type Description
ByteString

The bytes for requestId.

getRuntime()

public Runtime getRuntime()

Required. The Runtime to be created.

.google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Runtime

The runtime.

getRuntimeBuilder()

public Runtime.Builder getRuntimeBuilder()

Required. The Runtime to be created.

.google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Runtime.Builder

getRuntimeId()

public String getRuntimeId()

Required. User-defined unique ID of this Runtime.

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

Returns
Type Description
String

The runtimeId.

getRuntimeIdBytes()

public ByteString getRuntimeIdBytes()

Required. User-defined unique ID of this Runtime.

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

Returns
Type Description
ByteString

The bytes for runtimeId.

getRuntimeOrBuilder()

public RuntimeOrBuilder getRuntimeOrBuilder()

Required. The Runtime to be created.

.google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RuntimeOrBuilder

hasRuntime()

public boolean hasRuntime()

Required. The Runtime to be created.

.google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the runtime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateRuntimeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRuntime(Runtime value)

public CreateRuntimeRequest.Builder mergeRuntime(Runtime value)

Required. The Runtime to be created.

.google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Runtime
Returns
Type Description
CreateRuntimeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateRuntimeRequest.Builder setParent(String value)

Required. Format: parent=projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRuntimeRequest.Builder setParentBytes(ByteString value)

Required. Format: parent=projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateRuntimeRequest.Builder setRequestId(String value)

Idempotent request UUID.

string request_id = 4;

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateRuntimeRequest.Builder setRequestIdBytes(ByteString value)

Idempotent request UUID.

string request_id = 4;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

setRuntime(Runtime value)

public CreateRuntimeRequest.Builder setRuntime(Runtime value)

Required. The Runtime to be created.

.google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Runtime
Returns
Type Description
CreateRuntimeRequest.Builder

setRuntime(Runtime.Builder builderForValue)

public CreateRuntimeRequest.Builder setRuntime(Runtime.Builder builderForValue)

Required. The Runtime to be created.

.google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Runtime.Builder
Returns
Type Description
CreateRuntimeRequest.Builder

setRuntimeId(String value)

public CreateRuntimeRequest.Builder setRuntimeId(String value)

Required. User-defined unique ID of this Runtime.

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

Parameter
Name Description
value String

The runtimeId to set.

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

setRuntimeIdBytes(ByteString value)

public CreateRuntimeRequest.Builder setRuntimeIdBytes(ByteString value)

Required. User-defined unique ID of this Runtime.

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

Parameter
Name Description
value ByteString

The bytes for runtimeId to set.

Returns
Type Description
CreateRuntimeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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