public Builder mergeFrom(com.google.cloud.vertexai.api.Tensor other) {
      if (other == com.google.cloud.vertexai.api.Tensor.getDefaultInstance()) return this;
      if (other.dtype_ != 0) {
        setDtypeValue(other.getDtypeValue());
      }
      if (!other.shape_.isEmpty()) {
        if (shape_.isEmpty()) {
          shape_ = other.shape_;
          shape_.makeImmutable();
          bitField0_ |= 0x00000002;
        } else {
          ensureShapeIsMutable();
          shape_.addAll(other.shape_);
        }
        onChanged();
      }
      if (!other.boolVal_.isEmpty()) {
        if (boolVal_.isEmpty()) {
          boolVal_ = other.boolVal_;
          boolVal_.makeImmutable();
          bitField0_ |= 0x00000004;
        } else {
          ensureBoolValIsMutable();
          boolVal_.addAll(other.boolVal_);
        }
        onChanged();
      }
      if (!other.stringVal_.isEmpty()) {
        if (stringVal_.isEmpty()) {
          stringVal_ = other.stringVal_;
          bitField0_ |= 0x00000008;
        } else {
          ensureStringValIsMutable();
          stringVal_.addAll(other.stringVal_);
        }
        onChanged();
      }
      if (!other.bytesVal_.isEmpty()) {
        if (bytesVal_.isEmpty()) {
          bytesVal_ = other.bytesVal_;
          bytesVal_.makeImmutable();
          bitField0_ |= 0x00000010;
        } else {
          ensureBytesValIsMutable();
          bytesVal_.addAll(other.bytesVal_);
        }
        onChanged();
      }
      if (!other.floatVal_.isEmpty()) {
        if (floatVal_.isEmpty()) {
          floatVal_ = other.floatVal_;
          floatVal_.makeImmutable();
          bitField0_ |= 0x00000020;
        } else {
          ensureFloatValIsMutable();
          floatVal_.addAll(other.floatVal_);
        }
        onChanged();
      }
      if (!other.doubleVal_.isEmpty()) {
        if (doubleVal_.isEmpty()) {
          doubleVal_ = other.doubleVal_;
          doubleVal_.makeImmutable();
          bitField0_ |= 0x00000040;
        } else {
          ensureDoubleValIsMutable();
          doubleVal_.addAll(other.doubleVal_);
        }
        onChanged();
      }
      if (!other.intVal_.isEmpty()) {
        if (intVal_.isEmpty()) {
          intVal_ = other.intVal_;
          intVal_.makeImmutable();
          bitField0_ |= 0x00000080;
        } else {
          ensureIntValIsMutable();
          intVal_.addAll(other.intVal_);
        }
        onChanged();
      }
      if (!other.int64Val_.isEmpty()) {
        if (int64Val_.isEmpty()) {
          int64Val_ = other.int64Val_;
          int64Val_.makeImmutable();
          bitField0_ |= 0x00000100;
        } else {
          ensureInt64ValIsMutable();
          int64Val_.addAll(other.int64Val_);
        }
        onChanged();
      }
      if (!other.uintVal_.isEmpty()) {
        if (uintVal_.isEmpty()) {
          uintVal_ = other.uintVal_;
          uintVal_.makeImmutable();
          bitField0_ |= 0x00000200;
        } else {
          ensureUintValIsMutable();
          uintVal_.addAll(other.uintVal_);
        }
        onChanged();
      }
      if (!other.uint64Val_.isEmpty()) {
        if (uint64Val_.isEmpty()) {
          uint64Val_ = other.uint64Val_;
          uint64Val_.makeImmutable();
          bitField0_ |= 0x00000400;
        } else {
          ensureUint64ValIsMutable();
          uint64Val_.addAll(other.uint64Val_);
        }
        onChanged();
      }
      if (listValBuilder_ == null) {
        if (!other.listVal_.isEmpty()) {
          if (listVal_.isEmpty()) {
            listVal_ = other.listVal_;
            bitField0_ = (bitField0_ & ~0x00000800);
          } else {
            ensureListValIsMutable();
            listVal_.addAll(other.listVal_);
          }
          onChanged();
        }
      } else {
        if (!other.listVal_.isEmpty()) {
          if (listValBuilder_.isEmpty()) {
            listValBuilder_.dispose();
            listValBuilder_ = null;
            listVal_ = other.listVal_;
            bitField0_ = (bitField0_ & ~0x00000800);
            listValBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getListValFieldBuilder()
                    : null;
          } else {
            listValBuilder_.addAllMessages(other.listVal_);
          }
        }
      }
      internalGetMutableStructVal().mergeFrom(other.internalGetStructVal());
      bitField0_ |= 0x00001000;
      if (other.getTensorVal() != com.google.protobuf.ByteString.EMPTY) {
        setTensorVal(other.getTensorVal());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
A tensor value type.
</pre>

Protobuf type {@code google.cloud.vertexai.v1.Tensor}
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Tensor.java