public int getBoolValCount() {
      return boolVal_.size();
    }
<pre>
Type specific representations that make it easy to create tensor protos in
all languages.  Only the representation corresponding to "dtype" can
be set.  The values hold the flattened representation of the tensor in
row major order.

[BOOL][google.cloud.aiplatform.v1.Tensor.DataType.BOOL]
</pre>

<code>repeated bool bool_val = 3;</code>

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