Class SchemaKeySortingStrategy.Option.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SchemaKeySortingStrategy.Option.Builder>
com.google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.Builder
All Implemented Interfaces:
SchemaKeySortingStrategy.OptionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SchemaKeySortingStrategy.Option

public static final class SchemaKeySortingStrategy.Option.Builder extends com.google.protobuf.GeneratedMessage.Builder<SchemaKeySortingStrategy.Option.Builder> implements SchemaKeySortingStrategy.OptionOrBuilder
 Option for one data schema key.
 
Protobuf type google.cloud.visionai.v1.SchemaKeySortingStrategy.Option
  • 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<SchemaKeySortingStrategy.Option.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<SchemaKeySortingStrategy.Option.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<SchemaKeySortingStrategy.Option.Builder>
    • getDefaultInstanceForType

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

      public SchemaKeySortingStrategy.Option.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<SchemaKeySortingStrategy.Option.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<SchemaKeySortingStrategy.Option.Builder>
    • mergeFrom

      public SchemaKeySortingStrategy.Option.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<SchemaKeySortingStrategy.Option.Builder>
      Throws:
      IOException
    • getDataSchemaKey

      public String getDataSchemaKey()
       The data used to sort.
       
      string data_schema_key = 1;
      Specified by:
      getDataSchemaKey in interface SchemaKeySortingStrategy.OptionOrBuilder
      Returns:
      The dataSchemaKey.
    • getDataSchemaKeyBytes

      public com.google.protobuf.ByteString getDataSchemaKeyBytes()
       The data used to sort.
       
      string data_schema_key = 1;
      Specified by:
      getDataSchemaKeyBytes in interface SchemaKeySortingStrategy.OptionOrBuilder
      Returns:
      The bytes for dataSchemaKey.
    • setDataSchemaKey

      public SchemaKeySortingStrategy.Option.Builder setDataSchemaKey(String value)
       The data used to sort.
       
      string data_schema_key = 1;
      Parameters:
      value - The dataSchemaKey to set.
      Returns:
      This builder for chaining.
    • clearDataSchemaKey

      public SchemaKeySortingStrategy.Option.Builder clearDataSchemaKey()
       The data used to sort.
       
      string data_schema_key = 1;
      Returns:
      This builder for chaining.
    • setDataSchemaKeyBytes

      public SchemaKeySortingStrategy.Option.Builder setDataSchemaKeyBytes(com.google.protobuf.ByteString value)
       The data used to sort.
       
      string data_schema_key = 1;
      Parameters:
      value - The bytes for dataSchemaKey to set.
      Returns:
      This builder for chaining.
    • getSortDecreasing

      public boolean getSortDecreasing()
       Whether to sort in decreasing order or increasing order.
       By default, results are sorted in incresing order.
       
      bool sort_decreasing = 2;
      Specified by:
      getSortDecreasing in interface SchemaKeySortingStrategy.OptionOrBuilder
      Returns:
      The sortDecreasing.
    • setSortDecreasing

      public SchemaKeySortingStrategy.Option.Builder setSortDecreasing(boolean value)
       Whether to sort in decreasing order or increasing order.
       By default, results are sorted in incresing order.
       
      bool sort_decreasing = 2;
      Parameters:
      value - The sortDecreasing to set.
      Returns:
      This builder for chaining.
    • clearSortDecreasing

      public SchemaKeySortingStrategy.Option.Builder clearSortDecreasing()
       Whether to sort in decreasing order or increasing order.
       By default, results are sorted in incresing order.
       
      bool sort_decreasing = 2;
      Returns:
      This builder for chaining.
    • hasAggregateMethod

      public boolean hasAggregateMethod()
       Aggregate method for the current data schema key.
       
      optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;
      Specified by:
      hasAggregateMethod in interface SchemaKeySortingStrategy.OptionOrBuilder
      Returns:
      Whether the aggregateMethod field is set.
    • getAggregateMethodValue

      public int getAggregateMethodValue()
       Aggregate method for the current data schema key.
       
      optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;
      Specified by:
      getAggregateMethodValue in interface SchemaKeySortingStrategy.OptionOrBuilder
      Returns:
      The enum numeric value on the wire for aggregateMethod.
    • setAggregateMethodValue

      public SchemaKeySortingStrategy.Option.Builder setAggregateMethodValue(int value)
       Aggregate method for the current data schema key.
       
      optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;
      Parameters:
      value - The enum numeric value on the wire for aggregateMethod to set.
      Returns:
      This builder for chaining.
    • getAggregateMethod

       Aggregate method for the current data schema key.
       
      optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;
      Specified by:
      getAggregateMethod in interface SchemaKeySortingStrategy.OptionOrBuilder
      Returns:
      The aggregateMethod.
    • setAggregateMethod

       Aggregate method for the current data schema key.
       
      optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;
      Parameters:
      value - The aggregateMethod to set.
      Returns:
      This builder for chaining.
    • clearAggregateMethod

      public SchemaKeySortingStrategy.Option.Builder clearAggregateMethod()
       Aggregate method for the current data schema key.
       
      optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;
      Returns:
      This builder for chaining.