Class MetadataImport.DatabaseDump (2.13.0)

public static final class MetadataImport.DatabaseDump extends GeneratedMessageV3 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.v1.MetadataImport.DatabaseDump

Static Fields

DATABASE_TYPE_FIELD_NUMBER

public static final int DATABASE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_URI_FIELD_NUMBER

public static final int GCS_URI_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MetadataImport.DatabaseDump getDefaultInstance()
Returns
TypeDescription
MetadataImport.DatabaseDump

getDescriptor()

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

newBuilder()

public static MetadataImport.DatabaseDump.Builder newBuilder()
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

newBuilder(MetadataImport.DatabaseDump prototype)

public static MetadataImport.DatabaseDump.Builder newBuilder(MetadataImport.DatabaseDump prototype)
Parameter
NameDescription
prototypeMetadataImport.DatabaseDump
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

parseDelimitedFrom(InputStream input)

public static MetadataImport.DatabaseDump parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataImport.DatabaseDump parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MetadataImport.DatabaseDump parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MetadataImport.DatabaseDump parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MetadataImport.DatabaseDump parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MetadataImport.DatabaseDump parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MetadataImport.DatabaseDump parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataImport.DatabaseDump parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MetadataImport.DatabaseDump parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataImport.DatabaseDump parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MetadataImport.DatabaseDump parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MetadataImport.DatabaseDump parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataImport.DatabaseDump
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MetadataImport.DatabaseDump> parser()
Returns
TypeDescription
Parser<DatabaseDump>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDatabaseType() (deprecated)

public MetadataImport.DatabaseDump.DatabaseType getDatabaseType()

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

The type of the database.

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

Returns
TypeDescription
MetadataImport.DatabaseDump.DatabaseType

The databaseType.

getDatabaseTypeValue() (deprecated)

public int getDatabaseTypeValue()

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

The type of the database.

.google.cloud.metastore.v1.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

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.

getParserForType()

public Parser<MetadataImport.DatabaseDump> getParserForType()
Returns
TypeDescription
Parser<DatabaseDump>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public DatabaseDumpSpec.Type getType()

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

.google.cloud.metastore.v1.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.v1.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MetadataImport.DatabaseDump.Builder newBuilderForType()
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MetadataImport.DatabaseDump.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MetadataImport.DatabaseDump.Builder toBuilder()
Returns
TypeDescription
MetadataImport.DatabaseDump.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException