namespace Google.Cloud.Dialogflow.V2.Snippets
{
    // [START dialogflow_v2_generated_Documents_GetDocument_sync]
    using Google.Cloud.Dialogflow.V2;

    public sealed partial class GeneratedDocumentsClientSnippets
    {
        /// <summary>Snippet for GetDocument</summary>
        /// <remarks>
        /// This snippet has been automatically generated and should be regarded as a code template only.
        /// It will require modifications to work:
        /// - It may require correct/in-range values for request initialization.
        /// - It may require specifying regional endpoints when creating the service client as shown in
        ///   https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
        /// </remarks>
        public void GetDocumentRequestObject()
        {
            // Create client
            DocumentsClient documentsClient = DocumentsClient.Create();
            // Initialize request argument(s)
            GetDocumentRequest request = new GetDocumentRequest
            {
                DocumentName = DocumentName.FromProjectKnowledgeBaseDocument("[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]"),
            };
            // Make the request
            Document response = documentsClient.GetDocument(request);
        }
    }
    // [END dialogflow_v2_generated_Documents_GetDocument_sync]
}
