Class EntityMapping.Builder

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

    public static final class EntityMapping.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<EntityMapping.Builder>
    implements EntityMappingOrBuilder
     Details of the mappings of a database entity.
     
    Protobuf type google.cloud.clouddms.v1.EntityMapping
    • 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<EntityMapping.Builder>
      • clear

        public EntityMapping.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<EntityMapping.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<EntityMapping.Builder>
      • getDefaultInstanceForType

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

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

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

        public EntityMapping.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<EntityMapping.Builder>
      • setField

        public EntityMapping.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<EntityMapping.Builder>
      • clearField

        public EntityMapping.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<EntityMapping.Builder>
      • clearOneof

        public EntityMapping.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<EntityMapping.Builder>
      • setRepeatedField

        public EntityMapping.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<EntityMapping.Builder>
      • addRepeatedField

        public EntityMapping.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<EntityMapping.Builder>
      • mergeFrom

        public EntityMapping.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<EntityMapping.Builder>
      • isInitialized

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

        public EntityMapping.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<EntityMapping.Builder>
        Throws:
        IOException
      • getSourceEntity

        public String getSourceEntity()
         Source entity full name.
         The source entity can also be a column, index or constraint using the
         same naming notation schema.table.column.
         
        string source_entity = 1;
        Specified by:
        getSourceEntity in interface EntityMappingOrBuilder
        Returns:
        The sourceEntity.
      • getSourceEntityBytes

        public com.google.protobuf.ByteString getSourceEntityBytes()
         Source entity full name.
         The source entity can also be a column, index or constraint using the
         same naming notation schema.table.column.
         
        string source_entity = 1;
        Specified by:
        getSourceEntityBytes in interface EntityMappingOrBuilder
        Returns:
        The bytes for sourceEntity.
      • setSourceEntity

        public EntityMapping.Builder setSourceEntity​(String value)
         Source entity full name.
         The source entity can also be a column, index or constraint using the
         same naming notation schema.table.column.
         
        string source_entity = 1;
        Parameters:
        value - The sourceEntity to set.
        Returns:
        This builder for chaining.
      • clearSourceEntity

        public EntityMapping.Builder clearSourceEntity()
         Source entity full name.
         The source entity can also be a column, index or constraint using the
         same naming notation schema.table.column.
         
        string source_entity = 1;
        Returns:
        This builder for chaining.
      • setSourceEntityBytes

        public EntityMapping.Builder setSourceEntityBytes​(com.google.protobuf.ByteString value)
         Source entity full name.
         The source entity can also be a column, index or constraint using the
         same naming notation schema.table.column.
         
        string source_entity = 1;
        Parameters:
        value - The bytes for sourceEntity to set.
        Returns:
        This builder for chaining.
      • getDraftEntity

        public String getDraftEntity()
         Target entity full name.
         The draft entity can also include a column, index or constraint using the
         same naming notation schema.table.column.
         
        string draft_entity = 2;
        Specified by:
        getDraftEntity in interface EntityMappingOrBuilder
        Returns:
        The draftEntity.
      • getDraftEntityBytes

        public com.google.protobuf.ByteString getDraftEntityBytes()
         Target entity full name.
         The draft entity can also include a column, index or constraint using the
         same naming notation schema.table.column.
         
        string draft_entity = 2;
        Specified by:
        getDraftEntityBytes in interface EntityMappingOrBuilder
        Returns:
        The bytes for draftEntity.
      • setDraftEntity

        public EntityMapping.Builder setDraftEntity​(String value)
         Target entity full name.
         The draft entity can also include a column, index or constraint using the
         same naming notation schema.table.column.
         
        string draft_entity = 2;
        Parameters:
        value - The draftEntity to set.
        Returns:
        This builder for chaining.
      • clearDraftEntity

        public EntityMapping.Builder clearDraftEntity()
         Target entity full name.
         The draft entity can also include a column, index or constraint using the
         same naming notation schema.table.column.
         
        string draft_entity = 2;
        Returns:
        This builder for chaining.
      • setDraftEntityBytes

        public EntityMapping.Builder setDraftEntityBytes​(com.google.protobuf.ByteString value)
         Target entity full name.
         The draft entity can also include a column, index or constraint using the
         same naming notation schema.table.column.
         
        string draft_entity = 2;
        Parameters:
        value - The bytes for draftEntity to set.
        Returns:
        This builder for chaining.
      • getSourceTypeValue

        public int getSourceTypeValue()
         Type of source entity.
         
        .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;
        Specified by:
        getSourceTypeValue in interface EntityMappingOrBuilder
        Returns:
        The enum numeric value on the wire for sourceType.
      • setSourceTypeValue

        public EntityMapping.Builder setSourceTypeValue​(int value)
         Type of source entity.
         
        .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;
        Parameters:
        value - The enum numeric value on the wire for sourceType to set.
        Returns:
        This builder for chaining.
      • setSourceType

        public EntityMapping.Builder setSourceType​(DatabaseEntityType value)
         Type of source entity.
         
        .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;
        Parameters:
        value - The sourceType to set.
        Returns:
        This builder for chaining.
      • clearSourceType

        public EntityMapping.Builder clearSourceType()
         Type of source entity.
         
        .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;
        Returns:
        This builder for chaining.
      • getDraftTypeValue

        public int getDraftTypeValue()
         Type of draft entity.
         
        .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;
        Specified by:
        getDraftTypeValue in interface EntityMappingOrBuilder
        Returns:
        The enum numeric value on the wire for draftType.
      • setDraftTypeValue

        public EntityMapping.Builder setDraftTypeValue​(int value)
         Type of draft entity.
         
        .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;
        Parameters:
        value - The enum numeric value on the wire for draftType to set.
        Returns:
        This builder for chaining.
      • setDraftType

        public EntityMapping.Builder setDraftType​(DatabaseEntityType value)
         Type of draft entity.
         
        .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;
        Parameters:
        value - The draftType to set.
        Returns:
        This builder for chaining.
      • clearDraftType

        public EntityMapping.Builder clearDraftType()
         Type of draft entity.
         
        .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;
        Returns:
        This builder for chaining.
      • getMappingLogList

        public List<EntityMappingLogEntry> getMappingLogList()
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
        Specified by:
        getMappingLogList in interface EntityMappingOrBuilder
      • getMappingLogCount

        public int getMappingLogCount()
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
        Specified by:
        getMappingLogCount in interface EntityMappingOrBuilder
      • getMappingLog

        public EntityMappingLogEntry getMappingLog​(int index)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
        Specified by:
        getMappingLog in interface EntityMappingOrBuilder
      • setMappingLog

        public EntityMapping.Builder setMappingLog​(int index,
                                                   EntityMappingLogEntry value)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • setMappingLog

        public EntityMapping.Builder setMappingLog​(int index,
                                                   EntityMappingLogEntry.Builder builderForValue)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • addMappingLog

        public EntityMapping.Builder addMappingLog​(EntityMappingLogEntry value)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • addMappingLog

        public EntityMapping.Builder addMappingLog​(int index,
                                                   EntityMappingLogEntry value)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • addMappingLog

        public EntityMapping.Builder addMappingLog​(EntityMappingLogEntry.Builder builderForValue)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • addMappingLog

        public EntityMapping.Builder addMappingLog​(int index,
                                                   EntityMappingLogEntry.Builder builderForValue)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • addAllMappingLog

        public EntityMapping.Builder addAllMappingLog​(Iterable<? extends EntityMappingLogEntry> values)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • clearMappingLog

        public EntityMapping.Builder clearMappingLog()
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • removeMappingLog

        public EntityMapping.Builder removeMappingLog​(int index)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • getMappingLogBuilder

        public EntityMappingLogEntry.Builder getMappingLogBuilder​(int index)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • getMappingLogOrBuilder

        public EntityMappingLogEntryOrBuilder getMappingLogOrBuilder​(int index)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
        Specified by:
        getMappingLogOrBuilder in interface EntityMappingOrBuilder
      • getMappingLogOrBuilderList

        public List<? extends EntityMappingLogEntryOrBuilder> getMappingLogOrBuilderList()
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
        Specified by:
        getMappingLogOrBuilderList in interface EntityMappingOrBuilder
      • addMappingLogBuilder

        public EntityMappingLogEntry.Builder addMappingLogBuilder()
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • addMappingLogBuilder

        public EntityMappingLogEntry.Builder addMappingLogBuilder​(int index)
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • getMappingLogBuilderList

        public List<EntityMappingLogEntry.Builder> getMappingLogBuilderList()
         Entity mapping log entries.
         Multiple rules can be effective and contribute changes to a converted
         entity, such as a rule can handle the entity name, another rule can handle
         an entity type. In addition, rules which did not change the entity are also
         logged along with the reason preventing them to do so.
         
        repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3;
      • setUnknownFields

        public final EntityMapping.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<EntityMapping.Builder>
      • mergeUnknownFields

        public final EntityMapping.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<EntityMapping.Builder>