@java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj
          instanceof com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation)) {
        return super.equals(obj);
      }
      com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation other =
          (com.google.cloud.vertexai.api.SpeculativeDecodingSpec.NgramSpeculation) obj;

      if (getNgramSize() != other.getNgramSize()) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
The number of last N input tokens used as ngram to search/match
against the previous prompt sequence.
This is equal to the N in N-Gram.
The default value is 3 if not specified.
</pre>

<code>int32 ngram_size = 1;</code>

@return The ngramSize.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SpeculativeDecodingSpec.java