Package com.google.cloud.clouddms.v1
Interface ConstraintEntityOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ConstraintEntity
,ConstraintEntity.Builder
public interface ConstraintEntityOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.Struct
getCustomFeatures()
Custom engine specific features.com.google.protobuf.StructOrBuilder
getCustomFeaturesOrBuilder()
Custom engine specific features.String
getName()
The name of the table constraint.com.google.protobuf.ByteString
getNameBytes()
The name of the table constraint.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.List<String>
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.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.List<String>
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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
The name of the table constraint.
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The name of the table constraint.
string name = 1;
- Returns:
- The bytes for name.
-
getType
String getType()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;
- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;
- Returns:
- The bytes for type.
-
getTableColumnsList
List<String> 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;
- Returns:
- A list containing the tableColumns.
-
getTableColumnsCount
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;
- Returns:
- The count of tableColumns.
-
getTableColumns
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The tableColumns at the given index.
-
getTableColumnsBytes
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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the tableColumns at the given index.
-
hasCustomFeatures
boolean hasCustomFeatures()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
- Returns:
- Whether the customFeatures field is set.
-
getCustomFeatures
com.google.protobuf.Struct getCustomFeatures()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
- Returns:
- The customFeatures.
-
getCustomFeaturesOrBuilder
com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
-
getReferenceColumnsList
List<String> 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;
- Returns:
- A list containing the referenceColumns.
-
getReferenceColumnsCount
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;
- Returns:
- The count of referenceColumns.
-
getReferenceColumns
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The referenceColumns at the given index.
-
getReferenceColumnsBytes
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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the referenceColumns at the given index.
-
getReferenceTable
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;
- Returns:
- The referenceTable.
-
getReferenceTableBytes
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;
- Returns:
- The bytes for referenceTable.
-
getTableName
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;
- Returns:
- The tableName.
-
getTableNameBytes
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;
- Returns:
- The bytes for tableName.
-
-