public Builder mergeFrom(com.google.cloud.vertexai.api.TokensInfo other) {
      if (other == com.google.cloud.vertexai.api.TokensInfo.getDefaultInstance()) return this;
      if (!other.tokens_.isEmpty()) {
        if (tokens_.isEmpty()) {
          tokens_ = other.tokens_;
          tokens_.makeImmutable();
          bitField0_ |= 0x00000001;
        } else {
          ensureTokensIsMutable();
          tokens_.addAll(other.tokens_);
        }
        onChanged();
      }
      if (!other.tokenIds_.isEmpty()) {
        if (tokenIds_.isEmpty()) {
          tokenIds_ = other.tokenIds_;
          tokenIds_.makeImmutable();
          bitField0_ |= 0x00000002;
        } else {
          ensureTokenIdsIsMutable();
          tokenIds_.addAll(other.tokenIds_);
        }
        onChanged();
      }
      if (!other.getRole().isEmpty()) {
        role_ = other.role_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
Tokens info with a list of tokens and the corresponding list of token ids.
</pre>

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