@Test @SuppressWarnings("all") public void getAccountBudgetProposalExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAccountBudgetProposalService.addException(exception); try { AccountBudgetProposalName resourceName = AccountBudgetProposalName.of("[CUSTOMER]", "[ACCOUNT_BUDGET_PROPOSAL]"); client.getAccountBudgetProposal(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final AccountBudgetProposal getAccountBudgetProposal( AccountBudgetProposalName resourceName) { GetAccountBudgetProposalRequest request = GetAccountBudgetProposalRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountBudgetProposal(request); }
AccountBudgetProposalServiceClient implements BackgroundResource { public final AccountBudgetProposal getAccountBudgetProposal( AccountBudgetProposalName resourceName) { GetAccountBudgetProposalRequest request = GetAccountBudgetProposalRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountBudgetProposal(request); } }
AccountBudgetProposalServiceClient implements BackgroundResource { public final AccountBudgetProposal getAccountBudgetProposal( AccountBudgetProposalName resourceName) { GetAccountBudgetProposalRequest request = GetAccountBudgetProposalRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountBudgetProposal(request); } protected  AccountBudgetProposalServiceClient(AccountBudgetProposalServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AccountBudgetProposalServiceClient(AccountBudgetProposalServiceStub stub); }
AccountBudgetProposalServiceClient implements BackgroundResource { public final AccountBudgetProposal getAccountBudgetProposal( AccountBudgetProposalName resourceName) { GetAccountBudgetProposalRequest request = GetAccountBudgetProposalRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountBudgetProposal(request); } protected  AccountBudgetProposalServiceClient(AccountBudgetProposalServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AccountBudgetProposalServiceClient(AccountBudgetProposalServiceStub stub); static final AccountBudgetProposalServiceClient create(); static final AccountBudgetProposalServiceClient create(
      AccountBudgetProposalServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AccountBudgetProposalServiceClient create(
      AccountBudgetProposalServiceStub stub); final AccountBudgetProposalServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AccountBudgetProposalServiceStub getStub(); final AccountBudgetProposal getAccountBudgetProposal(
      AccountBudgetProposalName resourceName); final AccountBudgetProposal getAccountBudgetProposal(String resourceName); final AccountBudgetProposal getAccountBudgetProposal(
      GetAccountBudgetProposalRequest request); final UnaryCallable<GetAccountBudgetProposalRequest, AccountBudgetProposal> getAccountBudgetProposalCallable(); final MutateAccountBudgetProposalResponse mutateAccountBudgetProposal(
      String customerId, AccountBudgetProposalOperation operation); final MutateAccountBudgetProposalResponse mutateAccountBudgetProposal(
      MutateAccountBudgetProposalRequest request); final UnaryCallable<
          MutateAccountBudgetProposalRequest, MutateAccountBudgetProposalResponse> mutateAccountBudgetProposalCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
AccountBudgetProposalServiceClient implements BackgroundResource { public final AccountBudgetProposal getAccountBudgetProposal( AccountBudgetProposalName resourceName) { GetAccountBudgetProposalRequest request = GetAccountBudgetProposalRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountBudgetProposal(request); } protected  AccountBudgetProposalServiceClient(AccountBudgetProposalServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AccountBudgetProposalServiceClient(AccountBudgetProposalServiceStub stub); static final AccountBudgetProposalServiceClient create(); static final AccountBudgetProposalServiceClient create(
      AccountBudgetProposalServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AccountBudgetProposalServiceClient create(
      AccountBudgetProposalServiceStub stub); final AccountBudgetProposalServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AccountBudgetProposalServiceStub getStub(); final AccountBudgetProposal getAccountBudgetProposal(
      AccountBudgetProposalName resourceName); final AccountBudgetProposal getAccountBudgetProposal(String resourceName); final AccountBudgetProposal getAccountBudgetProposal(
      GetAccountBudgetProposalRequest request); final UnaryCallable<GetAccountBudgetProposalRequest, AccountBudgetProposal> getAccountBudgetProposalCallable(); final MutateAccountBudgetProposalResponse mutateAccountBudgetProposal(
      String customerId, AccountBudgetProposalOperation operation); final MutateAccountBudgetProposalResponse mutateAccountBudgetProposal(
      MutateAccountBudgetProposalRequest request); final UnaryCallable<
          MutateAccountBudgetProposalRequest, MutateAccountBudgetProposalResponse> mutateAccountBudgetProposalCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }