Package com.google.cloud.clouddms.v1
Class MappingRuleFilter.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
- com.google.cloud.clouddms.v1.MappingRuleFilter.Builder
-
- All Implemented Interfaces:
MappingRuleFilterOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MappingRuleFilter
public static final class MappingRuleFilter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder> 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 typegoogle.cloud.clouddms.v1.MappingRuleFilter
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
clear
public MappingRuleFilter.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
getDefaultInstanceForType
public MappingRuleFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MappingRuleFilter build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MappingRuleFilter buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MappingRuleFilter.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
setField
public MappingRuleFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
clearField
public MappingRuleFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
clearOneof
public MappingRuleFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
setRepeatedField
public MappingRuleFilter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
addRepeatedField
public MappingRuleFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
mergeFrom
public MappingRuleFilter.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MappingRuleFilter.Builder>
-
mergeFrom
public MappingRuleFilter.Builder mergeFrom(MappingRuleFilter other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
mergeFrom
public MappingRuleFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MappingRuleFilter.Builder>
- Throws:
IOException
-
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];
- Specified by:
getParentEntity
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The parentEntity.
-
getParentEntityBytes
public com.google.protobuf.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];
- Specified by:
getParentEntityBytes
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The bytes for parentEntity.
-
setParentEntity
public MappingRuleFilter.Builder setParentEntity(String value)
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];
- Parameters:
value
- The parentEntity to set.- Returns:
- This builder for chaining.
-
clearParentEntity
public MappingRuleFilter.Builder clearParentEntity()
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:
- This builder for chaining.
-
setParentEntityBytes
public MappingRuleFilter.Builder setParentEntityBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for parentEntity to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getEntityNamePrefix
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The entityNamePrefix.
-
getEntityNamePrefixBytes
public com.google.protobuf.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];
- Specified by:
getEntityNamePrefixBytes
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The bytes for entityNamePrefix.
-
setEntityNamePrefix
public MappingRuleFilter.Builder setEntityNamePrefix(String value)
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];
- Parameters:
value
- The entityNamePrefix to set.- Returns:
- This builder for chaining.
-
clearEntityNamePrefix
public MappingRuleFilter.Builder clearEntityNamePrefix()
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:
- This builder for chaining.
-
setEntityNamePrefixBytes
public MappingRuleFilter.Builder setEntityNamePrefixBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for entityNamePrefix to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getEntityNameSuffix
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The entityNameSuffix.
-
getEntityNameSuffixBytes
public com.google.protobuf.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];
- Specified by:
getEntityNameSuffixBytes
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The bytes for entityNameSuffix.
-
setEntityNameSuffix
public MappingRuleFilter.Builder setEntityNameSuffix(String value)
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];
- Parameters:
value
- The entityNameSuffix to set.- Returns:
- This builder for chaining.
-
clearEntityNameSuffix
public MappingRuleFilter.Builder clearEntityNameSuffix()
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:
- This builder for chaining.
-
setEntityNameSuffixBytes
public MappingRuleFilter.Builder setEntityNameSuffixBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for entityNameSuffix to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getEntityNameContains
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The entityNameContains.
-
getEntityNameContainsBytes
public com.google.protobuf.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];
- Specified by:
getEntityNameContainsBytes
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The bytes for entityNameContains.
-
setEntityNameContains
public MappingRuleFilter.Builder setEntityNameContains(String value)
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];
- Parameters:
value
- The entityNameContains to set.- Returns:
- This builder for chaining.
-
clearEntityNameContains
public MappingRuleFilter.Builder clearEntityNameContains()
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:
- This builder for chaining.
-
setEntityNameContainsBytes
public MappingRuleFilter.Builder setEntityNameContainsBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for entityNameContains to set.- Returns:
- This builder for chaining.
-
getEntitiesList
public com.google.protobuf.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];
- Specified by:
getEntitiesList
in interfaceMappingRuleFilterOrBuilder
- Returns:
- A list containing the entities.
-
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];
- Specified by:
getEntitiesCount
in interfaceMappingRuleFilterOrBuilder
- Returns:
- The count of entities.
-
getEntities
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];
- Specified by:
getEntities
in interfaceMappingRuleFilterOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The entities at the given index.
-
getEntitiesBytes
public com.google.protobuf.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];
- Specified by:
getEntitiesBytes
in interfaceMappingRuleFilterOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the entities at the given index.
-
setEntities
public MappingRuleFilter.Builder setEntities(int index, String value)
Optional. The rule should be applied to specific entities defined by their fully qualified names.
repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index to set the value at.value
- The entities to set.- Returns:
- This builder for chaining.
-
addEntities
public MappingRuleFilter.Builder addEntities(String value)
Optional. The rule should be applied to specific entities defined by their fully qualified names.
repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The entities to add.- Returns:
- This builder for chaining.
-
addAllEntities
public MappingRuleFilter.Builder addAllEntities(Iterable<String> values)
Optional. The rule should be applied to specific entities defined by their fully qualified names.
repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
values
- The entities to add.- Returns:
- This builder for chaining.
-
clearEntities
public MappingRuleFilter.Builder clearEntities()
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:
- This builder for chaining.
-
addEntitiesBytes
public MappingRuleFilter.Builder addEntitiesBytes(com.google.protobuf.ByteString value)
Optional. The rule should be applied to specific entities defined by their fully qualified names.
repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes of the entities to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final MappingRuleFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
mergeUnknownFields
public final MappingRuleFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
-
-