Class RegisterInstanceRequest.Builder (1.10.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegisterInstanceRequest build()
Returns
TypeDescription
RegisterInstanceRequest

buildPartial()

public RegisterInstanceRequest buildPartial()
Returns
TypeDescription
RegisterInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RegisterInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RegisterInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RegisterInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
RegisterInstanceRequest

getDescriptorForType()

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

The parent.

getParentBytes()

public ByteString getParentBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RegisterInstanceRequest other)

public RegisterInstanceRequest.Builder mergeFrom(RegisterInstanceRequest other)
Parameter
NameDescription
otherRegisterInstanceRequest
Returns
TypeDescription
RegisterInstanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RegisterInstanceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RegisterInstanceRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The instanceId to set.

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

The bytes for instanceId to set.

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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