public void GetAdGroupExtensionSetting()
        {
            moq::Mock <AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient> mockGrpcClient = new moq::Mock <AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient>(moq::MockBehavior.Strict);
            GetAdGroupExtensionSettingRequest request = new GetAdGroupExtensionSettingRequest
            {
                ResourceNameAsAdGroupExtensionSettingName = gagvr::AdGroupExtensionSettingName.FromCustomerAdGroupExtensionSetting("[CUSTOMER]", "[AD_GROUP_EXTENSION_SETTING]"),
            };
            gagvr::AdGroupExtensionSetting expectedResponse = new gagvr::AdGroupExtensionSetting
            {
                ResourceNameAsAdGroupExtensionSettingName = gagvr::AdGroupExtensionSettingName.FromCustomerAdGroupExtensionSetting("[CUSTOMER]", "[AD_GROUP_EXTENSION_SETTING]"),
                ExtensionType        = gagve::ExtensionTypeEnum.Types.ExtensionType.Promotion,
                AdGroupAsAdGroupName = gagvr::AdGroupName.FromCustomerAdGroup("[CUSTOMER]", "[AD_GROUP]"),
                ExtensionFeedItemsAsExtensionFeedItemNames =
                {
                    gagvr::ExtensionFeedItemName.FromCustomerExtensionFeedItem("[CUSTOMER]", "[EXTENSION_FEED_ITEM]"),
                },
                Device = gagve::ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unknown,
            };

            mockGrpcClient.Setup(x => x.GetAdGroupExtensionSetting(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            AdGroupExtensionSettingServiceClient client   = new AdGroupExtensionSettingServiceClientImpl(mockGrpcClient.Object, null);
            gagvr::AdGroupExtensionSetting       response = client.GetAdGroupExtensionSetting(request.ResourceName);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public async stt::Task GetAdGroupExtensionSettingRequestObjectAsync()
        {
            moq::Mock <AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient> mockGrpcClient = new moq::Mock <AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient>(moq::MockBehavior.Strict);
            GetAdGroupExtensionSettingRequest request = new GetAdGroupExtensionSettingRequest
            {
                ResourceNameAsAdGroupExtensionSettingName = gagvr::AdGroupExtensionSettingName.FromCustomerAdGroupExtensionSetting("[CUSTOMER]", "[AD_GROUP_EXTENSION_SETTING]"),
            };
            gagvr::AdGroupExtensionSetting expectedResponse = new gagvr::AdGroupExtensionSetting
            {
                ResourceNameAsAdGroupExtensionSettingName = gagvr::AdGroupExtensionSettingName.FromCustomerAdGroupExtensionSetting("[CUSTOMER]", "[AD_GROUP_EXTENSION_SETTING]"),
                ExtensionType        = gagve::ExtensionTypeEnum.Types.ExtensionType.Promotion,
                AdGroupAsAdGroupName = gagvr::AdGroupName.FromCustomerAdGroup("[CUSTOMER]", "[AD_GROUP]"),
                ExtensionFeedItemsAsExtensionFeedItemNames =
                {
                    gagvr::ExtensionFeedItemName.FromCustomerExtensionFeedItem("[CUSTOMER]", "[EXTENSION_FEED_ITEM]"),
                },
                Device = gagve::ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unknown,
            };

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

            xunit::Assert.Same(expectedResponse, responseCallSettings);
            gagvr::AdGroupExtensionSetting responseCancellationToken = await client.GetAdGroupExtensionSettingAsync(request, st::CancellationToken.None);

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