@Test @SuppressWarnings("all") public void getKeywordPlanCampaignKeywordTest() { com.google.ads.googleads.v5.services.KeywordPlanCampaignKeywordName resourceName2 = com.google.ads.googleads.v5.services.KeywordPlanCampaignKeywordName.of( "[CUSTOMER]", "[KEYWORD_PLAN_CAMPAIGN_KEYWORD]"); KeywordPlanCampaignKeyword expectedResponse = KeywordPlanCampaignKeyword.newBuilder().setResourceName(resourceName2.toString()).build(); mockKeywordPlanCampaignKeywordService.addResponse(expectedResponse); KeywordPlanCampaignKeywordName resourceName = KeywordPlanCampaignKeywordName.of("[CUSTOMER]", "[KEYWORD_PLAN_CAMPAIGN_KEYWORD]"); KeywordPlanCampaignKeyword actualResponse = client.getKeywordPlanCampaignKeyword(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockKeywordPlanCampaignKeywordService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetKeywordPlanCampaignKeywordRequest actualRequest = (GetKeywordPlanCampaignKeywordRequest) actualRequests.get(0); Assert.assertEquals( resourceName, KeywordPlanCampaignKeywordName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword( KeywordPlanCampaignKeywordName resourceName) { GetKeywordPlanCampaignKeywordRequest request = GetKeywordPlanCampaignKeywordRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getKeywordPlanCampaignKeyword(request); }
KeywordPlanCampaignKeywordServiceClient implements BackgroundResource { public final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword( KeywordPlanCampaignKeywordName resourceName) { GetKeywordPlanCampaignKeywordRequest request = GetKeywordPlanCampaignKeywordRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getKeywordPlanCampaignKeyword(request); } }
KeywordPlanCampaignKeywordServiceClient implements BackgroundResource { public final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword( KeywordPlanCampaignKeywordName resourceName) { GetKeywordPlanCampaignKeywordRequest request = GetKeywordPlanCampaignKeywordRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getKeywordPlanCampaignKeyword(request); } protected  KeywordPlanCampaignKeywordServiceClient(
      KeywordPlanCampaignKeywordServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  KeywordPlanCampaignKeywordServiceClient(KeywordPlanCampaignKeywordServiceStub stub); }
KeywordPlanCampaignKeywordServiceClient implements BackgroundResource { public final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword( KeywordPlanCampaignKeywordName resourceName) { GetKeywordPlanCampaignKeywordRequest request = GetKeywordPlanCampaignKeywordRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getKeywordPlanCampaignKeyword(request); } protected  KeywordPlanCampaignKeywordServiceClient(
      KeywordPlanCampaignKeywordServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  KeywordPlanCampaignKeywordServiceClient(KeywordPlanCampaignKeywordServiceStub stub); static final KeywordPlanCampaignKeywordServiceClient create(); static final KeywordPlanCampaignKeywordServiceClient create(
      KeywordPlanCampaignKeywordServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final KeywordPlanCampaignKeywordServiceClient create(
      KeywordPlanCampaignKeywordServiceStub stub); final KeywordPlanCampaignKeywordServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") KeywordPlanCampaignKeywordServiceStub getStub(); final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword(
      KeywordPlanCampaignKeywordName resourceName); final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword(String resourceName); final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword(
      GetKeywordPlanCampaignKeywordRequest request); final UnaryCallable<GetKeywordPlanCampaignKeywordRequest, KeywordPlanCampaignKeyword> getKeywordPlanCampaignKeywordCallable(); final MutateKeywordPlanCampaignKeywordsResponse mutateKeywordPlanCampaignKeywords(
      String customerId, List<KeywordPlanCampaignKeywordOperation> operations); final MutateKeywordPlanCampaignKeywordsResponse mutateKeywordPlanCampaignKeywords(
      MutateKeywordPlanCampaignKeywordsRequest request); final UnaryCallable<
          MutateKeywordPlanCampaignKeywordsRequest, MutateKeywordPlanCampaignKeywordsResponse> mutateKeywordPlanCampaignKeywordsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
KeywordPlanCampaignKeywordServiceClient implements BackgroundResource { public final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword( KeywordPlanCampaignKeywordName resourceName) { GetKeywordPlanCampaignKeywordRequest request = GetKeywordPlanCampaignKeywordRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getKeywordPlanCampaignKeyword(request); } protected  KeywordPlanCampaignKeywordServiceClient(
      KeywordPlanCampaignKeywordServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  KeywordPlanCampaignKeywordServiceClient(KeywordPlanCampaignKeywordServiceStub stub); static final KeywordPlanCampaignKeywordServiceClient create(); static final KeywordPlanCampaignKeywordServiceClient create(
      KeywordPlanCampaignKeywordServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final KeywordPlanCampaignKeywordServiceClient create(
      KeywordPlanCampaignKeywordServiceStub stub); final KeywordPlanCampaignKeywordServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") KeywordPlanCampaignKeywordServiceStub getStub(); final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword(
      KeywordPlanCampaignKeywordName resourceName); final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword(String resourceName); final KeywordPlanCampaignKeyword getKeywordPlanCampaignKeyword(
      GetKeywordPlanCampaignKeywordRequest request); final UnaryCallable<GetKeywordPlanCampaignKeywordRequest, KeywordPlanCampaignKeyword> getKeywordPlanCampaignKeywordCallable(); final MutateKeywordPlanCampaignKeywordsResponse mutateKeywordPlanCampaignKeywords(
      String customerId, List<KeywordPlanCampaignKeywordOperation> operations); final MutateKeywordPlanCampaignKeywordsResponse mutateKeywordPlanCampaignKeywords(
      MutateKeywordPlanCampaignKeywordsRequest request); final UnaryCallable<
          MutateKeywordPlanCampaignKeywordsRequest, MutateKeywordPlanCampaignKeywordsResponse> mutateKeywordPlanCampaignKeywordsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }