Class EntityMapping (2.41.0)

public final class EntityMapping extends GeneratedMessageV3 implements EntityMappingOrBuilder

Details of the mappings of a database entity.

Protobuf type google.cloud.clouddms.v1.EntityMapping

Static Fields

DRAFT_ENTITY_FIELD_NUMBER

public static final int DRAFT_ENTITY_FIELD_NUMBER
Field Value
Type Description
int

DRAFT_TYPE_FIELD_NUMBER

public static final int DRAFT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MAPPING_LOG_FIELD_NUMBER

public static final int MAPPING_LOG_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_ENTITY_FIELD_NUMBER

public static final int SOURCE_ENTITY_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_TYPE_FIELD_NUMBER

public static final int SOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EntityMapping getDefaultInstance()
Returns
Type Description
EntityMapping

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static EntityMapping.Builder newBuilder()
Returns
Type Description
EntityMapping.Builder

newBuilder(EntityMapping prototype)

public static EntityMapping.Builder newBuilder(EntityMapping prototype)
Parameter
Name Description
prototype EntityMapping
Returns
Type Description
EntityMapping.Builder

parseDelimitedFrom(InputStream input)

public static EntityMapping parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EntityMapping
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityMapping
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EntityMapping parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EntityMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EntityMapping parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EntityMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EntityMapping parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EntityMapping
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityMapping
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EntityMapping parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EntityMapping
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityMapping
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EntityMapping parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EntityMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityMapping
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EntityMapping> parser()
Returns
Type Description
Parser<EntityMapping>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public EntityMapping getDefaultInstanceForType()
Returns
Type Description
EntityMapping

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

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>

getParserForType()

public Parser<EntityMapping> getParserForType()
Returns
Type Description
Parser<EntityMapping>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EntityMapping.Builder newBuilderForType()
Returns
Type Description
EntityMapping.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EntityMapping.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EntityMapping.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public EntityMapping.Builder toBuilder()
Returns
Type Description
EntityMapping.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException