@Test @SuppressWarnings("all") public void getBiddingStrategyTest() { com.google.ads.googleads.v5.services.BiddingStrategyName resourceName2 = com.google.ads.googleads.v5.services.BiddingStrategyName.of( "[CUSTOMER]", "[BIDDING_STRATEGY]"); long id = 3355L; com.google.ads.googleads.v5.services.BiddingStrategyName name = com.google.ads.googleads.v5.services.BiddingStrategyName.of( "[CUSTOMER]", "[BIDDING_STRATEGY]"); String effectiveCurrencyCode = "effectiveCurrencyCode2004903107"; long campaignCount = 1320441568L; long nonRemovedCampaignCount = 789221521L; BiddingStrategy expectedResponse = BiddingStrategy.newBuilder() .setResourceName(resourceName2.toString()) .setId(id) .setName(name.toString()) .setEffectiveCurrencyCode(effectiveCurrencyCode) .setCampaignCount(campaignCount) .setNonRemovedCampaignCount(nonRemovedCampaignCount) .build(); mockBiddingStrategyService.addResponse(expectedResponse); BiddingStrategyName resourceName = BiddingStrategyName.of("[CUSTOMER]", "[BIDDING_STRATEGY]"); BiddingStrategy actualResponse = client.getBiddingStrategy(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockBiddingStrategyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetBiddingStrategyRequest actualRequest = (GetBiddingStrategyRequest) actualRequests.get(0); Assert.assertEquals(resourceName, BiddingStrategyName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
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);  }