@Test @SuppressWarnings("all") public void getShoppingPerformanceViewTest() { com.google.ads.googleads.v5.services.ShoppingPerformanceViewName resourceName2 = com.google.ads.googleads.v5.services.ShoppingPerformanceViewName.of("[CUSTOMER]"); ShoppingPerformanceView expectedResponse = ShoppingPerformanceView.newBuilder().setResourceName(resourceName2.toString()).build(); mockShoppingPerformanceViewService.addResponse(expectedResponse); ShoppingPerformanceViewName resourceName = ShoppingPerformanceViewName.of("[CUSTOMER]"); ShoppingPerformanceView actualResponse = client.getShoppingPerformanceView(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockShoppingPerformanceViewService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetShoppingPerformanceViewRequest actualRequest = (GetShoppingPerformanceViewRequest) actualRequests.get(0); Assert.assertEquals( resourceName, ShoppingPerformanceViewName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final ShoppingPerformanceView getShoppingPerformanceView( ShoppingPerformanceViewName resourceName) { GetShoppingPerformanceViewRequest request = GetShoppingPerformanceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getShoppingPerformanceView(request); }
ShoppingPerformanceViewServiceClient implements BackgroundResource { public final ShoppingPerformanceView getShoppingPerformanceView( ShoppingPerformanceViewName resourceName) { GetShoppingPerformanceViewRequest request = GetShoppingPerformanceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getShoppingPerformanceView(request); } }
ShoppingPerformanceViewServiceClient implements BackgroundResource { public final ShoppingPerformanceView getShoppingPerformanceView( ShoppingPerformanceViewName resourceName) { GetShoppingPerformanceViewRequest request = GetShoppingPerformanceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getShoppingPerformanceView(request); } protected  ShoppingPerformanceViewServiceClient(ShoppingPerformanceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ShoppingPerformanceViewServiceClient(ShoppingPerformanceViewServiceStub stub); }
ShoppingPerformanceViewServiceClient implements BackgroundResource { public final ShoppingPerformanceView getShoppingPerformanceView( ShoppingPerformanceViewName resourceName) { GetShoppingPerformanceViewRequest request = GetShoppingPerformanceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getShoppingPerformanceView(request); } protected  ShoppingPerformanceViewServiceClient(ShoppingPerformanceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ShoppingPerformanceViewServiceClient(ShoppingPerformanceViewServiceStub stub); static final ShoppingPerformanceViewServiceClient create(); static final ShoppingPerformanceViewServiceClient create(
      ShoppingPerformanceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ShoppingPerformanceViewServiceClient create(
      ShoppingPerformanceViewServiceStub stub); final ShoppingPerformanceViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ShoppingPerformanceViewServiceStub getStub(); final ShoppingPerformanceView getShoppingPerformanceView(
      ShoppingPerformanceViewName resourceName); final ShoppingPerformanceView getShoppingPerformanceView(String resourceName); final ShoppingPerformanceView getShoppingPerformanceView(
      GetShoppingPerformanceViewRequest request); final UnaryCallable<GetShoppingPerformanceViewRequest, ShoppingPerformanceView> getShoppingPerformanceViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
ShoppingPerformanceViewServiceClient implements BackgroundResource { public final ShoppingPerformanceView getShoppingPerformanceView( ShoppingPerformanceViewName resourceName) { GetShoppingPerformanceViewRequest request = GetShoppingPerformanceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getShoppingPerformanceView(request); } protected  ShoppingPerformanceViewServiceClient(ShoppingPerformanceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ShoppingPerformanceViewServiceClient(ShoppingPerformanceViewServiceStub stub); static final ShoppingPerformanceViewServiceClient create(); static final ShoppingPerformanceViewServiceClient create(
      ShoppingPerformanceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ShoppingPerformanceViewServiceClient create(
      ShoppingPerformanceViewServiceStub stub); final ShoppingPerformanceViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ShoppingPerformanceViewServiceStub getStub(); final ShoppingPerformanceView getShoppingPerformanceView(
      ShoppingPerformanceViewName resourceName); final ShoppingPerformanceView getShoppingPerformanceView(String resourceName); final ShoppingPerformanceView getShoppingPerformanceView(
      GetShoppingPerformanceViewRequest request); final UnaryCallable<GetShoppingPerformanceViewRequest, ShoppingPerformanceView> getShoppingPerformanceViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }