public com.google.cloud.visionai.v1.Collection getCollection() {
      if (collectionBuilder_ == null) {
        return collection_ == null
            ? com.google.cloud.visionai.v1.Collection.getDefaultInstance()
            : collection_;
      } else {
        return collectionBuilder_.getMessage();
      }
    }
<pre>
Required. The collection resource to be created.
</pre>

<code>
.google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];
</code>

@return The collection.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CreateCollectionRequest.java