@Test @SuppressWarnings("all") public void mutateCampaignExperimentsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignExperimentService.addException(exception); try { String customerId = "customerId-1772061412"; List<CampaignExperimentOperation> operations = new ArrayList<>(); client.mutateCampaignExperiments(customerId, operations); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final MutateCampaignExperimentsResponse mutateCampaignExperiments( String customerId, List<CampaignExperimentOperation> operations) { MutateCampaignExperimentsRequest request = MutateCampaignExperimentsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExperiments(request); }
CampaignExperimentServiceClient implements BackgroundResource { public final MutateCampaignExperimentsResponse mutateCampaignExperiments( String customerId, List<CampaignExperimentOperation> operations) { MutateCampaignExperimentsRequest request = MutateCampaignExperimentsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExperiments(request); } }
CampaignExperimentServiceClient implements BackgroundResource { public final MutateCampaignExperimentsResponse mutateCampaignExperiments( String customerId, List<CampaignExperimentOperation> operations) { MutateCampaignExperimentsRequest request = MutateCampaignExperimentsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExperiments(request); } protected  CampaignExperimentServiceClient(CampaignExperimentServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignExperimentServiceClient(CampaignExperimentServiceStub stub); }
CampaignExperimentServiceClient implements BackgroundResource { public final MutateCampaignExperimentsResponse mutateCampaignExperiments( String customerId, List<CampaignExperimentOperation> operations) { MutateCampaignExperimentsRequest request = MutateCampaignExperimentsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExperiments(request); } protected  CampaignExperimentServiceClient(CampaignExperimentServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignExperimentServiceClient(CampaignExperimentServiceStub stub); static final CampaignExperimentServiceClient create(); static final CampaignExperimentServiceClient create(
      CampaignExperimentServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignExperimentServiceClient create(CampaignExperimentServiceStub stub); final CampaignExperimentServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignExperimentServiceStub getStub(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationsClient getOperationsClient(); final CampaignExperiment getCampaignExperiment(CampaignExperimentName resourceName); final CampaignExperiment getCampaignExperiment(String resourceName); final CampaignExperiment getCampaignExperiment(GetCampaignExperimentRequest request); final UnaryCallable<GetCampaignExperimentRequest, CampaignExperiment> getCampaignExperimentCallable(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, CreateCampaignExperimentMetadata> createCampaignExperimentAsync(String customerId, CampaignExperiment campaignExperiment); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, CreateCampaignExperimentMetadata> createCampaignExperimentAsync(CreateCampaignExperimentRequest request); @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") final OperationCallable<
          CreateCampaignExperimentRequest, Empty, CreateCampaignExperimentMetadata> createCampaignExperimentOperationCallable(); final UnaryCallable<CreateCampaignExperimentRequest, Operation> createCampaignExperimentCallable(); final MutateCampaignExperimentsResponse mutateCampaignExperiments(
      String customerId, List<CampaignExperimentOperation> operations); final MutateCampaignExperimentsResponse mutateCampaignExperiments(
      MutateCampaignExperimentsRequest request); final UnaryCallable<MutateCampaignExperimentsRequest, MutateCampaignExperimentsResponse> mutateCampaignExperimentsCallable(); final GraduateCampaignExperimentResponse graduateCampaignExperiment(
      String campaignExperiment, String campaignBudget); final GraduateCampaignExperimentResponse graduateCampaignExperiment(
      GraduateCampaignExperimentRequest request); final UnaryCallable<GraduateCampaignExperimentRequest, GraduateCampaignExperimentResponse> graduateCampaignExperimentCallable(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> promoteCampaignExperimentAsync(
      String campaignExperiment); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> promoteCampaignExperimentAsync(
      PromoteCampaignExperimentRequest request); @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") final OperationCallable<PromoteCampaignExperimentRequest, Empty, Empty> promoteCampaignExperimentOperationCallable(); final UnaryCallable<PromoteCampaignExperimentRequest, Operation> promoteCampaignExperimentCallable(); final void endCampaignExperiment(String campaignExperiment); final void endCampaignExperiment(EndCampaignExperimentRequest request); final UnaryCallable<EndCampaignExperimentRequest, Empty> endCampaignExperimentCallable(); final ListCampaignExperimentAsyncErrorsPagedResponse listCampaignExperimentAsyncErrors(
      CampaignExperimentName resourceName); final ListCampaignExperimentAsyncErrorsPagedResponse listCampaignExperimentAsyncErrors(
      String resourceName); final ListCampaignExperimentAsyncErrorsPagedResponse listCampaignExperimentAsyncErrors(
      ListCampaignExperimentAsyncErrorsRequest request); final UnaryCallable<
          ListCampaignExperimentAsyncErrorsRequest, ListCampaignExperimentAsyncErrorsPagedResponse> listCampaignExperimentAsyncErrorsPagedCallable(); final UnaryCallable<
          ListCampaignExperimentAsyncErrorsRequest, ListCampaignExperimentAsyncErrorsResponse> listCampaignExperimentAsyncErrorsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CampaignExperimentServiceClient implements BackgroundResource { public final MutateCampaignExperimentsResponse mutateCampaignExperiments( String customerId, List<CampaignExperimentOperation> operations) { MutateCampaignExperimentsRequest request = MutateCampaignExperimentsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCampaignExperiments(request); } protected  CampaignExperimentServiceClient(CampaignExperimentServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CampaignExperimentServiceClient(CampaignExperimentServiceStub stub); static final CampaignExperimentServiceClient create(); static final CampaignExperimentServiceClient create(
      CampaignExperimentServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CampaignExperimentServiceClient create(CampaignExperimentServiceStub stub); final CampaignExperimentServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CampaignExperimentServiceStub getStub(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationsClient getOperationsClient(); final CampaignExperiment getCampaignExperiment(CampaignExperimentName resourceName); final CampaignExperiment getCampaignExperiment(String resourceName); final CampaignExperiment getCampaignExperiment(GetCampaignExperimentRequest request); final UnaryCallable<GetCampaignExperimentRequest, CampaignExperiment> getCampaignExperimentCallable(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, CreateCampaignExperimentMetadata> createCampaignExperimentAsync(String customerId, CampaignExperiment campaignExperiment); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, CreateCampaignExperimentMetadata> createCampaignExperimentAsync(CreateCampaignExperimentRequest request); @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") final OperationCallable<
          CreateCampaignExperimentRequest, Empty, CreateCampaignExperimentMetadata> createCampaignExperimentOperationCallable(); final UnaryCallable<CreateCampaignExperimentRequest, Operation> createCampaignExperimentCallable(); final MutateCampaignExperimentsResponse mutateCampaignExperiments(
      String customerId, List<CampaignExperimentOperation> operations); final MutateCampaignExperimentsResponse mutateCampaignExperiments(
      MutateCampaignExperimentsRequest request); final UnaryCallable<MutateCampaignExperimentsRequest, MutateCampaignExperimentsResponse> mutateCampaignExperimentsCallable(); final GraduateCampaignExperimentResponse graduateCampaignExperiment(
      String campaignExperiment, String campaignBudget); final GraduateCampaignExperimentResponse graduateCampaignExperiment(
      GraduateCampaignExperimentRequest request); final UnaryCallable<GraduateCampaignExperimentRequest, GraduateCampaignExperimentResponse> graduateCampaignExperimentCallable(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> promoteCampaignExperimentAsync(
      String campaignExperiment); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> promoteCampaignExperimentAsync(
      PromoteCampaignExperimentRequest request); @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") final OperationCallable<PromoteCampaignExperimentRequest, Empty, Empty> promoteCampaignExperimentOperationCallable(); final UnaryCallable<PromoteCampaignExperimentRequest, Operation> promoteCampaignExperimentCallable(); final void endCampaignExperiment(String campaignExperiment); final void endCampaignExperiment(EndCampaignExperimentRequest request); final UnaryCallable<EndCampaignExperimentRequest, Empty> endCampaignExperimentCallable(); final ListCampaignExperimentAsyncErrorsPagedResponse listCampaignExperimentAsyncErrors(
      CampaignExperimentName resourceName); final ListCampaignExperimentAsyncErrorsPagedResponse listCampaignExperimentAsyncErrors(
      String resourceName); final ListCampaignExperimentAsyncErrorsPagedResponse listCampaignExperimentAsyncErrors(
      ListCampaignExperimentAsyncErrorsRequest request); final UnaryCallable<
          ListCampaignExperimentAsyncErrorsRequest, ListCampaignExperimentAsyncErrorsPagedResponse> listCampaignExperimentAsyncErrorsPagedCallable(); final UnaryCallable<
          ListCampaignExperimentAsyncErrorsRequest, ListCampaignExperimentAsyncErrorsResponse> listCampaignExperimentAsyncErrorsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }