Class ConstraintEntity

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

    public final class ConstraintEntity
    extends com.google.protobuf.GeneratedMessageV3
    implements ConstraintEntityOrBuilder
     Constraint is not used as an independent entity, it is retrieved
     as part of another entity such as Table or View.
     
    Protobuf type google.cloud.clouddms.v1.ConstraintEntity
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ConstraintEntity.Builder
      Constraint is not used as an independent entity, it is retrieved as part of another entity such as Table or View.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the table constraint.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ConstraintEntityOrBuilder
        Returns:
        The bytes for name.
      • getType

        public String getType()
         Type of constraint, for example unique, primary key, foreign key (currently
         only primary key is supported).
         
        string type = 2;
        Specified by:
        getType in interface ConstraintEntityOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         Type of constraint, for example unique, primary key, foreign key (currently
         only primary key is supported).
         
        string type = 2;
        Specified by:
        getTypeBytes in interface ConstraintEntityOrBuilder
        Returns:
        The bytes for type.
      • getTableColumnsList

        public com.google.protobuf.ProtocolStringList getTableColumnsList()
         Table columns used as part of the Constraint, for example primary key
         constraint should list the columns which constitutes the key.
         
        repeated string table_columns = 3;
        Specified by:
        getTableColumnsList in interface ConstraintEntityOrBuilder
        Returns:
        A list containing the tableColumns.
      • getTableColumnsCount

        public int getTableColumnsCount()
         Table columns used as part of the Constraint, for example primary key
         constraint should list the columns which constitutes the key.
         
        repeated string table_columns = 3;
        Specified by:
        getTableColumnsCount in interface ConstraintEntityOrBuilder
        Returns:
        The count of tableColumns.
      • getTableColumns

        public String getTableColumns​(int index)
         Table columns used as part of the Constraint, for example primary key
         constraint should list the columns which constitutes the key.
         
        repeated string table_columns = 3;
        Specified by:
        getTableColumns in interface ConstraintEntityOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The tableColumns at the given index.
      • getTableColumnsBytes

        public com.google.protobuf.ByteString getTableColumnsBytes​(int index)
         Table columns used as part of the Constraint, for example primary key
         constraint should list the columns which constitutes the key.
         
        repeated string table_columns = 3;
        Specified by:
        getTableColumnsBytes in interface ConstraintEntityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tableColumns at the given index.
      • hasCustomFeatures

        public boolean hasCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
        Specified by:
        hasCustomFeatures in interface ConstraintEntityOrBuilder
        Returns:
        Whether the customFeatures field is set.
      • getCustomFeatures

        public com.google.protobuf.Struct getCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
        Specified by:
        getCustomFeatures in interface ConstraintEntityOrBuilder
        Returns:
        The customFeatures.
      • getCustomFeaturesOrBuilder

        public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
        Specified by:
        getCustomFeaturesOrBuilder in interface ConstraintEntityOrBuilder
      • getReferenceColumnsList

        public com.google.protobuf.ProtocolStringList getReferenceColumnsList()
         Reference columns which may be associated with the constraint. For example,
         if the constraint is a FOREIGN_KEY, this represents the list of full names
         of referenced columns by the foreign key.
         
        repeated string reference_columns = 5;
        Specified by:
        getReferenceColumnsList in interface ConstraintEntityOrBuilder
        Returns:
        A list containing the referenceColumns.
      • getReferenceColumnsCount

        public int getReferenceColumnsCount()
         Reference columns which may be associated with the constraint. For example,
         if the constraint is a FOREIGN_KEY, this represents the list of full names
         of referenced columns by the foreign key.
         
        repeated string reference_columns = 5;
        Specified by:
        getReferenceColumnsCount in interface ConstraintEntityOrBuilder
        Returns:
        The count of referenceColumns.
      • getReferenceColumns

        public String getReferenceColumns​(int index)
         Reference columns which may be associated with the constraint. For example,
         if the constraint is a FOREIGN_KEY, this represents the list of full names
         of referenced columns by the foreign key.
         
        repeated string reference_columns = 5;
        Specified by:
        getReferenceColumns in interface ConstraintEntityOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The referenceColumns at the given index.
      • getReferenceColumnsBytes

        public com.google.protobuf.ByteString getReferenceColumnsBytes​(int index)
         Reference columns which may be associated with the constraint. For example,
         if the constraint is a FOREIGN_KEY, this represents the list of full names
         of referenced columns by the foreign key.
         
        repeated string reference_columns = 5;
        Specified by:
        getReferenceColumnsBytes in interface ConstraintEntityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the referenceColumns at the given index.
      • getReferenceTable

        public String getReferenceTable()
         Reference table which may be associated with the constraint. For example,
         if the constraint is a FOREIGN_KEY, this represents the list of full name
         of the referenced table by the foreign key.
         
        string reference_table = 6;
        Specified by:
        getReferenceTable in interface ConstraintEntityOrBuilder
        Returns:
        The referenceTable.
      • getReferenceTableBytes

        public com.google.protobuf.ByteString getReferenceTableBytes()
         Reference table which may be associated with the constraint. For example,
         if the constraint is a FOREIGN_KEY, this represents the list of full name
         of the referenced table by the foreign key.
         
        string reference_table = 6;
        Specified by:
        getReferenceTableBytes in interface ConstraintEntityOrBuilder
        Returns:
        The bytes for referenceTable.
      • getTableName

        public String getTableName()
         Table which is associated with the constraint. In case the constraint
         is defined on a table, this field is left empty as this information is
         stored in parent_name. However, if constraint is defined on a view, this
         field stores the table name on which the view is defined.
         
        string table_name = 7;
        Specified by:
        getTableName in interface ConstraintEntityOrBuilder
        Returns:
        The tableName.
      • getTableNameBytes

        public com.google.protobuf.ByteString getTableNameBytes()
         Table which is associated with the constraint. In case the constraint
         is defined on a table, this field is left empty as this information is
         stored in parent_name. However, if constraint is defined on a view, this
         field stores the table name on which the view is defined.
         
        string table_name = 7;
        Specified by:
        getTableNameBytes in interface ConstraintEntityOrBuilder
        Returns:
        The bytes for tableName.
      • 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 ConstraintEntity parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<ConstraintEntity> 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 ConstraintEntity getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder