@java.lang.Override
  public com.google.cloud.visionai.v1.CollectionItem.Type getType() {
    com.google.cloud.visionai.v1.CollectionItem.Type result =
        com.google.cloud.visionai.v1.CollectionItem.Type.forNumber(type_);
    return result == null ? com.google.cloud.visionai.v1.CollectionItem.Type.UNRECOGNIZED : result;
  }
<pre>
Required. The type of item.
</pre>

<code>
.google.cloud.visionai.v1.CollectionItem.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
</code>

@return The type.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CollectionItem.java