Interface TokensInfoOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
TokensInfo, TokensInfo.Builder

@Generated public interface TokensInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional.
    com.google.protobuf.ByteString
    Optional.
    long
    getTokenIds(int index)
    A list of token ids from the input.
    int
    A list of token ids from the input.
    A list of token ids from the input.
    com.google.protobuf.ByteString
    getTokens(int index)
    A list of tokens from the input.
    int
    A list of tokens from the input.
    List<com.google.protobuf.ByteString>
    A list of tokens from the input.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getTokensList

      List<com.google.protobuf.ByteString> getTokensList()
       A list of tokens from the input.
       
      repeated bytes tokens = 1;
      Returns:
      A list containing the tokens.
    • getTokensCount

      int getTokensCount()
       A list of tokens from the input.
       
      repeated bytes tokens = 1;
      Returns:
      The count of tokens.
    • getTokens

      com.google.protobuf.ByteString getTokens(int index)
       A list of tokens from the input.
       
      repeated bytes tokens = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The tokens at the given index.
    • getTokenIdsList

      List<Long> getTokenIdsList()
       A list of token ids from the input.
       
      repeated int64 token_ids = 2;
      Returns:
      A list containing the tokenIds.
    • getTokenIdsCount

      int getTokenIdsCount()
       A list of token ids from the input.
       
      repeated int64 token_ids = 2;
      Returns:
      The count of tokenIds.
    • getTokenIds

      long getTokenIds(int index)
       A list of token ids from the input.
       
      repeated int64 token_ids = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The tokenIds at the given index.
    • getRole

      String getRole()
       Optional. Optional fields for the role from the corresponding Content.
       
      string role = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The role.
    • getRoleBytes

      com.google.protobuf.ByteString getRoleBytes()
       Optional. Optional fields for the role from the corresponding Content.
       
      string role = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for role.