@Test @SuppressWarnings("all") public void getCampaignAudienceViewExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignAudienceViewService.addException(exception); try { CampaignAudienceViewName resourceName = CampaignAudienceViewName.of("[CUSTOMER]", "[CAMPAIGN_AUDIENCE_VIEW]"); client.getCampaignAudienceView(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final CampaignAudienceView getCampaignAudienceView(CampaignAudienceViewName resourceName) { GetCampaignAudienceViewRequest request = GetCampaignAudienceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignAudienceView(request); }
CampaignAudienceViewServiceClient implements BackgroundResource { public final CampaignAudienceView getCampaignAudienceView(CampaignAudienceViewName resourceName) { GetCampaignAudienceViewRequest request = GetCampaignAudienceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignAudienceView(request); } }
CampaignAudienceViewServiceClient implements BackgroundResource { public final CampaignAudienceView getCampaignAudienceView(CampaignAudienceViewName resourceName) { GetCampaignAudienceViewRequest request = GetCampaignAudienceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignAudienceView(request); } protected  CampaignAudienceViewServiceClient(CampaignAudienceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignAudienceViewServiceClient(CampaignAudienceViewServiceStub stub); }
CampaignAudienceViewServiceClient implements BackgroundResource { public final CampaignAudienceView getCampaignAudienceView(CampaignAudienceViewName resourceName) { GetCampaignAudienceViewRequest request = GetCampaignAudienceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignAudienceView(request); } protected  CampaignAudienceViewServiceClient(CampaignAudienceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignAudienceViewServiceClient(CampaignAudienceViewServiceStub stub); static final CampaignAudienceViewServiceClient create(); static final CampaignAudienceViewServiceClient create(
      CampaignAudienceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignAudienceViewServiceClient create(
      CampaignAudienceViewServiceStub stub); final CampaignAudienceViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignAudienceViewServiceStub getStub(); final CampaignAudienceView getCampaignAudienceView(CampaignAudienceViewName resourceName); final CampaignAudienceView getCampaignAudienceView(String resourceName); final CampaignAudienceView getCampaignAudienceView(
      GetCampaignAudienceViewRequest request); final UnaryCallable<GetCampaignAudienceViewRequest, CampaignAudienceView> getCampaignAudienceViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CampaignAudienceViewServiceClient implements BackgroundResource { public final CampaignAudienceView getCampaignAudienceView(CampaignAudienceViewName resourceName) { GetCampaignAudienceViewRequest request = GetCampaignAudienceViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignAudienceView(request); } protected  CampaignAudienceViewServiceClient(CampaignAudienceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignAudienceViewServiceClient(CampaignAudienceViewServiceStub stub); static final CampaignAudienceViewServiceClient create(); static final CampaignAudienceViewServiceClient create(
      CampaignAudienceViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignAudienceViewServiceClient create(
      CampaignAudienceViewServiceStub stub); final CampaignAudienceViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignAudienceViewServiceStub getStub(); final CampaignAudienceView getCampaignAudienceView(CampaignAudienceViewName resourceName); final CampaignAudienceView getCampaignAudienceView(String resourceName); final CampaignAudienceView getCampaignAudienceView(
      GetCampaignAudienceViewRequest request); final UnaryCallable<GetCampaignAudienceViewRequest, CampaignAudienceView> getCampaignAudienceViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }