public final class DataQualitySpec extends GeneratedMessage implements DataQualitySpecOrBuilder
DataQualityScan related setting.
Protobuf type google.cloud.dataplex.v1.DataQualitySpec
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CATALOG_PUBLISHING_ENABLED_FIELD_NUMBER
public static final int CATALOG_PUBLISHING_ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENABLE_CATALOG_BASED_RULES_FIELD_NUMBER
public static final int ENABLE_CATALOG_BASED_RULES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
POST_SCAN_ACTIONS_FIELD_NUMBER
public static final int POST_SCAN_ACTIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ROW_FILTER_FIELD_NUMBER
public static final int ROW_FILTER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RULES_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SAMPLING_PERCENT_FIELD_NUMBER
public static final int SAMPLING_PERCENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DataQualitySpec getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DataQualitySpec.Builder newBuilder()
newBuilder(DataQualitySpec prototype)
public static DataQualitySpec.Builder newBuilder(DataQualitySpec prototype)
public static DataQualitySpec parseDelimitedFrom(InputStream input)
public static DataQualitySpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DataQualitySpec parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DataQualitySpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DataQualitySpec parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataQualitySpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataQualitySpec parseFrom(CodedInputStream input)
public static DataQualitySpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DataQualitySpec parseFrom(InputStream input)
public static DataQualitySpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DataQualitySpec parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DataQualitySpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DataQualitySpec> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCatalogPublishingEnabled()
public boolean getCatalogPublishingEnabled()
Optional. If set, the latest DataScan job result will be published as
Dataplex Universal Catalog metadata.
bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The catalogPublishingEnabled.
|
getDefaultInstanceForType()
public DataQualitySpec getDefaultInstanceForType()
getEnableCatalogBasedRules()
public boolean getEnableCatalogBasedRules()
Optional. If enabled, the data scan will retrieve rules defined in the
dataplex-types.global.data-rules aspect on all paths of the catalog entry
corresponding to the BigQuery table resource and all attached glossary
terms. The path that data-rules aspect is attached on the table entry
defines the column that the rule will be evaluated against. For glossary
terms, the path that the terms are attached on the table entry defines the
column that the rule will be evaluated against. At the start of scan
execution, the rules reflect the latest state retrieved from the catalog
entry and any updates on the rules thereafter are ignored for that
execution. The updates will be reflected from the next execution. Rules
defined in the datascan must be empty if this field is enabled.
bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The enableCatalogBasedRules.
|
getFilter()
public String getFilter()
Optional. Filter for selectively running a subset of rules. You can filter
the request by the name or attribute key-value pairs defined on the rule.
If not specified, all rules are run. The filter is applicable to both, the
rules retrieved from catalog and explicitly defined rules in the scan.
Please see filter
syntax
for more details.
string filter = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The filter.
|
getFilterBytes()
public ByteString getFilterBytes()
Optional. Filter for selectively running a subset of rules. You can filter
the request by the name or attribute key-value pairs defined on the rule.
If not specified, all rules are run. The filter is applicable to both, the
rules retrieved from catalog and explicitly defined rules in the scan.
Please see filter
syntax
for more details.
string filter = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for filter.
|
getParserForType()
public Parser<DataQualitySpec> getParserForType()
Overrides
getPostScanActions()
public DataQualitySpec.PostScanActions getPostScanActions()
Optional. Actions to take upon job completion.
.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
getPostScanActionsOrBuilder()
public DataQualitySpec.PostScanActionsOrBuilder getPostScanActionsOrBuilder()
Optional. Actions to take upon job completion.
.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
getRowFilter()
public String getRowFilter()
Optional. A filter applied to all rows in a single DataScan job.
The filter needs to be a valid SQL expression for a WHERE clause in
GoogleSQL
syntax.
Example: col1 >= 0 AND col2 < 10
string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The rowFilter.
|
getRowFilterBytes()
public ByteString getRowFilterBytes()
Optional. A filter applied to all rows in a single DataScan job.
The filter needs to be a valid SQL expression for a WHERE clause in
GoogleSQL
syntax.
Example: col1 >= 0 AND col2 < 10
string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for rowFilter.
|
getRules(int index)
public DataQualityRule getRules(int index)
Required. The list of rules to evaluate against a data source. At least one
rule is required.
repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getRulesCount()
public int getRulesCount()
Required. The list of rules to evaluate against a data source. At least one
rule is required.
repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
|
getRulesList()
public List<DataQualityRule> getRulesList()
Required. The list of rules to evaluate against a data source. At least one
rule is required.
repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
getRulesOrBuilder(int index)
public DataQualityRuleOrBuilder getRulesOrBuilder(int index)
Required. The list of rules to evaluate against a data source. At least one
rule is required.
repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getRulesOrBuilderList()
public List<? extends DataQualityRuleOrBuilder> getRulesOrBuilderList()
Required. The list of rules to evaluate against a data source. At least one
rule is required.
repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder> |
|
getSamplingPercent()
public float getSamplingPercent()
Optional. The percentage of the records to be selected from the dataset for
DataScan.
- Value can range between 0.0 and 100.0 with up to 3 significant decimal
digits.
- Sampling is not applied if
sampling_percent is not specified, 0 or
100.
float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
float |
The samplingPercent.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasPostScanActions()
public boolean hasPostScanActions()
Optional. Actions to take upon job completion.
.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the postScanActions field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DataQualitySpec.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected DataQualitySpec.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public DataQualitySpec.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides