Class EntityMapping.Builder (2.26.0)

public static final class EntityMapping.Builder extends GeneratedMessageV3.Builder<EntityMapping.Builder> implements EntityMappingOrBuilder

Details of the mappings of a database entity.

Protobuf type google.cloud.clouddms.v1.EntityMapping

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllMappingLog(Iterable<? extends EntityMappingLogEntry> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.clouddms.v1.EntityMappingLogEntry>
Returns
TypeDescription
EntityMapping.Builder

addMappingLog(EntityMappingLogEntry value)

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;

Parameter
NameDescription
valueEntityMappingLogEntry
Returns
TypeDescription
EntityMapping.Builder

addMappingLog(EntityMappingLogEntry.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueEntityMappingLogEntry.Builder
Returns
TypeDescription
EntityMapping.Builder

addMappingLog(int index, EntityMappingLogEntry value)

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;

Parameters
NameDescription
indexint
valueEntityMappingLogEntry
Returns
TypeDescription
EntityMapping.Builder

addMappingLog(int index, EntityMappingLogEntry.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueEntityMappingLogEntry.Builder
Returns
TypeDescription
EntityMapping.Builder

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;

Returns
TypeDescription
EntityMappingLogEntry.Builder

addMappingLogBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityMappingLogEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EntityMapping build()
Returns
TypeDescription
EntityMapping

buildPartial()

public EntityMapping buildPartial()
Returns
TypeDescription
EntityMapping

clear()

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

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

This builder for chaining.

clearDraftType()

public EntityMapping.Builder clearDraftType()

Type of draft entity.

.google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

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;

Returns
TypeDescription
EntityMapping.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

This builder for chaining.

clearSourceType()

public EntityMapping.Builder clearSourceType()

Type of source entity.

.google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EntityMapping getDefaultInstanceForType()
Returns
TypeDescription
EntityMapping

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The draftEntity.

getDraftEntityBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for draftEntity.

getDraftType()

public DatabaseEntityType getDraftType()

Type of draft entity.

.google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;

Returns
TypeDescription
DatabaseEntityType

The draftType.

getDraftTypeValue()

public int getDraftTypeValue()

Type of draft entity.

.google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for draftType.

getMappingLog(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityMappingLogEntry

getMappingLogBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityMappingLogEntry.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<EntityMappingLogEntry>

getMappingLogOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityMappingLogEntryOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.clouddms.v1.EntityMappingLogEntryOrBuilder>

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;

Returns
TypeDescription
String

The sourceEntity.

getSourceEntityBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for sourceEntity.

getSourceType()

public DatabaseEntityType getSourceType()

Type of source entity.

.google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;

Returns
TypeDescription
DatabaseEntityType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

Type of source entity.

.google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for sourceType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EntityMapping other)

public EntityMapping.Builder mergeFrom(EntityMapping other)
Parameter
NameDescription
otherEntityMapping
Returns
TypeDescription
EntityMapping.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMappingLog(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityMapping.Builder

setDraftEntity(String value)

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;

Parameter
NameDescription
valueString

The draftEntity to set.

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

setDraftEntityBytes(ByteString value)

public EntityMapping.Builder setDraftEntityBytes(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;

Parameter
NameDescription
valueByteString

The bytes for draftEntity to set.

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

setDraftType(DatabaseEntityType value)

public EntityMapping.Builder setDraftType(DatabaseEntityType value)

Type of draft entity.

.google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;

Parameter
NameDescription
valueDatabaseEntityType

The draftType to set.

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

setDraftTypeValue(int value)

public EntityMapping.Builder setDraftTypeValue(int value)

Type of draft entity.

.google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for draftType to set.

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMappingLog(int index, EntityMappingLogEntry value)

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;

Parameters
NameDescription
indexint
valueEntityMappingLogEntry
Returns
TypeDescription
EntityMapping.Builder

setMappingLog(int index, EntityMappingLogEntry.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueEntityMappingLogEntry.Builder
Returns
TypeDescription
EntityMapping.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EntityMapping.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EntityMapping.Builder
Overrides

setSourceEntity(String value)

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;

Parameter
NameDescription
valueString

The sourceEntity to set.

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

setSourceEntityBytes(ByteString value)

public EntityMapping.Builder setSourceEntityBytes(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;

Parameter
NameDescription
valueByteString

The bytes for sourceEntity to set.

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

setSourceType(DatabaseEntityType value)

public EntityMapping.Builder setSourceType(DatabaseEntityType value)

Type of source entity.

.google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;

Parameter
NameDescription
valueDatabaseEntityType

The sourceType to set.

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

setSourceTypeValue(int value)

public EntityMapping.Builder setSourceTypeValue(int value)

Type of source entity.

.google.cloud.clouddms.v1.DatabaseEntityType source_type = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for sourceType to set.

Returns
TypeDescription
EntityMapping.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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