Interface TokensInfoOrBuilder (3.37.0)

public interface TokensInfoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getTokenIds(int index)

public abstract long getTokenIds(int index)

A list of token ids from the input.

repeated int64 token_ids = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
long

The tokenIds at the given index.

getTokenIdsCount()

public abstract int getTokenIdsCount()

A list of token ids from the input.

repeated int64 token_ids = 2;

Returns
TypeDescription
int

The count of tokenIds.

getTokenIdsList()

public abstract List<Long> getTokenIdsList()

A list of token ids from the input.

repeated int64 token_ids = 2;

Returns
TypeDescription
List<Long>

A list containing the tokenIds.

getTokens(int index)

public abstract ByteString getTokens(int index)

A list of tokens from the input.

repeated bytes tokens = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ByteString

The tokens at the given index.

getTokensCount()

public abstract int getTokensCount()

A list of tokens from the input.

repeated bytes tokens = 1;

Returns
TypeDescription
int

The count of tokens.

getTokensList()

public abstract List<ByteString> getTokensList()

A list of tokens from the input.

repeated bytes tokens = 1;

Returns
TypeDescription
List<ByteString>

A list containing the tokens.