@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSchemaKey_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataSchemaKey_);
      }
      if (sortDecreasing_ != false) {
        output.writeBool(2, sortDecreasing_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeEnum(3, aggregateMethod_);
      }
      getUnknownFields().writeTo(output);
    }
<pre>
Aggregate method for the current data schema key.
</pre>

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

@return The aggregateMethod.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SchemaKeySortingStrategy.java