@Test @SuppressWarnings("all") public void getMobileAppCategoryConstantExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockMobileAppCategoryConstantService.addException(exception); try { MobileAppCategoryConstantName resourceName = MobileAppCategoryConstantName.of("[MOBILE_APP_CATEGORY_CONSTANT]"); client.getMobileAppCategoryConstant(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final MobileAppCategoryConstant getMobileAppCategoryConstant( MobileAppCategoryConstantName resourceName) { GetMobileAppCategoryConstantRequest request = GetMobileAppCategoryConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileAppCategoryConstant(request); }
MobileAppCategoryConstantServiceClient implements BackgroundResource { public final MobileAppCategoryConstant getMobileAppCategoryConstant( MobileAppCategoryConstantName resourceName) { GetMobileAppCategoryConstantRequest request = GetMobileAppCategoryConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileAppCategoryConstant(request); } }
MobileAppCategoryConstantServiceClient implements BackgroundResource { public final MobileAppCategoryConstant getMobileAppCategoryConstant( MobileAppCategoryConstantName resourceName) { GetMobileAppCategoryConstantRequest request = GetMobileAppCategoryConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileAppCategoryConstant(request); } protected  MobileAppCategoryConstantServiceClient(
      MobileAppCategoryConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MobileAppCategoryConstantServiceClient(MobileAppCategoryConstantServiceStub stub); }
MobileAppCategoryConstantServiceClient implements BackgroundResource { public final MobileAppCategoryConstant getMobileAppCategoryConstant( MobileAppCategoryConstantName resourceName) { GetMobileAppCategoryConstantRequest request = GetMobileAppCategoryConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileAppCategoryConstant(request); } protected  MobileAppCategoryConstantServiceClient(
      MobileAppCategoryConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MobileAppCategoryConstantServiceClient(MobileAppCategoryConstantServiceStub stub); static final MobileAppCategoryConstantServiceClient create(); static final MobileAppCategoryConstantServiceClient create(
      MobileAppCategoryConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final MobileAppCategoryConstantServiceClient create(
      MobileAppCategoryConstantServiceStub stub); final MobileAppCategoryConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") MobileAppCategoryConstantServiceStub getStub(); final MobileAppCategoryConstant getMobileAppCategoryConstant(
      MobileAppCategoryConstantName resourceName); final MobileAppCategoryConstant getMobileAppCategoryConstant(String resourceName); final MobileAppCategoryConstant getMobileAppCategoryConstant(
      GetMobileAppCategoryConstantRequest request); final UnaryCallable<GetMobileAppCategoryConstantRequest, MobileAppCategoryConstant> getMobileAppCategoryConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
MobileAppCategoryConstantServiceClient implements BackgroundResource { public final MobileAppCategoryConstant getMobileAppCategoryConstant( MobileAppCategoryConstantName resourceName) { GetMobileAppCategoryConstantRequest request = GetMobileAppCategoryConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileAppCategoryConstant(request); } protected  MobileAppCategoryConstantServiceClient(
      MobileAppCategoryConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MobileAppCategoryConstantServiceClient(MobileAppCategoryConstantServiceStub stub); static final MobileAppCategoryConstantServiceClient create(); static final MobileAppCategoryConstantServiceClient create(
      MobileAppCategoryConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final MobileAppCategoryConstantServiceClient create(
      MobileAppCategoryConstantServiceStub stub); final MobileAppCategoryConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") MobileAppCategoryConstantServiceStub getStub(); final MobileAppCategoryConstant getMobileAppCategoryConstant(
      MobileAppCategoryConstantName resourceName); final MobileAppCategoryConstant getMobileAppCategoryConstant(String resourceName); final MobileAppCategoryConstant getMobileAppCategoryConstant(
      GetMobileAppCategoryConstantRequest request); final UnaryCallable<GetMobileAppCategoryConstantRequest, MobileAppCategoryConstant> getMobileAppCategoryConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }