@Test @SuppressWarnings("all") public void getRemarketingActionExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockRemarketingActionService.addException(exception); try { RemarketingActionName resourceName = RemarketingActionName.of("[CUSTOMER]", "[REMARKETING_ACTION]"); client.getRemarketingAction(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final RemarketingAction getRemarketingAction(RemarketingActionName resourceName) { GetRemarketingActionRequest request = GetRemarketingActionRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getRemarketingAction(request); }
RemarketingActionServiceClient implements BackgroundResource { public final RemarketingAction getRemarketingAction(RemarketingActionName resourceName) { GetRemarketingActionRequest request = GetRemarketingActionRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getRemarketingAction(request); } }
RemarketingActionServiceClient implements BackgroundResource { public final RemarketingAction getRemarketingAction(RemarketingActionName resourceName) { GetRemarketingActionRequest request = GetRemarketingActionRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getRemarketingAction(request); } protected  RemarketingActionServiceClient(RemarketingActionServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  RemarketingActionServiceClient(RemarketingActionServiceStub stub); }
RemarketingActionServiceClient implements BackgroundResource { public final RemarketingAction getRemarketingAction(RemarketingActionName resourceName) { GetRemarketingActionRequest request = GetRemarketingActionRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getRemarketingAction(request); } protected  RemarketingActionServiceClient(RemarketingActionServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  RemarketingActionServiceClient(RemarketingActionServiceStub stub); static final RemarketingActionServiceClient create(); static final RemarketingActionServiceClient create(
      RemarketingActionServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final RemarketingActionServiceClient create(RemarketingActionServiceStub stub); final RemarketingActionServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") RemarketingActionServiceStub getStub(); final RemarketingAction getRemarketingAction(RemarketingActionName resourceName); final RemarketingAction getRemarketingAction(String resourceName); final RemarketingAction getRemarketingAction(GetRemarketingActionRequest request); final UnaryCallable<GetRemarketingActionRequest, RemarketingAction> getRemarketingActionCallable(); final MutateRemarketingActionsResponse mutateRemarketingActions(
      String customerId, List<RemarketingActionOperation> operations); final MutateRemarketingActionsResponse mutateRemarketingActions(
      MutateRemarketingActionsRequest request); final UnaryCallable<MutateRemarketingActionsRequest, MutateRemarketingActionsResponse> mutateRemarketingActionsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
RemarketingActionServiceClient implements BackgroundResource { public final RemarketingAction getRemarketingAction(RemarketingActionName resourceName) { GetRemarketingActionRequest request = GetRemarketingActionRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getRemarketingAction(request); } protected  RemarketingActionServiceClient(RemarketingActionServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  RemarketingActionServiceClient(RemarketingActionServiceStub stub); static final RemarketingActionServiceClient create(); static final RemarketingActionServiceClient create(
      RemarketingActionServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final RemarketingActionServiceClient create(RemarketingActionServiceStub stub); final RemarketingActionServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") RemarketingActionServiceStub getStub(); final RemarketingAction getRemarketingAction(RemarketingActionName resourceName); final RemarketingAction getRemarketingAction(String resourceName); final RemarketingAction getRemarketingAction(GetRemarketingActionRequest request); final UnaryCallable<GetRemarketingActionRequest, RemarketingAction> getRemarketingActionCallable(); final MutateRemarketingActionsResponse mutateRemarketingActions(
      String customerId, List<RemarketingActionOperation> operations); final MutateRemarketingActionsResponse mutateRemarketingActions(
      MutateRemarketingActionsRequest request); final UnaryCallable<MutateRemarketingActionsRequest, MutateRemarketingActionsResponse> mutateRemarketingActionsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }