@Test @SuppressWarnings("all") public void getAssetExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAssetService.addException(exception); try { AssetName resourceName = AssetName.of("[CUSTOMER]", "[ASSET]"); client.getAsset(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final Asset getAsset(AssetName resourceName) { GetAssetRequest request = GetAssetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAsset(request); }
AssetServiceClient implements BackgroundResource { public final Asset getAsset(AssetName resourceName) { GetAssetRequest request = GetAssetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAsset(request); } }
AssetServiceClient implements BackgroundResource { public final Asset getAsset(AssetName resourceName) { GetAssetRequest request = GetAssetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAsset(request); } protected  AssetServiceClient(AssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AssetServiceClient(AssetServiceStub stub); }
AssetServiceClient implements BackgroundResource { public final Asset getAsset(AssetName resourceName) { GetAssetRequest request = GetAssetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAsset(request); } protected  AssetServiceClient(AssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AssetServiceClient(AssetServiceStub stub); static final AssetServiceClient create(); static final AssetServiceClient create(AssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AssetServiceClient create(AssetServiceStub stub); final AssetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AssetServiceStub getStub(); final Asset getAsset(AssetName resourceName); final Asset getAsset(String resourceName); final Asset getAsset(GetAssetRequest request); final UnaryCallable<GetAssetRequest, Asset> getAssetCallable(); final MutateAssetsResponse mutateAssets(
      String customerId, List<AssetOperation> operations); final MutateAssetsResponse mutateAssets(MutateAssetsRequest request); final UnaryCallable<MutateAssetsRequest, MutateAssetsResponse> mutateAssetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
AssetServiceClient implements BackgroundResource { public final Asset getAsset(AssetName resourceName) { GetAssetRequest request = GetAssetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAsset(request); } protected  AssetServiceClient(AssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AssetServiceClient(AssetServiceStub stub); static final AssetServiceClient create(); static final AssetServiceClient create(AssetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AssetServiceClient create(AssetServiceStub stub); final AssetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AssetServiceStub getStub(); final Asset getAsset(AssetName resourceName); final Asset getAsset(String resourceName); final Asset getAsset(GetAssetRequest request); final UnaryCallable<GetAssetRequest, Asset> getAssetCallable(); final MutateAssetsResponse mutateAssets(
      String customerId, List<AssetOperation> operations); final MutateAssetsResponse mutateAssets(MutateAssetsRequest request); final UnaryCallable<MutateAssetsRequest, MutateAssetsResponse> mutateAssetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }