Class MappingRuleFilter (2.39.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
TypeDescription
int

ENTITY_NAME_CONTAINS_FIELD_NUMBER

public static final int ENTITY_NAME_CONTAINS_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_NAME_PREFIX_FIELD_NUMBER

public static final int ENTITY_NAME_PREFIX_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_NAME_SUFFIX_FIELD_NUMBER

public static final int ENTITY_NAME_SUFFIX_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_ENTITY_FIELD_NUMBER

public static final int PARENT_ENTITY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MappingRuleFilter getDefaultInstance()
Returns
TypeDescription
MappingRuleFilter

getDescriptor()

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

newBuilder()

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

newBuilder(MappingRuleFilter prototype)

public static MappingRuleFilter.Builder newBuilder(MappingRuleFilter prototype)
Parameter
NameDescription
prototypeMappingRuleFilter
Returns
TypeDescription
MappingRuleFilter.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public MappingRuleFilter getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parentEntity.

getParserForType()

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

getSerializedSize()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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