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 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
-
-
Field Summary
Fields Modifier and Type Field Description static int
CUSTOM_FEATURES_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
REFERENCE_COLUMNS_FIELD_NUMBER
static int
REFERENCE_TABLE_FIELD_NUMBER
static int
TABLE_COLUMNS_FIELD_NUMBER
static int
TABLE_NAME_FIELD_NUMBER
static int
TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
com.google.protobuf.Struct
getCustomFeatures()
Custom engine specific features.com.google.protobuf.StructOrBuilder
getCustomFeaturesOrBuilder()
Custom engine specific features.static ConstraintEntity
getDefaultInstance()
ConstraintEntity
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getName()
The name of the table constraint.com.google.protobuf.ByteString
getNameBytes()
The name of the table constraint.com.google.protobuf.Parser<ConstraintEntity>
getParserForType()
String
getReferenceColumns(int index)
Reference columns which may be associated with the constraint.com.google.protobuf.ByteString
getReferenceColumnsBytes(int index)
Reference columns which may be associated with the constraint.int
getReferenceColumnsCount()
Reference columns which may be associated with the constraint.com.google.protobuf.ProtocolStringList
getReferenceColumnsList()
Reference columns which may be associated with the constraint.String
getReferenceTable()
Reference table which may be associated with the constraint.com.google.protobuf.ByteString
getReferenceTableBytes()
Reference table which may be associated with the constraint.int
getSerializedSize()
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.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.int
getTableColumnsCount()
Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.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.String
getTableName()
Table which is associated with the constraint.com.google.protobuf.ByteString
getTableNameBytes()
Table which is associated with the constraint.String
getType()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).com.google.protobuf.ByteString
getTypeBytes()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).boolean
hasCustomFeatures()
Custom engine specific features.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ConstraintEntity.Builder
newBuilder()
static ConstraintEntity.Builder
newBuilder(ConstraintEntity prototype)
ConstraintEntity.Builder
newBuilderForType()
protected ConstraintEntity.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ConstraintEntity
parseDelimitedFrom(InputStream input)
static ConstraintEntity
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConstraintEntity
parseFrom(byte[] data)
static ConstraintEntity
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConstraintEntity
parseFrom(com.google.protobuf.ByteString data)
static ConstraintEntity
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConstraintEntity
parseFrom(com.google.protobuf.CodedInputStream input)
static ConstraintEntity
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConstraintEntity
parseFrom(InputStream input)
static ConstraintEntity
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ConstraintEntity
parseFrom(ByteBuffer data)
static ConstraintEntity
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ConstraintEntity>
parser()
ConstraintEntity.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The name of the table constraint.
string name = 1;
- Specified by:
getName
in interfaceConstraintEntityOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the table constraint.
string name = 1;
- Specified by:
getNameBytes
in 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:
getType
in 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:
getTypeBytes
in 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:
getTableColumnsList
in 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:
getTableColumnsCount
in 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:
getTableColumns
in 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:
getTableColumnsBytes
in 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:
hasCustomFeatures
in 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:
getCustomFeatures
in interfaceConstraintEntityOrBuilder
- Returns:
- The customFeatures.
-
getCustomFeaturesOrBuilder
public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
- Specified by:
getCustomFeaturesOrBuilder
in 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:
getReferenceColumnsList
in 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:
getReferenceColumnsCount
in 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:
getReferenceColumns
in 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:
getReferenceColumnsBytes
in 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:
getReferenceTable
in 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:
getReferenceTableBytes
in 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:
getTableName
in 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:
getTableNameBytes
in interfaceConstraintEntityOrBuilder
- Returns:
- The bytes for tableName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConstraintEntity.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ConstraintEntity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-