public int getShapeCount() {
    return shape_.size();
  }
<pre>
Shape of the tensor.
</pre>

<code>repeated int64 shape = 2;</code>

@return The count of shape.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Tensor.java