Class DataQualityRule.SetExpectation.Builder

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

public static final class DataQualityRule.SetExpectation.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataQualityRule.SetExpectation.Builder> implements DataQualityRule.SetExpectationOrBuilder
 Evaluates whether each column value is contained by a specified set.
 
Protobuf type google.cloud.dataplex.v1.DataQualityRule.SetExpectation
  • 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.SetExpectation.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.SetExpectation.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.SetExpectation.Builder>
    • getDefaultInstanceForType

      public DataQualityRule.SetExpectation 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.SetExpectation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DataQualityRule.SetExpectation.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.SetExpectation.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.SetExpectation.Builder>
    • mergeFrom

      public DataQualityRule.SetExpectation.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.SetExpectation.Builder>
      Throws:
      IOException
    • getValuesList

      public com.google.protobuf.ProtocolStringList getValuesList()
       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValuesList in interface DataQualityRule.SetExpectationOrBuilder
      Returns:
      A list containing the values.
    • getValuesCount

      public int getValuesCount()
       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValuesCount in interface DataQualityRule.SetExpectationOrBuilder
      Returns:
      The count of values.
    • getValues

      public String getValues(int index)
       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValues in interface DataQualityRule.SetExpectationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.
    • getValuesBytes

      public com.google.protobuf.ByteString getValuesBytes(int index)
       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValuesBytes in interface DataQualityRule.SetExpectationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the values at the given index.
    • setValues

      public DataQualityRule.SetExpectation.Builder setValues(int index, String value)
       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The values to set.
      Returns:
      This builder for chaining.
    • addValues

       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The values to add.
      Returns:
      This builder for chaining.
    • addAllValues

       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The values to add.
      Returns:
      This builder for chaining.
    • clearValues

       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addValuesBytes

      public DataQualityRule.SetExpectation.Builder addValuesBytes(com.google.protobuf.ByteString value)
       Optional. Expected values for the column value.
       
      repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the values to add.
      Returns:
      This builder for chaining.