Class GetInteractionByIdRequest

java.lang.Object
com.google.genai.gaos.models.operations.GetInteractionByIdRequest

public class GetInteractionByIdRequest extends Object
  • Constructor Details

    • GetInteractionByIdRequest

      public GetInteractionByIdRequest(@Nullable String apiVersion, @Nonnull String id, @Nullable Boolean includeInput, @Nullable String lastEventId, @Nullable Boolean stream)
    • GetInteractionByIdRequest

      public GetInteractionByIdRequest(@Nonnull String id)
  • Method Details

    • apiVersion

      public Optional<String> apiVersion()
      Which version of the API to use.
    • id

      public Optional<String> id()
      The unique identifier of the interaction to retrieve.
    • includeInput

      @Deprecated public Optional<Boolean> includeInput()
      Deprecated.
      field: This will be removed in a future release, please migrate away from it as soon as possible.
      If set to true, includes the input in the response.
    • lastEventId

      public Optional<String> lastEventId()
      Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.
    • stream

      public Optional<Boolean> stream()
      If set to true, the generated content will be streamed incrementally.
    • builder

      public static GetInteractionByIdRequest.Builder builder()
    • withApiVersion

      public GetInteractionByIdRequest withApiVersion(@Nullable String apiVersion)
      Which version of the API to use.
    • withId

      public GetInteractionByIdRequest withId(@Nonnull String id)
      The unique identifier of the interaction to retrieve.
    • withIncludeInput

      @Deprecated public GetInteractionByIdRequest withIncludeInput(@Nullable Boolean includeInput)
      Deprecated.
      field: This will be removed in a future release, please migrate away from it as soon as possible.
      If set to true, includes the input in the response.
    • withLastEventId

      public GetInteractionByIdRequest withLastEventId(@Nullable String lastEventId)
      Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.
    • withStream

      public GetInteractionByIdRequest withStream(@Nullable Boolean stream)
      If set to true, the generated content will be streamed incrementally.
    • 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