public Builder setAggregateMethod(
          com.google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000004;
        aggregateMethod_ = value.getNumber();
        onChanged();
        return this;
      }
<pre>
Aggregate method for the current data schema key.
</pre>

<code>
optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;
</code>

@param value The aggregateMethod to set.
@return This builder for chaining.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SchemaKeySortingStrategy.java