public static final class DataQualityRule.SqlAssertion extends GeneratedMessageV3 implements DataQualityRule.SqlAssertionOrBuilder
Queries for rows returned by the provided SQL statement. If any rows are
are returned, this rule fails.
The SQL statement needs to use BigQuery standard SQL syntax, and must not
contain any semicolons.
${data()} can be used to reference the rows being evaluated, i.e. the table
after all additional filters (row filters, incremental data filters,
sampling) are applied.
Example: SELECT * FROM ${data()} WHERE price < 0
Protobuf type google.cloud.dataplex.v1.DataQualityRule.SqlAssertion
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
SQL_STATEMENT_FIELD_NUMBER
public static final int SQL_STATEMENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DataQualityRule.SqlAssertion getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DataQualityRule.SqlAssertion.Builder newBuilder()
newBuilder(DataQualityRule.SqlAssertion prototype)
public static DataQualityRule.SqlAssertion.Builder newBuilder(DataQualityRule.SqlAssertion prototype)
public static DataQualityRule.SqlAssertion parseDelimitedFrom(InputStream input)
public static DataQualityRule.SqlAssertion parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DataQualityRule.SqlAssertion parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DataQualityRule.SqlAssertion parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DataQualityRule.SqlAssertion parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataQualityRule.SqlAssertion parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataQualityRule.SqlAssertion parseFrom(CodedInputStream input)
public static DataQualityRule.SqlAssertion parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DataQualityRule.SqlAssertion parseFrom(InputStream input)
public static DataQualityRule.SqlAssertion parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DataQualityRule.SqlAssertion parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DataQualityRule.SqlAssertion parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DataQualityRule.SqlAssertion> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public DataQualityRule.SqlAssertion getDefaultInstanceForType()
getParserForType()
public Parser<DataQualityRule.SqlAssertion> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSqlStatement()
public String getSqlStatement()
Optional. The SQL statement.
string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The sqlStatement.
|
getSqlStatementBytes()
public ByteString getSqlStatementBytes()
Optional. The SQL statement.
string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for sqlStatement.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DataQualityRule.SqlAssertion.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DataQualityRule.SqlAssertion.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public DataQualityRule.SqlAssertion.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides