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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collection_);
    }
    if (type_ != com.google.cloud.visionai.v1.CollectionItem.Type.TYPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemResource_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, itemResource_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Required. The name of the CollectionItem. Its format depends on the `type`
above. For ASSET:
`projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}`
</pre>

<code>string item_resource = 3 [(.google.api.field_behavior) = REQUIRED];</code>

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