@java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.visionai.v1.SchemaKeySortingStrategy.Option)) {
        return super.equals(obj);
      }
      com.google.cloud.visionai.v1.SchemaKeySortingStrategy.Option other =
          (com.google.cloud.visionai.v1.SchemaKeySortingStrategy.Option) obj;

      if (!getDataSchemaKey().equals(other.getDataSchemaKey())) return false;
      if (getSortDecreasing() != other.getSortDecreasing()) return false;
      if (hasAggregateMethod() != other.hasAggregateMethod()) return false;
      if (hasAggregateMethod()) {
        if (aggregateMethod_ != other.aggregateMethod_) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<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