Package com.google.cloud.clouddms.v1
Class ConstraintEntity
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.clouddms.v1.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 typegoogle.cloud.clouddms.v1.ConstraintEntity- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConstraintEntity.BuilderConstraint 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
-
-
Field Summary
Fields Modifier and Type Field Description static intCUSTOM_FEATURES_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intREFERENCE_COLUMNS_FIELD_NUMBERstatic intREFERENCE_TABLE_FIELD_NUMBERstatic intTABLE_COLUMNS_FIELD_NUMBERstatic intTABLE_NAME_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.protobuf.StructgetCustomFeatures()Custom engine specific features.com.google.protobuf.StructOrBuildergetCustomFeaturesOrBuilder()Custom engine specific features.static ConstraintEntitygetDefaultInstance()ConstraintEntitygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetName()The name of the table constraint.com.google.protobuf.ByteStringgetNameBytes()The name of the table constraint.com.google.protobuf.Parser<ConstraintEntity>getParserForType()StringgetReferenceColumns(int index)Reference columns which may be associated with the constraint.com.google.protobuf.ByteStringgetReferenceColumnsBytes(int index)Reference columns which may be associated with the constraint.intgetReferenceColumnsCount()Reference columns which may be associated with the constraint.com.google.protobuf.ProtocolStringListgetReferenceColumnsList()Reference columns which may be associated with the constraint.StringgetReferenceTable()Reference table which may be associated with the constraint.com.google.protobuf.ByteStringgetReferenceTableBytes()Reference table which may be associated with the constraint.intgetSerializedSize()StringgetTableColumns(int index)Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.com.google.protobuf.ByteStringgetTableColumnsBytes(int index)Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.intgetTableColumnsCount()Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.com.google.protobuf.ProtocolStringListgetTableColumnsList()Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.StringgetTableName()Table which is associated with the constraint.com.google.protobuf.ByteStringgetTableNameBytes()Table which is associated with the constraint.StringgetType()Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).com.google.protobuf.ByteStringgetTypeBytes()Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).booleanhasCustomFeatures()Custom engine specific features.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ConstraintEntity.BuildernewBuilder()static ConstraintEntity.BuildernewBuilder(ConstraintEntity prototype)ConstraintEntity.BuildernewBuilderForType()protected ConstraintEntity.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ConstraintEntityparseDelimitedFrom(InputStream input)static ConstraintEntityparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConstraintEntityparseFrom(byte[] data)static ConstraintEntityparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConstraintEntityparseFrom(com.google.protobuf.ByteString data)static ConstraintEntityparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConstraintEntityparseFrom(com.google.protobuf.CodedInputStream input)static ConstraintEntityparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConstraintEntityparseFrom(InputStream input)static ConstraintEntityparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConstraintEntityparseFrom(ByteBuffer data)static ConstraintEntityparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ConstraintEntity>parser()ConstraintEntity.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TABLE_COLUMNS_FIELD_NUMBER
public static final int TABLE_COLUMNS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_FEATURES_FIELD_NUMBER
public static final int CUSTOM_FEATURES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REFERENCE_COLUMNS_FIELD_NUMBER
public static final int REFERENCE_COLUMNS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REFERENCE_TABLE_FIELD_NUMBER
public static final int REFERENCE_TABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TABLE_NAME_FIELD_NUMBER
public static final int TABLE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The name of the table constraint.
string name = 1;- Specified by:
getNamein interfaceConstraintEntityOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the table constraint.
string name = 1;- Specified by:
getNameBytesin interfaceConstraintEntityOrBuilder- 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:
getTypein interfaceConstraintEntityOrBuilder- 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:
getTypeBytesin interfaceConstraintEntityOrBuilder- 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:
getTableColumnsListin interfaceConstraintEntityOrBuilder- 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:
getTableColumnsCountin interfaceConstraintEntityOrBuilder- 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:
getTableColumnsin interfaceConstraintEntityOrBuilder- 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:
getTableColumnsBytesin interfaceConstraintEntityOrBuilder- 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:
hasCustomFeaturesin interfaceConstraintEntityOrBuilder- 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:
getCustomFeaturesin interfaceConstraintEntityOrBuilder- Returns:
- The customFeatures.
-
getCustomFeaturesOrBuilder
public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;- Specified by:
getCustomFeaturesOrBuilderin interfaceConstraintEntityOrBuilder
-
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:
getReferenceColumnsListin interfaceConstraintEntityOrBuilder- 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:
getReferenceColumnsCountin interfaceConstraintEntityOrBuilder- 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:
getReferenceColumnsin interfaceConstraintEntityOrBuilder- 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:
getReferenceColumnsBytesin interfaceConstraintEntityOrBuilder- 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:
getReferenceTablein interfaceConstraintEntityOrBuilder- 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:
getReferenceTableBytesin interfaceConstraintEntityOrBuilder- 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:
getTableNamein interfaceConstraintEntityOrBuilder- 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:
getTableNameBytesin interfaceConstraintEntityOrBuilder- Returns:
- The bytes for tableName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ConstraintEntity parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ConstraintEntity parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ConstraintEntity parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ConstraintEntity parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ConstraintEntity.Builder newBuilder()
-
newBuilder
public static ConstraintEntity.Builder newBuilder(ConstraintEntity prototype)
-
toBuilder
public ConstraintEntity.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConstraintEntity.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ConstraintEntity getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ConstraintEntity> parser()
-
getParserForType
public com.google.protobuf.Parser<ConstraintEntity> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ConstraintEntity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-