@Test @SuppressWarnings("all") public void mutateBiddingStrategiesTest() { MutateBiddingStrategiesResponse expectedResponse = MutateBiddingStrategiesResponse.newBuilder().build(); mockBiddingStrategyService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; List<BiddingStrategyOperation> operations = new ArrayList<>(); MutateBiddingStrategiesResponse actualResponse = client.mutateBiddingStrategies(customerId, operations); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockBiddingStrategyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); MutateBiddingStrategiesRequest actualRequest = (MutateBiddingStrategiesRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final MutateBiddingStrategiesResponse mutateBiddingStrategies( String customerId, List<BiddingStrategyOperation> operations) { MutateBiddingStrategiesRequest request = MutateBiddingStrategiesRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateBiddingStrategies(request); }
BiddingStrategyServiceClient implements BackgroundResource { public final MutateBiddingStrategiesResponse mutateBiddingStrategies( String customerId, List<BiddingStrategyOperation> operations) { MutateBiddingStrategiesRequest request = MutateBiddingStrategiesRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateBiddingStrategies(request); } }
BiddingStrategyServiceClient implements BackgroundResource { public final MutateBiddingStrategiesResponse mutateBiddingStrategies( String customerId, List<BiddingStrategyOperation> operations) { MutateBiddingStrategiesRequest request = MutateBiddingStrategiesRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateBiddingStrategies(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 MutateBiddingStrategiesResponse mutateBiddingStrategies( String customerId, List<BiddingStrategyOperation> operations) { MutateBiddingStrategiesRequest request = MutateBiddingStrategiesRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateBiddingStrategies(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 MutateBiddingStrategiesResponse mutateBiddingStrategies( String customerId, List<BiddingStrategyOperation> operations) { MutateBiddingStrategiesRequest request = MutateBiddingStrategiesRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateBiddingStrategies(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);  }