@Test @SuppressWarnings("all") public void getAdGroupCriterionSimulationExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAdGroupCriterionSimulationService.addException(exception); try { AdGroupCriterionSimulationName resourceName = AdGroupCriterionSimulationName.of("[CUSTOMER]", "[AD_GROUP_CRITERION_SIMULATION]"); client.getAdGroupCriterionSimulation(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final AdGroupCriterionSimulation getAdGroupCriterionSimulation( AdGroupCriterionSimulationName resourceName) { GetAdGroupCriterionSimulationRequest request = GetAdGroupCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupCriterionSimulation(request); }
AdGroupCriterionSimulationServiceClient implements BackgroundResource { public final AdGroupCriterionSimulation getAdGroupCriterionSimulation( AdGroupCriterionSimulationName resourceName) { GetAdGroupCriterionSimulationRequest request = GetAdGroupCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupCriterionSimulation(request); } }
AdGroupCriterionSimulationServiceClient implements BackgroundResource { public final AdGroupCriterionSimulation getAdGroupCriterionSimulation( AdGroupCriterionSimulationName resourceName) { GetAdGroupCriterionSimulationRequest request = GetAdGroupCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupCriterionSimulation(request); } protected  AdGroupCriterionSimulationServiceClient(
      AdGroupCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupCriterionSimulationServiceClient(AdGroupCriterionSimulationServiceStub stub); }
AdGroupCriterionSimulationServiceClient implements BackgroundResource { public final AdGroupCriterionSimulation getAdGroupCriterionSimulation( AdGroupCriterionSimulationName resourceName) { GetAdGroupCriterionSimulationRequest request = GetAdGroupCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupCriterionSimulation(request); } protected  AdGroupCriterionSimulationServiceClient(
      AdGroupCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupCriterionSimulationServiceClient(AdGroupCriterionSimulationServiceStub stub); static final AdGroupCriterionSimulationServiceClient create(); static final AdGroupCriterionSimulationServiceClient create(
      AdGroupCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AdGroupCriterionSimulationServiceClient create(
      AdGroupCriterionSimulationServiceStub stub); final AdGroupCriterionSimulationServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AdGroupCriterionSimulationServiceStub getStub(); final AdGroupCriterionSimulation getAdGroupCriterionSimulation(
      AdGroupCriterionSimulationName resourceName); final AdGroupCriterionSimulation getAdGroupCriterionSimulation(String resourceName); final AdGroupCriterionSimulation getAdGroupCriterionSimulation(
      GetAdGroupCriterionSimulationRequest request); final UnaryCallable<GetAdGroupCriterionSimulationRequest, AdGroupCriterionSimulation> getAdGroupCriterionSimulationCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
AdGroupCriterionSimulationServiceClient implements BackgroundResource { public final AdGroupCriterionSimulation getAdGroupCriterionSimulation( AdGroupCriterionSimulationName resourceName) { GetAdGroupCriterionSimulationRequest request = GetAdGroupCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupCriterionSimulation(request); } protected  AdGroupCriterionSimulationServiceClient(
      AdGroupCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupCriterionSimulationServiceClient(AdGroupCriterionSimulationServiceStub stub); static final AdGroupCriterionSimulationServiceClient create(); static final AdGroupCriterionSimulationServiceClient create(
      AdGroupCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AdGroupCriterionSimulationServiceClient create(
      AdGroupCriterionSimulationServiceStub stub); final AdGroupCriterionSimulationServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AdGroupCriterionSimulationServiceStub getStub(); final AdGroupCriterionSimulation getAdGroupCriterionSimulation(
      AdGroupCriterionSimulationName resourceName); final AdGroupCriterionSimulation getAdGroupCriterionSimulation(String resourceName); final AdGroupCriterionSimulation getAdGroupCriterionSimulation(
      GetAdGroupCriterionSimulationRequest request); final UnaryCallable<GetAdGroupCriterionSimulationRequest, AdGroupCriterionSimulation> getAdGroupCriterionSimulationCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }