Class ListVoicesResponse

java.lang.Object
com.google.genai.gaos.models.voices.ListVoicesResponse

public class ListVoicesResponse extends Object
ListVoicesResponse

Response message for `VoicesService.ListVoices`.

  • Constructor Details

    • ListVoicesResponse

      public ListVoicesResponse(@Nullable String nextPageToken, @Nullable List<VoiceOutput> voices)
    • ListVoicesResponse

      public ListVoicesResponse()
  • Method Details

    • nextPageToken

      public Optional<String> nextPageToken()
      A token that can be sent as `page_token` to retrieve the next page. If empty, there are no subsequent pages.
    • voices

      public Optional<List<VoiceOutput>> voices()
      The voices from the specified collection.
    • builder

      public static ListVoicesResponse.Builder builder()
    • withNextPageToken

      public ListVoicesResponse withNextPageToken(@Nullable String nextPageToken)
      A token that can be sent as `page_token` to retrieve the next page. If empty, there are no subsequent pages.
    • withVoices

      public ListVoicesResponse withVoices(@Nullable List<VoiceOutput> voices)
      The voices from the specified collection.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object