public Builder setBoolVal(int index, boolean value) {

      ensureBoolValIsMutable();
      boolVal_.setBoolean(index, value);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
<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>

@param index The index to set the value at.
@param value The boolVal to set.
@return This builder for chaining.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Tensor.java