Class DatabaseEntity (2.19.0)

public final class DatabaseEntity extends GeneratedMessageV3 implements DatabaseEntityOrBuilder

The base entity type for all the database related entities. The message contains the entity name, the name of its parent, the entity type, and the specific details per entity type.

Protobuf type google.cloud.clouddms.v1.DatabaseEntity

Static Fields

DATABASE_FUNCTION_FIELD_NUMBER

public static final int DATABASE_FUNCTION_FIELD_NUMBER
Field Value
TypeDescription
int

DATABASE_PACKAGE_FIELD_NUMBER

public static final int DATABASE_PACKAGE_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_TYPE_FIELD_NUMBER

public static final int ENTITY_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MAPPINGS_FIELD_NUMBER

public static final int MAPPINGS_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_ENTITY_FIELD_NUMBER

public static final int PARENT_ENTITY_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

SEQUENCE_FIELD_NUMBER

public static final int SEQUENCE_FIELD_NUMBER
Field Value
TypeDescription
int

SHORT_NAME_FIELD_NUMBER

public static final int SHORT_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

STORED_PROCEDURE_FIELD_NUMBER

public static final int STORED_PROCEDURE_FIELD_NUMBER
Field Value
TypeDescription
int

SYNONYM_FIELD_NUMBER

public static final int SYNONYM_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
TypeDescription
int

TREE_FIELD_NUMBER

public static final int TREE_FIELD_NUMBER
Field Value
TypeDescription
int

VIEW_FIELD_NUMBER

public static final int VIEW_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DatabaseEntity getDefaultInstance()
Returns
TypeDescription
DatabaseEntity

getDescriptor()

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

newBuilder()

public static DatabaseEntity.Builder newBuilder()
Returns
TypeDescription
DatabaseEntity.Builder

newBuilder(DatabaseEntity prototype)

public static DatabaseEntity.Builder newBuilder(DatabaseEntity prototype)
Parameter
NameDescription
prototypeDatabaseEntity
Returns
TypeDescription
DatabaseEntity.Builder

parseDelimitedFrom(InputStream input)

public static DatabaseEntity parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DatabaseEntity
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static DatabaseEntity parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DatabaseEntity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static DatabaseEntity parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DatabaseEntity
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static DatabaseEntity parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DatabaseEntity
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static DatabaseEntity parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DatabaseEntity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<DatabaseEntity> parser()
Returns
TypeDescription
Parser<DatabaseEntity>

Methods

equals(Object obj)

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

getDatabaseFunction()

public FunctionEntity getDatabaseFunction()

Function.

.google.cloud.clouddms.v1.FunctionEntity database_function = 107;

Returns
TypeDescription
FunctionEntity

The databaseFunction.

getDatabaseFunctionOrBuilder()

public FunctionEntityOrBuilder getDatabaseFunctionOrBuilder()

Function.

.google.cloud.clouddms.v1.FunctionEntity database_function = 107;

Returns
TypeDescription
FunctionEntityOrBuilder

getDatabasePackage()

public PackageEntity getDatabasePackage()

Package.

.google.cloud.clouddms.v1.PackageEntity database_package = 109;

Returns
TypeDescription
PackageEntity

The databasePackage.

getDatabasePackageOrBuilder()

public PackageEntityOrBuilder getDatabasePackageOrBuilder()

Package.

.google.cloud.clouddms.v1.PackageEntity database_package = 109;

Returns
TypeDescription
PackageEntityOrBuilder

getDefaultInstanceForType()

public DatabaseEntity getDefaultInstanceForType()
Returns
TypeDescription
DatabaseEntity

getEntityBodyCase()

public DatabaseEntity.EntityBodyCase getEntityBodyCase()
Returns
TypeDescription
DatabaseEntity.EntityBodyCase

getEntityType()

public DatabaseEntityType getEntityType()

The type of the database entity (table, view, index, ...).

.google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4;

Returns
TypeDescription
DatabaseEntityType

The entityType.

getEntityTypeValue()

public int getEntityTypeValue()

The type of the database entity (table, view, index, ...).

.google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for entityType.

getMappings(int index)

public EntityMapping getMappings(int index)

Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.

repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityMapping

getMappingsCount()

public int getMappingsCount()

Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.

repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5;

Returns
TypeDescription
int

getMappingsList()

public List<EntityMapping> getMappingsList()

Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.

repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5;

Returns
TypeDescription
List<EntityMapping>

getMappingsOrBuilder(int index)

public EntityMappingOrBuilder getMappingsOrBuilder(int index)

Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.

repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityMappingOrBuilder

getMappingsOrBuilderList()

public List<? extends EntityMappingOrBuilder> getMappingsOrBuilderList()

Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.

repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5;

Returns
TypeDescription
List<? extends com.google.cloud.clouddms.v1.EntityMappingOrBuilder>

getParentEntity()

public String getParentEntity()

The full name of the parent entity (e.g. schema name).

string parent_entity = 2;

Returns
TypeDescription
String

The parentEntity.

getParentEntityBytes()

public ByteString getParentEntityBytes()

The full name of the parent entity (e.g. schema name).

string parent_entity = 2;

Returns
TypeDescription
ByteString

The bytes for parentEntity.

getParserForType()

public Parser<DatabaseEntity> getParserForType()
Returns
TypeDescription
Parser<DatabaseEntity>
Overrides

getSchema()

public SchemaEntity getSchema()

Schema.

.google.cloud.clouddms.v1.SchemaEntity schema = 102;

Returns
TypeDescription
SchemaEntity

The schema.

getSchemaOrBuilder()

public SchemaEntityOrBuilder getSchemaOrBuilder()

Schema.

.google.cloud.clouddms.v1.SchemaEntity schema = 102;

Returns
TypeDescription
SchemaEntityOrBuilder

getSequence()

public SequenceEntity getSequence()

Sequence.

.google.cloud.clouddms.v1.SequenceEntity sequence = 105;

Returns
TypeDescription
SequenceEntity

The sequence.

getSequenceOrBuilder()

public SequenceEntityOrBuilder getSequenceOrBuilder()

Sequence.

.google.cloud.clouddms.v1.SequenceEntity sequence = 105;

Returns
TypeDescription
SequenceEntityOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShortName()

public String getShortName()

The short name (e.g. table name) of the entity.

string short_name = 1;

Returns
TypeDescription
String

The shortName.

getShortNameBytes()

public ByteString getShortNameBytes()

The short name (e.g. table name) of the entity.

string short_name = 1;

Returns
TypeDescription
ByteString

The bytes for shortName.

getStoredProcedure()

public StoredProcedureEntity getStoredProcedure()

Stored procedure.

.google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106;

Returns
TypeDescription
StoredProcedureEntity

The storedProcedure.

getStoredProcedureOrBuilder()

public StoredProcedureEntityOrBuilder getStoredProcedureOrBuilder()

Stored procedure.

.google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106;

Returns
TypeDescription
StoredProcedureEntityOrBuilder

getSynonym()

public SynonymEntity getSynonym()

Synonym.

.google.cloud.clouddms.v1.SynonymEntity synonym = 108;

Returns
TypeDescription
SynonymEntity

The synonym.

getSynonymOrBuilder()

public SynonymEntityOrBuilder getSynonymOrBuilder()

Synonym.

.google.cloud.clouddms.v1.SynonymEntity synonym = 108;

Returns
TypeDescription
SynonymEntityOrBuilder

getTable()

public TableEntity getTable()

Table.

.google.cloud.clouddms.v1.TableEntity table = 103;

Returns
TypeDescription
TableEntity

The table.

getTableOrBuilder()

public TableEntityOrBuilder getTableOrBuilder()

Table.

.google.cloud.clouddms.v1.TableEntity table = 103;

Returns
TypeDescription
TableEntityOrBuilder

getTree()

public DatabaseEntity.TreeType getTree()

The type of tree the entity belongs to.

.google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3;

Returns
TypeDescription
DatabaseEntity.TreeType

The tree.

getTreeValue()

public int getTreeValue()

The type of tree the entity belongs to.

.google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for tree.

getView()

public ViewEntity getView()

View.

.google.cloud.clouddms.v1.ViewEntity view = 104;

Returns
TypeDescription
ViewEntity

The view.

getViewOrBuilder()

public ViewEntityOrBuilder getViewOrBuilder()

View.

.google.cloud.clouddms.v1.ViewEntity view = 104;

Returns
TypeDescription
ViewEntityOrBuilder

hasDatabaseFunction()

public boolean hasDatabaseFunction()

Function.

.google.cloud.clouddms.v1.FunctionEntity database_function = 107;

Returns
TypeDescription
boolean

Whether the databaseFunction field is set.

hasDatabasePackage()

public boolean hasDatabasePackage()

Package.

.google.cloud.clouddms.v1.PackageEntity database_package = 109;

Returns
TypeDescription
boolean

Whether the databasePackage field is set.

hasSchema()

public boolean hasSchema()

Schema.

.google.cloud.clouddms.v1.SchemaEntity schema = 102;

Returns
TypeDescription
boolean

Whether the schema field is set.

hasSequence()

public boolean hasSequence()

Sequence.

.google.cloud.clouddms.v1.SequenceEntity sequence = 105;

Returns
TypeDescription
boolean

Whether the sequence field is set.

hasStoredProcedure()

public boolean hasStoredProcedure()

Stored procedure.

.google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106;

Returns
TypeDescription
boolean

Whether the storedProcedure field is set.

hasSynonym()

public boolean hasSynonym()

Synonym.

.google.cloud.clouddms.v1.SynonymEntity synonym = 108;

Returns
TypeDescription
boolean

Whether the synonym field is set.

hasTable()

public boolean hasTable()

Table.

.google.cloud.clouddms.v1.TableEntity table = 103;

Returns
TypeDescription
boolean

Whether the table field is set.

hasView()

public boolean hasView()

View.

.google.cloud.clouddms.v1.ViewEntity view = 104;

Returns
TypeDescription
boolean

Whether the view field is set.

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 DatabaseEntity.Builder newBuilderForType()
Returns
TypeDescription
DatabaseEntity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public DatabaseEntity.Builder toBuilder()
Returns
TypeDescription
DatabaseEntity.Builder

writeTo(CodedOutputStream output)

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