@Test @SuppressWarnings("all") public void getExtensionFeedItemTest() { com.google.ads.googleads.v5.services.ExtensionFeedItemName resourceName2 = com.google.ads.googleads.v5.services.ExtensionFeedItemName.of( "[CUSTOMER]", "[EXTENSION_FEED_ITEM]"); ExtensionFeedItem expectedResponse = ExtensionFeedItem.newBuilder().setResourceName(resourceName2.toString()).build(); mockExtensionFeedItemService.addResponse(expectedResponse); ExtensionFeedItemName resourceName = ExtensionFeedItemName.of("[CUSTOMER]", "[EXTENSION_FEED_ITEM]"); ExtensionFeedItem actualResponse = client.getExtensionFeedItem(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockExtensionFeedItemService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetExtensionFeedItemRequest actualRequest = (GetExtensionFeedItemRequest) actualRequests.get(0); Assert.assertEquals(resourceName, ExtensionFeedItemName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final ExtensionFeedItem getExtensionFeedItem(ExtensionFeedItemName resourceName) { GetExtensionFeedItemRequest request = GetExtensionFeedItemRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getExtensionFeedItem(request); }
ExtensionFeedItemServiceClient implements BackgroundResource { public final ExtensionFeedItem getExtensionFeedItem(ExtensionFeedItemName resourceName) { GetExtensionFeedItemRequest request = GetExtensionFeedItemRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getExtensionFeedItem(request); } }
ExtensionFeedItemServiceClient implements BackgroundResource { public final ExtensionFeedItem getExtensionFeedItem(ExtensionFeedItemName resourceName) { GetExtensionFeedItemRequest request = GetExtensionFeedItemRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getExtensionFeedItem(request); } protected  ExtensionFeedItemServiceClient(ExtensionFeedItemServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ExtensionFeedItemServiceClient(ExtensionFeedItemServiceStub stub); }
ExtensionFeedItemServiceClient implements BackgroundResource { public final ExtensionFeedItem getExtensionFeedItem(ExtensionFeedItemName resourceName) { GetExtensionFeedItemRequest request = GetExtensionFeedItemRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getExtensionFeedItem(request); } protected  ExtensionFeedItemServiceClient(ExtensionFeedItemServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ExtensionFeedItemServiceClient(ExtensionFeedItemServiceStub stub); static final ExtensionFeedItemServiceClient create(); static final ExtensionFeedItemServiceClient create(
      ExtensionFeedItemServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ExtensionFeedItemServiceClient create(ExtensionFeedItemServiceStub stub); final ExtensionFeedItemServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ExtensionFeedItemServiceStub getStub(); final ExtensionFeedItem getExtensionFeedItem(ExtensionFeedItemName resourceName); final ExtensionFeedItem getExtensionFeedItem(String resourceName); final ExtensionFeedItem getExtensionFeedItem(GetExtensionFeedItemRequest request); final UnaryCallable<GetExtensionFeedItemRequest, ExtensionFeedItem> getExtensionFeedItemCallable(); final MutateExtensionFeedItemsResponse mutateExtensionFeedItems(
      String customerId, List<ExtensionFeedItemOperation> operations); final MutateExtensionFeedItemsResponse mutateExtensionFeedItems(
      MutateExtensionFeedItemsRequest request); final UnaryCallable<MutateExtensionFeedItemsRequest, MutateExtensionFeedItemsResponse> mutateExtensionFeedItemsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
ExtensionFeedItemServiceClient implements BackgroundResource { public final ExtensionFeedItem getExtensionFeedItem(ExtensionFeedItemName resourceName) { GetExtensionFeedItemRequest request = GetExtensionFeedItemRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getExtensionFeedItem(request); } protected  ExtensionFeedItemServiceClient(ExtensionFeedItemServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ExtensionFeedItemServiceClient(ExtensionFeedItemServiceStub stub); static final ExtensionFeedItemServiceClient create(); static final ExtensionFeedItemServiceClient create(
      ExtensionFeedItemServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ExtensionFeedItemServiceClient create(ExtensionFeedItemServiceStub stub); final ExtensionFeedItemServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ExtensionFeedItemServiceStub getStub(); final ExtensionFeedItem getExtensionFeedItem(ExtensionFeedItemName resourceName); final ExtensionFeedItem getExtensionFeedItem(String resourceName); final ExtensionFeedItem getExtensionFeedItem(GetExtensionFeedItemRequest request); final UnaryCallable<GetExtensionFeedItemRequest, ExtensionFeedItem> getExtensionFeedItemCallable(); final MutateExtensionFeedItemsResponse mutateExtensionFeedItems(
      String customerId, List<ExtensionFeedItemOperation> operations); final MutateExtensionFeedItemsResponse mutateExtensionFeedItems(
      MutateExtensionFeedItemsRequest request); final UnaryCallable<MutateExtensionFeedItemsRequest, MutateExtensionFeedItemsResponse> mutateExtensionFeedItemsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }