Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Agents::Rest::ServiceStub.
REST service stub for the Agents service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#delete_agent
def delete_agent(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_agent REST call
- request_pb (::Google::Cloud::Dialogflow::V2::DeleteAgentRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#export_agent
def export_agent(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the export_agent REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ExportAgentRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_agent
def get_agent(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::Agent
Baseline implementation for the get_agent REST call
- request_pb (::Google::Cloud::Dialogflow::V2::GetAgentRequest) — 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::Agent)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::Agent) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_validation_result
def get_validation_result(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ValidationResult
Baseline implementation for the get_validation_result REST call
- request_pb (::Google::Cloud::Dialogflow::V2::GetValidationResultRequest) — 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::ValidationResult)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::ValidationResult) — A result object deserialized from the server's reply
- (::ArgumentError)
#import_agent
def import_agent(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the import_agent REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ImportAgentRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#restore_agent
def restore_agent(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the restore_agent REST call
- request_pb (::Google::Cloud::Dialogflow::V2::RestoreAgentRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#search_agents
def search_agents(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::SearchAgentsResponse
Baseline implementation for the search_agents REST call
- request_pb (::Google::Cloud::Dialogflow::V2::SearchAgentsRequest) — 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::SearchAgentsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::SearchAgentsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_agent
def set_agent(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::Agent
Baseline implementation for the set_agent REST call
- request_pb (::Google::Cloud::Dialogflow::V2::SetAgentRequest) — 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::Agent)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::Agent) — A result object deserialized from the server's reply
- (::ArgumentError)
#train_agent
def train_agent(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the train_agent REST call
- request_pb (::Google::Cloud::Dialogflow::V2::TrainAgentRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)