@Test @SuppressWarnings("all") public void listAccessibleCustomersTest() { ListAccessibleCustomersResponse expectedResponse = ListAccessibleCustomersResponse.newBuilder().build(); mockCustomerService.addResponse(expectedResponse); ListAccessibleCustomersRequest request = ListAccessibleCustomersRequest.newBuilder().build(); ListAccessibleCustomersResponse actualResponse = client.listAccessibleCustomers(request); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockCustomerService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListAccessibleCustomersRequest actualRequest = (ListAccessibleCustomersRequest) actualRequests.get(0); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final ListAccessibleCustomersResponse listAccessibleCustomers( ListAccessibleCustomersRequest request) { return listAccessibleCustomersCallable().call(request); }
CustomerServiceClient implements BackgroundResource { public final ListAccessibleCustomersResponse listAccessibleCustomers( ListAccessibleCustomersRequest request) { return listAccessibleCustomersCallable().call(request); } }
CustomerServiceClient implements BackgroundResource { public final ListAccessibleCustomersResponse listAccessibleCustomers( ListAccessibleCustomersRequest request) { return listAccessibleCustomersCallable().call(request); } protected  CustomerServiceClient(CustomerServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerServiceClient(CustomerServiceStub stub); }
CustomerServiceClient implements BackgroundResource { public final ListAccessibleCustomersResponse listAccessibleCustomers( ListAccessibleCustomersRequest request) { return listAccessibleCustomersCallable().call(request); } protected  CustomerServiceClient(CustomerServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerServiceClient(CustomerServiceStub stub); static final CustomerServiceClient create(); static final CustomerServiceClient create(CustomerServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CustomerServiceClient create(CustomerServiceStub stub); final CustomerServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CustomerServiceStub getStub(); final Customer getCustomer(CustomerName resourceName); final Customer getCustomer(String resourceName); final Customer getCustomer(GetCustomerRequest request); final UnaryCallable<GetCustomerRequest, Customer> getCustomerCallable(); final MutateCustomerResponse mutateCustomer(
      String customerId, CustomerOperation operation); final MutateCustomerResponse mutateCustomer(MutateCustomerRequest request); final UnaryCallable<MutateCustomerRequest, MutateCustomerResponse> mutateCustomerCallable(); final ListAccessibleCustomersResponse listAccessibleCustomers(
      ListAccessibleCustomersRequest request); final UnaryCallable<ListAccessibleCustomersRequest, ListAccessibleCustomersResponse> listAccessibleCustomersCallable(); final CreateCustomerClientResponse createCustomerClient(
      String customerId, Customer customerClient); final CreateCustomerClientResponse createCustomerClient(
      CreateCustomerClientRequest request); final UnaryCallable<CreateCustomerClientRequest, CreateCustomerClientResponse> createCustomerClientCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CustomerServiceClient implements BackgroundResource { public final ListAccessibleCustomersResponse listAccessibleCustomers( ListAccessibleCustomersRequest request) { return listAccessibleCustomersCallable().call(request); } protected  CustomerServiceClient(CustomerServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CustomerServiceClient(CustomerServiceStub stub); static final CustomerServiceClient create(); static final CustomerServiceClient create(CustomerServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CustomerServiceClient create(CustomerServiceStub stub); final CustomerServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CustomerServiceStub getStub(); final Customer getCustomer(CustomerName resourceName); final Customer getCustomer(String resourceName); final Customer getCustomer(GetCustomerRequest request); final UnaryCallable<GetCustomerRequest, Customer> getCustomerCallable(); final MutateCustomerResponse mutateCustomer(
      String customerId, CustomerOperation operation); final MutateCustomerResponse mutateCustomer(MutateCustomerRequest request); final UnaryCallable<MutateCustomerRequest, MutateCustomerResponse> mutateCustomerCallable(); final ListAccessibleCustomersResponse listAccessibleCustomers(
      ListAccessibleCustomersRequest request); final UnaryCallable<ListAccessibleCustomersRequest, ListAccessibleCustomersResponse> listAccessibleCustomersCallable(); final CreateCustomerClientResponse createCustomerClient(
      String customerId, Customer customerClient); final CreateCustomerClientResponse createCustomerClient(
      CreateCustomerClientRequest request); final UnaryCallable<CreateCustomerClientRequest, CreateCustomerClientResponse> createCustomerClientCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }