@Test @SuppressWarnings("all") public void getCampaignCriterionSimulationExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignCriterionSimulationService.addException(exception); try { CampaignCriterionSimulationName resourceName = CampaignCriterionSimulationName.of("[CUSTOMER]", "[CAMPAIGN_CRITERION_SIMULATION]"); client.getCampaignCriterionSimulation(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); }
CampaignCriterionSimulationServiceClient implements BackgroundResource { public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); } }
CampaignCriterionSimulationServiceClient implements BackgroundResource { public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); } protected  CampaignCriterionSimulationServiceClient(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignCriterionSimulationServiceClient(CampaignCriterionSimulationServiceStub stub); }
CampaignCriterionSimulationServiceClient implements BackgroundResource { public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); } protected  CampaignCriterionSimulationServiceClient(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignCriterionSimulationServiceClient(CampaignCriterionSimulationServiceStub stub); static final CampaignCriterionSimulationServiceClient create(); static final CampaignCriterionSimulationServiceClient create(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignCriterionSimulationServiceClient create(
      CampaignCriterionSimulationServiceStub stub); final CampaignCriterionSimulationServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignCriterionSimulationServiceStub getStub(); final CampaignCriterionSimulation getCampaignCriterionSimulation(
      CampaignCriterionSimulationName resourceName); final CampaignCriterionSimulation getCampaignCriterionSimulation(String resourceName); final CampaignCriterionSimulation getCampaignCriterionSimulation(
      GetCampaignCriterionSimulationRequest request); final UnaryCallable<GetCampaignCriterionSimulationRequest, CampaignCriterionSimulation> getCampaignCriterionSimulationCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CampaignCriterionSimulationServiceClient implements BackgroundResource { public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); } protected  CampaignCriterionSimulationServiceClient(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignCriterionSimulationServiceClient(CampaignCriterionSimulationServiceStub stub); static final CampaignCriterionSimulationServiceClient create(); static final CampaignCriterionSimulationServiceClient create(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignCriterionSimulationServiceClient create(
      CampaignCriterionSimulationServiceStub stub); final CampaignCriterionSimulationServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignCriterionSimulationServiceStub getStub(); final CampaignCriterionSimulation getCampaignCriterionSimulation(
      CampaignCriterionSimulationName resourceName); final CampaignCriterionSimulation getCampaignCriterionSimulation(String resourceName); final CampaignCriterionSimulation getCampaignCriterionSimulation(
      GetCampaignCriterionSimulationRequest request); final UnaryCallable<GetCampaignCriterionSimulationRequest, CampaignCriterionSimulation> getCampaignCriterionSimulationCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }