@Test @SuppressWarnings("all") public void getAdGroupFeedTest() { com.google.ads.googleads.v5.services.AdGroupFeedName resourceName2 = com.google.ads.googleads.v5.services.AdGroupFeedName.of("[CUSTOMER]", "[AD_GROUP_FEED]"); AdGroupFeed expectedResponse = AdGroupFeed.newBuilder().setResourceName(resourceName2.toString()).build(); mockAdGroupFeedService.addResponse(expectedResponse); AdGroupFeedName resourceName = AdGroupFeedName.of("[CUSTOMER]", "[AD_GROUP_FEED]"); AdGroupFeed actualResponse = client.getAdGroupFeed(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockAdGroupFeedService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetAdGroupFeedRequest actualRequest = (GetAdGroupFeedRequest) actualRequests.get(0); Assert.assertEquals(resourceName, AdGroupFeedName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final AdGroupFeed getAdGroupFeed(AdGroupFeedName resourceName) { GetAdGroupFeedRequest request = GetAdGroupFeedRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupFeed(request); }
AdGroupFeedServiceClient implements BackgroundResource { public final AdGroupFeed getAdGroupFeed(AdGroupFeedName resourceName) { GetAdGroupFeedRequest request = GetAdGroupFeedRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupFeed(request); } }
AdGroupFeedServiceClient implements BackgroundResource { public final AdGroupFeed getAdGroupFeed(AdGroupFeedName resourceName) { GetAdGroupFeedRequest request = GetAdGroupFeedRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupFeed(request); } protected  AdGroupFeedServiceClient(AdGroupFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupFeedServiceClient(AdGroupFeedServiceStub stub); }
AdGroupFeedServiceClient implements BackgroundResource { public final AdGroupFeed getAdGroupFeed(AdGroupFeedName resourceName) { GetAdGroupFeedRequest request = GetAdGroupFeedRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupFeed(request); } protected  AdGroupFeedServiceClient(AdGroupFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupFeedServiceClient(AdGroupFeedServiceStub stub); static final AdGroupFeedServiceClient create(); static final AdGroupFeedServiceClient create(AdGroupFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AdGroupFeedServiceClient create(AdGroupFeedServiceStub stub); final AdGroupFeedServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AdGroupFeedServiceStub getStub(); final AdGroupFeed getAdGroupFeed(AdGroupFeedName resourceName); final AdGroupFeed getAdGroupFeed(String resourceName); final AdGroupFeed getAdGroupFeed(GetAdGroupFeedRequest request); final UnaryCallable<GetAdGroupFeedRequest, AdGroupFeed> getAdGroupFeedCallable(); final MutateAdGroupFeedsResponse mutateAdGroupFeeds(
      String customerId, List<AdGroupFeedOperation> operations); final MutateAdGroupFeedsResponse mutateAdGroupFeeds(MutateAdGroupFeedsRequest request); final UnaryCallable<MutateAdGroupFeedsRequest, MutateAdGroupFeedsResponse> mutateAdGroupFeedsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
AdGroupFeedServiceClient implements BackgroundResource { public final AdGroupFeed getAdGroupFeed(AdGroupFeedName resourceName) { GetAdGroupFeedRequest request = GetAdGroupFeedRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupFeed(request); } protected  AdGroupFeedServiceClient(AdGroupFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupFeedServiceClient(AdGroupFeedServiceStub stub); static final AdGroupFeedServiceClient create(); static final AdGroupFeedServiceClient create(AdGroupFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AdGroupFeedServiceClient create(AdGroupFeedServiceStub stub); final AdGroupFeedServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AdGroupFeedServiceStub getStub(); final AdGroupFeed getAdGroupFeed(AdGroupFeedName resourceName); final AdGroupFeed getAdGroupFeed(String resourceName); final AdGroupFeed getAdGroupFeed(GetAdGroupFeedRequest request); final UnaryCallable<GetAdGroupFeedRequest, AdGroupFeed> getAdGroupFeedCallable(); final MutateAdGroupFeedsResponse mutateAdGroupFeeds(
      String customerId, List<AdGroupFeedOperation> operations); final MutateAdGroupFeedsResponse mutateAdGroupFeeds(MutateAdGroupFeedsRequest request); final UnaryCallable<MutateAdGroupFeedsRequest, MutateAdGroupFeedsResponse> mutateAdGroupFeedsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }