public Builder setPages(int index, int value) {

      ensurePagesIsMutable();
      pages_.setInt(index, value);
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
<pre>
Pages of the file to perform image annotation.

Pages starts from 1, we assume the first page of the file is page 1.
At most 5 pages are supported per request. Pages can be negative.

Page 1 means the first page.
Page 2 means the second page.
Page -1 means the last page.
Page -2 means the second to the last page.

If the file is GIF instead of PDF or TIFF, page refers to GIF frames.

If this field is empty, by default the service performs image annotation
for the first 5 pages of the file.
</pre>

<code>repeated int32 pages = 4;</code>

@param index The index to set the value at.
@param value The pages to set.
@return This builder for chaining.
java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileRequest.java