public int getCollectionsCount() {
      if (collectionsBuilder_ == null) {
        return collections_.size();
      } else {
        return collectionsBuilder_.getCount();
      }
    }
<pre>
The collections from the specified corpus.
</pre>

<code>repeated .google.cloud.visionai.v1.Collection collections = 1;</code>
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ListCollectionsResponse.java