@Test @SuppressWarnings("all") public void getUserListTest() { com.google.ads.googleads.v5.services.UserListName resourceName2 = com.google.ads.googleads.v5.services.UserListName.of("[CUSTOMER]", "[USER_LIST]"); UserList expectedResponse = UserList.newBuilder().setResourceName(resourceName2.toString()).build(); mockUserListService.addResponse(expectedResponse); UserListName resourceName = UserListName.of("[CUSTOMER]", "[USER_LIST]"); UserList actualResponse = client.getUserList(resourceName); Assert.assertEquals(expectedResponse, actualResponse); List<AbstractMessage> actualRequests = mockUserListService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetUserListRequest actualRequest = (GetUserListRequest) actualRequests.get(0); Assert.assertEquals(resourceName, UserListName.parse(actualRequest.getResourceName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern())); }
public final UserList getUserList(UserListName resourceName) { GetUserListRequest request = GetUserListRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getUserList(request); }
UserListServiceClient implements BackgroundResource { public final UserList getUserList(UserListName resourceName) { GetUserListRequest request = GetUserListRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getUserList(request); } }
UserListServiceClient implements BackgroundResource { public final UserList getUserList(UserListName resourceName) { GetUserListRequest request = GetUserListRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getUserList(request); } protected  UserListServiceClient(UserListServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  UserListServiceClient(UserListServiceStub stub); }
UserListServiceClient implements BackgroundResource { public final UserList getUserList(UserListName resourceName) { GetUserListRequest request = GetUserListRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getUserList(request); } protected  UserListServiceClient(UserListServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  UserListServiceClient(UserListServiceStub stub); static final UserListServiceClient create(); static final UserListServiceClient create(UserListServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final UserListServiceClient create(UserListServiceStub stub); final UserListServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") UserListServiceStub getStub(); final UserList getUserList(UserListName resourceName); final UserList getUserList(String resourceName); final UserList getUserList(GetUserListRequest request); final UnaryCallable<GetUserListRequest, UserList> getUserListCallable(); final MutateUserListsResponse mutateUserLists(
      String customerId, List<UserListOperation> operations); final MutateUserListsResponse mutateUserLists(MutateUserListsRequest request); final UnaryCallable<MutateUserListsRequest, MutateUserListsResponse> mutateUserListsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
UserListServiceClient implements BackgroundResource { public final UserList getUserList(UserListName resourceName) { GetUserListRequest request = GetUserListRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getUserList(request); } protected  UserListServiceClient(UserListServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  UserListServiceClient(UserListServiceStub stub); static final UserListServiceClient create(); static final UserListServiceClient create(UserListServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final UserListServiceClient create(UserListServiceStub stub); final UserListServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") UserListServiceStub getStub(); final UserList getUserList(UserListName resourceName); final UserList getUserList(String resourceName); final UserList getUserList(GetUserListRequest request); final UnaryCallable<GetUserListRequest, UserList> getUserListCallable(); final MutateUserListsResponse mutateUserLists(
      String customerId, List<UserListOperation> operations); final MutateUserListsResponse mutateUserLists(MutateUserListsRequest request); final UnaryCallable<MutateUserListsRequest, MutateUserListsResponse> mutateUserListsCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }