Class ConstraintEntity.Builder (2.39.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The referenceColumns to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The tableColumns to add.

Returns
TypeDescription
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
NameDescription
valueString

The referenceColumns to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the referenceColumns to add.

Returns
TypeDescription
ConstraintEntity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConstraintEntity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

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
NameDescription
valueString

The tableColumns to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the tableColumns to add.

Returns
TypeDescription
ConstraintEntity.Builder

This builder for chaining.

build()

public ConstraintEntity build()
Returns
TypeDescription
ConstraintEntity

buildPartial()

public ConstraintEntity buildPartial()
Returns
TypeDescription
ConstraintEntity

clear()

public ConstraintEntity.Builder clear()
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

clearCustomFeatures()

public ConstraintEntity.Builder clearCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 4;

Returns
TypeDescription
ConstraintEntity.Builder

clearField(Descriptors.FieldDescriptor field)

public ConstraintEntity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

clearName()

public ConstraintEntity.Builder clearName()

The name of the table constraint.

string name = 1;

Returns
TypeDescription
ConstraintEntity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConstraintEntity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ConstraintEntity.Builder

This builder for chaining.

clone()

public ConstraintEntity.Builder clone()
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

getCustomFeatures()

public Struct getCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 4;

Returns
TypeDescription
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 4;

Returns
TypeDescription
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 4;

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public ConstraintEntity getDefaultInstanceForType()
Returns
TypeDescription
ConstraintEntity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the table constraint.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the table constraint.

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for type.

hasCustomFeatures()

public boolean hasCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 4;

Returns
TypeDescription
boolean

Whether the customFeatures field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomFeatures(Struct value)

public ConstraintEntity.Builder mergeCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 4;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ConstraintEntity.Builder

mergeFrom(ConstraintEntity other)

public ConstraintEntity.Builder mergeFrom(ConstraintEntity other)
Parameter
NameDescription
otherConstraintEntity
Returns
TypeDescription
ConstraintEntity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConstraintEntity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConstraintEntity.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConstraintEntity.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConstraintEntity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

setCustomFeatures(Struct value)

public ConstraintEntity.Builder setCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 4;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ConstraintEntity.Builder

setCustomFeatures(Struct.Builder builderForValue)

public ConstraintEntity.Builder setCustomFeatures(Struct.Builder builderForValue)

Custom engine specific features.

.google.protobuf.Struct custom_features = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ConstraintEntity.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConstraintEntity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

setName(String value)

public ConstraintEntity.Builder setName(String value)

The name of the table constraint.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The referenceColumns to set.

Returns
TypeDescription
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
NameDescription
valueString

The referenceTable to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for referenceTable to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConstraintEntity.Builder
Overrides

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
NameDescription
indexint

The index to set the value at.

valueString

The tableColumns to set.

Returns
TypeDescription
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
NameDescription
valueString

The tableName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for tableName to set.

Returns
TypeDescription
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
NameDescription
valueString

The type to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
ConstraintEntity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConstraintEntity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConstraintEntity.Builder
Overrides