Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::AnswerRecords::Rest::ServiceStub.
REST service stub for the AnswerRecords service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_answer_records
def list_answer_records(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ListAnswerRecordsResponse
Baseline implementation for the list_answer_records REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ListAnswerRecordsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::ListAnswerRecordsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::ListAnswerRecordsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_answer_record
def update_answer_record(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::AnswerRecord
Baseline implementation for the update_answer_record REST call
- request_pb (::Google::Cloud::Dialogflow::V2::UpdateAnswerRecordRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::AnswerRecord)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::AnswerRecord) — A result object deserialized from the server's reply
- (::ArgumentError)