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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
DATABASE_FUNCTION_FIELD_NUMBER
public static final int DATABASE_FUNCTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DATABASE_PACKAGE_FIELD_NUMBER
public static final int DATABASE_PACKAGE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ENTITY_TYPE_FIELD_NUMBER
public static final int ENTITY_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MAPPINGS_FIELD_NUMBER
public static final int MAPPINGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PARENT_ENTITY_FIELD_NUMBER
public static final int PARENT_ENTITY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SCHEMA_FIELD_NUMBER
public static final int SCHEMA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SEQUENCE_FIELD_NUMBER
public static final int SEQUENCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SHORT_NAME_FIELD_NUMBER
public static final int SHORT_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STORED_PROCEDURE_FIELD_NUMBER
public static final int STORED_PROCEDURE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SYNONYM_FIELD_NUMBER
public static final int SYNONYM_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TABLE_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TREE_FIELD_NUMBER
public static final int TREE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VIEW_FIELD_NUMBER
public static final int VIEW_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static DatabaseEntity getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DatabaseEntity.Builder newBuilder()
newBuilder(DatabaseEntity prototype)
public static DatabaseEntity.Builder newBuilder(DatabaseEntity prototype)
public static DatabaseEntity parseDelimitedFrom(InputStream input)
public static DatabaseEntity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DatabaseEntity parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DatabaseEntity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DatabaseEntity parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DatabaseEntity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DatabaseEntity parseFrom(CodedInputStream input)
public static DatabaseEntity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DatabaseEntity parseFrom(InputStream input)
public static DatabaseEntity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DatabaseEntity parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DatabaseEntity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DatabaseEntity> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDatabaseFunction()
public FunctionEntity getDatabaseFunction()
Function.
.google.cloud.clouddms.v1.FunctionEntity database_function = 107;
getDatabaseFunctionOrBuilder()
public FunctionEntityOrBuilder getDatabaseFunctionOrBuilder()
Function.
.google.cloud.clouddms.v1.FunctionEntity database_function = 107;
getDatabasePackage()
public PackageEntity getDatabasePackage()
Package.
.google.cloud.clouddms.v1.PackageEntity database_package = 109;
getDatabasePackageOrBuilder()
public PackageEntityOrBuilder getDatabasePackageOrBuilder()
Package.
.google.cloud.clouddms.v1.PackageEntity database_package = 109;
getDefaultInstanceForType()
public DatabaseEntity getDefaultInstanceForType()
getEntityBodyCase()
public DatabaseEntity.EntityBodyCase getEntityBodyCase()
getEntityType()
public DatabaseEntityType getEntityType()
The type of the database entity (table, view, index, ...).
.google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4;
getEntityTypeValue()
public int getEntityTypeValue()
The type of the database entity (table, view, index, ...).
.google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4;
Returns |
---|
Type | Description |
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
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 |
---|
Type | Description |
String | The parentEntity.
|
getParentEntityBytes()
public ByteString getParentEntityBytes()
The full name of the parent entity (e.g. schema name).
string parent_entity = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for parentEntity.
|
getParserForType()
public Parser<DatabaseEntity> getParserForType()
Overrides
getSchema()
public SchemaEntity getSchema()
Schema.
.google.cloud.clouddms.v1.SchemaEntity schema = 102;
getSchemaOrBuilder()
public SchemaEntityOrBuilder getSchemaOrBuilder()
Schema.
.google.cloud.clouddms.v1.SchemaEntity schema = 102;
getSequence()
public SequenceEntity getSequence()
Sequence.
.google.cloud.clouddms.v1.SequenceEntity sequence = 105;
getSequenceOrBuilder()
public SequenceEntityOrBuilder getSequenceOrBuilder()
Sequence.
.google.cloud.clouddms.v1.SequenceEntity sequence = 105;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getShortName()
public String getShortName()
The short name (e.g. table name) of the entity.
string short_name = 1;
Returns |
---|
Type | Description |
String | The shortName.
|
getShortNameBytes()
public ByteString getShortNameBytes()
The short name (e.g. table name) of the entity.
string short_name = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for shortName.
|
getStoredProcedure()
public StoredProcedureEntity getStoredProcedure()
Stored procedure.
.google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106;
getStoredProcedureOrBuilder()
public StoredProcedureEntityOrBuilder getStoredProcedureOrBuilder()
Stored procedure.
.google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106;
getSynonym()
public SynonymEntity getSynonym()
Synonym.
.google.cloud.clouddms.v1.SynonymEntity synonym = 108;
getSynonymOrBuilder()
public SynonymEntityOrBuilder getSynonymOrBuilder()
Synonym.
.google.cloud.clouddms.v1.SynonymEntity synonym = 108;
getTable()
public TableEntity getTable()
Table.
.google.cloud.clouddms.v1.TableEntity table = 103;
getTableOrBuilder()
public TableEntityOrBuilder getTableOrBuilder()
Table.
.google.cloud.clouddms.v1.TableEntity table = 103;
getTree()
public DatabaseEntity.TreeType getTree()
The type of tree the entity belongs to.
.google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3;
getTreeValue()
public int getTreeValue()
The type of tree the entity belongs to.
.google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for tree.
|
getView()
public ViewEntity getView()
View.
.google.cloud.clouddms.v1.ViewEntity view = 104;
getViewOrBuilder()
public ViewEntityOrBuilder getViewOrBuilder()
View.
.google.cloud.clouddms.v1.ViewEntity view = 104;
hasDatabaseFunction()
public boolean hasDatabaseFunction()
Function.
.google.cloud.clouddms.v1.FunctionEntity database_function = 107;
Returns |
---|
Type | Description |
boolean | Whether the databaseFunction field is set.
|
hasDatabasePackage()
public boolean hasDatabasePackage()
Package.
.google.cloud.clouddms.v1.PackageEntity database_package = 109;
Returns |
---|
Type | Description |
boolean | Whether the databasePackage field is set.
|
hasSchema()
public boolean hasSchema()
Schema.
.google.cloud.clouddms.v1.SchemaEntity schema = 102;
Returns |
---|
Type | Description |
boolean | Whether the schema field is set.
|
hasSequence()
public boolean hasSequence()
Sequence.
.google.cloud.clouddms.v1.SequenceEntity sequence = 105;
Returns |
---|
Type | Description |
boolean | Whether the sequence field is set.
|
hasStoredProcedure()
public boolean hasStoredProcedure()
Stored procedure.
.google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106;
Returns |
---|
Type | Description |
boolean | Whether the storedProcedure field is set.
|
hasSynonym()
public boolean hasSynonym()
Synonym.
.google.cloud.clouddms.v1.SynonymEntity synonym = 108;
Returns |
---|
Type | Description |
boolean | Whether the synonym field is set.
|
hasTable()
public boolean hasTable()
Table.
.google.cloud.clouddms.v1.TableEntity table = 103;
Returns |
---|
Type | Description |
boolean | Whether the table field is set.
|
hasView()
View.
.google.cloud.clouddms.v1.ViewEntity view = 104;
Returns |
---|
Type | Description |
boolean | Whether the view field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DatabaseEntity.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DatabaseEntity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public DatabaseEntity.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides