Class CreateDatabaseRequest.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDatabaseRequest build()
Returns
TypeDescription
CreateDatabaseRequest

buildPartial()

public CreateDatabaseRequest buildPartial()
Returns
TypeDescription
CreateDatabaseRequest

clear()

public CreateDatabaseRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateDatabaseRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public CreateDatabaseRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DatabaseOrBuilder

getDefaultInstanceForType()

public CreateDatabaseRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDatabaseRequest

getDescriptorForType()

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

Whether the database field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDatabase
Returns
TypeDescription
CreateDatabaseRequest.Builder

mergeFrom(CreateDatabaseRequest other)

public CreateDatabaseRequest.Builder mergeFrom(CreateDatabaseRequest other)
Parameter
NameDescription
otherCreateDatabaseRequest
Returns
TypeDescription
CreateDatabaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDatabaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDatabase
Returns
TypeDescription
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
NameDescription
builderForValueDatabase.Builder
Returns
TypeDescription
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
NameDescription
valueString

The databaseId to set.

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

The bytes for databaseId to set.

Returns
TypeDescription
CreateDatabaseRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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