@Test @SuppressWarnings("all") public void getBiddingStrategyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockBiddingStrategyService.addException(exception); try { BiddingStrategyName resourceName = BiddingStrategyName.of("[CUSTOMER]", "[BIDDING_STRATEGY]"); client.getBiddingStrategy(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final BiddingStrategy getBiddingStrategy(BiddingStrategyName resourceName) { GetBiddingStrategyRequest request = GetBiddingStrategyRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getBiddingStrategy(request); }
BiddingStrategyServiceClient implements BackgroundResource { public final BiddingStrategy getBiddingStrategy(BiddingStrategyName resourceName) { GetBiddingStrategyRequest request = GetBiddingStrategyRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getBiddingStrategy(request); } }
BiddingStrategyServiceClient implements BackgroundResource { public final BiddingStrategy getBiddingStrategy(BiddingStrategyName resourceName) { GetBiddingStrategyRequest request = GetBiddingStrategyRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getBiddingStrategy(request); } protected  BiddingStrategyServiceClient(BiddingStrategyServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  BiddingStrategyServiceClient(BiddingStrategyServiceStub stub); }
BiddingStrategyServiceClient implements BackgroundResource { public final BiddingStrategy getBiddingStrategy(BiddingStrategyName resourceName) { GetBiddingStrategyRequest request = GetBiddingStrategyRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getBiddingStrategy(request); } protected  BiddingStrategyServiceClient(BiddingStrategyServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  BiddingStrategyServiceClient(BiddingStrategyServiceStub stub); static final BiddingStrategyServiceClient create(); static final BiddingStrategyServiceClient create(BiddingStrategyServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final BiddingStrategyServiceClient create(BiddingStrategyServiceStub stub); final BiddingStrategyServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") BiddingStrategyServiceStub getStub(); final BiddingStrategy getBiddingStrategy(BiddingStrategyName resourceName); final BiddingStrategy getBiddingStrategy(String resourceName); final BiddingStrategy getBiddingStrategy(GetBiddingStrategyRequest request); final UnaryCallable<GetBiddingStrategyRequest, BiddingStrategy> getBiddingStrategyCallable(); final MutateBiddingStrategiesResponse mutateBiddingStrategies(
      String customerId, List<BiddingStrategyOperation> operations); final MutateBiddingStrategiesResponse mutateBiddingStrategies(
      MutateBiddingStrategiesRequest request); final UnaryCallable<MutateBiddingStrategiesRequest, MutateBiddingStrategiesResponse> mutateBiddingStrategiesCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
BiddingStrategyServiceClient implements BackgroundResource { public final BiddingStrategy getBiddingStrategy(BiddingStrategyName resourceName) { GetBiddingStrategyRequest request = GetBiddingStrategyRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getBiddingStrategy(request); } protected  BiddingStrategyServiceClient(BiddingStrategyServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  BiddingStrategyServiceClient(BiddingStrategyServiceStub stub); static final BiddingStrategyServiceClient create(); static final BiddingStrategyServiceClient create(BiddingStrategyServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final BiddingStrategyServiceClient create(BiddingStrategyServiceStub stub); final BiddingStrategyServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") BiddingStrategyServiceStub getStub(); final BiddingStrategy getBiddingStrategy(BiddingStrategyName resourceName); final BiddingStrategy getBiddingStrategy(String resourceName); final BiddingStrategy getBiddingStrategy(GetBiddingStrategyRequest request); final UnaryCallable<GetBiddingStrategyRequest, BiddingStrategy> getBiddingStrategyCallable(); final MutateBiddingStrategiesResponse mutateBiddingStrategies(
      String customerId, List<BiddingStrategyOperation> operations); final MutateBiddingStrategiesResponse mutateBiddingStrategies(
      MutateBiddingStrategiesRequest request); final UnaryCallable<MutateBiddingStrategiesRequest, MutateBiddingStrategiesResponse> mutateBiddingStrategiesCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }