BigQuery Data QnA V1alpha API - Class Google::Cloud::DataQnA::V1alpha::QuestionService::Rest::ServiceStub (v0.13.2)

Reference documentation and code samples for the BigQuery Data QnA V1alpha API class Google::Cloud::DataQnA::V1alpha::QuestionService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_question

def create_question(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataQnA::V1alpha::Question

Baseline implementation for the create_question 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)

#execute_question

def execute_question(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataQnA::V1alpha::Question

Baseline implementation for the execute_question REST call

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

#get_question

def get_question(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataQnA::V1alpha::Question

Baseline implementation for the get_question REST call

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

#get_user_feedback

def get_user_feedback(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataQnA::V1alpha::UserFeedback

Baseline implementation for the get_user_feedback 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)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_user_feedback

def update_user_feedback(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataQnA::V1alpha::UserFeedback

Baseline implementation for the update_user_feedback REST call

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