@Test @SuppressWarnings("all") public void getCarrierConstantExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCarrierConstantService.addException(exception); try { CarrierConstantName resourceName = CarrierConstantName.of("[CARRIER_CONSTANT]"); client.getCarrierConstant(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final CarrierConstant getCarrierConstant(CarrierConstantName resourceName) { GetCarrierConstantRequest request = GetCarrierConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCarrierConstant(request); }
CarrierConstantServiceClient implements BackgroundResource { public final CarrierConstant getCarrierConstant(CarrierConstantName resourceName) { GetCarrierConstantRequest request = GetCarrierConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCarrierConstant(request); } }
CarrierConstantServiceClient implements BackgroundResource { public final CarrierConstant getCarrierConstant(CarrierConstantName resourceName) { GetCarrierConstantRequest request = GetCarrierConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCarrierConstant(request); } protected  CarrierConstantServiceClient(CarrierConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CarrierConstantServiceClient(CarrierConstantServiceStub stub); }
CarrierConstantServiceClient implements BackgroundResource { public final CarrierConstant getCarrierConstant(CarrierConstantName resourceName) { GetCarrierConstantRequest request = GetCarrierConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCarrierConstant(request); } protected  CarrierConstantServiceClient(CarrierConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CarrierConstantServiceClient(CarrierConstantServiceStub stub); static final CarrierConstantServiceClient create(); static final CarrierConstantServiceClient create(CarrierConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CarrierConstantServiceClient create(CarrierConstantServiceStub stub); final CarrierConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CarrierConstantServiceStub getStub(); final CarrierConstant getCarrierConstant(CarrierConstantName resourceName); final CarrierConstant getCarrierConstant(String resourceName); final CarrierConstant getCarrierConstant(GetCarrierConstantRequest request); final UnaryCallable<GetCarrierConstantRequest, CarrierConstant> getCarrierConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CarrierConstantServiceClient implements BackgroundResource { public final CarrierConstant getCarrierConstant(CarrierConstantName resourceName) { GetCarrierConstantRequest request = GetCarrierConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCarrierConstant(request); } protected  CarrierConstantServiceClient(CarrierConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CarrierConstantServiceClient(CarrierConstantServiceStub stub); static final CarrierConstantServiceClient create(); static final CarrierConstantServiceClient create(CarrierConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CarrierConstantServiceClient create(CarrierConstantServiceStub stub); final CarrierConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CarrierConstantServiceStub getStub(); final CarrierConstant getCarrierConstant(CarrierConstantName resourceName); final CarrierConstant getCarrierConstant(String resourceName); final CarrierConstant getCarrierConstant(GetCarrierConstantRequest request); final UnaryCallable<GetCarrierConstantRequest, CarrierConstant> getCarrierConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }