func MakeFirstPageToken(t time.Time, idx int) (string, error) {
	tsp, err := ptypes.TimestampProto(t)
	if err != nil {
		return "", err
	}
	return MakeNextPageToken(&drghs_v1.PageToken{
		FirstRequestTimeUsec: tsp,
		Offset:               int32(idx),
	}, idx)
}
MakeFirstPageToken creates a new string page token for the given key/time
package paginator
import (
	b64 "encoding/base64"
	"errors"
	"time"
	drghs_v1 "github.com/GoogleCloudPlatform/devrel-services/drghs/v1"
	"github.com/golang/protobuf/proto"
	"github.com/golang/protobuf/ptypes"
)
var (
	ErrNilPageToken = errors.New("nil PageToken")
)
func DecodePageToken(req string) (*drghs_v1.PageToken, error) {
	pageToken := &drghs_v1.PageToken{}
	decstr, err := b64.StdEncoding.DecodeString(req)
	err = pageToken.XXX_Unmarshal(decstr)
	if err != nil {
		return nil, err
	}
	return pageToken, nil
}