public void Get()
        {
            moq::Mock <GlobalPublicDelegatedPrefixes.GlobalPublicDelegatedPrefixesClient> mockGrpcClient = new moq::Mock <GlobalPublicDelegatedPrefixes.GlobalPublicDelegatedPrefixesClient>(moq::MockBehavior.Strict);
            GetGlobalPublicDelegatedPrefixeRequest request = new GetGlobalPublicDelegatedPrefixeRequest
            {
                PublicDelegatedPrefix = "public_delegated_prefixff04d704",
                Project = "projectaa6ff846",
            };
            PublicDelegatedPrefix expectedResponse = new PublicDelegatedPrefix
            {
                Id                        = 11672635353343658936UL,
                Kind                      = "kindf7aa39d9",
                Name                      = "name1c9368b0",
                ParentPrefix              = "parent_prefix33eed533",
                CreationTimestamp         = "creation_timestamp235e59a1",
                IpCidrRange               = "ip_cidr_range745a04d3",
                Region                    = "regionedb20d96",
                Status                    = PublicDelegatedPrefix.Types.Status.Deleting,
                PublicDelegatedSubPrefixs =
                {
                    new PublicDelegatedPrefixPublicDelegatedSubPrefix(),
                },
                Fingerprint     = "fingerprint009e6052",
                Description     = "description2cf9da67",
                SelfLink        = "self_link7e87f12d",
                IsLiveMigration = true,
            };

            mockGrpcClient.Setup(x => x.Get(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            GlobalPublicDelegatedPrefixesClient client = new GlobalPublicDelegatedPrefixesClientImpl(mockGrpcClient.Object, null);
            PublicDelegatedPrefix response             = client.Get(request.Project, request.PublicDelegatedPrefix);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
 /// <summary>Snippet for Get</summary>
 public void GetRequestObject()
 {
     // Snippet: Get(GetGlobalPublicDelegatedPrefixeRequest, CallSettings)
     // Create client
     GlobalPublicDelegatedPrefixesClient globalPublicDelegatedPrefixesClient = GlobalPublicDelegatedPrefixesClient.Create();
     // Initialize request argument(s)
     GetGlobalPublicDelegatedPrefixeRequest request = new GetGlobalPublicDelegatedPrefixeRequest
     {
         PublicDelegatedPrefix = "",
         Project = "",
     };
     // Make the request
     PublicDelegatedPrefix response = globalPublicDelegatedPrefixesClient.Get(request);
     // End snippet
 }
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetGlobalPublicDelegatedPrefixeRequest, CallSettings)
            // Additional: GetAsync(GetGlobalPublicDelegatedPrefixeRequest, CancellationToken)
            // Create client
            GlobalPublicDelegatedPrefixesClient globalPublicDelegatedPrefixesClient = await GlobalPublicDelegatedPrefixesClient.CreateAsync();

            // Initialize request argument(s)
            GetGlobalPublicDelegatedPrefixeRequest request = new GetGlobalPublicDelegatedPrefixeRequest
            {
                PublicDelegatedPrefix = "",
                Project = "",
            };
            // Make the request
            PublicDelegatedPrefix response = await globalPublicDelegatedPrefixesClient.GetAsync(request);

            // End snippet
        }
        public async stt::Task GetRequestObjectAsync()
        {
            moq::Mock <GlobalPublicDelegatedPrefixes.GlobalPublicDelegatedPrefixesClient> mockGrpcClient = new moq::Mock <GlobalPublicDelegatedPrefixes.GlobalPublicDelegatedPrefixesClient>(moq::MockBehavior.Strict);

            mockGrpcClient.Setup(x => x.CreateOperationsClientForGlobalOperations()).Returns(new moq::Mock <lro::Operations.OperationsClient>().Object);
            GetGlobalPublicDelegatedPrefixeRequest request = new GetGlobalPublicDelegatedPrefixeRequest
            {
                PublicDelegatedPrefix = "public_delegated_prefixff04d704",
                Project = "projectaa6ff846",
            };
            PublicDelegatedPrefix expectedResponse = new PublicDelegatedPrefix
            {
                Id                        = 11672635353343658936UL,
                Kind                      = "kindf7aa39d9",
                Name                      = "name1c9368b0",
                ParentPrefix              = "parent_prefix33eed533",
                CreationTimestamp         = "creation_timestamp235e59a1",
                IpCidrRange               = "ip_cidr_range745a04d3",
                Region                    = "regionedb20d96",
                Status                    = PublicDelegatedPrefix.Types.Status.ReadyToAnnounce,
                PublicDelegatedSubPrefixs =
                {
                    new PublicDelegatedPrefixPublicDelegatedSubPrefix(),
                },
                Fingerprint     = "fingerprint009e6052",
                Description     = "description2cf9da67",
                SelfLink        = "self_link7e87f12d",
                IsLiveMigration = true,
            };

            mockGrpcClient.Setup(x => x.GetAsync(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall <PublicDelegatedPrefix>(stt::Task.FromResult(expectedResponse), null, null, null, null));
            GlobalPublicDelegatedPrefixesClient client = new GlobalPublicDelegatedPrefixesClientImpl(mockGrpcClient.Object, null);
            PublicDelegatedPrefix responseCallSettings = await client.GetAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));

            xunit::Assert.Same(expectedResponse, responseCallSettings);
            PublicDelegatedPrefix responseCancellationToken = await client.GetAsync(request, st::CancellationToken.None);

            xunit::Assert.Same(expectedResponse, responseCancellationToken);
            mockGrpcClient.VerifyAll();
        }