Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Documents::Rest::ServiceStub.
REST service stub for the Documents service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
 
Methods
#create_document
def create_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::OperationBaseline implementation for the create_document REST call
- request_pb (::Google::Cloud::Dialogflow::V2::CreateDocumentRequest) — 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)
 
#delete_document
def delete_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::OperationBaseline implementation for the delete_document REST call
- request_pb (::Google::Cloud::Dialogflow::V2::DeleteDocumentRequest) — 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)
 
#endpoint
def endpoint() -> StringThe effective endpoint
- (String)
 
#export_document
def export_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::OperationBaseline implementation for the export_document REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ExportDocumentRequest) — 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_document
def get_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::DocumentBaseline implementation for the get_document REST call
- request_pb (::Google::Cloud::Dialogflow::V2::GetDocumentRequest) — 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::Document)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Dialogflow::V2::Document) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#import_documents
def import_documents(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::OperationBaseline implementation for the import_documents REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ImportDocumentsRequest) — 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)
 
#list_documents
def list_documents(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ListDocumentsResponseBaseline implementation for the list_documents REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ListDocumentsRequest) — 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::ListDocumentsResponse)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Dialogflow::V2::ListDocumentsResponse) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#logger
def logger(stub: false) -> LoggerThe logger used for request/response debug logging.
- (Logger)
 
#reload_document
def reload_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::OperationBaseline implementation for the reload_document REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ReloadDocumentRequest) — 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)
 
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
 
#update_document
def update_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::OperationBaseline implementation for the update_document REST call
- request_pb (::Google::Cloud::Dialogflow::V2::UpdateDocumentRequest) — 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)