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