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