/// <summary>Snippet for ListModelsAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task ListModelsAsync()
        {
            // Create client
            ModelServiceClient modelServiceClient = await ModelServiceClient.CreateAsync();

            // Initialize request argument(s)
            string projectId  = "";
            string datasetId  = "";
            uint?  maxResults = 0U;
            // Make the request
            ListModelsResponse response = await modelServiceClient.ListModelsAsync(projectId, datasetId, maxResults);
        }
        /// <summary>Snippet for ListModelsAsync</summary>
        public async Task ListModelsAsync()
        {
            // Snippet: ListModelsAsync(string, string, uint?, CallSettings)
            // Additional: ListModelsAsync(string, string, uint?, CancellationToken)
            // Create client
            ModelServiceClient modelServiceClient = await ModelServiceClient.CreateAsync();

            // Initialize request argument(s)
            string projectId  = "";
            string datasetId  = "";
            uint?  maxResults = 0U;
            // Make the request
            ListModelsResponse response = await modelServiceClient.ListModelsAsync(projectId, datasetId, maxResults);

            // End snippet
        }
Exemplo n.º 3
0
        /// <summary>Snippet for ListModelsAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task ListModelsRequestObjectAsync()
        {
            // Create client
            ModelServiceClient modelServiceClient = await ModelServiceClient.CreateAsync();

            // Initialize request argument(s)
            ListModelsRequest request = new ListModelsRequest
            {
                ProjectId  = "",
                DatasetId  = "",
                MaxResults = 0U,
                PageToken  = "",
            };
            // Make the request
            ListModelsResponse response = await modelServiceClient.ListModelsAsync(request);
        }
        /// <summary>Snippet for ListModelsAsync</summary>
        public async Task ListModelsRequestObjectAsync()
        {
            // Snippet: ListModelsAsync(ListModelsRequest, CallSettings)
            // Additional: ListModelsAsync(ListModelsRequest, CancellationToken)
            // Create client
            ModelServiceClient modelServiceClient = await ModelServiceClient.CreateAsync();

            // Initialize request argument(s)
            ListModelsRequest request = new ListModelsRequest
            {
                ProjectId  = "",
                DatasetId  = "",
                MaxResults = 0U,
                PageToken  = "",
            };
            // Make the request
            ListModelsResponse response = await modelServiceClient.ListModelsAsync(request);

            // End snippet
        }