@Test @SuppressWarnings("all") public void getAdGroupSimulationExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAdGroupSimulationService.addException(exception); try { AdGroupSimulationName resourceName = AdGroupSimulationName.of("[CUSTOMER]", "[AD_GROUP_SIMULATION]"); client.getAdGroupSimulation(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final AdGroupSimulation getAdGroupSimulation(AdGroupSimulationName resourceName) { GetAdGroupSimulationRequest request = GetAdGroupSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupSimulation(request); }
AdGroupSimulationServiceClient implements BackgroundResource { public final AdGroupSimulation getAdGroupSimulation(AdGroupSimulationName resourceName) { GetAdGroupSimulationRequest request = GetAdGroupSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupSimulation(request); } }
AdGroupSimulationServiceClient implements BackgroundResource { public final AdGroupSimulation getAdGroupSimulation(AdGroupSimulationName resourceName) { GetAdGroupSimulationRequest request = GetAdGroupSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupSimulation(request); } protected  AdGroupSimulationServiceClient(AdGroupSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupSimulationServiceClient(AdGroupSimulationServiceStub stub); }
AdGroupSimulationServiceClient implements BackgroundResource { public final AdGroupSimulation getAdGroupSimulation(AdGroupSimulationName resourceName) { GetAdGroupSimulationRequest request = GetAdGroupSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupSimulation(request); } protected  AdGroupSimulationServiceClient(AdGroupSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupSimulationServiceClient(AdGroupSimulationServiceStub stub); static final AdGroupSimulationServiceClient create(); static final AdGroupSimulationServiceClient create(
      AdGroupSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AdGroupSimulationServiceClient create(AdGroupSimulationServiceStub stub); final AdGroupSimulationServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AdGroupSimulationServiceStub getStub(); final AdGroupSimulation getAdGroupSimulation(AdGroupSimulationName resourceName); final AdGroupSimulation getAdGroupSimulation(String resourceName); final AdGroupSimulation getAdGroupSimulation(GetAdGroupSimulationRequest request); final UnaryCallable<GetAdGroupSimulationRequest, AdGroupSimulation> getAdGroupSimulationCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
AdGroupSimulationServiceClient implements BackgroundResource { public final AdGroupSimulation getAdGroupSimulation(AdGroupSimulationName resourceName) { GetAdGroupSimulationRequest request = GetAdGroupSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAdGroupSimulation(request); } protected  AdGroupSimulationServiceClient(AdGroupSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AdGroupSimulationServiceClient(AdGroupSimulationServiceStub stub); static final AdGroupSimulationServiceClient create(); static final AdGroupSimulationServiceClient create(
      AdGroupSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AdGroupSimulationServiceClient create(AdGroupSimulationServiceStub stub); final AdGroupSimulationServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AdGroupSimulationServiceStub getStub(); final AdGroupSimulation getAdGroupSimulation(AdGroupSimulationName resourceName); final AdGroupSimulation getAdGroupSimulation(String resourceName); final AdGroupSimulation getAdGroupSimulation(GetAdGroupSimulationRequest request); final UnaryCallable<GetAdGroupSimulationRequest, AdGroupSimulation> getAdGroupSimulationCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }