@Test @SuppressWarnings("all") public void getCampaignCriterionSimulationTest() { com.google.ads.googleads.v5.services.CampaignCriterionSimulationName resourceName2 = com.google.ads.googleads.v5.services.CampaignCriterionSimulationName.of( "[CUSTOMER]", "[CAMPAIGN_CRITERION_SIMULATION]"); long campaignId = 2083788458L; long criterionId = 326773895L; String startDate = "startDate-1573629589"; String endDate = "endDate1725067410"; CampaignCriterionSimulation expectedResponse = CampaignCriterionSimulation.newBuilder() .setResourceName(resourceName2.toString()) .setCampaignId(campaignId) .setCriterionId(criterionId) .setStartDate(startDate) .setEndDate(endDate) .build(); mockCampaignCriterionSimulationService.addResponse(expectedResponse); CampaignCriterionSimulationName resourceName = CampaignCriterionSimulationName.of("[CUSTOMER]", "[CAMPAIGN_CRITERION_SIMULATION]"); CampaignCriterionSimulation actualResponse = client.getCampaignCriterionSimulation(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockCampaignCriterionSimulationService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetCampaignCriterionSimulationRequest actualRequest = (GetCampaignCriterionSimulationRequest) actualRequests.get(0); Assert.assertEquals( resourceName, CampaignCriterionSimulationName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); }
CampaignCriterionSimulationServiceClient implements BackgroundResource { public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); } }
CampaignCriterionSimulationServiceClient implements BackgroundResource { public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); } protected  CampaignCriterionSimulationServiceClient(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignCriterionSimulationServiceClient(CampaignCriterionSimulationServiceStub stub); }
CampaignCriterionSimulationServiceClient implements BackgroundResource { public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); } protected  CampaignCriterionSimulationServiceClient(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignCriterionSimulationServiceClient(CampaignCriterionSimulationServiceStub stub); static final CampaignCriterionSimulationServiceClient create(); static final CampaignCriterionSimulationServiceClient create(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignCriterionSimulationServiceClient create(
      CampaignCriterionSimulationServiceStub stub); final CampaignCriterionSimulationServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignCriterionSimulationServiceStub getStub(); final CampaignCriterionSimulation getCampaignCriterionSimulation(
      CampaignCriterionSimulationName resourceName); final CampaignCriterionSimulation getCampaignCriterionSimulation(String resourceName); final CampaignCriterionSimulation getCampaignCriterionSimulation(
      GetCampaignCriterionSimulationRequest request); final UnaryCallable<GetCampaignCriterionSimulationRequest, CampaignCriterionSimulation> getCampaignCriterionSimulationCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CampaignCriterionSimulationServiceClient implements BackgroundResource { public final CampaignCriterionSimulation getCampaignCriterionSimulation( CampaignCriterionSimulationName resourceName) { GetCampaignCriterionSimulationRequest request = GetCampaignCriterionSimulationRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCampaignCriterionSimulation(request); } protected  CampaignCriterionSimulationServiceClient(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignCriterionSimulationServiceClient(CampaignCriterionSimulationServiceStub stub); static final CampaignCriterionSimulationServiceClient create(); static final CampaignCriterionSimulationServiceClient create(
      CampaignCriterionSimulationServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignCriterionSimulationServiceClient create(
      CampaignCriterionSimulationServiceStub stub); final CampaignCriterionSimulationServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignCriterionSimulationServiceStub getStub(); final CampaignCriterionSimulation getCampaignCriterionSimulation(
      CampaignCriterionSimulationName resourceName); final CampaignCriterionSimulation getCampaignCriterionSimulation(String resourceName); final CampaignCriterionSimulation getCampaignCriterionSimulation(
      GetCampaignCriterionSimulationRequest request); final UnaryCallable<GetCampaignCriterionSimulationRequest, CampaignCriterionSimulation> getCampaignCriterionSimulationCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }