@Test @SuppressWarnings("all") public void mutateFeedItemTargetsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockFeedItemTargetService.addException(exception); try { String customerId = "customerId-1772061412"; List<FeedItemTargetOperation> operations = new ArrayList<>(); client.mutateFeedItemTargets(customerId, operations); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final MutateFeedItemTargetsResponse mutateFeedItemTargets( String customerId, List<FeedItemTargetOperation> operations) { MutateFeedItemTargetsRequest request = MutateFeedItemTargetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateFeedItemTargets(request); }
FeedItemTargetServiceClient implements BackgroundResource { public final MutateFeedItemTargetsResponse mutateFeedItemTargets( String customerId, List<FeedItemTargetOperation> operations) { MutateFeedItemTargetsRequest request = MutateFeedItemTargetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateFeedItemTargets(request); } }
FeedItemTargetServiceClient implements BackgroundResource { public final MutateFeedItemTargetsResponse mutateFeedItemTargets( String customerId, List<FeedItemTargetOperation> operations) { MutateFeedItemTargetsRequest request = MutateFeedItemTargetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateFeedItemTargets(request); } protected  FeedItemTargetServiceClient(FeedItemTargetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  FeedItemTargetServiceClient(FeedItemTargetServiceStub stub); }
FeedItemTargetServiceClient implements BackgroundResource { public final MutateFeedItemTargetsResponse mutateFeedItemTargets( String customerId, List<FeedItemTargetOperation> operations) { MutateFeedItemTargetsRequest request = MutateFeedItemTargetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateFeedItemTargets(request); } protected  FeedItemTargetServiceClient(FeedItemTargetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  FeedItemTargetServiceClient(FeedItemTargetServiceStub stub); static final FeedItemTargetServiceClient create(); static final FeedItemTargetServiceClient create(FeedItemTargetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final FeedItemTargetServiceClient create(FeedItemTargetServiceStub stub); final FeedItemTargetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") FeedItemTargetServiceStub getStub(); final FeedItemTarget getFeedItemTarget(FeedItemTargetName resourceName); final FeedItemTarget getFeedItemTarget(String resourceName); final FeedItemTarget getFeedItemTarget(GetFeedItemTargetRequest request); final UnaryCallable<GetFeedItemTargetRequest, FeedItemTarget> getFeedItemTargetCallable(); final MutateFeedItemTargetsResponse mutateFeedItemTargets(
      String customerId, List<FeedItemTargetOperation> operations); final MutateFeedItemTargetsResponse mutateFeedItemTargets(
      MutateFeedItemTargetsRequest request); final UnaryCallable<MutateFeedItemTargetsRequest, MutateFeedItemTargetsResponse> mutateFeedItemTargetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
FeedItemTargetServiceClient implements BackgroundResource { public final MutateFeedItemTargetsResponse mutateFeedItemTargets( String customerId, List<FeedItemTargetOperation> operations) { MutateFeedItemTargetsRequest request = MutateFeedItemTargetsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateFeedItemTargets(request); } protected  FeedItemTargetServiceClient(FeedItemTargetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  FeedItemTargetServiceClient(FeedItemTargetServiceStub stub); static final FeedItemTargetServiceClient create(); static final FeedItemTargetServiceClient create(FeedItemTargetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final FeedItemTargetServiceClient create(FeedItemTargetServiceStub stub); final FeedItemTargetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") FeedItemTargetServiceStub getStub(); final FeedItemTarget getFeedItemTarget(FeedItemTargetName resourceName); final FeedItemTarget getFeedItemTarget(String resourceName); final FeedItemTarget getFeedItemTarget(GetFeedItemTargetRequest request); final UnaryCallable<GetFeedItemTargetRequest, FeedItemTarget> getFeedItemTargetCallable(); final MutateFeedItemTargetsResponse mutateFeedItemTargets(
      String customerId, List<FeedItemTargetOperation> operations); final MutateFeedItemTargetsResponse mutateFeedItemTargets(
      MutateFeedItemTargetsRequest request); final UnaryCallable<MutateFeedItemTargetsRequest, MutateFeedItemTargetsResponse> mutateFeedItemTargetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }