Class EntityMapping (2.17.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
TypeDescription
int

DRAFT_TYPE_FIELD_NUMBER

public static final int DRAFT_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MAPPING_LOG_FIELD_NUMBER

public static final int MAPPING_LOG_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_ENTITY_FIELD_NUMBER

public static final int SOURCE_ENTITY_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_TYPE_FIELD_NUMBER

public static final int SOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EntityMapping getDefaultInstance()
Returns
TypeDescription
EntityMapping

getDescriptor()

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

newBuilder()

public static EntityMapping.Builder newBuilder()
Returns
TypeDescription
EntityMapping.Builder

newBuilder(EntityMapping prototype)

public static EntityMapping.Builder newBuilder(EntityMapping prototype)
Parameter
NameDescription
prototypeEntityMapping
Returns
TypeDescription
EntityMapping.Builder

parseDelimitedFrom(InputStream input)

public static EntityMapping parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EntityMapping parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EntityMapping parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EntityMapping parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EntityMapping parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EntityMapping parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EntityMapping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EntityMapping> parser()
Returns
TypeDescription
Parser<EntityMapping>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public EntityMapping getDefaultInstanceForType()
Returns
TypeDescription
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
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

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>

getParserForType()

public Parser<EntityMapping> getParserForType()
Returns
TypeDescription
Parser<EntityMapping>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EntityMapping.Builder newBuilderForType()
Returns
TypeDescription
EntityMapping.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EntityMapping.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EntityMapping.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EntityMapping.Builder toBuilder()
Returns
TypeDescription
EntityMapping.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException