Class RegisterInstanceRequest.Builder (1.50.0)

public static final class RegisterInstanceRequest.Builder extends GeneratedMessageV3.Builder<RegisterInstanceRequest.Builder> implements RegisterInstanceRequestOrBuilder

Request for registering a notebook instance.

Protobuf type google.cloud.notebooks.v1.RegisterInstanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegisterInstanceRequest build()
Returns
Type Description
RegisterInstanceRequest

buildPartial()

public RegisterInstanceRequest buildPartial()
Returns
Type Description
RegisterInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public RegisterInstanceRequest.Builder clearInstanceId()

Required. User defined unique ID of this instance. The instance_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

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

Returns
Type Description
RegisterInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public RegisterInstanceRequest.Builder clearParent()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RegisterInstanceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RegisterInstanceRequest getDefaultInstanceForType()
Returns
Type Description
RegisterInstanceRequest

getDescriptorForType()

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

getInstanceId()

public String getInstanceId()

Required. User defined unique ID of this instance. The instance_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

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

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Required. User defined unique ID of this instance. The instance_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

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

Returns
Type Description
ByteString

The bytes for instanceId.

getParent()

public String getParent()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

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];

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RegisterInstanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

public RegisterInstanceRequest.Builder setInstanceId(String value)

Required. User defined unique ID of this instance. The instance_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

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

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
RegisterInstanceRequest.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public RegisterInstanceRequest.Builder setInstanceIdBytes(ByteString value)

Required. User defined unique ID of this instance. The instance_id must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

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

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
RegisterInstanceRequest.Builder

This builder for chaining.

setParent(String value)

public RegisterInstanceRequest.Builder setParent(String value)

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
RegisterInstanceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public RegisterInstanceRequest.Builder setParentBytes(ByteString value)

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
RegisterInstanceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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