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