/// <summary>Snippet for GetCall</summary>
 public void GetCallResourceNames()
 {
     // Snippet: GetCall(CallName, CallSettings)
     // Create client
     CallsClient callsClient = CallsClient.Create();
     // Initialize request argument(s)
     CallName name = CallName.FromProjectCall("[PROJECT]", "[CALL]");
     // Make the request
     Call response = callsClient.GetCall(name);
     // End snippet
 }
 /// <summary>Snippet for GetCall</summary>
 public void GetCall()
 {
     // Snippet: GetCall(string, CallSettings)
     // Create client
     CallsClient callsClient = CallsClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/calls/[CALL]";
     // Make the request
     Call response = callsClient.GetCall(name);
     // End snippet
 }
 /// <summary>Snippet for CreateCall</summary>
 public void CreateCallResourceNames()
 {
     // Snippet: CreateCall(ProjectName, Call, CallSettings)
     // Create client
     CallsClient callsClient = CallsClient.Create();
     // Initialize request argument(s)
     ProjectName parent = ProjectName.FromProject("[PROJECT]");
     Call        call   = new Call();
     // Make the request
     Call response = callsClient.CreateCall(parent, call);
     // End snippet
 }
 /// <summary>Snippet for CreateCall</summary>
 public void CreateCall()
 {
     // Snippet: CreateCall(string, Call, CallSettings)
     // Create client
     CallsClient callsClient = CallsClient.Create();
     // Initialize request argument(s)
     string parent = "projects/[PROJECT]";
     Call   call   = new Call();
     // Make the request
     Call response = callsClient.CreateCall(parent, call);
     // End snippet
 }
 /// <summary>Snippet for GetCall</summary>
 public void GetCallRequestObject()
 {
     // Snippet: GetCall(GetCallRequest, CallSettings)
     // Create client
     CallsClient callsClient = CallsClient.Create();
     // Initialize request argument(s)
     GetCallRequest request = new GetCallRequest
     {
         CallName = CallName.FromProjectCall("[PROJECT]", "[CALL]"),
     };
     // Make the request
     Call response = callsClient.GetCall(request);
     // End snippet
 }
 /// <summary>Snippet for CreateCall</summary>
 public void CreateCallRequestObject()
 {
     // Snippet: CreateCall(CreateCallRequest, CallSettings)
     // Create client
     CallsClient callsClient = CallsClient.Create();
     // Initialize request argument(s)
     CreateCallRequest request = new CreateCallRequest
     {
         ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
         Call = new Call(),
     };
     // Make the request
     Call response = callsClient.CreateCall(request);
     // End snippet
 }
        /// <summary>Snippet for ListCalls</summary>
        public void ListCallsRequestObject()
        {
            // Snippet: ListCalls(ListCallsRequest, CallSettings)
            // Create client
            CallsClient callsClient = CallsClient.Create();
            // Initialize request argument(s)
            ListCallsRequest request = new ListCallsRequest
            {
                ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
                Filter = "",
            };
            // Make the request
            PagedEnumerable <ListCallsResponse, Call> response = callsClient.ListCalls(request);

            // Iterate over all response items, lazily performing RPCs as required
            foreach (Call item in response)
            {
                // Do something with each item
                Console.WriteLine(item);
            }

            // Or iterate over pages (of server-defined size), performing one RPC per page
            foreach (ListCallsResponse page in response.AsRawResponses())
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Call item in page)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
            }

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int         pageSize   = 10;
            Page <Call> singlePage = response.ReadPage(pageSize);

            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (Call item in singlePage)
            {
                // Do something with each item
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
            // End snippet
        }