Class ConstraintEntity.Builder

  • All Implemented Interfaces:
    ConstraintEntityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ConstraintEntity

    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • clear

        public ConstraintEntity.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • getDefaultInstanceForType

        public ConstraintEntity getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ConstraintEntity build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ConstraintEntity buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ConstraintEntity.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • setField

        public ConstraintEntity.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • clearField

        public ConstraintEntity.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • clearOneof

        public ConstraintEntity.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • setRepeatedField

        public ConstraintEntity.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • addRepeatedField

        public ConstraintEntity.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • mergeFrom

        public ConstraintEntity.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConstraintEntity.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • mergeFrom

        public ConstraintEntity.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConstraintEntity.Builder>
        Throws:
        IOException
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the table constraint.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ConstraintEntityOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ConstraintEntity.Builder setName​(String value)
         The name of the table constraint.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ConstraintEntity.Builder clearName()
         The name of the table constraint.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ConstraintEntity.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the table constraint.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        Returns:
        The bytes for type.
      • setType

        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;
        Parameters:
        value - The type to set.
        Returns:
        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:
        This builder for chaining.
      • setTypeBytes

        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;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • 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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tableColumns at the given index.
      • setTableColumns

        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:
        index - The index to set the value at.
        value - The tableColumns to set.
        Returns:
        This builder for chaining.
      • addTableColumns

        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;
        Parameters:
        value - The tableColumns to add.
        Returns:
        This builder for chaining.
      • addAllTableColumns

        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;
        Parameters:
        values - The tableColumns to add.
        Returns:
        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:
        This builder for chaining.
      • addTableColumnsBytes

        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;
        Parameters:
        value - The bytes of the tableColumns to add.
        Returns:
        This builder for chaining.
      • hasCustomFeatures

        public boolean hasCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
        Specified by:
        hasCustomFeatures in interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        Returns:
        The customFeatures.
      • setCustomFeatures

        public ConstraintEntity.Builder setCustomFeatures​(com.google.protobuf.Struct value)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
      • setCustomFeatures

        public ConstraintEntity.Builder setCustomFeatures​(com.google.protobuf.Struct.Builder builderForValue)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
      • mergeCustomFeatures

        public ConstraintEntity.Builder mergeCustomFeatures​(com.google.protobuf.Struct value)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
      • clearCustomFeatures

        public ConstraintEntity.Builder clearCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
      • getCustomFeaturesBuilder

        public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
      • getCustomFeaturesOrBuilder

        public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 4;
        Specified by:
        getCustomFeaturesOrBuilder in interface ConstraintEntityOrBuilder
      • 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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the referenceColumns at the given index.
      • setReferenceColumns

        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:
        index - The index to set the value at.
        value - The referenceColumns to set.
        Returns:
        This builder for chaining.
      • addReferenceColumns

        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;
        Parameters:
        value - The referenceColumns to add.
        Returns:
        This builder for chaining.
      • addAllReferenceColumns

        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;
        Parameters:
        values - The referenceColumns to add.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • addReferenceColumnsBytes

        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;
        Parameters:
        value - The bytes of the referenceColumns to add.
        Returns:
        This builder for chaining.
      • 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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        Returns:
        The bytes for referenceTable.
      • setReferenceTable

        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;
        Parameters:
        value - The referenceTable to set.
        Returns:
        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:
        This builder for chaining.
      • setReferenceTableBytes

        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;
        Parameters:
        value - The bytes for referenceTable to set.
        Returns:
        This builder for chaining.
      • 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 interface ConstraintEntityOrBuilder
        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 interface ConstraintEntityOrBuilder
        Returns:
        The bytes for tableName.
      • setTableName

        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;
        Parameters:
        value - The tableName to set.
        Returns:
        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:
        This builder for chaining.
      • setTableNameBytes

        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;
        Parameters:
        value - The bytes for tableName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ConstraintEntity.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>
      • mergeUnknownFields

        public final ConstraintEntity.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintEntity.Builder>