Class DataQualityRule.SqlAssertion.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataQualityRule.SqlAssertion.Builder>
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion.Builder
All Implemented Interfaces:
DataQualityRule.SqlAssertionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataQualityRule.SqlAssertion

public static final class DataQualityRule.SqlAssertion.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataQualityRule.SqlAssertion.Builder> implements DataQualityRule.SqlAssertionOrBuilder
 A SQL statement that is evaluated to return rows that match an invalid
 state. If any rows are are returned, this rule fails.

 The SQL statement must use [GoogleSQL
 syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax),
 and must not contain any semicolons.

 You can use the data reference parameter `${data()}` to reference the
 source table with all of its precondition filters applied. Examples of
 precondition filters include row filters, incremental data filters, and
 sampling. For more information, see [Data reference
 parameter](https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).

 Example: `SELECT * FROM ${data()} WHERE price < 0`
 
Protobuf type google.cloud.dataplex.v1.DataQualityRule.SqlAssertion
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DataQualityRule.SqlAssertion.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DataQualityRule.SqlAssertion.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DataQualityRule.SqlAssertion.Builder>
    • getDefaultInstanceForType

      public DataQualityRule.SqlAssertion getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DataQualityRule.SqlAssertion buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DataQualityRule.SqlAssertion.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataQualityRule.SqlAssertion.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DataQualityRule.SqlAssertion.Builder>
    • mergeFrom

      public DataQualityRule.SqlAssertion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataQualityRule.SqlAssertion.Builder>
      Throws:
      IOException
    • getSqlStatement

      public String getSqlStatement()
       Optional. The SQL statement.
       
      string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSqlStatement in interface DataQualityRule.SqlAssertionOrBuilder
      Returns:
      The sqlStatement.
    • getSqlStatementBytes

      public com.google.protobuf.ByteString getSqlStatementBytes()
       Optional. The SQL statement.
       
      string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSqlStatementBytes in interface DataQualityRule.SqlAssertionOrBuilder
      Returns:
      The bytes for sqlStatement.
    • setSqlStatement

      public DataQualityRule.SqlAssertion.Builder setSqlStatement(String value)
       Optional. The SQL statement.
       
      string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sqlStatement to set.
      Returns:
      This builder for chaining.
    • clearSqlStatement

      public DataQualityRule.SqlAssertion.Builder clearSqlStatement()
       Optional. The SQL statement.
       
      string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSqlStatementBytes

      public DataQualityRule.SqlAssertion.Builder setSqlStatementBytes(com.google.protobuf.ByteString value)
       Optional. The SQL statement.
       
      string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for sqlStatement to set.
      Returns:
      This builder for chaining.