Class MetadataImport.DatabaseDump.Builder (2.16.0)

public static final class MetadataImport.DatabaseDump.Builder extends GeneratedMessageV3.Builder<MetadataImport.DatabaseDump.Builder> implements MetadataImport.DatabaseDumpOrBuilder

A specification of the location of and metadata about a database dump from a relational database management system.

Protobuf type google.cloud.metastore.v1beta.MetadataImport.DatabaseDump

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MetadataImport.DatabaseDump build()
Returns
TypeDescription
MetadataImport.DatabaseDump

buildPartial()

public MetadataImport.DatabaseDump buildPartial()
Returns
TypeDescription
MetadataImport.DatabaseDump

clear()

public MetadataImport.DatabaseDump.Builder clear()
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder
Overrides

clearDatabaseType() (deprecated)

public MetadataImport.DatabaseDump.Builder clearDatabaseType()

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.database_type is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=691

The type of the database.

.google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true];

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcsUri()

public MetadataImport.DatabaseDump.Builder clearGcsUri()

A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.

string gcs_uri = 2;

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MetadataImport.DatabaseDump.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder
Overrides

clearSourceDatabase() (deprecated)

public MetadataImport.DatabaseDump.Builder clearSourceDatabase()

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.source_database is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=698

The name of the source database.

string source_database = 3 [deprecated = true];

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

clearType()

public MetadataImport.DatabaseDump.Builder clearType()

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

clone()

public MetadataImport.DatabaseDump.Builder clone()
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder
Overrides

getDatabaseType() (deprecated)

public MetadataImport.DatabaseDump.DatabaseType getDatabaseType()

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.database_type is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=691

The type of the database.

.google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true];

Returns
TypeDescription
MetadataImport.DatabaseDump.DatabaseType

The databaseType.

getDatabaseTypeValue() (deprecated)

public int getDatabaseTypeValue()

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.database_type is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=691

The type of the database.

.google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true];

Returns
TypeDescription
int

The enum numeric value on the wire for databaseType.

getDefaultInstanceForType()

public MetadataImport.DatabaseDump getDefaultInstanceForType()
Returns
TypeDescription
MetadataImport.DatabaseDump

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsUri()

public String getGcsUri()

A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.

string gcs_uri = 2;

Returns
TypeDescription
String

The gcsUri.

getGcsUriBytes()

public ByteString getGcsUriBytes()

A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.

string gcs_uri = 2;

Returns
TypeDescription
ByteString

The bytes for gcsUri.

getSourceDatabase() (deprecated)

public String getSourceDatabase()

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.source_database is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=698

The name of the source database.

string source_database = 3 [deprecated = true];

Returns
TypeDescription
String

The sourceDatabase.

getSourceDatabaseBytes() (deprecated)

public ByteString getSourceDatabaseBytes()

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.source_database is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=698

The name of the source database.

string source_database = 3 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for sourceDatabase.

getType()

public DatabaseDumpSpec.Type getType()

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DatabaseDumpSpec.Type

The type.

getTypeValue()

public int getTypeValue()

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetadataImport.DatabaseDump other)

public MetadataImport.DatabaseDump.Builder mergeFrom(MetadataImport.DatabaseDump other)
Parameter
NameDescription
otherMetadataImport.DatabaseDump
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabaseType(MetadataImport.DatabaseDump.DatabaseType value) (deprecated)

public MetadataImport.DatabaseDump.Builder setDatabaseType(MetadataImport.DatabaseDump.DatabaseType value)

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.database_type is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=691

The type of the database.

.google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true];

Parameter
NameDescription
valueMetadataImport.DatabaseDump.DatabaseType

The databaseType to set.

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

setDatabaseTypeValue(int value) (deprecated)

public MetadataImport.DatabaseDump.Builder setDatabaseTypeValue(int value)

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.database_type is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=691

The type of the database.

.google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true];

Parameter
NameDescription
valueint

The enum numeric value on the wire for databaseType to set.

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MetadataImport.DatabaseDump.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder
Overrides

setGcsUri(String value)

public MetadataImport.DatabaseDump.Builder setGcsUri(String value)

A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.

string gcs_uri = 2;

Parameter
NameDescription
valueString

The gcsUri to set.

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

setGcsUriBytes(ByteString value)

public MetadataImport.DatabaseDump.Builder setGcsUriBytes(ByteString value)

A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.

string gcs_uri = 2;

Parameter
NameDescription
valueByteString

The bytes for gcsUri to set.

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

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

public MetadataImport.DatabaseDump.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder
Overrides

setSourceDatabase(String value) (deprecated)

public MetadataImport.DatabaseDump.Builder setSourceDatabase(String value)

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.source_database is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=698

The name of the source database.

string source_database = 3 [deprecated = true];

Parameter
NameDescription
valueString

The sourceDatabase to set.

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

setSourceDatabaseBytes(ByteString value) (deprecated)

public MetadataImport.DatabaseDump.Builder setSourceDatabaseBytes(ByteString value)

Deprecated. google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.source_database is deprecated. See google/cloud/metastore/v1beta/metastore.proto;l=698

The name of the source database.

string source_database = 3 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for sourceDatabase to set.

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

setType(DatabaseDumpSpec.Type value)

public MetadataImport.DatabaseDump.Builder setType(DatabaseDumpSpec.Type value)

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDatabaseDumpSpec.Type

The type to set.

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

setTypeValue(int value)

public MetadataImport.DatabaseDump.Builder setTypeValue(int value)

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

.google.cloud.metastore.v1beta.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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