Class MappingRuleFilter (2.46.0)

public final class MappingRuleFilter extends GeneratedMessageV3 implements MappingRuleFilterOrBuilder

A filter defining the entities that a mapping rule should be applied to. When more than one field is specified, the rule is applied only to entities which match all the fields.

Protobuf type google.cloud.clouddms.v1.MappingRuleFilter

Static Fields

ENTITIES_FIELD_NUMBER

public static final int ENTITIES_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_NAME_CONTAINS_FIELD_NUMBER

public static final int ENTITY_NAME_CONTAINS_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_NAME_PREFIX_FIELD_NUMBER

public static final int ENTITY_NAME_PREFIX_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_NAME_SUFFIX_FIELD_NUMBER

public static final int ENTITY_NAME_SUFFIX_FIELD_NUMBER
Field Value
Type Description
int

PARENT_ENTITY_FIELD_NUMBER

public static final int PARENT_ENTITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MappingRuleFilter getDefaultInstance()
Returns
Type Description
MappingRuleFilter

getDescriptor()

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

newBuilder()

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

newBuilder(MappingRuleFilter prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public MappingRuleFilter getDefaultInstanceForType()
Returns
Type Description
MappingRuleFilter

getEntities(int index)

public String getEntities(int index)

Optional. The rule should be applied to specific entities defined by their fully qualified names.

repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The entities at the given index.

getEntitiesBytes(int index)

public ByteString getEntitiesBytes(int index)

Optional. The rule should be applied to specific entities defined by their fully qualified names.

repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the entities at the given index.

getEntitiesCount()

public int getEntitiesCount()

Optional. The rule should be applied to specific entities defined by their fully qualified names.

repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of entities.

getEntitiesList()

public ProtocolStringList getEntitiesList()

Optional. The rule should be applied to specific entities defined by their fully qualified names.

repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the entities.

getEntityNameContains()

public String getEntityNameContains()

Optional. The rule should be applied to entities whose non-qualified name contains the given string.

string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The entityNameContains.

getEntityNameContainsBytes()

public ByteString getEntityNameContainsBytes()

Optional. The rule should be applied to entities whose non-qualified name contains the given string.

string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for entityNameContains.

getEntityNamePrefix()

public String getEntityNamePrefix()

Optional. The rule should be applied to entities whose non-qualified name starts with the given prefix.

string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The entityNamePrefix.

getEntityNamePrefixBytes()

public ByteString getEntityNamePrefixBytes()

Optional. The rule should be applied to entities whose non-qualified name starts with the given prefix.

string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for entityNamePrefix.

getEntityNameSuffix()

public String getEntityNameSuffix()

Optional. The rule should be applied to entities whose non-qualified name ends with the given suffix.

string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The entityNameSuffix.

getEntityNameSuffixBytes()

public ByteString getEntityNameSuffixBytes()

Optional. The rule should be applied to entities whose non-qualified name ends with the given suffix.

string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for entityNameSuffix.

getParentEntity()

public String getParentEntity()

Optional. The rule should be applied to entities whose parent entity (fully qualified name) matches the given value. For example, if the rule applies to a table entity, the expected value should be a schema (schema). If the rule applies to a column or index entity, the expected value can be either a schema (schema) or a table (schema.table)

string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The parentEntity.

getParentEntityBytes()

public ByteString getParentEntityBytes()

Optional. The rule should be applied to entities whose parent entity (fully qualified name) matches the given value. For example, if the rule applies to a table entity, the expected value should be a schema (schema). If the rule applies to a column or index entity, the expected value can be either a schema (schema) or a table (schema.table)

string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for parentEntity.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 MappingRuleFilter.Builder newBuilderForType()
Returns
Type Description
MappingRuleFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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