Class DatabaseEntity

  • All Implemented Interfaces:
    DatabaseEntityOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class DatabaseEntity
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getShortName

        public String getShortName()
         The short name (e.g. table name) of the entity.
         
        string short_name = 1;
        Specified by:
        getShortName in interface DatabaseEntityOrBuilder
        Returns:
        The shortName.
      • getShortNameBytes

        public com.google.protobuf.ByteString getShortNameBytes()
         The short name (e.g. table name) of the entity.
         
        string short_name = 1;
        Specified by:
        getShortNameBytes in interface DatabaseEntityOrBuilder
        Returns:
        The bytes for shortName.
      • getParentEntity

        public String getParentEntity()
         The full name of the parent entity (e.g. schema name).
         
        string parent_entity = 2;
        Specified by:
        getParentEntity in interface DatabaseEntityOrBuilder
        Returns:
        The parentEntity.
      • getParentEntityBytes

        public com.google.protobuf.ByteString getParentEntityBytes()
         The full name of the parent entity (e.g. schema name).
         
        string parent_entity = 2;
        Specified by:
        getParentEntityBytes in interface DatabaseEntityOrBuilder
        Returns:
        The bytes for parentEntity.
      • getTreeValue

        public int getTreeValue()
         The type of tree the entity belongs to.
         
        .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3;
        Specified by:
        getTreeValue in interface DatabaseEntityOrBuilder
        Returns:
        The enum numeric value on the wire for tree.
      • getEntityTypeValue

        public int getEntityTypeValue()
         The type of the database entity (table, view, index, ...).
         
        .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4;
        Specified by:
        getEntityTypeValue in interface DatabaseEntityOrBuilder
        Returns:
        The enum numeric value on the wire for entityType.
      • getEntityType

        public DatabaseEntityType getEntityType()
         The type of the database entity (table, view, index, ...).
         
        .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4;
        Specified by:
        getEntityType in interface DatabaseEntityOrBuilder
        Returns:
        The entityType.
      • 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;
        Specified by:
        getMappingsList in interface DatabaseEntityOrBuilder
      • 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;
        Specified by:
        getMappingsOrBuilderList in interface DatabaseEntityOrBuilder
      • 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;
        Specified by:
        getMappingsCount in interface DatabaseEntityOrBuilder
      • getMappings

        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;
        Specified by:
        getMappings in interface DatabaseEntityOrBuilder
      • getMappingsOrBuilder

        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;
        Specified by:
        getMappingsOrBuilder in interface DatabaseEntityOrBuilder
      • getEntityDdlList

        public List<EntityDdl> getEntityDdlList()
         Details about the entity DDL script. Multiple DDL scripts are provided for
         child entities such as a table entity will have one DDL for the table with
         additional DDLs for each index, constraint and such.
         
        repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6;
        Specified by:
        getEntityDdlList in interface DatabaseEntityOrBuilder
      • getEntityDdlOrBuilderList

        public List<? extends EntityDdlOrBuilder> getEntityDdlOrBuilderList()
         Details about the entity DDL script. Multiple DDL scripts are provided for
         child entities such as a table entity will have one DDL for the table with
         additional DDLs for each index, constraint and such.
         
        repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6;
        Specified by:
        getEntityDdlOrBuilderList in interface DatabaseEntityOrBuilder
      • getEntityDdlCount

        public int getEntityDdlCount()
         Details about the entity DDL script. Multiple DDL scripts are provided for
         child entities such as a table entity will have one DDL for the table with
         additional DDLs for each index, constraint and such.
         
        repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6;
        Specified by:
        getEntityDdlCount in interface DatabaseEntityOrBuilder
      • getEntityDdl

        public EntityDdl getEntityDdl​(int index)
         Details about the entity DDL script. Multiple DDL scripts are provided for
         child entities such as a table entity will have one DDL for the table with
         additional DDLs for each index, constraint and such.
         
        repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6;
        Specified by:
        getEntityDdl in interface DatabaseEntityOrBuilder
      • getEntityDdlOrBuilder

        public EntityDdlOrBuilder getEntityDdlOrBuilder​(int index)
         Details about the entity DDL script. Multiple DDL scripts are provided for
         child entities such as a table entity will have one DDL for the table with
         additional DDLs for each index, constraint and such.
         
        repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6;
        Specified by:
        getEntityDdlOrBuilder in interface DatabaseEntityOrBuilder
      • getIssuesCount

        public int getIssuesCount()
         Details about the various issues found for the entity.
         
        repeated .google.cloud.clouddms.v1.EntityIssue issues = 7;
        Specified by:
        getIssuesCount in interface DatabaseEntityOrBuilder
      • getIssues

        public EntityIssue getIssues​(int index)
         Details about the various issues found for the entity.
         
        repeated .google.cloud.clouddms.v1.EntityIssue issues = 7;
        Specified by:
        getIssues in interface DatabaseEntityOrBuilder
      • hasDatabase

        public boolean hasDatabase()
         Database.
         
        .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101;
        Specified by:
        hasDatabase in interface DatabaseEntityOrBuilder
        Returns:
        Whether the database field is set.
      • hasSchema

        public boolean hasSchema()
         Schema.
         
        .google.cloud.clouddms.v1.SchemaEntity schema = 102;
        Specified by:
        hasSchema in interface DatabaseEntityOrBuilder
        Returns:
        Whether the schema field is set.
      • hasTable

        public boolean hasTable()
         Table.
         
        .google.cloud.clouddms.v1.TableEntity table = 103;
        Specified by:
        hasTable in interface DatabaseEntityOrBuilder
        Returns:
        Whether the table field is set.
      • hasView

        public boolean hasView()
         View.
         
        .google.cloud.clouddms.v1.ViewEntity view = 104;
        Specified by:
        hasView in interface DatabaseEntityOrBuilder
        Returns:
        Whether the view field is set.
      • hasSequence

        public boolean hasSequence()
         Sequence.
         
        .google.cloud.clouddms.v1.SequenceEntity sequence = 105;
        Specified by:
        hasSequence in interface DatabaseEntityOrBuilder
        Returns:
        Whether the sequence field is set.
      • hasStoredProcedure

        public boolean hasStoredProcedure()
         Stored procedure.
         
        .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106;
        Specified by:
        hasStoredProcedure in interface DatabaseEntityOrBuilder
        Returns:
        Whether the storedProcedure field is set.
      • hasDatabaseFunction

        public boolean hasDatabaseFunction()
         Function.
         
        .google.cloud.clouddms.v1.FunctionEntity database_function = 107;
        Specified by:
        hasDatabaseFunction in interface DatabaseEntityOrBuilder
        Returns:
        Whether the databaseFunction field is set.
      • hasSynonym

        public boolean hasSynonym()
         Synonym.
         
        .google.cloud.clouddms.v1.SynonymEntity synonym = 108;
        Specified by:
        hasSynonym in interface DatabaseEntityOrBuilder
        Returns:
        Whether the synonym field is set.
      • hasDatabasePackage

        public boolean hasDatabasePackage()
         Package.
         
        .google.cloud.clouddms.v1.PackageEntity database_package = 109;
        Specified by:
        hasDatabasePackage in interface DatabaseEntityOrBuilder
        Returns:
        Whether the databasePackage field is set.
      • hasUdt

        public boolean hasUdt()
         UDT.
         
        .google.cloud.clouddms.v1.UDTEntity udt = 110;
        Specified by:
        hasUdt in interface DatabaseEntityOrBuilder
        Returns:
        Whether the udt field is set.
      • hasMaterializedView

        public boolean hasMaterializedView()
         Materialized view.
         
        .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111;
        Specified by:
        hasMaterializedView in interface DatabaseEntityOrBuilder
        Returns:
        Whether the materializedView field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DatabaseEntity parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DatabaseEntity parseFrom​(ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DatabaseEntity parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DatabaseEntity parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DatabaseEntity parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DatabaseEntity parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DatabaseEntity parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public DatabaseEntity.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DatabaseEntity.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DatabaseEntity.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static DatabaseEntity getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<DatabaseEntity> parser()
      • getParserForType

        public com.google.protobuf.Parser<DatabaseEntity> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DatabaseEntity getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder