Class EntityMapping.Builder (2.41.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.clouddms.v1.EntityMappingLogEntry>
Returns
Type Description
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
Name Description
value EntityMappingLogEntry
Returns
Type Description
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
Name Description
builderForValue EntityMappingLogEntry.Builder
Returns
Type Description
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
Name Description
index int
value EntityMappingLogEntry
Returns
Type Description
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
Name Description
index int
builderForValue EntityMappingLogEntry.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
EntityMappingLogEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EntityMapping.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EntityMapping.Builder
Overrides

build()

public EntityMapping build()
Returns
Type Description
EntityMapping

buildPartial()

public EntityMapping buildPartial()
Returns
Type Description
EntityMapping

clear()

public EntityMapping.Builder clear()
Returns
Type Description
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
Type Description
EntityMapping.Builder

This builder for chaining.

clearDraftType()

public EntityMapping.Builder clearDraftType()

Type of draft entity.

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

Returns
Type Description
EntityMapping.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EntityMapping.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
EntityMapping.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public EntityMapping.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
EntityMapping.Builder

This builder for chaining.

clearSourceType()

public EntityMapping.Builder clearSourceType()

Type of source entity.

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

Returns
Type Description
EntityMapping.Builder

This builder for chaining.

clone()

public EntityMapping.Builder clone()
Returns
Type Description
EntityMapping.Builder
Overrides

getDefaultInstanceForType()

public EntityMapping getDefaultInstanceForType()
Returns
Type Description
EntityMapping

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for draftEntity.

getDraftType()

public DatabaseEntityType getDraftType()

Type of draft entity.

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

Returns
Type Description
DatabaseEntityType

The draftType.

getDraftTypeValue()

public int getDraftTypeValue()

Type of draft entity.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for sourceEntity.

getSourceType()

public DatabaseEntityType getSourceType()

Type of source entity.

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

Returns
Type Description
DatabaseEntityType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

Type of source entity.

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

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EntityMapping other)

public EntityMapping.Builder mergeFrom(EntityMapping other)
Parameter
Name Description
other EntityMapping
Returns
Type Description
EntityMapping.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EntityMapping.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityMapping.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EntityMapping.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EntityMapping.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EntityMapping.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value String

The draftEntity to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for draftEntity to set.

Returns
Type Description
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
Name Description
value DatabaseEntityType

The draftType to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
EntityMapping.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EntityMapping.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value EntityMappingLogEntry
Returns
Type Description
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
Name Description
index int
builderForValue EntityMappingLogEntry.Builder
Returns
Type Description
EntityMapping.Builder

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

public EntityMapping.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The sourceEntity to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for sourceEntity to set.

Returns
Type Description
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
Name Description
value DatabaseEntityType

The sourceType to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
EntityMapping.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EntityMapping.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EntityMapping.Builder
Overrides