@Test @SuppressWarnings("all") public void getGeoTargetConstantExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockGeoTargetConstantService.addException(exception); try { GeoTargetConstantName resourceName = GeoTargetConstantName.of("[GEO_TARGET_CONSTANT]"); client.getGeoTargetConstant(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final GeoTargetConstant getGeoTargetConstant(GeoTargetConstantName resourceName) { GetGeoTargetConstantRequest request = GetGeoTargetConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGeoTargetConstant(request); }
GeoTargetConstantServiceClient implements BackgroundResource { public final GeoTargetConstant getGeoTargetConstant(GeoTargetConstantName resourceName) { GetGeoTargetConstantRequest request = GetGeoTargetConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGeoTargetConstant(request); } }
GeoTargetConstantServiceClient implements BackgroundResource { public final GeoTargetConstant getGeoTargetConstant(GeoTargetConstantName resourceName) { GetGeoTargetConstantRequest request = GetGeoTargetConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGeoTargetConstant(request); } protected  GeoTargetConstantServiceClient(GeoTargetConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  GeoTargetConstantServiceClient(GeoTargetConstantServiceStub stub); }
GeoTargetConstantServiceClient implements BackgroundResource { public final GeoTargetConstant getGeoTargetConstant(GeoTargetConstantName resourceName) { GetGeoTargetConstantRequest request = GetGeoTargetConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGeoTargetConstant(request); } protected  GeoTargetConstantServiceClient(GeoTargetConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  GeoTargetConstantServiceClient(GeoTargetConstantServiceStub stub); static final GeoTargetConstantServiceClient create(); static final GeoTargetConstantServiceClient create(
      GeoTargetConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final GeoTargetConstantServiceClient create(GeoTargetConstantServiceStub stub); final GeoTargetConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") GeoTargetConstantServiceStub getStub(); final GeoTargetConstant getGeoTargetConstant(GeoTargetConstantName resourceName); final GeoTargetConstant getGeoTargetConstant(String resourceName); final GeoTargetConstant getGeoTargetConstant(GetGeoTargetConstantRequest request); final UnaryCallable<GetGeoTargetConstantRequest, GeoTargetConstant> getGeoTargetConstantCallable(); final SuggestGeoTargetConstantsResponse suggestGeoTargetConstants(
      SuggestGeoTargetConstantsRequest request); final UnaryCallable<SuggestGeoTargetConstantsRequest, SuggestGeoTargetConstantsResponse> suggestGeoTargetConstantsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
GeoTargetConstantServiceClient implements BackgroundResource { public final GeoTargetConstant getGeoTargetConstant(GeoTargetConstantName resourceName) { GetGeoTargetConstantRequest request = GetGeoTargetConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGeoTargetConstant(request); } protected  GeoTargetConstantServiceClient(GeoTargetConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  GeoTargetConstantServiceClient(GeoTargetConstantServiceStub stub); static final GeoTargetConstantServiceClient create(); static final GeoTargetConstantServiceClient create(
      GeoTargetConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final GeoTargetConstantServiceClient create(GeoTargetConstantServiceStub stub); final GeoTargetConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") GeoTargetConstantServiceStub getStub(); final GeoTargetConstant getGeoTargetConstant(GeoTargetConstantName resourceName); final GeoTargetConstant getGeoTargetConstant(String resourceName); final GeoTargetConstant getGeoTargetConstant(GetGeoTargetConstantRequest request); final UnaryCallable<GetGeoTargetConstantRequest, GeoTargetConstant> getGeoTargetConstantCallable(); final SuggestGeoTargetConstantsResponse suggestGeoTargetConstants(
      SuggestGeoTargetConstantsRequest request); final UnaryCallable<SuggestGeoTargetConstantsRequest, SuggestGeoTargetConstantsResponse> suggestGeoTargetConstantsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }