Gemini Enterprise for Customer Experience V1BETA API - Class Google::Cloud::Ces::V1beta::AssistantService::Rest::ServiceStub (v1.2.0)

Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::AssistantService::Rest::ServiceStub.

REST service stub for the AssistantService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#chat_ai_assistant

def chat_ai_assistant(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Ces::V1beta::ChatAiAssistantResponse

Baseline implementation for the chat_ai_assistant REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_assistant_session

def create_assistant_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Ces::V1beta::AssistantSession

Baseline implementation for the create_assistant_session REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_assistant_session

def delete_assistant_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_assistant_session REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_assistant_session

def get_assistant_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Ces::V1beta::AssistantSession

Baseline implementation for the get_assistant_session REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_assistant_sessions

def list_assistant_sessions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Ces::V1beta::ListAssistantSessionsResponse

Baseline implementation for the list_assistant_sessions REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#run_assistant

def run_assistant(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Ces::V1beta::RunAssistantResponse

Baseline implementation for the run_assistant REST call

Parameters
  • request_pb (::Google::Cloud::Ces::V1beta::RunAssistantRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)