You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: query_options.go
    path of file: ./repos/ziti/controller/api_impl
    
    the code of the file until where you have to start completion: /*
	Copyright NetFoundry Inc.

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

	https://www.apache.org/licenses/LICENSE-2.0

	Unless req
    
func (qo *PublicQueryOptions) getFullQuery(symbolTypes ast.SymbolTypes) (ast.Query, error) {
	if qo.Predicate == "" {
		qo.Predicate = "true"
	}

	query, err := ast.Parse(symbolTypes, qo.Predicate)
	if err != nil {
		return nil, errorz.NewInvalidFilter(err)
	}

	store, isStore := symbolTypes.(boltz.Store)
	if isStore {
		if err = boltz.ValidateSymbolsArePublic(query, store); err != nil {
			return nil, errorz.NewInvalidFilter(err)
		}
	}

	pfxlog.Logger().Debugf("query: %v", qo)

	if qo.Paging != nil {
		if query.GetLimit() == nil {
			if qo.Paging.ReturnAll {
				//public external queries cannot be "return all"
				query.SetLimit(LimitMax)
			} else {
				query.SetLimit(qo.Paging.Limit)
			}
		}
		if query.GetSkip() == nil {
			query.SetSkip(qo.Paging.Offset)
		}
	}

	// sort out sorts
	sortFields := query.GetSortFields()
	if len(sortFields) == 0 && qo.Sort != "" {
		sortQueryString := "true sort by " + qo.Sort

		sortQuery, err := ast.Parse(symbolTypes, sortQueryString)
		if err != nil {
			return nil, errorz.NewInvalidSort(err)
		}

		if isStore {
			if err = boltz.ValidateSymbolsArePublic(sortQuery, store); err != nil {
				return nil, errorz.NewInvalidSort(err)
			}
		}

		if err = query.AdoptSortFields(sortQuery); err != nil {
			return nil, errorz.NewInvalidSort(err)
		}
	}

	return query, nil
}