- 2.47.0 (latest)
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.8
- 2.1.9
public static final class ConstraintEntity.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ConstraintEntity.BuilderImplements
ConstraintEntityOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllReferenceColumns(Iterable<String> values)
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The referenceColumns to add. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
addAllTableColumns(Iterable<String> values)
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The tableColumns to add. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
addReferenceColumns(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The referenceColumns to add. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
addReferenceColumnsBytes(ByteString value)
public ConstraintEntity.Builder addReferenceColumnsBytes(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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the referenceColumns to add. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConstraintEntity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
addTableColumns(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The tableColumns to add. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
addTableColumnsBytes(ByteString value)
public ConstraintEntity.Builder addTableColumnsBytes(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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the tableColumns to add. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
build()
public ConstraintEntity build()
Returns | |
---|---|
Type | Description |
ConstraintEntity |
buildPartial()
public ConstraintEntity buildPartial()
Returns | |
---|---|
Type | Description |
ConstraintEntity |
clear()
public ConstraintEntity.Builder clear()
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
clearCustomFeatures()
public ConstraintEntity.Builder clearCustomFeatures()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
clearField(Descriptors.FieldDescriptor field)
public ConstraintEntity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
clearName()
public ConstraintEntity.Builder clearName()
The name of the table constraint.
string name = 1;
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ConstraintEntity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
clearReferenceColumns()
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;
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
clearReferenceTable()
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;
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
clearTableColumns()
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;
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
clearTableName()
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;
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
clearType()
public ConstraintEntity.Builder clearType()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
clone()
public ConstraintEntity.Builder clone()
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
getCustomFeatures()
public Struct getCustomFeatures()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
Returns | |
---|---|
Type | Description |
Struct |
The customFeatures. |
getCustomFeaturesBuilder()
public Struct.Builder getCustomFeaturesBuilder()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
Returns | |
---|---|
Type | Description |
Builder |
getCustomFeaturesOrBuilder()
public StructOrBuilder getCustomFeaturesOrBuilder()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
Returns | |
---|---|
Type | Description |
StructOrBuilder |
getDefaultInstanceForType()
public ConstraintEntity getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ConstraintEntity |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getName()
public String getName()
The name of the table constraint.
string name = 1;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the table constraint.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getReferenceColumns(int index)
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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The referenceColumns at the given index. |
getReferenceColumnsBytes(int index)
public 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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the referenceColumns at the given index. |
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;
Returns | |
---|---|
Type | Description |
int |
The count of referenceColumns. |
getReferenceColumnsList()
public 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;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the referenceColumns. |
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;
Returns | |
---|---|
Type | Description |
String |
The referenceTable. |
getReferenceTableBytes()
public 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 | |
---|---|
Type | Description |
ByteString |
The bytes for referenceTable. |
getTableColumns(int index)
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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The tableColumns at the given index. |
getTableColumnsBytes(int index)
public 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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the tableColumns at the given index. |
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;
Returns | |
---|---|
Type | Description |
int |
The count of tableColumns. |
getTableColumnsList()
public 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;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the tableColumns. |
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;
Returns | |
---|---|
Type | Description |
String |
The tableName. |
getTableNameBytes()
public 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 | |
---|---|
Type | Description |
ByteString |
The bytes for tableName. |
getType()
public String getType()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;
Returns | |
---|---|
Type | Description |
String |
The type. |
getTypeBytes()
public ByteString getTypeBytes()
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for type. |
hasCustomFeatures()
public boolean hasCustomFeatures()
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the customFeatures field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCustomFeatures(Struct value)
public ConstraintEntity.Builder mergeCustomFeatures(Struct value)
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
Parameter | |
---|---|
Name | Description |
value |
Struct |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
mergeFrom(ConstraintEntity other)
public ConstraintEntity.Builder mergeFrom(ConstraintEntity other)
Parameter | |
---|---|
Name | Description |
other |
ConstraintEntity |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConstraintEntity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ConstraintEntity.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConstraintEntity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
setCustomFeatures(Struct value)
public ConstraintEntity.Builder setCustomFeatures(Struct value)
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
Parameter | |
---|---|
Name | Description |
value |
Struct |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
setCustomFeatures(Struct.Builder builderForValue)
public ConstraintEntity.Builder setCustomFeatures(Struct.Builder builderForValue)
Custom engine specific features.
.google.protobuf.Struct custom_features = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ConstraintEntity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
setName(String value)
public ConstraintEntity.Builder setName(String value)
The name of the table constraint.
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ConstraintEntity.Builder setNameBytes(ByteString value)
The name of the table constraint.
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setReferenceColumns(int index, String value)
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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The referenceColumns to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setReferenceTable(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value |
String The referenceTable to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setReferenceTableBytes(ByteString value)
public ConstraintEntity.Builder setReferenceTableBytes(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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for referenceTable to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConstraintEntity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
setTableColumns(int index, String value)
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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The tableColumns to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setTableName(String value)
public 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;
Parameter | |
---|---|
Name | Description |
value |
String The tableName to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setTableNameBytes(ByteString value)
public ConstraintEntity.Builder setTableNameBytes(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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for tableName to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setType(String value)
public ConstraintEntity.Builder setType(String value)
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;
Parameter | |
---|---|
Name | Description |
value |
String The type to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public ConstraintEntity.Builder setTypeBytes(ByteString value)
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string type = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for type to set. |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ConstraintEntity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ConstraintEntity.Builder |