/// <summary>Snippet for GetTopicConstantAsync</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 GetTopicConstantAsync()
        {
            // Create client
            TopicConstantServiceClient topicConstantServiceClient = await TopicConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "topicConstants/[TOPIC_CONSTANT]";
            // Make the request
            TopicConstant response = await topicConstantServiceClient.GetTopicConstantAsync(resourceName);
        }
Esempio n. 2
0
        /// <summary>Snippet for GetTopicConstantAsync</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 GetTopicConstantResourceNamesAsync()
        {
            // Create client
            TopicConstantServiceClient topicConstantServiceClient = await TopicConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            TopicConstantName resourceName = TopicConstantName.FromTopic("[TOPIC_ID]");
            // Make the request
            TopicConstant response = await topicConstantServiceClient.GetTopicConstantAsync(resourceName);
        }
        /// <summary>Snippet for GetTopicConstantAsync</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 GetTopicConstantRequestObjectAsync()
        {
            // Create client
            TopicConstantServiceClient topicConstantServiceClient = await TopicConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetTopicConstantRequest request = new GetTopicConstantRequest
            {
                ResourceNameAsTopicConstantName = TopicConstantName.FromTopicConstant("[TOPIC_CONSTANT]"),
            };
            // Make the request
            TopicConstant response = await topicConstantServiceClient.GetTopicConstantAsync(request);
        }
Esempio n. 4
0
        /// <summary>Snippet for GetTopicConstantAsync</summary>
        public async Task GetTopicConstantAsync()
        {
            // Snippet: GetTopicConstantAsync(string, CallSettings)
            // Additional: GetTopicConstantAsync(string, CancellationToken)
            // Create client
            TopicConstantServiceClient topicConstantServiceClient = await TopicConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "topicConstants/[TOPIC_CONSTANT]";
            // Make the request
            TopicConstant response = await topicConstantServiceClient.GetTopicConstantAsync(resourceName);

            // End snippet
        }
Esempio n. 5
0
        /// <summary>Snippet for GetTopicConstantAsync</summary>
        public async Task GetTopicConstantResourceNamesAsync()
        {
            // Snippet: GetTopicConstantAsync(TopicConstantName, CallSettings)
            // Additional: GetTopicConstantAsync(TopicConstantName, CancellationToken)
            // Create client
            TopicConstantServiceClient topicConstantServiceClient = await TopicConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            TopicConstantName resourceName = TopicConstantName.FromTopic("[TOPIC_ID]");
            // Make the request
            TopicConstant response = await topicConstantServiceClient.GetTopicConstantAsync(resourceName);

            // End snippet
        }
Esempio n. 6
0
        /// <summary>Snippet for GetTopicConstantAsync</summary>
        public async Task GetTopicConstantRequestObjectAsync()
        {
            // Snippet: GetTopicConstantAsync(GetTopicConstantRequest, CallSettings)
            // Additional: GetTopicConstantAsync(GetTopicConstantRequest, CancellationToken)
            // Create client
            TopicConstantServiceClient topicConstantServiceClient = await TopicConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetTopicConstantRequest request = new GetTopicConstantRequest
            {
                ResourceNameAsTopicConstantName = TopicConstantName.FromTopicConstant("[TOPIC_CONSTANT]"),
            };
            // Make the request
            TopicConstant response = await topicConstantServiceClient.GetTopicConstantAsync(request);

            // End snippet
        }