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, @Nullable Boolean includeInput, @Nonnull String id, @Nullable String lastEventId, @Nullable Boolean stream)
    • GetInteractionByIdRequest

      public GetInteractionByIdRequest(@Nonnull String id)
  • Method Details

    • apiVersion

      public Optional<String> apiVersion()
      API version for request routing.
    • includeInput

      public Optional<Boolean> includeInput()
      If true, includes the input in the response.
    • id

      public Optional<String> id()
      Required. The name of the interaction to retrieve.
    • lastEventId

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

      public Optional<Boolean> stream()
      If true, streams the interaction events as Server-Sent Events.
    • builder

      public static GetInteractionByIdRequest.Builder builder()
    • withApiVersion

      public GetInteractionByIdRequest withApiVersion(@Nullable String apiVersion)
      API version for request routing.
    • withIncludeInput

      public GetInteractionByIdRequest withIncludeInput(@Nullable Boolean includeInput)
      If true, includes the input in the response.
    • withId

      public GetInteractionByIdRequest withId(@Nonnull String id)
      Required. The name of the interaction to retrieve.
    • withLastEventId

      public GetInteractionByIdRequest withLastEventId(@Nullable String lastEventId)
      If set, resumes the interaction stream from the 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 true, streams the interaction events as Server-Sent Events.
    • 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