Class CreateRuntimeRequest.Builder (1.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateRuntimeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateRuntimeRequest.Builder
Overrides

build()

public CreateRuntimeRequest build()
Returns
TypeDescription
CreateRuntimeRequest

buildPartial()

public CreateRuntimeRequest buildPartial()
Returns
TypeDescription
CreateRuntimeRequest

clear()

public CreateRuntimeRequest.Builder clear()
Returns
TypeDescription
CreateRuntimeRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateRuntimeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateRuntimeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateRuntimeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateRuntimeRequest.Builder

This builder for chaining.

clearRequestId()

public CreateRuntimeRequest.Builder clearRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateRuntimeRequest.Builder

This builder for chaining.

clone()

public CreateRuntimeRequest.Builder clone()
Returns
TypeDescription
CreateRuntimeRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateRuntimeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateRuntimeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Idempotent request UUID.

string request_id = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Runtime.Builder

getRuntimeId()

public String getRuntimeId()

Required. User-defined unique ID of this Runtime.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RuntimeOrBuilder

hasRuntime()

public boolean hasRuntime()

Required. The Runtime to be created.

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

Returns
TypeDescription
boolean

Whether the runtime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateRuntimeRequest other)

public CreateRuntimeRequest.Builder mergeFrom(CreateRuntimeRequest other)
Parameter
NameDescription
otherCreateRuntimeRequest
Returns
TypeDescription
CreateRuntimeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateRuntimeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRuntime
Returns
TypeDescription
CreateRuntimeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setRequestId(String value)

public CreateRuntimeRequest.Builder setRequestId(String value)

Idempotent request UUID.

string request_id = 4;

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateRuntimeRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateRuntimeRequest.Builder setRequestIdBytes(ByteString value)

Idempotent request UUID.

string request_id = 4;

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
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
NameDescription
valueRuntime
Returns
TypeDescription
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
NameDescription
builderForValueRuntime.Builder
Returns
TypeDescription
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
NameDescription
valueString

The runtimeId to set.

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

The bytes for runtimeId to set.

Returns
TypeDescription
CreateRuntimeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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