@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
    }
    if (pageSize_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Optional. The filter applied to the returned list.
We only support filtering for the `deployed_image_index.image_index` field.
However, to filter by a corpus instead of an image index, simply use
`deployed_image_index.corpus`, which will return all endpoints with
`deployed_image_index.image_index` inside of the given corpus.
A basic filter on image index would look like:
  deployed_image_index.image_index =
    "projects/123/locations/us-central1/corpora/my_corpus/imageIndexes/my_image_index"
A basic filter on corpus would look like:
  deployed_image_index.corpus =
    "projects/123/locations/us-central1/corpora/my_corpus"
</pre>

<code>string filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The bytes for filter.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ListIndexEndpointsRequest.java