Class CreateDatabaseRequest.Builder (0.31.0)

public static final class CreateDatabaseRequest.Builder extends GeneratedMessageV3.Builder<CreateDatabaseRequest.Builder> implements CreateDatabaseRequestOrBuilder

Request message for the CreateDatabase method.

Protobuf type google.cloud.bigquery.biglake.v1alpha1.CreateDatabaseRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDatabaseRequest build()
Returns
Type Description
CreateDatabaseRequest

buildPartial()

public CreateDatabaseRequest buildPartial()
Returns
Type Description
CreateDatabaseRequest

clear()

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

clearDatabase()

public CreateDatabaseRequest.Builder clearDatabase()

Required. The database to create. The name field does not need to be provided.

.google.cloud.bigquery.biglake.v1alpha1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDatabaseRequest.Builder

clearDatabaseId()

public CreateDatabaseRequest.Builder clearDatabaseId()

Required. The ID to use for the database, which will become the final component of the database's resource name.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDatabaseRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDatabaseRequest.Builder clearParent()

Required. The parent resource where this database will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}

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

Returns
Type Description
CreateDatabaseRequest.Builder

This builder for chaining.

clone()

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

getDatabase()

public Database getDatabase()

Required. The database to create. The name field does not need to be provided.

.google.cloud.bigquery.biglake.v1alpha1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Database

The database.

getDatabaseBuilder()

public Database.Builder getDatabaseBuilder()

Required. The database to create. The name field does not need to be provided.

.google.cloud.bigquery.biglake.v1alpha1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Database.Builder

getDatabaseId()

public String getDatabaseId()

Required. The ID to use for the database, which will become the final component of the database's resource name.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

Required. The ID to use for the database, which will become the final component of the database's resource name.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for databaseId.

getDatabaseOrBuilder()

public DatabaseOrBuilder getDatabaseOrBuilder()

Required. The database to create. The name field does not need to be provided.

.google.cloud.bigquery.biglake.v1alpha1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatabaseOrBuilder

getDefaultInstanceForType()

public CreateDatabaseRequest getDefaultInstanceForType()
Returns
Type Description
CreateDatabaseRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where this database will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where this database will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}

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

Returns
Type Description
ByteString

The bytes for parent.

hasDatabase()

public boolean hasDatabase()

Required. The database to create. The name field does not need to be provided.

.google.cloud.bigquery.biglake.v1alpha1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the database field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDatabase(Database value)

public CreateDatabaseRequest.Builder mergeDatabase(Database value)

Required. The database to create. The name field does not need to be provided.

.google.cloud.bigquery.biglake.v1alpha1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Database
Returns
Type Description
CreateDatabaseRequest.Builder

mergeFrom(CreateDatabaseRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabase(Database value)

public CreateDatabaseRequest.Builder setDatabase(Database value)

Required. The database to create. The name field does not need to be provided.

.google.cloud.bigquery.biglake.v1alpha1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Database
Returns
Type Description
CreateDatabaseRequest.Builder

setDatabase(Database.Builder builderForValue)

public CreateDatabaseRequest.Builder setDatabase(Database.Builder builderForValue)

Required. The database to create. The name field does not need to be provided.

.google.cloud.bigquery.biglake.v1alpha1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Database.Builder
Returns
Type Description
CreateDatabaseRequest.Builder

setDatabaseId(String value)

public CreateDatabaseRequest.Builder setDatabaseId(String value)

Required. The ID to use for the database, which will become the final component of the database's resource name.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The databaseId to set.

Returns
Type Description
CreateDatabaseRequest.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public CreateDatabaseRequest.Builder setDatabaseIdBytes(ByteString value)

Required. The ID to use for the database, which will become the final component of the database's resource name.

string database_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for databaseId to set.

Returns
Type Description
CreateDatabaseRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateDatabaseRequest.Builder setParent(String value)

Required. The parent resource where this database will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDatabaseRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDatabaseRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this database will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}

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
CreateDatabaseRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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