@Test @SuppressWarnings("all") public void getCampaignBudgetExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignBudgetService.addException(exception); try { CampaignBudgetName resourceName = CampaignBudgetName.of("[CUSTOMER]", "[CAMPAIGN_BUDGET]"); client.getCampaignBudget(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final CampaignBudget getCampaignBudget(CampaignBudgetName resourceName) { GetCampaignBudgetRequest request = GetCampaignBudgetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignBudget(request); }
CampaignBudgetServiceClient implements BackgroundResource { public final CampaignBudget getCampaignBudget(CampaignBudgetName resourceName) { GetCampaignBudgetRequest request = GetCampaignBudgetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignBudget(request); } }
CampaignBudgetServiceClient implements BackgroundResource { public final CampaignBudget getCampaignBudget(CampaignBudgetName resourceName) { GetCampaignBudgetRequest request = GetCampaignBudgetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignBudget(request); } protected  CampaignBudgetServiceClient(CampaignBudgetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignBudgetServiceClient(CampaignBudgetServiceStub stub); }
CampaignBudgetServiceClient implements BackgroundResource { public final CampaignBudget getCampaignBudget(CampaignBudgetName resourceName) { GetCampaignBudgetRequest request = GetCampaignBudgetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignBudget(request); } protected  CampaignBudgetServiceClient(CampaignBudgetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignBudgetServiceClient(CampaignBudgetServiceStub stub); static final CampaignBudgetServiceClient create(); static final CampaignBudgetServiceClient create(CampaignBudgetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignBudgetServiceClient create(CampaignBudgetServiceStub stub); final CampaignBudgetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignBudgetServiceStub getStub(); final CampaignBudget getCampaignBudget(CampaignBudgetName resourceName); final CampaignBudget getCampaignBudget(String resourceName); final CampaignBudget getCampaignBudget(GetCampaignBudgetRequest request); final UnaryCallable<GetCampaignBudgetRequest, CampaignBudget> getCampaignBudgetCallable(); final MutateCampaignBudgetsResponse mutateCampaignBudgets(
      String customerId, List<CampaignBudgetOperation> operations); final MutateCampaignBudgetsResponse mutateCampaignBudgets(
      MutateCampaignBudgetsRequest request); final UnaryCallable<MutateCampaignBudgetsRequest, MutateCampaignBudgetsResponse> mutateCampaignBudgetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CampaignBudgetServiceClient implements BackgroundResource { public final CampaignBudget getCampaignBudget(CampaignBudgetName resourceName) { GetCampaignBudgetRequest request = GetCampaignBudgetRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignBudget(request); } protected  CampaignBudgetServiceClient(CampaignBudgetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignBudgetServiceClient(CampaignBudgetServiceStub stub); static final CampaignBudgetServiceClient create(); static final CampaignBudgetServiceClient create(CampaignBudgetServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignBudgetServiceClient create(CampaignBudgetServiceStub stub); final CampaignBudgetServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignBudgetServiceStub getStub(); final CampaignBudget getCampaignBudget(CampaignBudgetName resourceName); final CampaignBudget getCampaignBudget(String resourceName); final CampaignBudget getCampaignBudget(GetCampaignBudgetRequest request); final UnaryCallable<GetCampaignBudgetRequest, CampaignBudget> getCampaignBudgetCallable(); final MutateCampaignBudgetsResponse mutateCampaignBudgets(
      String customerId, List<CampaignBudgetOperation> operations); final MutateCampaignBudgetsResponse mutateCampaignBudgets(
      MutateCampaignBudgetsRequest request); final UnaryCallable<MutateCampaignBudgetsRequest, MutateCampaignBudgetsResponse> mutateCampaignBudgetsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }