public Builder setMaxResults(int value) {

      maxResults_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
<pre>
Maximum number of results of this type. Does not apply to
`TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
</pre>

<code>int32 max_results = 2;</code>

@param value The maxResults to set.
@return This builder for chaining.
java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java