public static final class ConstraintEntity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder> 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| Modifier and Type | Method and Description |
|---|---|
ConstraintEntity.Builder |
addAllReferenceColumns(Iterable<String> values)
Reference columns which may be associated with the constraint.
|
ConstraintEntity.Builder |
addAllTableColumns(Iterable<String> values)
Table columns used as part of the Constraint, for example primary key
constraint should list the columns which constitutes the key.
|
ConstraintEntity.Builder |
addReferenceColumns(String value)
Reference columns which may be associated with the constraint.
|
ConstraintEntity.Builder |
addReferenceColumnsBytes(com.google.protobuf.ByteString value)
Reference columns which may be associated with the constraint.
|
ConstraintEntity.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConstraintEntity.Builder |
addTableColumns(String value)
Table columns used as part of the Constraint, for example primary key
constraint should list the columns which constitutes the key.
|
ConstraintEntity.Builder |
addTableColumnsBytes(com.google.protobuf.ByteString value)
Table columns used as part of the Constraint, for example primary key
constraint should list the columns which constitutes the key.
|
ConstraintEntity |
build() |
ConstraintEntity |
buildPartial() |
ConstraintEntity.Builder |
clear() |
ConstraintEntity.Builder |
clearCustomFeatures()
Custom engine specific features.
|
ConstraintEntity.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ConstraintEntity.Builder |
clearName()
The name of the table constraint.
|
ConstraintEntity.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ConstraintEntity.Builder |
clearReferenceColumns()
Reference columns which may be associated with the constraint.
|
ConstraintEntity.Builder |
clearReferenceTable()
Reference table which may be associated with the constraint.
|
ConstraintEntity.Builder |
clearTableColumns()
Table columns used as part of the Constraint, for example primary key
constraint should list the columns which constitutes the key.
|
ConstraintEntity.Builder |
clearTableName()
Table which is associated with the constraint.
|
ConstraintEntity.Builder |
clearType()
Type of constraint, for example unique, primary key, foreign key (currently
only primary key is supported).
|
ConstraintEntity.Builder |
clone() |
com.google.protobuf.Struct |
getCustomFeatures()
Custom engine specific features.
|
com.google.protobuf.Struct.Builder |
getCustomFeaturesBuilder()
Custom engine specific features.
|
com.google.protobuf.StructOrBuilder |
getCustomFeaturesOrBuilder()
Custom engine specific features.
|
ConstraintEntity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ConstraintEntity.Builder |
mergeCustomFeatures(com.google.protobuf.Struct value)
Custom engine specific features.
|
ConstraintEntity.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ConstraintEntity.Builder |
mergeFrom(ConstraintEntity other) |
ConstraintEntity.Builder |
mergeFrom(com.google.protobuf.Message other) |
ConstraintEntity.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ConstraintEntity.Builder |
setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue)
Custom engine specific features.
|
ConstraintEntity.Builder |
setCustomFeatures(com.google.protobuf.Struct value)
Custom engine specific features.
|
ConstraintEntity.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConstraintEntity.Builder |
setName(String value)
The name of the table constraint.
|
ConstraintEntity.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the table constraint.
|
ConstraintEntity.Builder |
setReferenceColumns(int index,
String value)
Reference columns which may be associated with the constraint.
|
ConstraintEntity.Builder |
setReferenceTable(String value)
Reference table which may be associated with the constraint.
|
ConstraintEntity.Builder |
setReferenceTableBytes(com.google.protobuf.ByteString value)
Reference table which may be associated with the constraint.
|
ConstraintEntity.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ConstraintEntity.Builder |
setTableColumns(int index,
String value)
Table columns used as part of the Constraint, for example primary key
constraint should list the columns which constitutes the key.
|
ConstraintEntity.Builder |
setTableName(String value)
Table which is associated with the constraint.
|
ConstraintEntity.Builder |
setTableNameBytes(com.google.protobuf.ByteString value)
Table which is associated with the constraint.
|
ConstraintEntity.Builder |
setType(String value)
Type of constraint, for example unique, primary key, foreign key (currently
only primary key is supported).
|
ConstraintEntity.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
Type of constraint, for example unique, primary key, foreign key (currently
only primary key is supported).
|
ConstraintEntity.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ConstraintEntity build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ConstraintEntity buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ConstraintEntity.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder mergeFrom(ConstraintEntity other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public ConstraintEntity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConstraintEntity.Builder>IOExceptionpublic String getName()
The name of the table constraint.
string name = 1;getName in interface ConstraintEntityOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the table constraint.
string name = 1;getNameBytes in interface ConstraintEntityOrBuilderpublic ConstraintEntity.Builder setName(String value)
The name of the table constraint.
string name = 1;value - The name to set.public ConstraintEntity.Builder clearName()
The name of the table constraint.
string name = 1;public ConstraintEntity.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the table constraint.
string name = 1;value - The bytes for name to set.public String getType()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;getType in interface ConstraintEntityOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;getTypeBytes in interface ConstraintEntityOrBuilderpublic ConstraintEntity.Builder setType(String value)
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;value - The type to set.public ConstraintEntity.Builder clearType()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;public ConstraintEntity.Builder setTypeBytes(com.google.protobuf.ByteString value)
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;value - The bytes for type to set.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;getTableColumnsList in interface ConstraintEntityOrBuilderpublic 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;getTableColumnsCount in interface ConstraintEntityOrBuilderpublic 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;getTableColumns in interface ConstraintEntityOrBuilderindex - The index of the element to return.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;getTableColumnsBytes in interface ConstraintEntityOrBuilderindex - The index of the value to return.public ConstraintEntity.Builder setTableColumns(int index, String value)
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;index - The index to set the value at.value - The tableColumns to set.public ConstraintEntity.Builder addTableColumns(String value)
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;value - The tableColumns to add.public ConstraintEntity.Builder addAllTableColumns(Iterable<String> values)
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;values - The tableColumns to add.public ConstraintEntity.Builder clearTableColumns()
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;public ConstraintEntity.Builder addTableColumnsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the tableColumns to add.public boolean hasCustomFeatures()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;hasCustomFeatures in interface ConstraintEntityOrBuilderpublic com.google.protobuf.Struct getCustomFeatures()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;getCustomFeatures in interface ConstraintEntityOrBuilderpublic ConstraintEntity.Builder setCustomFeatures(com.google.protobuf.Struct value)
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;public ConstraintEntity.Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue)
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;public ConstraintEntity.Builder mergeCustomFeatures(com.google.protobuf.Struct value)
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;public ConstraintEntity.Builder clearCustomFeatures()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;getCustomFeaturesOrBuilder in interface ConstraintEntityOrBuilderpublic 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;getReferenceColumnsList in interface ConstraintEntityOrBuilderpublic 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;getReferenceColumnsCount in interface ConstraintEntityOrBuilderpublic 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;getReferenceColumns in interface ConstraintEntityOrBuilderindex - The index of the element to return.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;getReferenceColumnsBytes in interface ConstraintEntityOrBuilderindex - The index of the value to return.public ConstraintEntity.Builder setReferenceColumns(int index, String value)
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;index - The index to set the value at.value - The referenceColumns to set.public ConstraintEntity.Builder addReferenceColumns(String value)
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;value - The referenceColumns to add.public ConstraintEntity.Builder addAllReferenceColumns(Iterable<String> values)
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;values - The referenceColumns to add.public ConstraintEntity.Builder clearReferenceColumns()
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;public ConstraintEntity.Builder addReferenceColumnsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the referenceColumns to add.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;getReferenceTable in interface ConstraintEntityOrBuilderpublic 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;getReferenceTableBytes in interface ConstraintEntityOrBuilderpublic ConstraintEntity.Builder setReferenceTable(String value)
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;value - The referenceTable to set.public ConstraintEntity.Builder clearReferenceTable()
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;public ConstraintEntity.Builder setReferenceTableBytes(com.google.protobuf.ByteString value)
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;value - The bytes for referenceTable to set.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;getTableName in interface ConstraintEntityOrBuilderpublic 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;getTableNameBytes in interface ConstraintEntityOrBuilderpublic ConstraintEntity.Builder setTableName(String value)
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;value - The tableName to set.public ConstraintEntity.Builder clearTableName()
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;public ConstraintEntity.Builder setTableNameBytes(com.google.protobuf.ByteString value)
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;value - The bytes for tableName to set.public final ConstraintEntity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>public final ConstraintEntity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>Copyright © 2024 Google LLC. All rights reserved.