@Test @SuppressWarnings("all") public void mutateCustomerFeedsTest() { MutateCustomerFeedsResponse expectedResponse = MutateCustomerFeedsResponse.newBuilder().build(); mockCustomerFeedService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; List<CustomerFeedOperation> operations = new ArrayList<>(); MutateCustomerFeedsResponse actualResponse = client.mutateCustomerFeeds(customerId, operations); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockCustomerFeedService.getRequests(); Assert.assertEquals(1, actualRequests.size()); MutateCustomerFeedsRequest actualRequest = (MutateCustomerFeedsRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final MutateCustomerFeedsResponse mutateCustomerFeeds( String customerId, List<CustomerFeedOperation> operations) { MutateCustomerFeedsRequest request = MutateCustomerFeedsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCustomerFeeds(request); }
CustomerFeedServiceClient implements BackgroundResource { public final MutateCustomerFeedsResponse mutateCustomerFeeds( String customerId, List<CustomerFeedOperation> operations) { MutateCustomerFeedsRequest request = MutateCustomerFeedsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCustomerFeeds(request); } }
CustomerFeedServiceClient implements BackgroundResource { public final MutateCustomerFeedsResponse mutateCustomerFeeds( String customerId, List<CustomerFeedOperation> operations) { MutateCustomerFeedsRequest request = MutateCustomerFeedsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCustomerFeeds(request); } protected  CustomerFeedServiceClient(CustomerFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerFeedServiceClient(CustomerFeedServiceStub stub); }
CustomerFeedServiceClient implements BackgroundResource { public final MutateCustomerFeedsResponse mutateCustomerFeeds( String customerId, List<CustomerFeedOperation> operations) { MutateCustomerFeedsRequest request = MutateCustomerFeedsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCustomerFeeds(request); } protected  CustomerFeedServiceClient(CustomerFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerFeedServiceClient(CustomerFeedServiceStub stub); static final CustomerFeedServiceClient create(); static final CustomerFeedServiceClient create(CustomerFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CustomerFeedServiceClient create(CustomerFeedServiceStub stub); final CustomerFeedServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CustomerFeedServiceStub getStub(); final CustomerFeed getCustomerFeed(CustomerFeedName resourceName); final CustomerFeed getCustomerFeed(String resourceName); final CustomerFeed getCustomerFeed(GetCustomerFeedRequest request); final UnaryCallable<GetCustomerFeedRequest, CustomerFeed> getCustomerFeedCallable(); final MutateCustomerFeedsResponse mutateCustomerFeeds(
      String customerId, List<CustomerFeedOperation> operations); final MutateCustomerFeedsResponse mutateCustomerFeeds(MutateCustomerFeedsRequest request); final UnaryCallable<MutateCustomerFeedsRequest, MutateCustomerFeedsResponse> mutateCustomerFeedsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CustomerFeedServiceClient implements BackgroundResource { public final MutateCustomerFeedsResponse mutateCustomerFeeds( String customerId, List<CustomerFeedOperation> operations) { MutateCustomerFeedsRequest request = MutateCustomerFeedsRequest.newBuilder() .setCustomerId(customerId) .addAllOperations(operations) .build(); return mutateCustomerFeeds(request); } protected  CustomerFeedServiceClient(CustomerFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerFeedServiceClient(CustomerFeedServiceStub stub); static final CustomerFeedServiceClient create(); static final CustomerFeedServiceClient create(CustomerFeedServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CustomerFeedServiceClient create(CustomerFeedServiceStub stub); final CustomerFeedServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CustomerFeedServiceStub getStub(); final CustomerFeed getCustomerFeed(CustomerFeedName resourceName); final CustomerFeed getCustomerFeed(String resourceName); final CustomerFeed getCustomerFeed(GetCustomerFeedRequest request); final UnaryCallable<GetCustomerFeedRequest, CustomerFeed> getCustomerFeedCallable(); final MutateCustomerFeedsResponse mutateCustomerFeeds(
      String customerId, List<CustomerFeedOperation> operations); final MutateCustomerFeedsResponse mutateCustomerFeeds(MutateCustomerFeedsRequest request); final UnaryCallable<MutateCustomerFeedsRequest, MutateCustomerFeedsResponse> mutateCustomerFeedsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }