@Test @SuppressWarnings("all") public void addOfflineUserDataJobOperationsTest() { AddOfflineUserDataJobOperationsResponse expectedResponse = AddOfflineUserDataJobOperationsResponse.newBuilder().build(); mockOfflineUserDataJobService.addResponse(expectedResponse); OfflineUserDataJobName resourceName = OfflineUserDataJobName.of("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"); List<OfflineUserDataJobOperation> operations = new ArrayList<>(); AddOfflineUserDataJobOperationsResponse actualResponse = client.addOfflineUserDataJobOperations(resourceName, operations); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockOfflineUserDataJobService.getRequests(); Assert.assertEquals(1, actualRequests.size()); AddOfflineUserDataJobOperationsRequest actualRequest = (AddOfflineUserDataJobOperationsRequest) actualRequests.get(0); Assert.assertEquals( resourceName, OfflineUserDataJobName.parse(actualRequest.getResourceName())); Assert.assertEquals(operations, actualRequest.getOperationsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations( OfflineUserDataJobName resourceName, List<OfflineUserDataJobOperation> operations) { AddOfflineUserDataJobOperationsRequest request = AddOfflineUserDataJobOperationsRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .addAllOperations(operations) .build(); return addOfflineUserDataJobOperations(request); }
OfflineUserDataJobServiceClient implements BackgroundResource { public final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations( OfflineUserDataJobName resourceName, List<OfflineUserDataJobOperation> operations) { AddOfflineUserDataJobOperationsRequest request = AddOfflineUserDataJobOperationsRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .addAllOperations(operations) .build(); return addOfflineUserDataJobOperations(request); } }
OfflineUserDataJobServiceClient implements BackgroundResource { public final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations( OfflineUserDataJobName resourceName, List<OfflineUserDataJobOperation> operations) { AddOfflineUserDataJobOperationsRequest request = AddOfflineUserDataJobOperationsRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .addAllOperations(operations) .build(); return addOfflineUserDataJobOperations(request); } protected  OfflineUserDataJobServiceClient(OfflineUserDataJobServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  OfflineUserDataJobServiceClient(OfflineUserDataJobServiceStub stub); }
OfflineUserDataJobServiceClient implements BackgroundResource { public final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations( OfflineUserDataJobName resourceName, List<OfflineUserDataJobOperation> operations) { AddOfflineUserDataJobOperationsRequest request = AddOfflineUserDataJobOperationsRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .addAllOperations(operations) .build(); return addOfflineUserDataJobOperations(request); } protected  OfflineUserDataJobServiceClient(OfflineUserDataJobServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  OfflineUserDataJobServiceClient(OfflineUserDataJobServiceStub stub); static final OfflineUserDataJobServiceClient create(); static final OfflineUserDataJobServiceClient create(
      OfflineUserDataJobServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final OfflineUserDataJobServiceClient create(OfflineUserDataJobServiceStub stub); final OfflineUserDataJobServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") OfflineUserDataJobServiceStub getStub(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationsClient getOperationsClient(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> runOfflineUserDataJobAsync(
      OfflineUserDataJobName resourceName); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> runOfflineUserDataJobAsync(String resourceName); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> runOfflineUserDataJobAsync(
      RunOfflineUserDataJobRequest request); @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") final OperationCallable<RunOfflineUserDataJobRequest, Empty, Empty> runOfflineUserDataJobOperationCallable(); final UnaryCallable<RunOfflineUserDataJobRequest, Operation> runOfflineUserDataJobCallable(); final CreateOfflineUserDataJobResponse createOfflineUserDataJob(
      String customerId, OfflineUserDataJob job); final CreateOfflineUserDataJobResponse createOfflineUserDataJob(
      CreateOfflineUserDataJobRequest request); final UnaryCallable<CreateOfflineUserDataJobRequest, CreateOfflineUserDataJobResponse> createOfflineUserDataJobCallable(); final OfflineUserDataJob getOfflineUserDataJob(OfflineUserDataJobName resourceName); final OfflineUserDataJob getOfflineUserDataJob(String resourceName); final OfflineUserDataJob getOfflineUserDataJob(GetOfflineUserDataJobRequest request); final UnaryCallable<GetOfflineUserDataJobRequest, OfflineUserDataJob> getOfflineUserDataJobCallable(); final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations(
      OfflineUserDataJobName resourceName, List<OfflineUserDataJobOperation> operations); final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations(
      String resourceName, List<OfflineUserDataJobOperation> operations); final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations(
      AddOfflineUserDataJobOperationsRequest request); final UnaryCallable<
          AddOfflineUserDataJobOperationsRequest, AddOfflineUserDataJobOperationsResponse> addOfflineUserDataJobOperationsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
OfflineUserDataJobServiceClient implements BackgroundResource { public final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations( OfflineUserDataJobName resourceName, List<OfflineUserDataJobOperation> operations) { AddOfflineUserDataJobOperationsRequest request = AddOfflineUserDataJobOperationsRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .addAllOperations(operations) .build(); return addOfflineUserDataJobOperations(request); } protected  OfflineUserDataJobServiceClient(OfflineUserDataJobServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  OfflineUserDataJobServiceClient(OfflineUserDataJobServiceStub stub); static final OfflineUserDataJobServiceClient create(); static final OfflineUserDataJobServiceClient create(
      OfflineUserDataJobServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final OfflineUserDataJobServiceClient create(OfflineUserDataJobServiceStub stub); final OfflineUserDataJobServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") OfflineUserDataJobServiceStub getStub(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationsClient getOperationsClient(); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> runOfflineUserDataJobAsync(
      OfflineUserDataJobName resourceName); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> runOfflineUserDataJobAsync(String resourceName); @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") final OperationFuture<Empty, Empty> runOfflineUserDataJobAsync(
      RunOfflineUserDataJobRequest request); @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") final OperationCallable<RunOfflineUserDataJobRequest, Empty, Empty> runOfflineUserDataJobOperationCallable(); final UnaryCallable<RunOfflineUserDataJobRequest, Operation> runOfflineUserDataJobCallable(); final CreateOfflineUserDataJobResponse createOfflineUserDataJob(
      String customerId, OfflineUserDataJob job); final CreateOfflineUserDataJobResponse createOfflineUserDataJob(
      CreateOfflineUserDataJobRequest request); final UnaryCallable<CreateOfflineUserDataJobRequest, CreateOfflineUserDataJobResponse> createOfflineUserDataJobCallable(); final OfflineUserDataJob getOfflineUserDataJob(OfflineUserDataJobName resourceName); final OfflineUserDataJob getOfflineUserDataJob(String resourceName); final OfflineUserDataJob getOfflineUserDataJob(GetOfflineUserDataJobRequest request); final UnaryCallable<GetOfflineUserDataJobRequest, OfflineUserDataJob> getOfflineUserDataJobCallable(); final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations(
      OfflineUserDataJobName resourceName, List<OfflineUserDataJobOperation> operations); final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations(
      String resourceName, List<OfflineUserDataJobOperation> operations); final AddOfflineUserDataJobOperationsResponse addOfflineUserDataJobOperations(
      AddOfflineUserDataJobOperationsRequest request); final UnaryCallable<
          AddOfflineUserDataJobOperationsRequest, AddOfflineUserDataJobOperationsResponse> addOfflineUserDataJobOperationsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }