repo_id
stringclasses
927 values
file_path
stringlengths
99
214
content
stringlengths
2
4.15M
aetest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/aetest/instance.go
package aetest import ( "context" "io" "net/http" "time" "google.golang.org/appengine" ) // Instance represents a running instance of the development API Server. type Instance interface { // Close kills the child api_server.py process, releasing its resources. io.Closer // NewRequest returns an *http.Request associated with this instance. NewRequest(method, urlStr string, body io.Reader) (*http.Request, error) } // Options is used to specify options when creating an Instance. type Options struct { // AppID specifies the App ID to use during tests. // By default, "testapp". AppID string // StronglyConsistentDatastore is whether the local datastore should be // strongly consistent. This will diverge from production behaviour. StronglyConsistentDatastore bool // SupportDatastoreEmulator is whether use Cloud Datastore Emulator or // use old SQLite based Datastore backend or use default settings. SupportDatastoreEmulator *bool // SuppressDevAppServerLog is whether the dev_appserver running in tests // should output logs. SuppressDevAppServerLog bool // StartupTimeout is a duration to wait for instance startup. // By default, 15 seconds. StartupTimeout time.Duration } // NewContext starts an instance of the development API server, and returns // a context that will route all API calls to that server, as well as a // closure that must be called when the Context is no longer required. func NewContext() (context.Context, func(), error) { inst, err := NewInstance(nil) if err != nil { return nil, nil, err } req, err := inst.NewRequest("GET", "/", nil) if err != nil { inst.Close() return nil, nil, err } ctx := appengine.NewContext(req) return ctx, func() { inst.Close() }, nil } // PrepareDevAppserver is a hook which, if set, will be called before the // dev_appserver.py is started, each time it is started. If aetest.NewContext // is invoked from the goapp test tool, this hook is unnecessary. var PrepareDevAppserver func() error
aetest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/aetest/doc.go
/* Package aetest provides an API for running dev_appserver for use in tests. An example test file: package foo_test import ( "testing" "google.golang.org/appengine/memcache" "google.golang.org/appengine/aetest" ) func TestFoo(t *testing.T) { ctx, done, err := aetest.NewContext() if err != nil { t.Fatal(err) } defer done() it := &memcache.Item{ Key: "some-key", Value: []byte("some-value"), } err = memcache.Set(ctx, it) if err != nil { t.Fatalf("Set err: %v", err) } it, err = memcache.Get(ctx, "some-key") if err != nil { t.Fatalf("Get err: %v; want no error", err) } if g, w := string(it.Value), "some-value" ; g != w { t.Errorf("retrieved Item.Value = %q, want %q", g, w) } } The environment variable APPENGINE_DEV_APPSERVER specifies the location of the dev_appserver.py executable to use. If unset, the system PATH is consulted. */ package aetest
aetest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/aetest/instance_test.go
package aetest import ( "os" "testing" "google.golang.org/appengine" "google.golang.org/appengine/datastore" "google.golang.org/appengine/internal" "google.golang.org/appengine/memcache" "google.golang.org/appengine/user" ) func TestBasicAPICalls(t *testing.T) { // Only run the test if APPENGINE_DEV_APPSERVER is explicitly set. if os.Getenv("APPENGINE_DEV_APPSERVER") == "" { t.Skip("APPENGINE_DEV_APPSERVER not set") } resetEnv := internal.SetTestEnv() defer resetEnv() inst, err := NewInstance(nil) if err != nil { t.Fatalf("NewInstance: %v", err) } defer inst.Close() req, err := inst.NewRequest("GET", "http://example.com/page", nil) if err != nil { t.Fatalf("NewRequest: %v", err) } ctx := appengine.NewContext(req) it := &memcache.Item{ Key: "some-key", Value: []byte("some-value"), } err = memcache.Set(ctx, it) if err != nil { t.Fatalf("Set err: %v", err) } it, err = memcache.Get(ctx, "some-key") if err != nil { t.Fatalf("Get err: %v; want no error", err) } if g, w := string(it.Value), "some-value"; g != w { t.Errorf("retrieved Item.Value = %q, want %q", g, w) } type Entity struct{ Value string } e := &Entity{Value: "foo"} k := datastore.NewIncompleteKey(ctx, "Entity", nil) k, err = datastore.Put(ctx, k, e) if err != nil { t.Fatalf("datastore.Put: %v", err) } e = new(Entity) if err := datastore.Get(ctx, k, e); err != nil { t.Fatalf("datastore.Get: %v", err) } if g, w := e.Value, "foo"; g != w { t.Errorf("retrieved Entity.Value = %q, want %q", g, w) } } func TestContext(t *testing.T) { // Only run the test if APPENGINE_DEV_APPSERVER is explicitly set. if os.Getenv("APPENGINE_DEV_APPSERVER") == "" { t.Skip("APPENGINE_DEV_APPSERVER not set") } // Check that the context methods work. _, done, err := NewContext() if err != nil { t.Fatalf("NewContext: %v", err) } done() } func TestUsers(t *testing.T) { // Only run the test if APPENGINE_DEV_APPSERVER is explicitly set. if os.Getenv("APPENGINE_DEV_APPSERVER") == "" { t.Skip("APPENGINE_DEV_APPSERVER not set") } inst, err := NewInstance(nil) if err != nil { t.Fatalf("NewInstance: %v", err) } defer inst.Close() req, err := inst.NewRequest("GET", "http://example.com/page", nil) if err != nil { t.Fatalf("NewRequest: %v", err) } ctx := appengine.NewContext(req) if user := user.Current(ctx); user != nil { t.Errorf("user.Current initially %v, want nil", user) } u := &user.User{ Email: "gopher@example.com", Admin: true, } Login(u, req) if got := user.Current(ctx); got.Email != u.Email { t.Errorf("user.Current: %v, want %v", got, u) } if admin := user.IsAdmin(ctx); !admin { t.Errorf("user.IsAdmin: %t, want true", admin) } Logout(req) if user := user.Current(ctx); user != nil { t.Errorf("user.Current after logout %v, want nil", user) } }
aetest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/aetest/instance_vm.go
//go:build !appengine // +build !appengine package aetest import ( "bufio" "crypto/rand" "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "os" "os/exec" "path/filepath" "regexp" "time" "google.golang.org/appengine/internal" ) // NewInstance launches a running instance of api_server.py which can be used // for multiple test Contexts that delegate all App Engine API calls to that // instance. // If opts is nil the default values are used. func NewInstance(opts *Options) (Instance, error) { i := &instance{ opts: opts, appID: "testapp", startupTimeout: 15 * time.Second, } if opts != nil { if opts.AppID != "" { i.appID = opts.AppID } if opts.StartupTimeout > 0 { i.startupTimeout = opts.StartupTimeout } } if err := i.startChild(); err != nil { return nil, err } return i, nil } func newSessionID() string { var buf [16]byte io.ReadFull(rand.Reader, buf[:]) return fmt.Sprintf("%x", buf[:]) } // instance implements the Instance interface. type instance struct { opts *Options child *exec.Cmd apiURL *url.URL // base URL of API HTTP server adminURL string // base URL of admin HTTP server appDir string appID string startupTimeout time.Duration } // NewRequest returns an *http.Request associated with this instance. func (i *instance) NewRequest(method, urlStr string, body io.Reader) (*http.Request, error) { req, err := http.NewRequest(method, urlStr, body) if err != nil { return nil, err } // Associate this request. return internal.RegisterTestRequest(req, i.apiURL, "dev~"+i.appID), nil } // Close kills the child api_server.py process, releasing its resources. func (i *instance) Close() (err error) { child := i.child if child == nil { return nil } defer func() { i.child = nil err1 := os.RemoveAll(i.appDir) if err == nil { err = err1 } }() if p := child.Process; p != nil { errc := make(chan error, 1) go func() { errc <- child.Wait() }() // Call the quit handler on the admin server. res, err := http.Get(i.adminURL + "/quit") if err != nil { p.Kill() return fmt.Errorf("unable to call /quit handler: %v", err) } res.Body.Close() select { case <-time.After(15 * time.Second): p.Kill() return errors.New("timeout killing child process") case err = <-errc: // Do nothing. } } return } func fileExists(path string) bool { _, err := os.Stat(path) return err == nil } func findPython() (path string, err error) { for _, name := range []string{"python2.7", "python"} { path, err = exec.LookPath(name) if err == nil { return } } return } func findDevAppserver() (string, error) { if p := os.Getenv("APPENGINE_DEV_APPSERVER"); p != "" { if fileExists(p) { return p, nil } return "", fmt.Errorf("invalid APPENGINE_DEV_APPSERVER environment variable; path %q doesn't exist", p) } return exec.LookPath("dev_appserver.py") } var apiServerAddrRE = regexp.MustCompile(`Starting API server at: (\S+)`) var adminServerAddrRE = regexp.MustCompile(`Starting admin server at: (\S+)`) func (i *instance) startChild() (err error) { if PrepareDevAppserver != nil { if err := PrepareDevAppserver(); err != nil { return err } } executable := os.Getenv("APPENGINE_DEV_APPSERVER") var appserverArgs []string if len(executable) == 0 { executable, err = findPython() if err != nil { return fmt.Errorf("Could not find python interpreter: %v", err) } devAppserver, err := findDevAppserver() if err != nil { return fmt.Errorf("Could not find dev_appserver.py: %v", err) } appserverArgs = append(appserverArgs, devAppserver) } i.appDir, err = ioutil.TempDir("", "appengine-aetest") if err != nil { return err } defer func() { if err != nil { os.RemoveAll(i.appDir) } }() err = os.Mkdir(filepath.Join(i.appDir, "app"), 0755) if err != nil { return err } err = ioutil.WriteFile(filepath.Join(i.appDir, "app", "app.yaml"), []byte(i.appYAML()), 0644) if err != nil { return err } err = ioutil.WriteFile(filepath.Join(i.appDir, "app", "stubapp.go"), []byte(appSource), 0644) if err != nil { return err } datastorePath := os.Getenv("APPENGINE_DEV_APPSERVER_DATASTORE_PATH") if len(datastorePath) == 0 { datastorePath = filepath.Join(i.appDir, "datastore") } appserverArgs = append(appserverArgs, "--port=0", "--api_port=0", "--admin_port=0", "--automatic_restart=false", "--skip_sdk_update_check=true", "--clear_datastore=true", "--clear_search_indexes=true", "--datastore_path", datastorePath, ) if i.opts != nil && i.opts.StronglyConsistentDatastore { appserverArgs = append(appserverArgs, "--datastore_consistency_policy=consistent") } if i.opts != nil && i.opts.SupportDatastoreEmulator != nil { appserverArgs = append(appserverArgs, fmt.Sprintf("--support_datastore_emulator=%t", *i.opts.SupportDatastoreEmulator)) } appserverArgs = append(appserverArgs, filepath.Join(i.appDir, "app")) i.child = exec.Command(executable, appserverArgs...) i.child.Stdout = os.Stdout var stderr io.Reader stderr, err = i.child.StderrPipe() if err != nil { return err } if err = i.child.Start(); err != nil { return err } // Read stderr until we have read the URLs of the API server and admin interface. errc := make(chan error, 1) go func() { s := bufio.NewScanner(stderr) for s.Scan() { // Pass stderr along as we go so the user can see it. if !(i.opts != nil && i.opts.SuppressDevAppServerLog) { fmt.Fprintln(os.Stderr, s.Text()) } if match := apiServerAddrRE.FindStringSubmatch(s.Text()); match != nil { u, err := url.Parse(match[1]) if err != nil { errc <- fmt.Errorf("failed to parse API URL %q: %v", match[1], err) return } i.apiURL = u } if match := adminServerAddrRE.FindStringSubmatch(s.Text()); match != nil { i.adminURL = match[1] } if i.adminURL != "" && i.apiURL != nil { // Pass along stderr to the user after we're done with it. if !(i.opts != nil && i.opts.SuppressDevAppServerLog) { go io.Copy(os.Stderr, stderr) } break } } errc <- s.Err() }() select { case <-time.After(i.startupTimeout): if p := i.child.Process; p != nil { p.Kill() } return errors.New("timeout starting child process") case err := <-errc: if err != nil { return fmt.Errorf("error reading child process stderr: %v", err) } } if i.adminURL == "" { return errors.New("unable to find admin server URL") } if i.apiURL == nil { return errors.New("unable to find API server URL") } return nil } func (i *instance) appYAML() string { return fmt.Sprintf(appYAMLTemplate, i.appID) } const appYAMLTemplate = ` application: %s version: 1 runtime: go122 handlers: - url: /.* script: _go_app ` const appSource = ` package main import "google.golang.org/appengine" func main() { appengine.Main() } `
mail
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/mail/mail_test.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package mail import ( "testing" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal/aetesting" basepb "google.golang.org/appengine/internal/base" pb "google.golang.org/appengine/internal/mail" ) func TestMessageConstruction(t *testing.T) { var got *pb.MailMessage c := aetesting.FakeSingleContext(t, "mail", "Send", func(in *pb.MailMessage, out *basepb.VoidProto) error { got = in return nil }) msg := &Message{ Sender: "dsymonds@example.com", To: []string{"nigeltao@example.com"}, Body: "Hey, lunch time?", Attachments: []Attachment{ // Regression test for a prod bug. The address of a range variable was used when // constructing the outgoing proto, so multiple attachments used the same name. { Name: "att1.txt", Data: []byte("data1"), ContentID: "<att1>", }, { Name: "att2.txt", Data: []byte("data2"), }, }, } if err := Send(c, msg); err != nil { t.Fatalf("Send: %v", err) } want := &pb.MailMessage{ Sender: proto.String("dsymonds@example.com"), To: []string{"nigeltao@example.com"}, Subject: proto.String(""), TextBody: proto.String("Hey, lunch time?"), Attachment: []*pb.MailAttachment{ { FileName: proto.String("att1.txt"), Data: []byte("data1"), ContentID: proto.String("<att1>"), }, { FileName: proto.String("att2.txt"), Data: []byte("data2"), }, }, } if !proto.Equal(got, want) { t.Errorf("Bad proto for %+v\n got %v\nwant %v", msg, got, want) } }
mail
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/mail/mail.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. /* Package mail provides the means of sending email from an App Engine application. Example: msg := &mail.Message{ Sender: "romeo@montague.com", To: []string{"Juliet <juliet@capulet.org>"}, Subject: "See you tonight", Body: "Don't forget our plans. Hark, 'til later.", } if err := mail.Send(c, msg); err != nil { log.Errorf(c, "Alas, my user, the email failed to sendeth: %v", err) } */ package mail // import "google.golang.org/appengine/mail" import ( "context" "net/mail" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal" bpb "google.golang.org/appengine/internal/base" pb "google.golang.org/appengine/internal/mail" ) // A Message represents an email message. // Addresses may be of any form permitted by RFC 822. type Message struct { // Sender must be set, and must be either an application admin // or the currently signed-in user. Sender string ReplyTo string // may be empty // At least one of these slices must have a non-zero length, // except when calling SendToAdmins. To, Cc, Bcc []string Subject string // At least one of Body or HTMLBody must be non-empty. Body string HTMLBody string Attachments []Attachment // Extra mail headers. // See https://cloud.google.com/appengine/docs/standard/go/mail/ // for permissible headers. Headers mail.Header } // An Attachment represents an email attachment. type Attachment struct { // Name must be set to a valid file name. Name string Data []byte ContentID string } // Send sends an email message. func Send(c context.Context, msg *Message) error { return send(c, "Send", msg) } // SendToAdmins sends an email message to the application's administrators. func SendToAdmins(c context.Context, msg *Message) error { return send(c, "SendToAdmins", msg) } func send(c context.Context, method string, msg *Message) error { req := &pb.MailMessage{ Sender: &msg.Sender, To: msg.To, Cc: msg.Cc, Bcc: msg.Bcc, Subject: &msg.Subject, } if msg.ReplyTo != "" { req.ReplyTo = &msg.ReplyTo } if msg.Body != "" { req.TextBody = &msg.Body } if msg.HTMLBody != "" { req.HtmlBody = &msg.HTMLBody } if len(msg.Attachments) > 0 { req.Attachment = make([]*pb.MailAttachment, len(msg.Attachments)) for i, att := range msg.Attachments { req.Attachment[i] = &pb.MailAttachment{ FileName: proto.String(att.Name), Data: att.Data, } if att.ContentID != "" { req.Attachment[i].ContentID = proto.String(att.ContentID) } } } for key, vs := range msg.Headers { for _, v := range vs { req.Header = append(req.Header, &pb.MailHeader{ Name: proto.String(key), Value: proto.String(v), }) } } res := &bpb.VoidProto{} if err := internal.Call(c, "mail", method, req, res); err != nil { return err } return nil } func init() { internal.RegisterErrorCodeMap("mail", pb.MailServiceError_ErrorCode_name) }
file
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/file/file.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package file provides helper functions for using Google Cloud Storage. package file import ( "context" "fmt" "google.golang.org/appengine/internal" aipb "google.golang.org/appengine/internal/app_identity" ) // DefaultBucketName returns the name of this application's // default Google Cloud Storage bucket. func DefaultBucketName(c context.Context) (string, error) { req := &aipb.GetDefaultGcsBucketNameRequest{} res := &aipb.GetDefaultGcsBucketNameResponse{} err := internal.Call(c, "app_identity_service", "GetDefaultGcsBucketName", req, res) if err != nil { return "", fmt.Errorf("file: no default bucket name returned in RPC response: %v", err) } return res.GetDefaultGcsBucketName(), nil }
blobstore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/blobstore/blobstore.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package blobstore provides a client for App Engine's persistent blob // storage service. package blobstore // import "google.golang.org/appengine/blobstore" import ( "bufio" "bytes" "context" "encoding/base64" "fmt" "io" "io/ioutil" "mime" "mime/multipart" "net/http" "net/textproto" "net/url" "strconv" "strings" "time" "github.com/golang/protobuf/proto" "golang.org/x/text/encoding/htmlindex" "google.golang.org/appengine" "google.golang.org/appengine/datastore" "google.golang.org/appengine/internal" basepb "google.golang.org/appengine/internal/base" blobpb "google.golang.org/appengine/internal/blobstore" ) const ( blobInfoKind = "__BlobInfo__" blobFileIndexKind = "__BlobFileIndex__" zeroKey = appengine.BlobKey("") ) // BlobInfo is the blob metadata that is stored in the datastore. // Filename may be empty. type BlobInfo struct { BlobKey appengine.BlobKey ContentType string `datastore:"content_type"` CreationTime time.Time `datastore:"creation"` Filename string `datastore:"filename"` Size int64 `datastore:"size"` MD5 string `datastore:"md5_hash"` // ObjectName is the Google Cloud Storage name for this blob. ObjectName string `datastore:"gs_object_name"` } // isErrFieldMismatch returns whether err is a datastore.ErrFieldMismatch. // // The blobstore stores blob metadata in the datastore. When loading that // metadata, it may contain fields that we don't care about. datastore.Get will // return datastore.ErrFieldMismatch in that case, so we ignore that specific // error. func isErrFieldMismatch(err error) bool { _, ok := err.(*datastore.ErrFieldMismatch) return ok } // Stat returns the BlobInfo for a provided blobKey. If no blob was found for // that key, Stat returns datastore.ErrNoSuchEntity. func Stat(c context.Context, blobKey appengine.BlobKey) (*BlobInfo, error) { c, _ = appengine.Namespace(c, "") // Blobstore is always in the empty string namespace dskey := datastore.NewKey(c, blobInfoKind, string(blobKey), 0, nil) bi := &BlobInfo{ BlobKey: blobKey, } if err := datastore.Get(c, dskey, bi); err != nil && !isErrFieldMismatch(err) { return nil, err } return bi, nil } // Send sets the headers on response to instruct App Engine to send a blob as // the response body. This is more efficient than reading and writing it out // manually and isn't subject to normal response size limits. func Send(response http.ResponseWriter, blobKey appengine.BlobKey) { hdr := response.Header() hdr.Set("X-AppEngine-BlobKey", string(blobKey)) if hdr.Get("Content-Type") == "" { // This value is known to dev_appserver to mean automatic. // In production this is remapped to the empty value which // means automatic. hdr.Set("Content-Type", "application/vnd.google.appengine.auto") } } // UploadURL creates an upload URL for the form that the user will // fill out, passing the application path to load when the POST of the // form is completed. These URLs expire and should not be reused. The // opts parameter may be nil. func UploadURL(c context.Context, successPath string, opts *UploadURLOptions) (*url.URL, error) { req := &blobpb.CreateUploadURLRequest{ SuccessPath: proto.String(successPath), } if opts != nil { if n := opts.MaxUploadBytes; n != 0 { req.MaxUploadSizeBytes = &n } if n := opts.MaxUploadBytesPerBlob; n != 0 { req.MaxUploadSizePerBlobBytes = &n } if s := opts.StorageBucket; s != "" { req.GsBucketName = &s } } res := &blobpb.CreateUploadURLResponse{} if err := internal.Call(c, "blobstore", "CreateUploadURL", req, res); err != nil { return nil, err } return url.Parse(*res.Url) } // UploadURLOptions are the options to create an upload URL. type UploadURLOptions struct { MaxUploadBytes int64 // optional MaxUploadBytesPerBlob int64 // optional // StorageBucket specifies the Google Cloud Storage bucket in which // to store the blob. // This is required if you use Cloud Storage instead of Blobstore. // Your application must have permission to write to the bucket. // You may optionally specify a bucket name and path in the format // "bucket_name/path", in which case the included path will be the // prefix of the uploaded object's name. StorageBucket string } // Delete deletes a blob. func Delete(c context.Context, blobKey appengine.BlobKey) error { return DeleteMulti(c, []appengine.BlobKey{blobKey}) } // DeleteMulti deletes multiple blobs. func DeleteMulti(c context.Context, blobKey []appengine.BlobKey) error { s := make([]string, len(blobKey)) for i, b := range blobKey { s[i] = string(b) } req := &blobpb.DeleteBlobRequest{ BlobKey: s, } res := &basepb.VoidProto{} if err := internal.Call(c, "blobstore", "DeleteBlob", req, res); err != nil { return err } return nil } func errorf(format string, args ...interface{}) error { return fmt.Errorf("blobstore: "+format, args...) } // ParseUpload parses the synthetic POST request that your app gets from // App Engine after a user's successful upload of blobs. Given the request, // ParseUpload returns a map of the blobs received (keyed by HTML form // element name) and other non-blob POST parameters. func ParseUpload(req *http.Request) (blobs map[string][]*BlobInfo, other url.Values, err error) { _, params, err := mime.ParseMediaType(req.Header.Get("Content-Type")) if err != nil { return nil, nil, err } boundary := params["boundary"] if boundary == "" { return nil, nil, errorf("did not find MIME multipart boundary") } blobs = make(map[string][]*BlobInfo) other = make(url.Values) mreader := multipart.NewReader(io.MultiReader(req.Body, strings.NewReader("\r\n\r\n")), boundary) for { part, perr := mreader.NextPart() if perr == io.EOF { break } if perr != nil { return nil, nil, errorf("error reading next mime part with boundary %q (len=%d): %v", boundary, len(boundary), perr) } bi := &BlobInfo{} ctype, params, err := mime.ParseMediaType(part.Header.Get("Content-Disposition")) if err != nil { return nil, nil, err } bi.Filename = params["filename"] formKey := params["name"] ctype, params, err = mime.ParseMediaType(part.Header.Get("Content-Type")) if err != nil { return nil, nil, err } bi.BlobKey = appengine.BlobKey(params["blob-key"]) charset := params["charset"] if ctype != "message/external-body" || bi.BlobKey == "" { if formKey != "" { slurp, serr := ioutil.ReadAll(part) if serr != nil { return nil, nil, errorf("error reading %q MIME part", formKey) } // Handle base64 content transfer encoding. multipart.Part transparently // handles quoted-printable, and no special handling is required for // 7bit, 8bit, or binary. ctype, params, err = mime.ParseMediaType(part.Header.Get("Content-Transfer-Encoding")) if err == nil && ctype == "base64" { slurp, serr = ioutil.ReadAll(base64.NewDecoder( base64.StdEncoding, bytes.NewReader(slurp))) if serr != nil { return nil, nil, errorf("error %s decoding %q MIME part", ctype, formKey) } } // Handle charset if charset != "" { encoding, err := htmlindex.Get(charset) if err != nil { return nil, nil, errorf("error getting decoder for charset %q", charset) } slurp, err = encoding.NewDecoder().Bytes(slurp) if err != nil { return nil, nil, errorf("error decoding from charset %q", charset) } } other[formKey] = append(other[formKey], string(slurp)) } continue } // App Engine sends a MIME header as the body of each MIME part. tp := textproto.NewReader(bufio.NewReader(part)) header, mimeerr := tp.ReadMIMEHeader() if mimeerr != nil { return nil, nil, mimeerr } bi.Size, err = strconv.ParseInt(header.Get("Content-Length"), 10, 64) if err != nil { return nil, nil, err } bi.ContentType = header.Get("Content-Type") // Parse the time from the MIME header like: // X-AppEngine-Upload-Creation: 2011-03-15 21:38:34.712136 createDate := header.Get("X-AppEngine-Upload-Creation") if createDate == "" { return nil, nil, errorf("expected to find an X-AppEngine-Upload-Creation header") } bi.CreationTime, err = time.Parse("2006-01-02 15:04:05.000000", createDate) if err != nil { return nil, nil, errorf("error parsing X-AppEngine-Upload-Creation: %s", err) } if hdr := header.Get("Content-MD5"); hdr != "" { md5, err := base64.URLEncoding.DecodeString(hdr) if err != nil { return nil, nil, errorf("bad Content-MD5 %q: %v", hdr, err) } bi.MD5 = string(md5) } // If the GCS object name was provided, record it. bi.ObjectName = header.Get("X-AppEngine-Cloud-Storage-Object") blobs[formKey] = append(blobs[formKey], bi) } return } // Reader is a blob reader. type Reader interface { io.Reader io.ReaderAt io.Seeker } // NewReader returns a reader for a blob. It always succeeds; if the blob does // not exist then an error will be reported upon first read. func NewReader(c context.Context, blobKey appengine.BlobKey) Reader { return openBlob(c, blobKey) } // BlobKeyForFile returns a BlobKey for a Google Storage file. // The filename should be of the form "/gs/bucket_name/object_name". func BlobKeyForFile(c context.Context, filename string) (appengine.BlobKey, error) { req := &blobpb.CreateEncodedGoogleStorageKeyRequest{ Filename: &filename, } res := &blobpb.CreateEncodedGoogleStorageKeyResponse{} if err := internal.Call(c, "blobstore", "CreateEncodedGoogleStorageKey", req, res); err != nil { return "", err } return appengine.BlobKey(*res.BlobKey), nil }
blobstore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/blobstore/blobstore_test.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package blobstore import ( "bytes" "encoding/base64" "fmt" "io" "mime/multipart" "mime/quotedprintable" "net/http" "net/textproto" "os" "strconv" "strings" "testing" "golang.org/x/text/encoding/htmlindex" "google.golang.org/appengine" "google.golang.org/appengine/internal/aetesting" pb "google.golang.org/appengine/internal/blobstore" ) const rbs = readBufferSize const charsetUTF8 = "utf-8" const charsetISO2022JP = "iso-2022-jp" const nonASCIIStr = "Hello, 世界" func min(x, y int) int { if x < y { return x } return y } func fakeFetchData(req *pb.FetchDataRequest, res *pb.FetchDataResponse) error { i0 := int(*req.StartIndex) i1 := int(*req.EndIndex + 1) // Blobstore's end-indices are inclusive; Go's are exclusive. bk := *req.BlobKey if i := strings.Index(bk, "."); i != -1 { // Strip everything past the ".". bk = bk[:i] } switch bk { case "a14p": const s = "abcdefghijklmnop" i0 := min(len(s), i0) i1 := min(len(s), i1) res.Data = []byte(s[i0:i1]) case "longBlob": res.Data = make([]byte, i1-i0) for i := range res.Data { res.Data[i] = 'A' + uint8(i0/rbs) i0++ } } return nil } // step is one step of a readerTest. // It consists of a Reader method to call, the method arguments // (lenp, offset, whence) and the expected results. type step struct { method string lenp int offset int64 whence int want string wantErr error } var readerTest = []struct { blobKey string step []step }{ {"noSuchBlobKey", []step{ {"Read", 8, 0, 0, "", io.EOF}, }}, {"a14p.0", []step{ // Test basic reads. {"Read", 1, 0, 0, "a", nil}, {"Read", 3, 0, 0, "bcd", nil}, {"Read", 1, 0, 0, "e", nil}, {"Read", 2, 0, 0, "fg", nil}, // Test Seek. {"Seek", 0, 2, os.SEEK_SET, "2", nil}, {"Read", 5, 0, 0, "cdefg", nil}, {"Seek", 0, 2, os.SEEK_CUR, "9", nil}, {"Read", 1, 0, 0, "j", nil}, // Test reads up to and past EOF. {"Read", 5, 0, 0, "klmno", nil}, {"Read", 5, 0, 0, "p", nil}, {"Read", 5, 0, 0, "", io.EOF}, // Test ReadAt. {"ReadAt", 4, 0, 0, "abcd", nil}, {"ReadAt", 4, 3, 0, "defg", nil}, {"ReadAt", 4, 12, 0, "mnop", nil}, {"ReadAt", 4, 13, 0, "nop", io.EOF}, {"ReadAt", 4, 99, 0, "", io.EOF}, }}, {"a14p.1", []step{ // Test Seek before any reads. {"Seek", 0, 2, os.SEEK_SET, "2", nil}, {"Read", 1, 0, 0, "c", nil}, // Test that ReadAt doesn't affect the Read offset. {"ReadAt", 3, 9, 0, "jkl", nil}, {"Read", 3, 0, 0, "def", nil}, }}, {"a14p.2", []step{ // Test ReadAt before any reads or seeks. {"ReadAt", 2, 14, 0, "op", nil}, }}, {"longBlob.0", []step{ // Test basic read. {"Read", 1, 0, 0, "A", nil}, // Test that Read returns early when the buffer is exhausted. {"Seek", 0, rbs - 2, os.SEEK_SET, strconv.Itoa(rbs - 2), nil}, {"Read", 5, 0, 0, "AA", nil}, {"Read", 3, 0, 0, "BBB", nil}, // Test that what we just read is still in the buffer. {"Seek", 0, rbs - 2, os.SEEK_SET, strconv.Itoa(rbs - 2), nil}, {"Read", 5, 0, 0, "AABBB", nil}, // Test ReadAt. {"ReadAt", 3, rbs - 4, 0, "AAA", nil}, {"ReadAt", 6, rbs - 4, 0, "AAAABB", nil}, {"ReadAt", 8, rbs - 4, 0, "AAAABBBB", nil}, {"ReadAt", 5, rbs - 4, 0, "AAAAB", nil}, {"ReadAt", 2, rbs - 4, 0, "AA", nil}, // Test seeking backwards from the Read offset. {"Seek", 0, 2*rbs - 8, os.SEEK_SET, strconv.Itoa(2*rbs - 8), nil}, {"Read", 1, 0, 0, "B", nil}, {"Read", 1, 0, 0, "B", nil}, {"Read", 1, 0, 0, "B", nil}, {"Read", 1, 0, 0, "B", nil}, {"Read", 8, 0, 0, "BBBBCCCC", nil}, }}, {"longBlob.1", []step{ // Test ReadAt with a slice larger than the buffer size. {"LargeReadAt", 2*rbs - 2, 0, 0, strconv.Itoa(2*rbs - 2), nil}, {"LargeReadAt", 2*rbs - 1, 0, 0, strconv.Itoa(2*rbs - 1), nil}, {"LargeReadAt", 2*rbs + 0, 0, 0, strconv.Itoa(2*rbs + 0), nil}, {"LargeReadAt", 2*rbs + 1, 0, 0, strconv.Itoa(2*rbs + 1), nil}, {"LargeReadAt", 2*rbs + 2, 0, 0, strconv.Itoa(2*rbs + 2), nil}, {"LargeReadAt", 2*rbs - 2, 1, 0, strconv.Itoa(2*rbs - 2), nil}, {"LargeReadAt", 2*rbs - 1, 1, 0, strconv.Itoa(2*rbs - 1), nil}, {"LargeReadAt", 2*rbs + 0, 1, 0, strconv.Itoa(2*rbs + 0), nil}, {"LargeReadAt", 2*rbs + 1, 1, 0, strconv.Itoa(2*rbs + 1), nil}, {"LargeReadAt", 2*rbs + 2, 1, 0, strconv.Itoa(2*rbs + 2), nil}, }}, } func TestReader(t *testing.T) { for _, rt := range readerTest { c := aetesting.FakeSingleContext(t, "blobstore", "FetchData", fakeFetchData) r := NewReader(c, appengine.BlobKey(rt.blobKey)) for i, step := range rt.step { var ( got string gotErr error n int offset int64 ) switch step.method { case "LargeReadAt": p := make([]byte, step.lenp) n, gotErr = r.ReadAt(p, step.offset) got = strconv.Itoa(n) case "Read": p := make([]byte, step.lenp) n, gotErr = r.Read(p) got = string(p[:n]) case "ReadAt": p := make([]byte, step.lenp) n, gotErr = r.ReadAt(p, step.offset) got = string(p[:n]) case "Seek": offset, gotErr = r.Seek(step.offset, step.whence) got = strconv.FormatInt(offset, 10) default: t.Fatalf("unknown method: %s", step.method) } if gotErr != step.wantErr { t.Fatalf("%s step %d: got error %v want %v", rt.blobKey, i, gotErr, step.wantErr) } if got != step.want { t.Fatalf("%s step %d: got %q want %q", rt.blobKey, i, got, step.want) } } } } // doPlainTextParseUploadTest tests ParseUpload's decoding of non-file form fields. // It ensures that MIME multipart parts with Content-Type not equal to // "message/external-body" (i.e. form fields that are not file uploads) are decoded // correctly according to the value of their Content-Transfer-Encoding header field. // If charset is not the empty string it will be set in the request's Content-Type // header field, and if encoding is not the empty string then the Content-Transfer-Encoding // header field will be set. func doPlainTextParseUploadTest(t *testing.T, charset string, encoding string, rawContent string, encodedContent string) { bodyBuf := &bytes.Buffer{} w := multipart.NewWriter(bodyBuf) fieldName := "foo" hdr := textproto.MIMEHeader{} hdr.Set("Content-Disposition", fmt.Sprintf("form-data; name=%q", fieldName)) if charset != "" { hdr.Set("Content-Type", fmt.Sprintf("text/plain; charset=%q", charset)) } else { hdr.Set("Content-Type", "text/plain") } if encoding != "" { hdr.Set("Content-Transfer-Encoding", encoding) } pw, err := w.CreatePart(hdr) if err != nil { t.Fatalf("error creating part: %v", err) } pw.Write([]byte(encodedContent)) if err := w.Close(); err != nil { t.Fatalf("error closing multipart writer: %v\n", err) } req, err := http.NewRequest("POST", "/upload", bodyBuf) if err != nil { t.Fatalf("error creating request: %v", err) } req.Header.Set("Content-Type", w.FormDataContentType()) _, other, err := ParseUpload(req) if err != nil { t.Fatalf("error parsing upload: %v", err) } if other[fieldName][0] != rawContent { t.Errorf("got %q expected %q", other[fieldName][0], rawContent) } } func TestParseUploadUTF8Base64Encoding(t *testing.T) { encoded := base64.StdEncoding.EncodeToString([]byte(nonASCIIStr)) doPlainTextParseUploadTest(t, charsetUTF8, "base64", nonASCIIStr, encoded) } func TestParseUploadUTF8Base64EncodingMultiline(t *testing.T) { testStr := "words words words words words words words words words words words words" encoded := "d29yZHMgd29yZHMgd29yZHMgd29yZHMgd29yZHMgd29yZHMgd29yZHMgd29yZHMgd29yZHMgd29y\r\nZHMgd29yZHMgd29yZHM=" doPlainTextParseUploadTest(t, charsetUTF8, "base64", testStr, encoded) } func TestParseUploadUTF8QuotedPrintableEncoding(t *testing.T) { var encoded bytes.Buffer writer := quotedprintable.NewWriter(&encoded) writer.Write([]byte(nonASCIIStr)) writer.Close() doPlainTextParseUploadTest(t, charsetUTF8, "quoted-printable", nonASCIIStr, encoded.String()) } func TestParseUploadISO2022JPBase64Encoding(t *testing.T) { testStr := "こんにちは" encoding, err := htmlindex.Get(charsetISO2022JP) if err != nil { t.Fatalf("error getting encoding: %v", err) } charsetEncoded, err := encoding.NewEncoder().String(testStr) if err != nil { t.Fatalf("error encoding string: %v", err) } base64Encoded := base64.StdEncoding.EncodeToString([]byte(charsetEncoded)) doPlainTextParseUploadTest(t, charsetISO2022JP, "base64", testStr, base64Encoded) } func TestParseUploadNoEncoding(t *testing.T) { doPlainTextParseUploadTest(t, "", "", "Hello", "Hello") }
blobstore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/blobstore/read.go
// Copyright 2012 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package blobstore import ( "context" "errors" "fmt" "io" "os" "sync" "github.com/golang/protobuf/proto" "google.golang.org/appengine" "google.golang.org/appengine/internal" blobpb "google.golang.org/appengine/internal/blobstore" ) // openBlob returns a reader for a blob. It always succeeds; if the blob does // not exist then an error will be reported upon first read. func openBlob(c context.Context, blobKey appengine.BlobKey) Reader { return &reader{ c: c, blobKey: blobKey, } } const readBufferSize = 256 * 1024 // reader is a blob reader. It implements the Reader interface. type reader struct { c context.Context // Either blobKey or filename is set: blobKey appengine.BlobKey filename string closeFunc func() // is nil if unavailable or already closed. // buf is the read buffer. r is how much of buf has been read. // off is the offset of buf[0] relative to the start of the blob. // An invariant is 0 <= r && r <= len(buf). // Reads that don't require an RPC call will increment r but not off. // Seeks may modify r without discarding the buffer, but only if the // invariant can be maintained. mu sync.Mutex buf []byte r int off int64 } func (r *reader) Close() error { if f := r.closeFunc; f != nil { f() } r.closeFunc = nil return nil } func (r *reader) Read(p []byte) (int, error) { if len(p) == 0 { return 0, nil } r.mu.Lock() defer r.mu.Unlock() if r.r == len(r.buf) { if err := r.fetch(r.off + int64(r.r)); err != nil { return 0, err } } n := copy(p, r.buf[r.r:]) r.r += n return n, nil } func (r *reader) ReadAt(p []byte, off int64) (int, error) { if len(p) == 0 { return 0, nil } r.mu.Lock() defer r.mu.Unlock() // Convert relative offsets to absolute offsets. ab0 := r.off + int64(r.r) ab1 := r.off + int64(len(r.buf)) ap0 := off ap1 := off + int64(len(p)) // Check if we can satisfy the read entirely out of the existing buffer. if r.off <= ap0 && ap1 <= ab1 { // Convert off from an absolute offset to a relative offset. rp0 := int(ap0 - r.off) return copy(p, r.buf[rp0:]), nil } // Restore the original Read/Seek offset after ReadAt completes. defer r.seek(ab0) // Repeatedly fetch and copy until we have filled p. n := 0 for len(p) > 0 { if err := r.fetch(off + int64(n)); err != nil { return n, err } r.r = copy(p, r.buf) n += r.r p = p[r.r:] } return n, nil } func (r *reader) Seek(offset int64, whence int) (ret int64, err error) { r.mu.Lock() defer r.mu.Unlock() switch whence { case os.SEEK_SET: ret = offset case os.SEEK_CUR: ret = r.off + int64(r.r) + offset case os.SEEK_END: return 0, errors.New("seeking relative to the end of a blob isn't supported") default: return 0, fmt.Errorf("invalid Seek whence value: %d", whence) } if ret < 0 { return 0, errors.New("negative Seek offset") } return r.seek(ret) } // fetch fetches readBufferSize bytes starting at the given offset. On success, // the data is saved as r.buf. func (r *reader) fetch(off int64) error { req := &blobpb.FetchDataRequest{ BlobKey: proto.String(string(r.blobKey)), StartIndex: proto.Int64(off), EndIndex: proto.Int64(off + readBufferSize - 1), // EndIndex is inclusive. } res := &blobpb.FetchDataResponse{} if err := internal.Call(r.c, "blobstore", "FetchData", req, res); err != nil { return err } if len(res.Data) == 0 { return io.EOF } r.buf, r.r, r.off = res.Data, 0, off return nil } // seek seeks to the given offset with an effective whence equal to SEEK_SET. // It discards the read buffer if the invariant cannot be maintained. func (r *reader) seek(off int64) (int64, error) { delta := off - r.off if delta >= 0 && delta < int64(len(r.buf)) { r.r = int(delta) return off, nil } r.buf, r.r, r.off = nil, 0, off return off, nil }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/prop.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "fmt" "reflect" "strings" "sync" "unicode" ) // Entities with more than this many indexed properties will not be saved. const maxIndexedProperties = 20000 // []byte fields more than 1 megabyte long will not be loaded or saved. const maxBlobLen = 1 << 20 // Property is a name/value pair plus some metadata. A datastore entity's // contents are loaded and saved as a sequence of Properties. An entity can // have multiple Properties with the same name, provided that p.Multiple is // true on all of that entity's Properties with that name. type Property struct { // Name is the property name. Name string // Value is the property value. The valid types are: // - int64 // - bool // - string // - float64 // - ByteString // - *Key // - time.Time // - appengine.BlobKey // - appengine.GeoPoint // - []byte (up to 1 megabyte in length) // - *Entity (representing a nested struct) // This set is smaller than the set of valid struct field types that the // datastore can load and save. A Property Value cannot be a slice (apart // from []byte); use multiple Properties instead. Also, a Value's type // must be explicitly on the list above; it is not sufficient for the // underlying type to be on that list. For example, a Value of "type // myInt64 int64" is invalid. Smaller-width integers and floats are also // invalid. Again, this is more restrictive than the set of valid struct // field types. // // A Value will have an opaque type when loading entities from an index, // such as via a projection query. Load entities into a struct instead // of a PropertyLoadSaver when using a projection query. // // A Value may also be the nil interface value; this is equivalent to // Python's None but not directly representable by a Go struct. Loading // a nil-valued property into a struct will set that field to the zero // value. Value interface{} // NoIndex is whether the datastore cannot index this property. NoIndex bool // Multiple is whether the entity can have multiple properties with // the same name. Even if a particular instance only has one property with // a certain name, Multiple should be true if a struct would best represent // it as a field of type []T instead of type T. Multiple bool } // An Entity is the value type for a nested struct. // This type is only used for a Property's Value. type Entity struct { Key *Key Properties []Property } // ByteString is a short byte slice (up to 1500 bytes) that can be indexed. type ByteString []byte // PropertyLoadSaver can be converted from and to a slice of Properties. type PropertyLoadSaver interface { Load([]Property) error Save() ([]Property, error) } // PropertyList converts a []Property to implement PropertyLoadSaver. type PropertyList []Property var ( typeOfPropertyLoadSaver = reflect.TypeOf((*PropertyLoadSaver)(nil)).Elem() typeOfPropertyList = reflect.TypeOf(PropertyList(nil)) ) // Load loads all of the provided properties into l. // It does not first reset *l to an empty slice. func (l *PropertyList) Load(p []Property) error { *l = append(*l, p...) return nil } // Save saves all of l's properties as a slice or Properties. func (l *PropertyList) Save() ([]Property, error) { return *l, nil } // validPropertyName returns whether name consists of one or more valid Go // identifiers joined by ".". func validPropertyName(name string) bool { if name == "" { return false } for _, s := range strings.Split(name, ".") { if s == "" { return false } first := true for _, c := range s { if first { first = false if c != '_' && !unicode.IsLetter(c) { return false } } else { if c != '_' && !unicode.IsLetter(c) && !unicode.IsDigit(c) { return false } } } } return true } // structCodec describes how to convert a struct to and from a sequence of // properties. type structCodec struct { // fields gives the field codec for the structTag with the given name. fields map[string]fieldCodec // hasSlice is whether a struct or any of its nested or embedded structs // has a slice-typed field (other than []byte). hasSlice bool // keyField is the index of a *Key field with structTag __key__. // This field is not relevant for the top level struct, only for // nested structs. keyField int // complete is whether the structCodec is complete. An incomplete // structCodec may be encountered when walking a recursive struct. complete bool } // fieldCodec is a struct field's index and, if that struct field's type is // itself a struct, that substruct's structCodec. type fieldCodec struct { // path is the index path to the field path []int noIndex bool // omitEmpty indicates that the field should be omitted on save // if empty. omitEmpty bool // structCodec is the codec fot the struct field at index 'path', // or nil if the field is not a struct. structCodec *structCodec } // structCodecs collects the structCodecs that have already been calculated. var ( structCodecsMutex sync.Mutex structCodecs = make(map[reflect.Type]*structCodec) ) // getStructCodec returns the structCodec for the given struct type. func getStructCodec(t reflect.Type) (*structCodec, error) { structCodecsMutex.Lock() defer structCodecsMutex.Unlock() return getStructCodecLocked(t) } // getStructCodecLocked implements getStructCodec. The structCodecsMutex must // be held when calling this function. func getStructCodecLocked(t reflect.Type) (ret *structCodec, retErr error) { c, ok := structCodecs[t] if ok { return c, nil } c = &structCodec{ fields: make(map[string]fieldCodec), // We initialize keyField to -1 so that the zero-value is not // misinterpreted as index 0. keyField: -1, } // Add c to the structCodecs map before we are sure it is good. If t is // a recursive type, it needs to find the incomplete entry for itself in // the map. structCodecs[t] = c defer func() { if retErr != nil { delete(structCodecs, t) } }() for i := 0; i < t.NumField(); i++ { f := t.Field(i) // Skip unexported fields. // Note that if f is an anonymous, unexported struct field, // we will promote its fields. if f.PkgPath != "" && !f.Anonymous { continue } tags := strings.Split(f.Tag.Get("datastore"), ",") name := tags[0] opts := make(map[string]bool) for _, t := range tags[1:] { opts[t] = true } switch { case name == "": if !f.Anonymous { name = f.Name } case name == "-": continue case name == "__key__": if f.Type != typeOfKeyPtr { return nil, fmt.Errorf("datastore: __key__ field on struct %v is not a *datastore.Key", t) } c.keyField = i case !validPropertyName(name): return nil, fmt.Errorf("datastore: struct tag has invalid property name: %q", name) } substructType, fIsSlice := reflect.Type(nil), false switch f.Type.Kind() { case reflect.Struct: substructType = f.Type case reflect.Slice: if f.Type.Elem().Kind() == reflect.Struct { substructType = f.Type.Elem() } fIsSlice = f.Type != typeOfByteSlice c.hasSlice = c.hasSlice || fIsSlice } var sub *structCodec if substructType != nil && substructType != typeOfTime && substructType != typeOfGeoPoint { var err error sub, err = getStructCodecLocked(substructType) if err != nil { return nil, err } if !sub.complete { return nil, fmt.Errorf("datastore: recursive struct: field %q", f.Name) } if fIsSlice && sub.hasSlice { return nil, fmt.Errorf( "datastore: flattening nested structs leads to a slice of slices: field %q", f.Name) } c.hasSlice = c.hasSlice || sub.hasSlice // If f is an anonymous struct field, we promote the substruct's fields up to this level // in the linked list of struct codecs. if f.Anonymous { for subname, subfield := range sub.fields { if name != "" { subname = name + "." + subname } if _, ok := c.fields[subname]; ok { return nil, fmt.Errorf("datastore: struct tag has repeated property name: %q", subname) } c.fields[subname] = fieldCodec{ path: append([]int{i}, subfield.path...), noIndex: subfield.noIndex || opts["noindex"], omitEmpty: subfield.omitEmpty, structCodec: subfield.structCodec, } } continue } } if _, ok := c.fields[name]; ok { return nil, fmt.Errorf("datastore: struct tag has repeated property name: %q", name) } c.fields[name] = fieldCodec{ path: []int{i}, noIndex: opts["noindex"], omitEmpty: opts["omitempty"], structCodec: sub, } } c.complete = true return c, nil } // structPLS adapts a struct to be a PropertyLoadSaver. type structPLS struct { v reflect.Value codec *structCodec } // newStructPLS returns a structPLS, which implements the // PropertyLoadSaver interface, for the struct pointer p. func newStructPLS(p interface{}) (*structPLS, error) { v := reflect.ValueOf(p) if v.Kind() != reflect.Ptr || v.Elem().Kind() != reflect.Struct { return nil, ErrInvalidEntityType } v = v.Elem() codec, err := getStructCodec(v.Type()) if err != nil { return nil, err } return &structPLS{v, codec}, nil } // LoadStruct loads the properties from p to dst. // dst must be a struct pointer. func LoadStruct(dst interface{}, p []Property) error { x, err := newStructPLS(dst) if err != nil { return err } return x.Load(p) } // SaveStruct returns the properties from src as a slice of Properties. // src must be a struct pointer. func SaveStruct(src interface{}) ([]Property, error) { x, err := newStructPLS(src) if err != nil { return nil, err } return x.Save() }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/save.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "errors" "fmt" "math" "reflect" "time" "github.com/golang/protobuf/proto" "google.golang.org/appengine" pb "google.golang.org/appengine/internal/datastore" ) func toUnixMicro(t time.Time) int64 { // We cannot use t.UnixNano() / 1e3 because we want to handle times more than // 2^63 nanoseconds (which is about 292 years) away from 1970, and those cannot // be represented in the numerator of a single int64 divide. return t.Unix()*1e6 + int64(t.Nanosecond()/1e3) } func fromUnixMicro(t int64) time.Time { return time.Unix(t/1e6, (t%1e6)*1e3).UTC() } var ( minTime = time.Unix(int64(math.MinInt64)/1e6, (int64(math.MinInt64)%1e6)*1e3) maxTime = time.Unix(int64(math.MaxInt64)/1e6, (int64(math.MaxInt64)%1e6)*1e3) ) // valueToProto converts a named value to a newly allocated Property. // The returned error string is empty on success. func valueToProto(defaultAppID, name string, v reflect.Value, multiple bool) (p *pb.Property, errStr string) { var ( pv pb.PropertyValue unsupported bool ) switch v.Kind() { case reflect.Invalid: // No-op. case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: pv.Int64Value = proto.Int64(v.Int()) case reflect.Bool: pv.BooleanValue = proto.Bool(v.Bool()) case reflect.String: pv.StringValue = proto.String(v.String()) case reflect.Float32, reflect.Float64: pv.DoubleValue = proto.Float64(v.Float()) case reflect.Ptr: if k, ok := v.Interface().(*Key); ok { if k != nil { pv.Referencevalue = keyToReferenceValue(defaultAppID, k) } } else { unsupported = true } case reflect.Struct: switch t := v.Interface().(type) { case time.Time: if t.Before(minTime) || t.After(maxTime) { return nil, "time value out of range" } pv.Int64Value = proto.Int64(toUnixMicro(t)) case appengine.GeoPoint: if !t.Valid() { return nil, "invalid GeoPoint value" } // NOTE: Strangely, latitude maps to X, longitude to Y. pv.Pointvalue = &pb.PropertyValue_PointValue{X: &t.Lat, Y: &t.Lng} default: unsupported = true } case reflect.Slice: if b, ok := v.Interface().([]byte); ok { pv.StringValue = proto.String(string(b)) } else { // nvToProto should already catch slice values. // If we get here, we have a slice of slice values. unsupported = true } default: unsupported = true } if unsupported { return nil, "unsupported datastore value type: " + v.Type().String() } p = &pb.Property{ Name: proto.String(name), Value: &pv, Multiple: proto.Bool(multiple), } if v.IsValid() { switch v.Interface().(type) { case []byte: p.Meaning = pb.Property_BLOB.Enum() case ByteString: p.Meaning = pb.Property_BYTESTRING.Enum() case appengine.BlobKey: p.Meaning = pb.Property_BLOBKEY.Enum() case time.Time: p.Meaning = pb.Property_GD_WHEN.Enum() case appengine.GeoPoint: p.Meaning = pb.Property_GEORSS_POINT.Enum() } } return p, "" } type saveOpts struct { noIndex bool multiple bool omitEmpty bool } // saveEntity saves an EntityProto into a PropertyLoadSaver or struct pointer. func saveEntity(defaultAppID string, key *Key, src interface{}) (*pb.EntityProto, error) { var err error var props []Property if e, ok := src.(PropertyLoadSaver); ok { props, err = e.Save() } else { props, err = SaveStruct(src) } if err != nil { return nil, err } return propertiesToProto(defaultAppID, key, props) } func saveStructProperty(props *[]Property, name string, opts saveOpts, v reflect.Value) error { if opts.omitEmpty && isEmptyValue(v) { return nil } p := Property{ Name: name, NoIndex: opts.noIndex, Multiple: opts.multiple, } switch x := v.Interface().(type) { case *Key: p.Value = x case time.Time: p.Value = x case appengine.BlobKey: p.Value = x case appengine.GeoPoint: p.Value = x case ByteString: p.Value = x default: switch v.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: p.Value = v.Int() case reflect.Bool: p.Value = v.Bool() case reflect.String: p.Value = v.String() case reflect.Float32, reflect.Float64: p.Value = v.Float() case reflect.Slice: if v.Type().Elem().Kind() == reflect.Uint8 { p.NoIndex = true p.Value = v.Bytes() } case reflect.Struct: if !v.CanAddr() { return fmt.Errorf("datastore: unsupported struct field: value is unaddressable") } sub, err := newStructPLS(v.Addr().Interface()) if err != nil { return fmt.Errorf("datastore: unsupported struct field: %v", err) } return sub.save(props, name+".", opts) } } if p.Value == nil { return fmt.Errorf("datastore: unsupported struct field type: %v", v.Type()) } *props = append(*props, p) return nil } func (s structPLS) Save() ([]Property, error) { var props []Property if err := s.save(&props, "", saveOpts{}); err != nil { return nil, err } return props, nil } func (s structPLS) save(props *[]Property, prefix string, opts saveOpts) error { for name, f := range s.codec.fields { name = prefix + name v := s.v.FieldByIndex(f.path) if !v.IsValid() || !v.CanSet() { continue } var opts1 saveOpts opts1.noIndex = opts.noIndex || f.noIndex opts1.multiple = opts.multiple opts1.omitEmpty = f.omitEmpty // don't propagate // For slice fields that aren't []byte, save each element. if v.Kind() == reflect.Slice && v.Type().Elem().Kind() != reflect.Uint8 { opts1.multiple = true for j := 0; j < v.Len(); j++ { if err := saveStructProperty(props, name, opts1, v.Index(j)); err != nil { return err } } continue } // Otherwise, save the field itself. if err := saveStructProperty(props, name, opts1, v); err != nil { return err } } return nil } func propertiesToProto(defaultAppID string, key *Key, props []Property) (*pb.EntityProto, error) { e := &pb.EntityProto{ Key: keyToProto(defaultAppID, key), } if key.parent == nil { e.EntityGroup = &pb.Path{} } else { e.EntityGroup = keyToProto(defaultAppID, key.root()).Path } prevMultiple := make(map[string]bool) for _, p := range props { if pm, ok := prevMultiple[p.Name]; ok { if !pm || !p.Multiple { return nil, fmt.Errorf("datastore: multiple Properties with Name %q, but Multiple is false", p.Name) } } else { prevMultiple[p.Name] = p.Multiple } x := &pb.Property{ Name: proto.String(p.Name), Value: new(pb.PropertyValue), Multiple: proto.Bool(p.Multiple), } switch v := p.Value.(type) { case int64: x.Value.Int64Value = proto.Int64(v) case bool: x.Value.BooleanValue = proto.Bool(v) case string: x.Value.StringValue = proto.String(v) if p.NoIndex { x.Meaning = pb.Property_TEXT.Enum() } case float64: x.Value.DoubleValue = proto.Float64(v) case *Key: if v != nil { x.Value.Referencevalue = keyToReferenceValue(defaultAppID, v) } case time.Time: if v.Before(minTime) || v.After(maxTime) { return nil, fmt.Errorf("datastore: time value out of range") } x.Value.Int64Value = proto.Int64(toUnixMicro(v)) x.Meaning = pb.Property_GD_WHEN.Enum() case appengine.BlobKey: x.Value.StringValue = proto.String(string(v)) x.Meaning = pb.Property_BLOBKEY.Enum() case appengine.GeoPoint: if !v.Valid() { return nil, fmt.Errorf("datastore: invalid GeoPoint value") } // NOTE: Strangely, latitude maps to X, longitude to Y. x.Value.Pointvalue = &pb.PropertyValue_PointValue{X: &v.Lat, Y: &v.Lng} x.Meaning = pb.Property_GEORSS_POINT.Enum() case []byte: x.Value.StringValue = proto.String(string(v)) x.Meaning = pb.Property_BLOB.Enum() if !p.NoIndex { return nil, fmt.Errorf("datastore: cannot index a []byte valued Property with Name %q", p.Name) } case ByteString: x.Value.StringValue = proto.String(string(v)) x.Meaning = pb.Property_BYTESTRING.Enum() default: if p.Value != nil { return nil, fmt.Errorf("datastore: invalid Value type for a Property with Name %q", p.Name) } } if p.NoIndex { e.RawProperty = append(e.RawProperty, x) } else { e.Property = append(e.Property, x) if len(e.Property) > maxIndexedProperties { return nil, errors.New("datastore: too many indexed properties") } } } return e, nil } // isEmptyValue is taken from the encoding/json package in the standard library. func isEmptyValue(v reflect.Value) bool { switch v.Kind() { case reflect.Array, reflect.Map, reflect.Slice, reflect.String: // TODO(performance): Only reflect.String needed, other property types are not supported (copy/paste from json package) return v.Len() == 0 case reflect.Bool: return !v.Bool() case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: return v.Int() == 0 case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: // TODO(performance): Uint* are unsupported property types - should be removed (copy/paste from json package) return v.Uint() == 0 case reflect.Float32, reflect.Float64: return v.Float() == 0 case reflect.Interface, reflect.Ptr: return v.IsNil() case reflect.Struct: switch x := v.Interface().(type) { case time.Time: return x.IsZero() } } return false }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/query.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "context" "encoding/base64" "errors" "fmt" "math" "reflect" "strings" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/datastore" ) type operator int const ( lessThan operator = iota lessEq equal greaterEq greaterThan ) var operatorToProto = map[operator]*pb.Query_Filter_Operator{ lessThan: pb.Query_Filter_LESS_THAN.Enum(), lessEq: pb.Query_Filter_LESS_THAN_OR_EQUAL.Enum(), equal: pb.Query_Filter_EQUAL.Enum(), greaterEq: pb.Query_Filter_GREATER_THAN_OR_EQUAL.Enum(), greaterThan: pb.Query_Filter_GREATER_THAN.Enum(), } // filter is a conditional filter on query results. type filter struct { FieldName string Op operator Value interface{} } type sortDirection int const ( ascending sortDirection = iota descending ) var sortDirectionToProto = map[sortDirection]*pb.Query_Order_Direction{ ascending: pb.Query_Order_ASCENDING.Enum(), descending: pb.Query_Order_DESCENDING.Enum(), } // order is a sort order on query results. type order struct { FieldName string Direction sortDirection } // NewQuery creates a new Query for a specific entity kind. // // An empty kind means to return all entities, including entities created and // managed by other App Engine features, and is called a kindless query. // Kindless queries cannot include filters or sort orders on property values. func NewQuery(kind string) *Query { return &Query{ kind: kind, limit: -1, } } // Query represents a datastore query. type Query struct { kind string ancestor *Key filter []filter order []order projection []string distinct bool distinctOn []string keysOnly bool eventual bool limit int32 offset int32 count int32 start *pb.CompiledCursor end *pb.CompiledCursor err error } func (q *Query) clone() *Query { x := *q // Copy the contents of the slice-typed fields to a new backing store. if len(q.filter) > 0 { x.filter = make([]filter, len(q.filter)) copy(x.filter, q.filter) } if len(q.order) > 0 { x.order = make([]order, len(q.order)) copy(x.order, q.order) } return &x } // Ancestor returns a derivative query with an ancestor filter. // The ancestor should not be nil. func (q *Query) Ancestor(ancestor *Key) *Query { q = q.clone() if ancestor == nil { q.err = errors.New("datastore: nil query ancestor") return q } q.ancestor = ancestor return q } // EventualConsistency returns a derivative query that returns eventually // consistent results. // It only has an effect on ancestor queries. func (q *Query) EventualConsistency() *Query { q = q.clone() q.eventual = true return q } // Filter returns a derivative query with a field-based filter. // The filterStr argument must be a field name followed by optional space, // followed by an operator, one of ">", "<", ">=", "<=", or "=". // Fields are compared against the provided value using the operator. // Multiple filters are AND'ed together. func (q *Query) Filter(filterStr string, value interface{}) *Query { q = q.clone() filterStr = strings.TrimSpace(filterStr) if len(filterStr) < 1 { q.err = errors.New("datastore: invalid filter: " + filterStr) return q } f := filter{ FieldName: strings.TrimRight(filterStr, " ><=!"), Value: value, } switch op := strings.TrimSpace(filterStr[len(f.FieldName):]); op { case "<=": f.Op = lessEq case ">=": f.Op = greaterEq case "<": f.Op = lessThan case ">": f.Op = greaterThan case "=": f.Op = equal default: q.err = fmt.Errorf("datastore: invalid operator %q in filter %q", op, filterStr) return q } q.filter = append(q.filter, f) return q } // Order returns a derivative query with a field-based sort order. Orders are // applied in the order they are added. The default order is ascending; to sort // in descending order prefix the fieldName with a minus sign (-). func (q *Query) Order(fieldName string) *Query { q = q.clone() fieldName = strings.TrimSpace(fieldName) o := order{ Direction: ascending, FieldName: fieldName, } if strings.HasPrefix(fieldName, "-") { o.Direction = descending o.FieldName = strings.TrimSpace(fieldName[1:]) } else if strings.HasPrefix(fieldName, "+") { q.err = fmt.Errorf("datastore: invalid order: %q", fieldName) return q } if len(o.FieldName) == 0 { q.err = errors.New("datastore: empty order") return q } q.order = append(q.order, o) return q } // Project returns a derivative query that yields only the given fields. It // cannot be used with KeysOnly. func (q *Query) Project(fieldNames ...string) *Query { q = q.clone() q.projection = append([]string(nil), fieldNames...) return q } // Distinct returns a derivative query that yields de-duplicated entities with // respect to the set of projected fields. It is only used for projection // queries. Distinct cannot be used with DistinctOn. func (q *Query) Distinct() *Query { q = q.clone() q.distinct = true return q } // DistinctOn returns a derivative query that yields de-duplicated entities with // respect to the set of the specified fields. It is only used for projection // queries. The field list should be a subset of the projected field list. // DistinctOn cannot be used with Distinct. func (q *Query) DistinctOn(fieldNames ...string) *Query { q = q.clone() q.distinctOn = fieldNames return q } // KeysOnly returns a derivative query that yields only keys, not keys and // entities. It cannot be used with projection queries. func (q *Query) KeysOnly() *Query { q = q.clone() q.keysOnly = true return q } // Limit returns a derivative query that has a limit on the number of results // returned. A negative value means unlimited. func (q *Query) Limit(limit int) *Query { q = q.clone() if limit < math.MinInt32 || limit > math.MaxInt32 { q.err = errors.New("datastore: query limit overflow") return q } q.limit = int32(limit) return q } // Offset returns a derivative query that has an offset of how many keys to // skip over before returning results. A negative value is invalid. func (q *Query) Offset(offset int) *Query { q = q.clone() if offset < 0 { q.err = errors.New("datastore: negative query offset") return q } if offset > math.MaxInt32 { q.err = errors.New("datastore: query offset overflow") return q } q.offset = int32(offset) return q } // BatchSize returns a derivative query to fetch the supplied number of results // at once. This value should be greater than zero, and equal to or less than // the Limit. func (q *Query) BatchSize(size int) *Query { q = q.clone() if size <= 0 || size > math.MaxInt32 { q.err = errors.New("datastore: query batch size overflow") return q } q.count = int32(size) return q } // Start returns a derivative query with the given start point. func (q *Query) Start(c Cursor) *Query { q = q.clone() if c.cc == nil { q.err = errors.New("datastore: invalid cursor") return q } q.start = c.cc return q } // End returns a derivative query with the given end point. func (q *Query) End(c Cursor) *Query { q = q.clone() if c.cc == nil { q.err = errors.New("datastore: invalid cursor") return q } q.end = c.cc return q } // toProto converts the query to a protocol buffer. func (q *Query) toProto(dst *pb.Query, appID string) error { if len(q.projection) != 0 && q.keysOnly { return errors.New("datastore: query cannot both project and be keys-only") } if len(q.distinctOn) != 0 && q.distinct { return errors.New("datastore: query cannot be both distinct and distinct-on") } dst.Reset() dst.App = proto.String(appID) if q.kind != "" { dst.Kind = proto.String(q.kind) } if q.ancestor != nil { dst.Ancestor = keyToProto(appID, q.ancestor) if q.eventual { dst.Strong = proto.Bool(false) } } if q.projection != nil { dst.PropertyName = q.projection if len(q.distinctOn) != 0 { dst.GroupByPropertyName = q.distinctOn } if q.distinct { dst.GroupByPropertyName = q.projection } } if q.keysOnly { dst.KeysOnly = proto.Bool(true) dst.RequirePerfectPlan = proto.Bool(true) } for _, qf := range q.filter { if qf.FieldName == "" { return errors.New("datastore: empty query filter field name") } p, errStr := valueToProto(appID, qf.FieldName, reflect.ValueOf(qf.Value), false) if errStr != "" { return errors.New("datastore: bad query filter value type: " + errStr) } xf := &pb.Query_Filter{ Op: operatorToProto[qf.Op], Property: []*pb.Property{p}, } if xf.Op == nil { return errors.New("datastore: unknown query filter operator") } dst.Filter = append(dst.Filter, xf) } for _, qo := range q.order { if qo.FieldName == "" { return errors.New("datastore: empty query order field name") } xo := &pb.Query_Order{ Property: proto.String(qo.FieldName), Direction: sortDirectionToProto[qo.Direction], } if xo.Direction == nil { return errors.New("datastore: unknown query order direction") } dst.Order = append(dst.Order, xo) } if q.limit >= 0 { dst.Limit = proto.Int32(q.limit) } if q.offset != 0 { dst.Offset = proto.Int32(q.offset) } if q.count != 0 { dst.Count = proto.Int32(q.count) } dst.CompiledCursor = q.start dst.EndCompiledCursor = q.end dst.Compile = proto.Bool(true) return nil } // Count returns the number of results for the query. // // The running time and number of API calls made by Count scale linearly with // the sum of the query's offset and limit. Unless the result count is // expected to be small, it is best to specify a limit; otherwise Count will // continue until it finishes counting or the provided context expires. func (q *Query) Count(c context.Context) (int, error) { // Check that the query is well-formed. if q.err != nil { return 0, q.err } // Run a copy of the query, with keysOnly true (if we're not a projection, // since the two are incompatible), and an adjusted offset. We also set the // limit to zero, as we don't want any actual entity data, just the number // of skipped results. newQ := q.clone() newQ.keysOnly = len(newQ.projection) == 0 newQ.limit = 0 if q.limit < 0 { // If the original query was unlimited, set the new query's offset to maximum. newQ.offset = math.MaxInt32 } else { newQ.offset = q.offset + q.limit if newQ.offset < 0 { // Do the best we can, in the presence of overflow. newQ.offset = math.MaxInt32 } } req := &pb.Query{} if err := newQ.toProto(req, internal.FullyQualifiedAppID(c)); err != nil { return 0, err } res := &pb.QueryResult{} if err := internal.Call(c, "datastore_v3", "RunQuery", req, res); err != nil { return 0, err } // n is the count we will return. For example, suppose that our original // query had an offset of 4 and a limit of 2008: the count will be 2008, // provided that there are at least 2012 matching entities. However, the // RPCs will only skip 1000 results at a time. The RPC sequence is: // call RunQuery with (offset, limit) = (2012, 0) // 2012 == newQ.offset // response has (skippedResults, moreResults) = (1000, true) // n += 1000 // n == 1000 // call Next with (offset, limit) = (1012, 0) // 1012 == newQ.offset - n // response has (skippedResults, moreResults) = (1000, true) // n += 1000 // n == 2000 // call Next with (offset, limit) = (12, 0) // 12 == newQ.offset - n // response has (skippedResults, moreResults) = (12, false) // n += 12 // n == 2012 // // exit the loop // n -= 4 // n == 2008 var n int32 for { // The QueryResult should have no actual entity data, just skipped results. if len(res.Result) != 0 { return 0, errors.New("datastore: internal error: Count request returned too much data") } n += res.GetSkippedResults() if !res.GetMoreResults() { break } if err := callNext(c, res, newQ.offset-n, q.count); err != nil { return 0, err } } n -= q.offset if n < 0 { // If the offset was greater than the number of matching entities, // return 0 instead of negative. n = 0 } return int(n), nil } // callNext issues a datastore_v3/Next RPC to advance a cursor, such as that // returned by a query with more results. func callNext(c context.Context, res *pb.QueryResult, offset, count int32) error { if res.Cursor == nil { return errors.New("datastore: internal error: server did not return a cursor") } req := &pb.NextRequest{ Cursor: res.Cursor, } if count >= 0 { req.Count = proto.Int32(count) } if offset != 0 { req.Offset = proto.Int32(offset) } if res.CompiledCursor != nil { req.Compile = proto.Bool(true) } res.Reset() return internal.Call(c, "datastore_v3", "Next", req, res) } // GetAll runs the query in the given context and returns all keys that match // that query, as well as appending the values to dst. // // dst must have type *[]S or *[]*S or *[]P, for some struct type S or some non- // interface, non-pointer type P such that P or *P implements PropertyLoadSaver. // // As a special case, *PropertyList is an invalid type for dst, even though a // PropertyList is a slice of structs. It is treated as invalid to avoid being // mistakenly passed when *[]PropertyList was intended. // // The keys returned by GetAll will be in a 1-1 correspondence with the entities // added to dst. // // If q is a “keys-only” query, GetAll ignores dst and only returns the keys. // // The running time and number of API calls made by GetAll scale linearly with // the sum of the query's offset and limit. Unless the result count is // expected to be small, it is best to specify a limit; otherwise GetAll will // continue until it finishes collecting results or the provided context // expires. func (q *Query) GetAll(c context.Context, dst interface{}) ([]*Key, error) { var ( dv reflect.Value mat multiArgType elemType reflect.Type errFieldMismatch error ) if !q.keysOnly { dv = reflect.ValueOf(dst) if dv.Kind() != reflect.Ptr || dv.IsNil() { return nil, ErrInvalidEntityType } dv = dv.Elem() mat, elemType = checkMultiArg(dv) if mat == multiArgTypeInvalid || mat == multiArgTypeInterface { return nil, ErrInvalidEntityType } } var keys []*Key for t := q.Run(c); ; { k, e, err := t.next() if err == Done { break } if err != nil { return keys, err } if !q.keysOnly { ev := reflect.New(elemType) if elemType.Kind() == reflect.Map { // This is a special case. The zero values of a map type are // not immediately useful; they have to be make'd. // // Funcs and channels are similar, in that a zero value is not useful, // but even a freshly make'd channel isn't useful: there's no fixed // channel buffer size that is always going to be large enough, and // there's no goroutine to drain the other end. Theoretically, these // types could be supported, for example by sniffing for a constructor // method or requiring prior registration, but for now it's not a // frequent enough concern to be worth it. Programmers can work around // it by explicitly using Iterator.Next instead of the Query.GetAll // convenience method. x := reflect.MakeMap(elemType) ev.Elem().Set(x) } if err = loadEntity(ev.Interface(), e); err != nil { if _, ok := err.(*ErrFieldMismatch); ok { // We continue loading entities even in the face of field mismatch errors. // If we encounter any other error, that other error is returned. Otherwise, // an ErrFieldMismatch is returned. errFieldMismatch = err } else { return keys, err } } if mat != multiArgTypeStructPtr { ev = ev.Elem() } dv.Set(reflect.Append(dv, ev)) } keys = append(keys, k) } return keys, errFieldMismatch } // Run runs the query in the given context. func (q *Query) Run(c context.Context) *Iterator { if q.err != nil { return &Iterator{err: q.err} } t := &Iterator{ c: c, limit: q.limit, count: q.count, q: q, prevCC: q.start, } var req pb.Query if err := q.toProto(&req, internal.FullyQualifiedAppID(c)); err != nil { t.err = err return t } if err := internal.Call(c, "datastore_v3", "RunQuery", &req, &t.res); err != nil { t.err = err return t } offset := q.offset - t.res.GetSkippedResults() var count int32 if t.count > 0 && (t.limit < 0 || t.count < t.limit) { count = t.count } else { count = t.limit } for offset > 0 && t.res.GetMoreResults() { t.prevCC = t.res.CompiledCursor if err := callNext(t.c, &t.res, offset, count); err != nil { t.err = err break } skip := t.res.GetSkippedResults() if skip < 0 { t.err = errors.New("datastore: internal error: negative number of skipped_results") break } offset -= skip } if offset < 0 { t.err = errors.New("datastore: internal error: query offset was overshot") } return t } // Iterator is the result of running a query. type Iterator struct { c context.Context err error // res is the result of the most recent RunQuery or Next API call. res pb.QueryResult // i is how many elements of res.Result we have iterated over. i int // limit is the limit on the number of results this iterator should return. // A negative value means unlimited. limit int32 // count is the number of results this iterator should fetch at once. This // should be equal to or greater than zero. count int32 // q is the original query which yielded this iterator. q *Query // prevCC is the compiled cursor that marks the end of the previous batch // of results. prevCC *pb.CompiledCursor } // Done is returned when a query iteration has completed. var Done = errors.New("datastore: query has no more results") // Next returns the key of the next result. When there are no more results, // Done is returned as the error. // // If the query is not keys only and dst is non-nil, it also loads the entity // stored for that key into the struct pointer or PropertyLoadSaver dst, with // the same semantics and possible errors as for the Get function. func (t *Iterator) Next(dst interface{}) (*Key, error) { k, e, err := t.next() if err != nil { return nil, err } if dst != nil && !t.q.keysOnly { err = loadEntity(dst, e) } return k, err } func (t *Iterator) next() (*Key, *pb.EntityProto, error) { if t.err != nil { return nil, nil, t.err } // Issue datastore_v3/Next RPCs as necessary. for t.i == len(t.res.Result) { if !t.res.GetMoreResults() { t.err = Done return nil, nil, t.err } t.prevCC = t.res.CompiledCursor var count int32 if t.count > 0 && (t.limit < 0 || t.count < t.limit) { count = t.count } else { count = t.limit } if err := callNext(t.c, &t.res, 0, count); err != nil { t.err = err return nil, nil, t.err } if t.res.GetSkippedResults() != 0 { t.err = errors.New("datastore: internal error: iterator has skipped results") return nil, nil, t.err } t.i = 0 if t.limit >= 0 { t.limit -= int32(len(t.res.Result)) if t.limit < 0 { t.err = errors.New("datastore: internal error: query returned more results than the limit") return nil, nil, t.err } } } // Extract the key from the t.i'th element of t.res.Result. e := t.res.Result[t.i] t.i++ if e.Key == nil { return nil, nil, errors.New("datastore: internal error: server did not return a key") } k, err := protoToKey(e.Key) if err != nil || k.Incomplete() { return nil, nil, errors.New("datastore: internal error: server returned an invalid key") } return k, e, nil } // Cursor returns a cursor for the iterator's current location. func (t *Iterator) Cursor() (Cursor, error) { if t.err != nil && t.err != Done { return Cursor{}, t.err } // If we are at either end of the current batch of results, // return the compiled cursor at that end. skipped := t.res.GetSkippedResults() if t.i == 0 && skipped == 0 { if t.prevCC == nil { // A nil pointer (of type *pb.CompiledCursor) means no constraint: // passing it as the end cursor of a new query means unlimited results // (glossing over the integer limit parameter for now). // A non-nil pointer to an empty pb.CompiledCursor means the start: // passing it as the end cursor of a new query means 0 results. // If prevCC was nil, then the original query had no start cursor, but // Iterator.Cursor should return "the start" instead of unlimited. return Cursor{&zeroCC}, nil } return Cursor{t.prevCC}, nil } if t.i == len(t.res.Result) { return Cursor{t.res.CompiledCursor}, nil } // Otherwise, re-run the query offset to this iterator's position, starting from // the most recent compiled cursor. This is done on a best-effort basis, as it // is racy; if a concurrent process has added or removed entities, then the // cursor returned may be inconsistent. q := t.q.clone() q.start = t.prevCC q.offset = skipped + int32(t.i) q.limit = 0 q.keysOnly = len(q.projection) == 0 t1 := q.Run(t.c) _, _, err := t1.next() if err != Done { if err == nil { err = fmt.Errorf("datastore: internal error: zero-limit query did not have zero results") } return Cursor{}, err } return Cursor{t1.res.CompiledCursor}, nil } var zeroCC pb.CompiledCursor // Cursor is an iterator's position. It can be converted to and from an opaque // string. A cursor can be used from different HTTP requests, but only with a // query with the same kind, ancestor, filter and order constraints. type Cursor struct { cc *pb.CompiledCursor } // String returns a base-64 string representation of a cursor. func (c Cursor) String() string { if c.cc == nil { return "" } b, err := proto.Marshal(c.cc) if err != nil { // The only way to construct a Cursor with a non-nil cc field is to // unmarshal from the byte representation. We panic if the unmarshal // succeeds but the marshaling of the unchanged protobuf value fails. panic(fmt.Sprintf("datastore: internal error: malformed cursor: %v", err)) } return strings.TrimRight(base64.URLEncoding.EncodeToString(b), "=") } // DecodeCursor decodes a cursor from its base-64 string representation. func DecodeCursor(s string) (Cursor, error) { if s == "" { return Cursor{&zeroCC}, nil } if n := len(s) % 4; n != 0 { s += strings.Repeat("=", 4-n) } b, err := base64.URLEncoding.DecodeString(s) if err != nil { return Cursor{}, err } cc := &pb.CompiledCursor{} if err := proto.Unmarshal(b, cc); err != nil { return Cursor{}, err } return Cursor{cc}, nil }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/doc.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. /* Package datastore provides a client for App Engine's datastore service. # Basic Operations Entities are the unit of storage and are associated with a key. A key consists of an optional parent key, a string application ID, a string kind (also known as an entity type), and either a StringID or an IntID. A StringID is also known as an entity name or key name. It is valid to create a key with a zero StringID and a zero IntID; this is called an incomplete key, and does not refer to any saved entity. Putting an entity into the datastore under an incomplete key will cause a unique key to be generated for that entity, with a non-zero IntID. An entity's contents are a mapping from case-sensitive field names to values. Valid value types are: - signed integers (int, int8, int16, int32 and int64), - bool, - string, - float32 and float64, - []byte (up to 1 megabyte in length), - any type whose underlying type is one of the above predeclared types, - ByteString, - *Key, - time.Time (stored with microsecond precision), - appengine.BlobKey, - appengine.GeoPoint, - structs whose fields are all valid value types, - slices of any of the above. Slices of structs are valid, as are structs that contain slices. However, if one struct contains another, then at most one of those can be repeated. This disqualifies recursively defined struct types: any struct T that (directly or indirectly) contains a []T. The Get and Put functions load and save an entity's contents. An entity's contents are typically represented by a struct pointer. Example code: type Entity struct { Value string } func handle(w http.ResponseWriter, r *http.Request) { ctx := appengine.NewContext(r) k := datastore.NewKey(ctx, "Entity", "stringID", 0, nil) e := new(Entity) if err := datastore.Get(ctx, k, e); err != nil { http.Error(w, err.Error(), 500) return } old := e.Value e.Value = r.URL.Path if _, err := datastore.Put(ctx, k, e); err != nil { http.Error(w, err.Error(), 500) return } w.Header().Set("Content-Type", "text/plain; charset=utf-8") fmt.Fprintf(w, "old=%q\nnew=%q\n", old, e.Value) } GetMulti, PutMulti and DeleteMulti are batch versions of the Get, Put and Delete functions. They take a []*Key instead of a *Key, and may return an appengine.MultiError when encountering partial failure. # Properties An entity's contents can be represented by a variety of types. These are typically struct pointers, but can also be any type that implements the PropertyLoadSaver interface. If using a struct pointer, you do not have to explicitly implement the PropertyLoadSaver interface; the datastore will automatically convert via reflection. If a struct pointer does implement that interface then those methods will be used in preference to the default behavior for struct pointers. Struct pointers are more strongly typed and are easier to use; PropertyLoadSavers are more flexible. The actual types passed do not have to match between Get and Put calls or even across different calls to datastore. It is valid to put a *PropertyList and get that same entity as a *myStruct, or put a *myStruct0 and get a *myStruct1. Conceptually, any entity is saved as a sequence of properties, and is loaded into the destination value on a property-by-property basis. When loading into a struct pointer, an entity that cannot be completely represented (such as a missing field) will result in an ErrFieldMismatch error but it is up to the caller whether this error is fatal, recoverable or ignorable. By default, for struct pointers, all properties are potentially indexed, and the property name is the same as the field name (and hence must start with an upper case letter). Fields may have a `datastore:"name,options"` tag. The tag name is the property name, which must be one or more valid Go identifiers joined by ".", but may start with a lower case letter. An empty tag name means to just use the field name. A "-" tag name means that the datastore will ignore that field. The only valid options are "omitempty" and "noindex". If the options include "omitempty" and the value of the field is empty, then the field will be omitted on Save. The empty values are false, 0, any nil interface value, and any array, slice, map, or string of length zero. Struct field values will never be empty. If options include "noindex" then the field will not be indexed. All fields are indexed by default. Strings or byte slices longer than 1500 bytes cannot be indexed; fields used to store long strings and byte slices must be tagged with "noindex" or they will cause Put operations to fail. To use multiple options together, separate them by a comma. The order does not matter. If the options is "" then the comma may be omitted. Example code: // A and B are renamed to a and b. // A, C and J are not indexed. // D's tag is equivalent to having no tag at all (E). // I is ignored entirely by the datastore. // J has tag information for both the datastore and json packages. type TaggedStruct struct { A int `datastore:"a,noindex"` B int `datastore:"b"` C int `datastore:",noindex"` D int `datastore:""` E int I int `datastore:"-"` J int `datastore:",noindex" json:"j"` } # Structured Properties If the struct pointed to contains other structs, then the nested or embedded structs are flattened. For example, given these definitions: type Inner1 struct { W int32 X string } type Inner2 struct { Y float64 } type Inner3 struct { Z bool } type Outer struct { A int16 I []Inner1 J Inner2 Inner3 } then an Outer's properties would be equivalent to those of: type OuterEquivalent struct { A int16 IDotW []int32 `datastore:"I.W"` IDotX []string `datastore:"I.X"` JDotY float64 `datastore:"J.Y"` Z bool } If Outer's embedded Inner3 field was tagged as `datastore:"Foo"` then the equivalent field would instead be: FooDotZ bool `datastore:"Foo.Z"`. If an outer struct is tagged "noindex" then all of its implicit flattened fields are effectively "noindex". # The PropertyLoadSaver Interface An entity's contents can also be represented by any type that implements the PropertyLoadSaver interface. This type may be a struct pointer, but it does not have to be. The datastore package will call Load when getting the entity's contents, and Save when putting the entity's contents. Possible uses include deriving non-stored fields, verifying fields, or indexing a field only if its value is positive. Example code: type CustomPropsExample struct { I, J int // Sum is not stored, but should always be equal to I + J. Sum int `datastore:"-"` } func (x *CustomPropsExample) Load(ps []datastore.Property) error { // Load I and J as usual. if err := datastore.LoadStruct(x, ps); err != nil { return err } // Derive the Sum field. x.Sum = x.I + x.J return nil } func (x *CustomPropsExample) Save() ([]datastore.Property, error) { // Validate the Sum field. if x.Sum != x.I + x.J { return nil, errors.New("CustomPropsExample has inconsistent sum") } // Save I and J as usual. The code below is equivalent to calling // "return datastore.SaveStruct(x)", but is done manually for // demonstration purposes. return []datastore.Property{ { Name: "I", Value: int64(x.I), }, { Name: "J", Value: int64(x.J), }, }, nil } The *PropertyList type implements PropertyLoadSaver, and can therefore hold an arbitrary entity's contents. # Queries Queries retrieve entities based on their properties or key's ancestry. Running a query yields an iterator of results: either keys or (key, entity) pairs. Queries are re-usable and it is safe to call Query.Run from concurrent goroutines. Iterators are not safe for concurrent use. Queries are immutable, and are either created by calling NewQuery, or derived from an existing query by calling a method like Filter or Order that returns a new query value. A query is typically constructed by calling NewQuery followed by a chain of zero or more such methods. These methods are: - Ancestor and Filter constrain the entities returned by running a query. - Order affects the order in which they are returned. - Project constrains the fields returned. - Distinct de-duplicates projected entities. - KeysOnly makes the iterator return only keys, not (key, entity) pairs. - Start, End, Offset and Limit define which sub-sequence of matching entities to return. Start and End take cursors, Offset and Limit take integers. Start and Offset affect the first result, End and Limit affect the last result. If both Start and Offset are set, then the offset is relative to Start. If both End and Limit are set, then the earliest constraint wins. Limit is relative to Start+Offset, not relative to End. As a special case, a negative limit means unlimited. Example code: type Widget struct { Description string Price int } func handle(w http.ResponseWriter, r *http.Request) { ctx := appengine.NewContext(r) q := datastore.NewQuery("Widget"). Filter("Price <", 1000). Order("-Price") b := new(bytes.Buffer) for t := q.Run(ctx); ; { var x Widget key, err := t.Next(&x) if err == datastore.Done { break } if err != nil { serveError(ctx, w, err) return } fmt.Fprintf(b, "Key=%v\nWidget=%#v\n\n", key, x) } w.Header().Set("Content-Type", "text/plain; charset=utf-8") io.Copy(w, b) } # Transactions RunInTransaction runs a function in a transaction. Example code: type Counter struct { Count int } func inc(ctx context.Context, key *datastore.Key) (int, error) { var x Counter if err := datastore.Get(ctx, key, &x); err != nil && err != datastore.ErrNoSuchEntity { return 0, err } x.Count++ if _, err := datastore.Put(ctx, key, &x); err != nil { return 0, err } return x.Count, nil } func handle(w http.ResponseWriter, r *http.Request) { ctx := appengine.NewContext(r) var count int err := datastore.RunInTransaction(ctx, func(ctx context.Context) error { var err1 error count, err1 = inc(ctx, datastore.NewKey(ctx, "Counter", "singleton", 0, nil)) return err1 }, nil) if err != nil { serveError(ctx, w, err) return } w.Header().Set("Content-Type", "text/plain; charset=utf-8") fmt.Fprintf(w, "Count=%d", count) } # Metadata The datastore package provides access to some of App Engine's datastore metadata. This metadata includes information about the entity groups, namespaces, entity kinds, and properties in the datastore, as well as the property representations for each property. Example code: func handle(w http.ResponseWriter, r *http.Request) { // Print all the kinds in the datastore, with all the indexed // properties (and their representations) for each. ctx := appengine.NewContext(r) kinds, err := datastore.Kinds(ctx) if err != nil { serveError(ctx, w, err) return } w.Header().Set("Content-Type", "text/plain; charset=utf-8") for _, kind := range kinds { fmt.Fprintf(w, "%s:\n", kind) props, err := datastore.KindProperties(ctx, kind) if err != nil { fmt.Fprintln(w, "\t(unable to retrieve properties)") continue } for p, rep := range props { fmt.Fprintf(w, "\t-%s (%s)\n", p, strings.Join(rep, ", ")) } } } */ package datastore // import "google.golang.org/appengine/datastore"
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/keycompat.go
// Copyright 2019 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "context" "sync" "google.golang.org/appengine/datastore/internal/cloudkey" "google.golang.org/appengine/internal" ) var keyConversion struct { mu sync.RWMutex appID string // read using getKeyConversionAppID } // EnableKeyConversion enables encoded key compatibility with the Cloud // Datastore client library (cloud.google.com/go/datastore). Encoded keys // generated by the Cloud Datastore client library will be decoded into App // Engine datastore keys. // // The context provided must be an App Engine context if running in App Engine // first generation runtime. This can be called in the /_ah/start handler. It is // safe to call multiple times, and is cheap to call, so can also be inserted as // middleware. // // Enabling key compatibility does not affect the encoding format used by // Key.Encode, it only expands the type of keys that are able to be decoded with // DecodeKey. func EnableKeyConversion(ctx context.Context) { // Only attempt to set appID if it's unset. // If already set, ignore. if getKeyConversionAppID() != "" { return } keyConversion.mu.Lock() // Check again to avoid race where another goroutine set appID between the call // to getKeyConversionAppID above and taking the write lock. if keyConversion.appID == "" { keyConversion.appID = internal.FullyQualifiedAppID(ctx) } keyConversion.mu.Unlock() } func getKeyConversionAppID() string { keyConversion.mu.RLock() appID := keyConversion.appID keyConversion.mu.RUnlock() return appID } // decodeCloudKey attempts to decode the given encoded key generated by the // Cloud Datastore client library (cloud.google.com/go/datastore), returning nil // if the key couldn't be decoded. func decodeCloudKey(encoded string) *Key { appID := getKeyConversionAppID() if appID == "" { return nil } k, err := cloudkey.DecodeKey(encoded) if err != nil { return nil } return convertCloudKey(k, appID) } // convertCloudKey converts a Cloud Datastore key and converts it to an App // Engine Datastore key. Cloud Datastore keys don't include the project/app ID, // so we must add it back in. func convertCloudKey(key *cloudkey.Key, appID string) *Key { if key == nil { return nil } k := &Key{ intID: key.ID, kind: key.Kind, namespace: key.Namespace, parent: convertCloudKey(key.Parent, appID), stringID: key.Name, appID: appID, } return k }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/datastore.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "context" "errors" "fmt" "reflect" "github.com/golang/protobuf/proto" "google.golang.org/appengine" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/datastore" ) var ( // ErrInvalidEntityType is returned when functions like Get or Next are // passed a dst or src argument of invalid type. ErrInvalidEntityType = errors.New("datastore: invalid entity type") // ErrInvalidKey is returned when an invalid key is presented. ErrInvalidKey = errors.New("datastore: invalid key") // ErrNoSuchEntity is returned when no entity was found for a given key. ErrNoSuchEntity = errors.New("datastore: no such entity") ) // ErrFieldMismatch is returned when a field is to be loaded into a different // type than the one it was stored from, or when a field is missing or // unexported in the destination struct. // StructType is the type of the struct pointed to by the destination argument // passed to Get or to Iterator.Next. type ErrFieldMismatch struct { StructType reflect.Type FieldName string Reason string } func (e *ErrFieldMismatch) Error() string { return fmt.Sprintf("datastore: cannot load field %q into a %q: %s", e.FieldName, e.StructType, e.Reason) } // protoToKey converts a Reference proto to a *Key. If the key is invalid, // protoToKey will return the invalid key along with ErrInvalidKey. func protoToKey(r *pb.Reference) (k *Key, err error) { appID := r.GetApp() namespace := r.GetNameSpace() for _, e := range r.Path.Element { k = &Key{ kind: e.GetType(), stringID: e.GetName(), intID: e.GetId(), parent: k, appID: appID, namespace: namespace, } if !k.valid() { return k, ErrInvalidKey } } return } // keyToProto converts a *Key to a Reference proto. func keyToProto(defaultAppID string, k *Key) *pb.Reference { appID := k.appID if appID == "" { appID = defaultAppID } n := 0 for i := k; i != nil; i = i.parent { n++ } e := make([]*pb.Path_Element, n) for i := k; i != nil; i = i.parent { n-- e[n] = &pb.Path_Element{ Type: &i.kind, } // At most one of {Name,Id} should be set. // Neither will be set for incomplete keys. if i.stringID != "" { e[n].Name = &i.stringID } else if i.intID != 0 { e[n].Id = &i.intID } } var namespace *string if k.namespace != "" { namespace = proto.String(k.namespace) } return &pb.Reference{ App: proto.String(appID), NameSpace: namespace, Path: &pb.Path{ Element: e, }, } } // multiKeyToProto is a batch version of keyToProto. func multiKeyToProto(appID string, key []*Key) []*pb.Reference { ret := make([]*pb.Reference, len(key)) for i, k := range key { ret[i] = keyToProto(appID, k) } return ret } // multiValid is a batch version of Key.valid. It returns an error, not a // []bool. func multiValid(key []*Key) error { invalid := false for _, k := range key { if !k.valid() { invalid = true break } } if !invalid { return nil } err := make(appengine.MultiError, len(key)) for i, k := range key { if !k.valid() { err[i] = ErrInvalidKey } } return err } // It's unfortunate that the two semantically equivalent concepts pb.Reference // and pb.PropertyValue_ReferenceValue aren't the same type. For example, the // two have different protobuf field numbers. // referenceValueToKey is the same as protoToKey except the input is a // PropertyValue_ReferenceValue instead of a Reference. func referenceValueToKey(r *pb.PropertyValue_ReferenceValue) (k *Key, err error) { appID := r.GetApp() namespace := r.GetNameSpace() for _, e := range r.Pathelement { k = &Key{ kind: e.GetType(), stringID: e.GetName(), intID: e.GetId(), parent: k, appID: appID, namespace: namespace, } if !k.valid() { return nil, ErrInvalidKey } } return } // keyToReferenceValue is the same as keyToProto except the output is a // PropertyValue_ReferenceValue instead of a Reference. func keyToReferenceValue(defaultAppID string, k *Key) *pb.PropertyValue_ReferenceValue { ref := keyToProto(defaultAppID, k) pe := make([]*pb.PropertyValue_ReferenceValue_PathElement, len(ref.Path.Element)) for i, e := range ref.Path.Element { pe[i] = &pb.PropertyValue_ReferenceValue_PathElement{ Type: e.Type, Id: e.Id, Name: e.Name, } } return &pb.PropertyValue_ReferenceValue{ App: ref.App, NameSpace: ref.NameSpace, Pathelement: pe, } } type multiArgType int const ( multiArgTypeInvalid multiArgType = iota multiArgTypePropertyLoadSaver multiArgTypeStruct multiArgTypeStructPtr multiArgTypeInterface ) // checkMultiArg checks that v has type []S, []*S, []I, or []P, for some struct // type S, for some interface type I, or some non-interface non-pointer type P // such that P or *P implements PropertyLoadSaver. // // It returns what category the slice's elements are, and the reflect.Type // that represents S, I or P. // // As a special case, PropertyList is an invalid type for v. func checkMultiArg(v reflect.Value) (m multiArgType, elemType reflect.Type) { if v.Kind() != reflect.Slice { return multiArgTypeInvalid, nil } if v.Type() == typeOfPropertyList { return multiArgTypeInvalid, nil } elemType = v.Type().Elem() if reflect.PtrTo(elemType).Implements(typeOfPropertyLoadSaver) { return multiArgTypePropertyLoadSaver, elemType } switch elemType.Kind() { case reflect.Struct: return multiArgTypeStruct, elemType case reflect.Interface: return multiArgTypeInterface, elemType case reflect.Ptr: elemType = elemType.Elem() if elemType.Kind() == reflect.Struct { return multiArgTypeStructPtr, elemType } } return multiArgTypeInvalid, nil } // Get loads the entity stored for k into dst, which must be a struct pointer // or implement PropertyLoadSaver. If there is no such entity for the key, Get // returns ErrNoSuchEntity. // // The values of dst's unmatched struct fields are not modified, and matching // slice-typed fields are not reset before appending to them. In particular, it // is recommended to pass a pointer to a zero valued struct on each Get call. // // ErrFieldMismatch is returned when a field is to be loaded into a different // type than the one it was stored from, or when a field is missing or // unexported in the destination struct. ErrFieldMismatch is only returned if // dst is a struct pointer. func Get(c context.Context, key *Key, dst interface{}) error { if dst == nil { // GetMulti catches nil interface; we need to catch nil ptr here return ErrInvalidEntityType } err := GetMulti(c, []*Key{key}, []interface{}{dst}) if me, ok := err.(appengine.MultiError); ok { return me[0] } return err } // GetMulti is a batch version of Get. // // dst must be a []S, []*S, []I or []P, for some struct type S, some interface // type I, or some non-interface non-pointer type P such that P or *P // implements PropertyLoadSaver. If an []I, each element must be a valid dst // for Get: it must be a struct pointer or implement PropertyLoadSaver. // // As a special case, PropertyList is an invalid type for dst, even though a // PropertyList is a slice of structs. It is treated as invalid to avoid being // mistakenly passed when []PropertyList was intended. func GetMulti(c context.Context, key []*Key, dst interface{}) error { v := reflect.ValueOf(dst) multiArgType, _ := checkMultiArg(v) if multiArgType == multiArgTypeInvalid { return errors.New("datastore: dst has invalid type") } if len(key) != v.Len() { return errors.New("datastore: key and dst slices have different length") } if len(key) == 0 { return nil } if err := multiValid(key); err != nil { return err } req := &pb.GetRequest{ Key: multiKeyToProto(internal.FullyQualifiedAppID(c), key), } res := &pb.GetResponse{} if err := internal.Call(c, "datastore_v3", "Get", req, res); err != nil { return err } if len(key) != len(res.Entity) { return errors.New("datastore: internal error: server returned the wrong number of entities") } multiErr, any := make(appengine.MultiError, len(key)), false for i, e := range res.Entity { if e.Entity == nil { multiErr[i] = ErrNoSuchEntity } else { elem := v.Index(i) if multiArgType == multiArgTypePropertyLoadSaver || multiArgType == multiArgTypeStruct { elem = elem.Addr() } if multiArgType == multiArgTypeStructPtr && elem.IsNil() { elem.Set(reflect.New(elem.Type().Elem())) } multiErr[i] = loadEntity(elem.Interface(), e.Entity) } if multiErr[i] != nil { any = true } } if any { return multiErr } return nil } // Put saves the entity src into the datastore with key k. src must be a struct // pointer or implement PropertyLoadSaver; if a struct pointer then any // unexported fields of that struct will be skipped. If k is an incomplete key, // the returned key will be a unique key generated by the datastore. func Put(c context.Context, key *Key, src interface{}) (*Key, error) { k, err := PutMulti(c, []*Key{key}, []interface{}{src}) if err != nil { if me, ok := err.(appengine.MultiError); ok { return nil, me[0] } return nil, err } return k[0], nil } // PutMulti is a batch version of Put. // // src must satisfy the same conditions as the dst argument to GetMulti. func PutMulti(c context.Context, key []*Key, src interface{}) ([]*Key, error) { v := reflect.ValueOf(src) multiArgType, _ := checkMultiArg(v) if multiArgType == multiArgTypeInvalid { return nil, errors.New("datastore: src has invalid type") } if len(key) != v.Len() { return nil, errors.New("datastore: key and src slices have different length") } if len(key) == 0 { return nil, nil } appID := internal.FullyQualifiedAppID(c) if err := multiValid(key); err != nil { return nil, err } req := &pb.PutRequest{} for i := range key { elem := v.Index(i) if multiArgType == multiArgTypePropertyLoadSaver || multiArgType == multiArgTypeStruct { elem = elem.Addr() } sProto, err := saveEntity(appID, key[i], elem.Interface()) if err != nil { return nil, err } req.Entity = append(req.Entity, sProto) } res := &pb.PutResponse{} if err := internal.Call(c, "datastore_v3", "Put", req, res); err != nil { return nil, err } if len(key) != len(res.Key) { return nil, errors.New("datastore: internal error: server returned the wrong number of keys") } ret := make([]*Key, len(key)) for i := range ret { var err error ret[i], err = protoToKey(res.Key[i]) if err != nil || ret[i].Incomplete() { return nil, errors.New("datastore: internal error: server returned an invalid key") } } return ret, nil } // Delete deletes the entity for the given key. func Delete(c context.Context, key *Key) error { err := DeleteMulti(c, []*Key{key}) if me, ok := err.(appengine.MultiError); ok { return me[0] } return err } // DeleteMulti is a batch version of Delete. func DeleteMulti(c context.Context, key []*Key) error { if len(key) == 0 { return nil } if err := multiValid(key); err != nil { return err } req := &pb.DeleteRequest{ Key: multiKeyToProto(internal.FullyQualifiedAppID(c), key), } res := &pb.DeleteResponse{} return internal.Call(c, "datastore_v3", "Delete", req, res) } func namespaceMod(m proto.Message, namespace string) { // pb.Query is the only type that has a name_space field. // All other namespace support in datastore is in the keys. switch m := m.(type) { case *pb.Query: if m.NameSpace == nil { m.NameSpace = &namespace } } } func init() { internal.NamespaceMods["datastore_v3"] = namespaceMod internal.RegisterErrorCodeMap("datastore_v3", pb.Error_ErrorCode_name) internal.RegisterTimeoutErrorCode("datastore_v3", int32(pb.Error_TIMEOUT)) }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/transaction.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "context" "errors" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/datastore" ) func init() { internal.RegisterTransactionSetter(func(x *pb.Query, t *pb.Transaction) { x.Transaction = t }) internal.RegisterTransactionSetter(func(x *pb.GetRequest, t *pb.Transaction) { x.Transaction = t }) internal.RegisterTransactionSetter(func(x *pb.PutRequest, t *pb.Transaction) { x.Transaction = t }) internal.RegisterTransactionSetter(func(x *pb.DeleteRequest, t *pb.Transaction) { x.Transaction = t }) } // ErrConcurrentTransaction is returned when a transaction is rolled back due // to a conflict with a concurrent transaction. var ErrConcurrentTransaction = errors.New("datastore: concurrent transaction") // RunInTransaction runs f in a transaction. It calls f with a transaction // context tc that f should use for all App Engine operations. // // If f returns nil, RunInTransaction attempts to commit the transaction, // returning nil if it succeeds. If the commit fails due to a conflicting // transaction, RunInTransaction retries f, each time with a new transaction // context. It gives up and returns ErrConcurrentTransaction after three // failed attempts. The number of attempts can be configured by specifying // TransactionOptions.Attempts. // // If f returns non-nil, then any datastore changes will not be applied and // RunInTransaction returns that same error. The function f is not retried. // // Note that when f returns, the transaction is not yet committed. Calling code // must be careful not to assume that any of f's changes have been committed // until RunInTransaction returns nil. // // Since f may be called multiple times, f should usually be idempotent. // datastore.Get is not idempotent when unmarshaling slice fields. // // Nested transactions are not supported; c may not be a transaction context. func RunInTransaction(c context.Context, f func(tc context.Context) error, opts *TransactionOptions) error { xg := false if opts != nil { xg = opts.XG } readOnly := false if opts != nil { readOnly = opts.ReadOnly } attempts := 3 if opts != nil && opts.Attempts > 0 { attempts = opts.Attempts } var t *pb.Transaction var err error for i := 0; i < attempts; i++ { if t, err = internal.RunTransactionOnce(c, f, xg, readOnly, t); err != internal.ErrConcurrentTransaction { return err } } return ErrConcurrentTransaction } // TransactionOptions are the options for running a transaction. type TransactionOptions struct { // XG is whether the transaction can cross multiple entity groups. In // comparison, a single group transaction is one where all datastore keys // used have the same root key. Note that cross group transactions do not // have the same behavior as single group transactions. In particular, it // is much more likely to see partially applied transactions in different // entity groups, in global queries. // It is valid to set XG to true even if the transaction is within a // single entity group. XG bool // Attempts controls the number of retries to perform when commits fail // due to a conflicting transaction. If omitted, it defaults to 3. Attempts int // ReadOnly controls whether the transaction is a read only transaction. // Read only transactions are potentially more efficient. ReadOnly bool }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/metadata.go
// Copyright 2016 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import "context" // Datastore kinds for the metadata entities. const ( namespaceKind = "__namespace__" kindKind = "__kind__" propertyKind = "__property__" ) // Namespaces returns all the datastore namespaces. func Namespaces(ctx context.Context) ([]string, error) { // TODO(djd): Support range queries. q := NewQuery(namespaceKind).KeysOnly() keys, err := q.GetAll(ctx, nil) if err != nil { return nil, err } // The empty namespace key uses a numeric ID (==1), but luckily // the string ID defaults to "" for numeric IDs anyway. return keyNames(keys), nil } // Kinds returns the names of all the kinds in the current namespace. func Kinds(ctx context.Context) ([]string, error) { // TODO(djd): Support range queries. q := NewQuery(kindKind).KeysOnly() keys, err := q.GetAll(ctx, nil) if err != nil { return nil, err } return keyNames(keys), nil } // keyNames returns a slice of the provided keys' names (string IDs). func keyNames(keys []*Key) []string { n := make([]string, 0, len(keys)) for _, k := range keys { n = append(n, k.StringID()) } return n } // KindProperties returns all the indexed properties for the given kind. // The properties are returned as a map of property names to a slice of the // representation types. The representation types for the supported Go property // types are: // // "INT64": signed integers and time.Time // "DOUBLE": float32 and float64 // "BOOLEAN": bool // "STRING": string, []byte and ByteString // "POINT": appengine.GeoPoint // "REFERENCE": *Key // "USER": (not used in the Go runtime) func KindProperties(ctx context.Context, kind string) (map[string][]string, error) { // TODO(djd): Support range queries. kindKey := NewKey(ctx, kindKind, kind, 0, nil) q := NewQuery(propertyKind).Ancestor(kindKey) propMap := map[string][]string{} props := []struct { Repr []string `datastore:"property_representation"` }{} keys, err := q.GetAll(ctx, &props) if err != nil { return nil, err } for i, p := range props { propMap[keys[i].StringID()] = p.Repr } return propMap, nil }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/key.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "bytes" "context" "encoding/base64" "encoding/gob" "errors" "fmt" "strconv" "strings" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/datastore" ) type KeyRangeCollisionError struct { start int64 end int64 } func (e *KeyRangeCollisionError) Error() string { return fmt.Sprintf("datastore: Collision when attempting to allocate range [%d, %d]", e.start, e.end) } type KeyRangeContentionError struct { start int64 end int64 } func (e *KeyRangeContentionError) Error() string { return fmt.Sprintf("datastore: Contention when attempting to allocate range [%d, %d]", e.start, e.end) } // Key represents the datastore key for a stored entity, and is immutable. type Key struct { kind string stringID string intID int64 parent *Key appID string namespace string } // Kind returns the key's kind (also known as entity type). func (k *Key) Kind() string { return k.kind } // StringID returns the key's string ID (also known as an entity name or key // name), which may be "". func (k *Key) StringID() string { return k.stringID } // IntID returns the key's integer ID, which may be 0. func (k *Key) IntID() int64 { return k.intID } // Parent returns the key's parent key, which may be nil. func (k *Key) Parent() *Key { return k.parent } // AppID returns the key's application ID. func (k *Key) AppID() string { return k.appID } // Namespace returns the key's namespace. func (k *Key) Namespace() string { return k.namespace } // Incomplete returns whether the key does not refer to a stored entity. // In particular, whether the key has a zero StringID and a zero IntID. func (k *Key) Incomplete() bool { return k.stringID == "" && k.intID == 0 } // valid returns whether the key is valid. func (k *Key) valid() bool { if k == nil { return false } for ; k != nil; k = k.parent { if k.kind == "" || k.appID == "" { return false } if k.stringID != "" && k.intID != 0 { return false } if k.parent != nil { if k.parent.Incomplete() { return false } if k.parent.appID != k.appID || k.parent.namespace != k.namespace { return false } } } return true } // Equal returns whether two keys are equal. func (k *Key) Equal(o *Key) bool { for k != nil && o != nil { if k.kind != o.kind || k.stringID != o.stringID || k.intID != o.intID || k.appID != o.appID || k.namespace != o.namespace { return false } k, o = k.parent, o.parent } return k == o } // root returns the furthest ancestor of a key, which may be itself. func (k *Key) root() *Key { for k.parent != nil { k = k.parent } return k } // marshal marshals the key's string representation to the buffer. func (k *Key) marshal(b *bytes.Buffer) { if k.parent != nil { k.parent.marshal(b) } b.WriteByte('/') b.WriteString(k.kind) b.WriteByte(',') if k.stringID != "" { b.WriteString(k.stringID) } else { b.WriteString(strconv.FormatInt(k.intID, 10)) } } // String returns a string representation of the key. func (k *Key) String() string { if k == nil { return "" } b := bytes.NewBuffer(make([]byte, 0, 512)) k.marshal(b) return b.String() } type gobKey struct { Kind string StringID string IntID int64 Parent *gobKey AppID string Namespace string } func keyToGobKey(k *Key) *gobKey { if k == nil { return nil } return &gobKey{ Kind: k.kind, StringID: k.stringID, IntID: k.intID, Parent: keyToGobKey(k.parent), AppID: k.appID, Namespace: k.namespace, } } func gobKeyToKey(gk *gobKey) *Key { if gk == nil { return nil } return &Key{ kind: gk.Kind, stringID: gk.StringID, intID: gk.IntID, parent: gobKeyToKey(gk.Parent), appID: gk.AppID, namespace: gk.Namespace, } } func (k *Key) GobEncode() ([]byte, error) { buf := new(bytes.Buffer) if err := gob.NewEncoder(buf).Encode(keyToGobKey(k)); err != nil { return nil, err } return buf.Bytes(), nil } func (k *Key) GobDecode(buf []byte) error { gk := new(gobKey) if err := gob.NewDecoder(bytes.NewBuffer(buf)).Decode(gk); err != nil { return err } *k = *gobKeyToKey(gk) return nil } func (k *Key) MarshalJSON() ([]byte, error) { return []byte(`"` + k.Encode() + `"`), nil } func (k *Key) UnmarshalJSON(buf []byte) error { if len(buf) < 2 || buf[0] != '"' || buf[len(buf)-1] != '"' { return errors.New("datastore: bad JSON key") } k2, err := DecodeKey(string(buf[1 : len(buf)-1])) if err != nil { return err } *k = *k2 return nil } // Encode returns an opaque representation of the key // suitable for use in HTML and URLs. // This is compatible with the Python and Java runtimes. func (k *Key) Encode() string { ref := keyToProto("", k) b, err := proto.Marshal(ref) if err != nil { panic(err) } // Trailing padding is stripped. return strings.TrimRight(base64.URLEncoding.EncodeToString(b), "=") } // DecodeKey decodes a key from the opaque representation returned by Encode. func DecodeKey(encoded string) (*Key, error) { // Re-add padding. if m := len(encoded) % 4; m != 0 { encoded += strings.Repeat("=", 4-m) } b, err := base64.URLEncoding.DecodeString(encoded) if err != nil { return nil, err } ref := new(pb.Reference) if err := proto.Unmarshal(b, ref); err != nil { // Couldn't decode it as an App Engine key, try decoding it as a key encoded by cloud.google.com/go/datastore. if k := decodeCloudKey(encoded); k != nil { return k, nil } return nil, err } return protoToKey(ref) } // NewIncompleteKey creates a new incomplete key. // kind cannot be empty. func NewIncompleteKey(c context.Context, kind string, parent *Key) *Key { return NewKey(c, kind, "", 0, parent) } // NewKey creates a new key. // kind cannot be empty. // Either one or both of stringID and intID must be zero. If both are zero, // the key returned is incomplete. // parent must either be a complete key or nil. func NewKey(c context.Context, kind, stringID string, intID int64, parent *Key) *Key { // If there's a parent key, use its namespace. // Otherwise, use any namespace attached to the context. var namespace string if parent != nil { namespace = parent.namespace } else { namespace = internal.NamespaceFromContext(c) } return &Key{ kind: kind, stringID: stringID, intID: intID, parent: parent, appID: internal.FullyQualifiedAppID(c), namespace: namespace, } } // AllocateIDs returns a range of n integer IDs with the given kind and parent // combination. kind cannot be empty; parent may be nil. The IDs in the range // returned will not be used by the datastore's automatic ID sequence generator // and may be used with NewKey without conflict. // // The range is inclusive at the low end and exclusive at the high end. In // other words, valid intIDs x satisfy low <= x && x < high. // // If no error is returned, low + n == high. func AllocateIDs(c context.Context, kind string, parent *Key, n int) (low, high int64, err error) { if kind == "" { return 0, 0, errors.New("datastore: AllocateIDs given an empty kind") } if n < 0 { return 0, 0, fmt.Errorf("datastore: AllocateIDs given a negative count: %d", n) } if n == 0 { return 0, 0, nil } req := &pb.AllocateIdsRequest{ ModelKey: keyToProto("", NewIncompleteKey(c, kind, parent)), Size: proto.Int64(int64(n)), } res := &pb.AllocateIdsResponse{} if err := internal.Call(c, "datastore_v3", "AllocateIds", req, res); err != nil { return 0, 0, err } // The protobuf is inclusive at both ends. Idiomatic Go (e.g. slices, for loops) // is inclusive at the low end and exclusive at the high end, so we add 1. low = res.GetStart() high = res.GetEnd() + 1 if low+int64(n) != high { return 0, 0, fmt.Errorf("datastore: internal error: could not allocate %d IDs", n) } return low, high, nil } // AllocateIDRange allocates a range of IDs with specific endpoints. // The range is inclusive at both the low and high end. Once these IDs have been // allocated, you can manually assign them to newly created entities. // // The Datastore's automatic ID allocator never assigns a key that has already // been allocated (either through automatic ID allocation or through an explicit // AllocateIDs call). As a result, entities written to the given key range will // never be overwritten. However, writing entities with manually assigned keys in // this range may overwrite existing entities (or new entities written by a separate // request), depending on the error returned. // // Use this only if you have an existing numeric ID range that you want to reserve // (for example, bulk loading entities that already have IDs). If you don't care // about which IDs you receive, use AllocateIDs instead. // // AllocateIDRange returns nil if the range is successfully allocated. If one or more // entities with an ID in the given range already exist, it returns a KeyRangeCollisionError. // If the Datastore has already cached IDs in this range (e.g. from a previous call to // AllocateIDRange), it returns a KeyRangeContentionError. Errors of other types indicate // problems with arguments or an error returned directly from the Datastore. func AllocateIDRange(c context.Context, kind string, parent *Key, start, end int64) (err error) { if kind == "" { return errors.New("datastore: AllocateIDRange given an empty kind") } if start < 1 || end < 1 { return errors.New("datastore: AllocateIDRange start and end must both be greater than 0") } if start > end { return errors.New("datastore: AllocateIDRange start must be before end") } req := &pb.AllocateIdsRequest{ ModelKey: keyToProto("", NewIncompleteKey(c, kind, parent)), Max: proto.Int64(end), } res := &pb.AllocateIdsResponse{} if err := internal.Call(c, "datastore_v3", "AllocateIds", req, res); err != nil { return err } // Check for collisions, i.e. existing entities with IDs in this range. // We could do this before the allocation, but we'd still have to do it // afterward as well to catch the race condition where an entity is inserted // after that initial check but before the allocation. Skip the up-front check // and just do it once. q := NewQuery(kind).Filter("__key__ >=", NewKey(c, kind, "", start, parent)). Filter("__key__ <=", NewKey(c, kind, "", end, parent)).KeysOnly().Limit(1) keys, err := q.GetAll(c, nil) if err != nil { return err } if len(keys) != 0 { return &KeyRangeCollisionError{start: start, end: end} } // Check for a race condition, i.e. cases where the datastore may have // cached ID batches that contain IDs in this range. if start < res.GetStart() { return &KeyRangeContentionError{start: start, end: end} } return nil }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/query_test.go
// Copyright 2011 Google Inc. All Rights Reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "errors" "fmt" "reflect" "strings" "testing" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal" "google.golang.org/appengine/internal/aetesting" pb "google.golang.org/appengine/internal/datastore" ) var ( path1 = &pb.Path{ Element: []*pb.Path_Element{ { Type: proto.String("Gopher"), Id: proto.Int64(6), }, }, } path2 = &pb.Path{ Element: []*pb.Path_Element{ { Type: proto.String("Gopher"), Id: proto.Int64(6), }, { Type: proto.String("Gopher"), Id: proto.Int64(8), }, }, } ) func fakeRunQuery(in *pb.Query, out *pb.QueryResult) error { expectedIn := &pb.Query{ App: proto.String("dev~fake-app"), Kind: proto.String("Gopher"), Compile: proto.Bool(true), } if !proto.Equal(in, expectedIn) { return fmt.Errorf("unsupported argument: got %v want %v", in, expectedIn) } *out = pb.QueryResult{ Result: []*pb.EntityProto{ { Key: &pb.Reference{ App: proto.String("s~test-app"), Path: path1, }, EntityGroup: path1, Property: []*pb.Property{ { Meaning: pb.Property_TEXT.Enum(), Name: proto.String("Name"), Value: &pb.PropertyValue{ StringValue: proto.String("George"), }, }, { Name: proto.String("Height"), Value: &pb.PropertyValue{ Int64Value: proto.Int64(32), }, }, }, }, { Key: &pb.Reference{ App: proto.String("s~test-app"), Path: path2, }, EntityGroup: path1, // ancestor is George Property: []*pb.Property{ { Meaning: pb.Property_TEXT.Enum(), Name: proto.String("Name"), Value: &pb.PropertyValue{ StringValue: proto.String("Rufus"), }, }, // No height for Rufus. }, }, }, MoreResults: proto.Bool(false), } return nil } type StructThatImplementsPLS struct{} func (StructThatImplementsPLS) Load(p []Property) error { return nil } func (StructThatImplementsPLS) Save() ([]Property, error) { return nil, nil } var _ PropertyLoadSaver = StructThatImplementsPLS{} type StructPtrThatImplementsPLS struct{} func (*StructPtrThatImplementsPLS) Load(p []Property) error { return nil } func (*StructPtrThatImplementsPLS) Save() ([]Property, error) { return nil, nil } var _ PropertyLoadSaver = &StructPtrThatImplementsPLS{} type PropertyMap map[string]Property func (m PropertyMap) Load(props []Property) error { for _, p := range props { if p.Multiple { return errors.New("PropertyMap does not support multiple properties") } m[p.Name] = p } return nil } func (m PropertyMap) Save() ([]Property, error) { props := make([]Property, 0, len(m)) for _, p := range m { if p.Multiple { return nil, errors.New("PropertyMap does not support multiple properties") } props = append(props, p) } return props, nil } var _ PropertyLoadSaver = PropertyMap{} type Gopher struct { Name string Height int } // typeOfEmptyInterface is the type of interface{}, but we can't use // reflect.TypeOf((interface{})(nil)) directly because TypeOf takes an // interface{}. var typeOfEmptyInterface = reflect.TypeOf((*interface{})(nil)).Elem() func TestCheckMultiArg(t *testing.T) { testCases := []struct { v interface{} mat multiArgType elemType reflect.Type }{ // Invalid cases. {nil, multiArgTypeInvalid, nil}, {Gopher{}, multiArgTypeInvalid, nil}, {&Gopher{}, multiArgTypeInvalid, nil}, {PropertyList{}, multiArgTypeInvalid, nil}, // This is a special case. {PropertyMap{}, multiArgTypeInvalid, nil}, {[]*PropertyList(nil), multiArgTypeInvalid, nil}, {[]*PropertyMap(nil), multiArgTypeInvalid, nil}, {[]**Gopher(nil), multiArgTypeInvalid, nil}, {[]*interface{}(nil), multiArgTypeInvalid, nil}, // Valid cases. { []PropertyList(nil), multiArgTypePropertyLoadSaver, reflect.TypeOf(PropertyList{}), }, { []PropertyMap(nil), multiArgTypePropertyLoadSaver, reflect.TypeOf(PropertyMap{}), }, { []StructThatImplementsPLS(nil), multiArgTypePropertyLoadSaver, reflect.TypeOf(StructThatImplementsPLS{}), }, { []StructPtrThatImplementsPLS(nil), multiArgTypePropertyLoadSaver, reflect.TypeOf(StructPtrThatImplementsPLS{}), }, { []Gopher(nil), multiArgTypeStruct, reflect.TypeOf(Gopher{}), }, { []*Gopher(nil), multiArgTypeStructPtr, reflect.TypeOf(Gopher{}), }, { []interface{}(nil), multiArgTypeInterface, typeOfEmptyInterface, }, } for _, tc := range testCases { mat, elemType := checkMultiArg(reflect.ValueOf(tc.v)) if mat != tc.mat || elemType != tc.elemType { t.Errorf("checkMultiArg(%T): got %v, %v want %v, %v", tc.v, mat, elemType, tc.mat, tc.elemType) } } } func TestSimpleQuery(t *testing.T) { struct1 := Gopher{Name: "George", Height: 32} struct2 := Gopher{Name: "Rufus"} pList1 := PropertyList{ { Name: "Name", Value: "George", }, { Name: "Height", Value: int64(32), }, } pList2 := PropertyList{ { Name: "Name", Value: "Rufus", }, } pMap1 := PropertyMap{ "Name": Property{ Name: "Name", Value: "George", }, "Height": Property{ Name: "Height", Value: int64(32), }, } pMap2 := PropertyMap{ "Name": Property{ Name: "Name", Value: "Rufus", }, } testCases := []struct { dst interface{} want interface{} }{ // The destination must have type *[]P, *[]S or *[]*S, for some non-interface // type P such that *P implements PropertyLoadSaver, or for some struct type S. {new([]Gopher), &[]Gopher{struct1, struct2}}, {new([]*Gopher), &[]*Gopher{&struct1, &struct2}}, {new([]PropertyList), &[]PropertyList{pList1, pList2}}, {new([]PropertyMap), &[]PropertyMap{pMap1, pMap2}}, // Any other destination type is invalid. {0, nil}, {Gopher{}, nil}, {PropertyList{}, nil}, {PropertyMap{}, nil}, {[]int{}, nil}, {[]Gopher{}, nil}, {[]PropertyList{}, nil}, {new(int), nil}, {new(Gopher), nil}, {new(PropertyList), nil}, // This is a special case. {new(PropertyMap), nil}, {new([]int), nil}, {new([]map[int]int), nil}, {new([]map[string]Property), nil}, {new([]map[string]interface{}), nil}, {new([]*int), nil}, {new([]*map[int]int), nil}, {new([]*map[string]Property), nil}, {new([]*map[string]interface{}), nil}, {new([]**Gopher), nil}, {new([]*PropertyList), nil}, {new([]*PropertyMap), nil}, } for _, tc := range testCases { nCall := 0 c := aetesting.FakeSingleContext(t, "datastore_v3", "RunQuery", func(in *pb.Query, out *pb.QueryResult) error { nCall++ return fakeRunQuery(in, out) }) c = internal.WithAppIDOverride(c, "dev~fake-app") var ( expectedErr error expectedNCall int ) if tc.want == nil { expectedErr = ErrInvalidEntityType } else { expectedNCall = 1 } keys, err := NewQuery("Gopher").GetAll(c, tc.dst) if err != expectedErr { t.Errorf("dst type %T: got error [%v], want [%v]", tc.dst, err, expectedErr) continue } if nCall != expectedNCall { t.Errorf("dst type %T: Context.Call was called an incorrect number of times: got %d want %d", tc.dst, nCall, expectedNCall) continue } if err != nil { continue } key1 := NewKey(c, "Gopher", "", 6, nil) expectedKeys := []*Key{ key1, NewKey(c, "Gopher", "", 8, key1), } if l1, l2 := len(keys), len(expectedKeys); l1 != l2 { t.Errorf("dst type %T: got %d keys, want %d keys", tc.dst, l1, l2) continue } for i, key := range keys { if key.AppID() != "s~test-app" { t.Errorf(`dst type %T: Key #%d's AppID = %q, want "s~test-app"`, tc.dst, i, key.AppID()) continue } if !keysEqual(key, expectedKeys[i]) { t.Errorf("dst type %T: got key #%d %v, want %v", tc.dst, i, key, expectedKeys[i]) continue } } if !reflect.DeepEqual(tc.dst, tc.want) { t.Errorf("dst type %T: Entities got %+v, want %+v", tc.dst, tc.dst, tc.want) continue } } } // keysEqual is like (*Key).Equal, but ignores the App ID. func keysEqual(a, b *Key) bool { for a != nil && b != nil { if a.Kind() != b.Kind() || a.StringID() != b.StringID() || a.IntID() != b.IntID() { return false } a, b = a.Parent(), b.Parent() } return a == b } func TestQueriesAreImmutable(t *testing.T) { // Test that deriving q2 from q1 does not modify q1. q0 := NewQuery("foo") q1 := NewQuery("foo") q2 := q1.Offset(2) if !reflect.DeepEqual(q0, q1) { t.Errorf("q0 and q1 were not equal") } if reflect.DeepEqual(q1, q2) { t.Errorf("q1 and q2 were equal") } // Test that deriving from q4 twice does not conflict, even though // q4 has a long list of order clauses. This tests that the arrays // backed by a query's slice of orders are not shared. f := func() *Query { q := NewQuery("bar") // 47 is an ugly number that is unlikely to be near a re-allocation // point in repeated append calls. For example, it's not near a power // of 2 or a multiple of 10. for i := 0; i < 47; i++ { q = q.Order(fmt.Sprintf("x%d", i)) } return q } q3 := f().Order("y") q4 := f() q5 := q4.Order("y") q6 := q4.Order("z") if !reflect.DeepEqual(q3, q5) { t.Errorf("q3 and q5 were not equal") } if reflect.DeepEqual(q5, q6) { t.Errorf("q5 and q6 were equal") } } func TestFilterParser(t *testing.T) { testCases := []struct { filterStr string wantOK bool wantFieldName string wantOp operator }{ // Supported ops. {"x<", true, "x", lessThan}, {"x <", true, "x", lessThan}, {"x <", true, "x", lessThan}, {" x < ", true, "x", lessThan}, {"x <=", true, "x", lessEq}, {"x =", true, "x", equal}, {"x >=", true, "x", greaterEq}, {"x >", true, "x", greaterThan}, {"in >", true, "in", greaterThan}, {"in>", true, "in", greaterThan}, // Valid but (currently) unsupported ops. {"x!=", false, "", 0}, {"x !=", false, "", 0}, {" x != ", false, "", 0}, {"x IN", false, "", 0}, {"x in", false, "", 0}, // Invalid ops. {"x EQ", false, "", 0}, {"x lt", false, "", 0}, {"x <>", false, "", 0}, {"x >>", false, "", 0}, {"x ==", false, "", 0}, {"x =<", false, "", 0}, {"x =>", false, "", 0}, {"x !", false, "", 0}, {"x ", false, "", 0}, {"x", false, "", 0}, } for _, tc := range testCases { q := NewQuery("foo").Filter(tc.filterStr, 42) if ok := q.err == nil; ok != tc.wantOK { t.Errorf("%q: ok=%t, want %t", tc.filterStr, ok, tc.wantOK) continue } if !tc.wantOK { continue } if len(q.filter) != 1 { t.Errorf("%q: len=%d, want %d", tc.filterStr, len(q.filter), 1) continue } got, want := q.filter[0], filter{tc.wantFieldName, tc.wantOp, 42} if got != want { t.Errorf("%q: got %v, want %v", tc.filterStr, got, want) continue } } } func TestQueryToProto(t *testing.T) { // The context is required to make Keys for the test cases. var got *pb.Query NoErr := errors.New("No error") c := aetesting.FakeSingleContext(t, "datastore_v3", "RunQuery", func(in *pb.Query, out *pb.QueryResult) error { got = in return NoErr // return a non-nil error so Run doesn't keep going. }) c = internal.WithAppIDOverride(c, "dev~fake-app") testCases := []struct { desc string query *Query want *pb.Query err string }{ { desc: "empty", query: NewQuery(""), want: &pb.Query{}, }, { desc: "standard query", query: NewQuery("kind").Order("-I").Filter("I >", 17).Filter("U =", "Dave").Limit(7).Offset(42).BatchSize(5), want: &pb.Query{ Kind: proto.String("kind"), Filter: []*pb.Query_Filter{ { Op: pb.Query_Filter_GREATER_THAN.Enum(), Property: []*pb.Property{ { Name: proto.String("I"), Value: &pb.PropertyValue{Int64Value: proto.Int64(17)}, Multiple: proto.Bool(false), }, }, }, { Op: pb.Query_Filter_EQUAL.Enum(), Property: []*pb.Property{ { Name: proto.String("U"), Value: &pb.PropertyValue{StringValue: proto.String("Dave")}, Multiple: proto.Bool(false), }, }, }, }, Order: []*pb.Query_Order{ { Property: proto.String("I"), Direction: pb.Query_Order_DESCENDING.Enum(), }, }, Limit: proto.Int32(7), Offset: proto.Int32(42), Count: proto.Int32(5), }, }, { desc: "ancestor", query: NewQuery("").Ancestor(NewKey(c, "kind", "Mummy", 0, nil)), want: &pb.Query{ Ancestor: &pb.Reference{ App: proto.String("dev~fake-app"), Path: &pb.Path{ Element: []*pb.Path_Element{{Type: proto.String("kind"), Name: proto.String("Mummy")}}, }, }, }, }, { desc: "projection", query: NewQuery("").Project("A", "B"), want: &pb.Query{ PropertyName: []string{"A", "B"}, }, }, { desc: "projection with distinct", query: NewQuery("").Project("A", "B").Distinct(), want: &pb.Query{ PropertyName: []string{"A", "B"}, GroupByPropertyName: []string{"A", "B"}, }, }, { desc: "distinct on", query: NewQuery("").Project("A", "B").DistinctOn("A"), want: &pb.Query{ PropertyName: []string{"A", "B"}, GroupByPropertyName: []string{"A"}, }, }, { desc: "keys only", query: NewQuery("").KeysOnly(), want: &pb.Query{ KeysOnly: proto.Bool(true), RequirePerfectPlan: proto.Bool(true), }, }, { desc: "empty filter", query: NewQuery("kind").Filter("=", 17), err: "empty query filter field nam", }, { desc: "bad filter type", query: NewQuery("kind").Filter("M =", map[string]bool{}), err: "bad query filter value type", }, { desc: "bad filter operator", query: NewQuery("kind").Filter("I <<=", 17), err: `invalid operator "<<=" in filter "I <<="`, }, { desc: "empty order", query: NewQuery("kind").Order(""), err: "empty order", }, { desc: "bad order direction", query: NewQuery("kind").Order("+I"), err: `invalid order: "+I`, }, } for _, tt := range testCases { got = nil if _, err := tt.query.Run(c).Next(nil); err != NoErr { if tt.err == "" || !strings.Contains(err.Error(), tt.err) { t.Errorf("%s: error %v, want %q", tt.desc, err, tt.err) } continue } if tt.err != "" { t.Errorf("%s: no error, want %q", tt.desc, tt.err) continue } // Fields that are common to all protos. tt.want.App = proto.String("dev~fake-app") tt.want.Compile = proto.Bool(true) if !proto.Equal(got, tt.want) { t.Errorf("%s:\ngot %v\nwant %v", tt.desc, got, tt.want) } } }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/datastore_test.go
// Copyright 2011 Google Inc. All Rights Reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "encoding/json" "errors" "fmt" "os" "reflect" "sort" "strings" "testing" "time" "google.golang.org/appengine" "google.golang.org/appengine/internal/aetesting" pb "google.golang.org/appengine/internal/datastore" ) const testAppID = "testApp" type ( myBlob []byte myByte byte myString string ) func makeMyByteSlice(n int) []myByte { b := make([]myByte, n) for i := range b { b[i] = myByte(i) } return b } func makeInt8Slice(n int) []int8 { b := make([]int8, n) for i := range b { b[i] = int8(i) } return b } func makeUint8Slice(n int) []uint8 { b := make([]uint8, n) for i := range b { b[i] = uint8(i) } return b } func newKey(stringID string, parent *Key) *Key { return &Key{ kind: "kind", stringID: stringID, intID: 0, parent: parent, appID: testAppID, } } var ( testKey0 = newKey("name0", nil) testKey1a = newKey("name1", nil) testKey1b = newKey("name1", nil) testKey2a = newKey("name2", testKey0) testKey2b = newKey("name2", testKey0) testGeoPt0 = appengine.GeoPoint{Lat: 1.2, Lng: 3.4} testGeoPt1 = appengine.GeoPoint{Lat: 5, Lng: 10} testBadGeoPt = appengine.GeoPoint{Lat: 1000, Lng: 34} now = time.Unix(1e9, 0).UTC() ) type B0 struct { B []byte } type B1 struct { B []int8 } type B2 struct { B myBlob } type B3 struct { B []myByte } type B4 struct { B [][]byte } type B5 struct { B ByteString } type C0 struct { I int C chan int } type C1 struct { I int C *chan int } type C2 struct { I int C []chan int } type C3 struct { C string } type E struct{} type G0 struct { G appengine.GeoPoint } type G1 struct { G []appengine.GeoPoint } type K0 struct { K *Key } type K1 struct { K []*Key } type S struct { St string } type NoOmit struct { A string B int `datastore:"Bb"` C bool `datastore:",noindex"` } type OmitAll struct { A string `datastore:",omitempty"` B int `datastore:"Bb,omitempty"` C bool `datastore:",omitempty,noindex"` D time.Time `datastore:",omitempty"` F []int `datastore:",omitempty"` } type Omit struct { A string `datastore:",omitempty"` B int `datastore:"Bb,omitempty"` C bool `datastore:",omitempty,noindex"` D time.Time `datastore:",omitempty"` F []int `datastore:",omitempty"` S `datastore:",omitempty"` } type NoOmits struct { No []NoOmit `datastore:",omitempty"` S `datastore:",omitempty"` Ss S `datastore:",omitempty"` } type N0 struct { X0 Nonymous X0 Ignore string `datastore:"-"` Other string } type N1 struct { X0 Nonymous []X0 Ignore string `datastore:"-"` Other string } type N2 struct { N1 `datastore:"red"` Green N1 `datastore:"green"` Blue N1 White N1 `datastore:"-"` } type O0 struct { I int64 } type O1 struct { I int32 } type U0 struct { U uint } type U1 struct { U string } type T struct { T time.Time } type X0 struct { S string I int i int } type X1 struct { S myString I int32 J int64 } type X2 struct { Z string i int } type X3 struct { S bool I int } type Y0 struct { B bool F []float64 G []float64 } type Y1 struct { B bool F float64 } type Y2 struct { B bool F []int64 } type Tagged struct { A int `datastore:"a,noindex"` B []int `datastore:"b"` C int `datastore:",noindex"` D int `datastore:""` E int // The "flatten" option is parsed but ignored for now. F int `datastore:",noindex,flatten"` G int `datastore:",flatten"` I int `datastore:"-"` J int `datastore:",noindex" json:"j"` Y0 `datastore:"-"` Z chan int `datastore:"-,"` } type InvalidTagged1 struct { I int `datastore:"\t"` } type InvalidTagged2 struct { I int J int `datastore:"I"` } type Inner1 struct { W int32 X string } type Inner2 struct { Y float64 } type Inner3 struct { Z bool } type Outer struct { A int16 I []Inner1 J Inner2 Inner3 } type OuterEquivalent struct { A int16 IDotW []int32 `datastore:"I.W"` IDotX []string `datastore:"I.X"` JDotY float64 `datastore:"J.Y"` Z bool } type Dotted struct { A DottedA `datastore:"A0.A1.A2"` } type DottedA struct { B DottedB `datastore:"B3"` } type DottedB struct { C int `datastore:"C4.C5"` } type SliceOfSlices struct { I int S []struct { J int F []float64 } } type Recursive struct { I int R []Recursive } type MutuallyRecursive0 struct { I int R []MutuallyRecursive1 } type MutuallyRecursive1 struct { I int R []MutuallyRecursive0 } type Doubler struct { S string I int64 B bool } type Repeat struct { Key string Value []byte } type Repeated struct { Repeats []Repeat } func (d *Doubler) Load(props []Property) error { return LoadStruct(d, props) } type EmbeddedTime struct { time.Time } type SpecialTime struct { MyTime EmbeddedTime } func (d *Doubler) Save() ([]Property, error) { // Save the default Property slice to an in-memory buffer (a PropertyList). props, err := SaveStruct(d) if err != nil { return nil, err } var list PropertyList if err := list.Load(props); err != nil { return nil, err } // Edit that PropertyList, and send it on. for i := range list { switch v := list[i].Value.(type) { case string: // + means string concatenation. list[i].Value = v + v case int64: // + means integer addition. list[i].Value = v + v } } return list.Save() } var _ PropertyLoadSaver = (*Doubler)(nil) type Deriver struct { S, Derived, Ignored string } func (e *Deriver) Load(props []Property) error { for _, p := range props { if p.Name != "S" { continue } e.S = p.Value.(string) e.Derived = "derived+" + e.S } return nil } func (e *Deriver) Save() ([]Property, error) { return []Property{ { Name: "S", Value: e.S, }, }, nil } var _ PropertyLoadSaver = (*Deriver)(nil) type BadMultiPropEntity struct{} func (e *BadMultiPropEntity) Load(props []Property) error { return errors.New("unimplemented") } func (e *BadMultiPropEntity) Save() ([]Property, error) { // Write multiple properties with the same name "I", but Multiple is false. var props []Property for i := 0; i < 3; i++ { props = append(props, Property{ Name: "I", Value: int64(i), }) } return props, nil } var _ PropertyLoadSaver = (*BadMultiPropEntity)(nil) type BK struct { Key appengine.BlobKey } type testCase struct { desc string src interface{} want interface{} putErr string getErr string } var testCases = []testCase{ { "chan save fails", &C0{I: -1}, &E{}, "unsupported struct field", "", }, { "*chan save fails", &C1{I: -1}, &E{}, "unsupported struct field", "", }, { "[]chan save fails", &C2{I: -1, C: make([]chan int, 8)}, &E{}, "unsupported struct field", "", }, { "chan load fails", &C3{C: "not a chan"}, &C0{}, "", "type mismatch", }, { "*chan load fails", &C3{C: "not a *chan"}, &C1{}, "", "type mismatch", }, { "[]chan load fails", &C3{C: "not a []chan"}, &C2{}, "", "type mismatch", }, { "empty struct", &E{}, &E{}, "", "", }, { "geopoint", &G0{G: testGeoPt0}, &G0{G: testGeoPt0}, "", "", }, { "geopoint invalid", &G0{G: testBadGeoPt}, &G0{}, "invalid GeoPoint value", "", }, { "geopoint as props", &G0{G: testGeoPt0}, &PropertyList{ Property{Name: "G", Value: testGeoPt0, NoIndex: false, Multiple: false}, }, "", "", }, { "geopoint slice", &G1{G: []appengine.GeoPoint{testGeoPt0, testGeoPt1}}, &G1{G: []appengine.GeoPoint{testGeoPt0, testGeoPt1}}, "", "", }, { "omit empty, all", &OmitAll{}, new(PropertyList), "", "", }, { "omit empty", &Omit{}, &PropertyList{ Property{Name: "St", Value: "", NoIndex: false, Multiple: false}, }, "", "", }, { "omit empty, fields populated", &Omit{ A: "a", B: 10, C: true, D: now, F: []int{11}, }, &PropertyList{ Property{Name: "A", Value: "a", NoIndex: false, Multiple: false}, Property{Name: "Bb", Value: int64(10), NoIndex: false, Multiple: false}, Property{Name: "C", Value: true, NoIndex: true, Multiple: false}, Property{Name: "D", Value: now, NoIndex: false, Multiple: false}, Property{Name: "F", Value: int64(11), NoIndex: false, Multiple: true}, Property{Name: "St", Value: "", NoIndex: false, Multiple: false}, }, "", "", }, { "omit empty, fields populated", &Omit{ A: "a", B: 10, C: true, D: now, F: []int{11}, S: S{St: "string"}, }, &PropertyList{ Property{Name: "A", Value: "a", NoIndex: false, Multiple: false}, Property{Name: "Bb", Value: int64(10), NoIndex: false, Multiple: false}, Property{Name: "C", Value: true, NoIndex: true, Multiple: false}, Property{Name: "D", Value: now, NoIndex: false, Multiple: false}, Property{Name: "F", Value: int64(11), NoIndex: false, Multiple: true}, Property{Name: "St", Value: "string", NoIndex: false, Multiple: false}, }, "", "", }, { "omit empty does not propagate", &NoOmits{ No: []NoOmit{ NoOmit{}, }, S: S{}, Ss: S{}, }, &PropertyList{ Property{Name: "No.A", Value: "", NoIndex: false, Multiple: true}, Property{Name: "No.Bb", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "No.C", Value: false, NoIndex: true, Multiple: true}, Property{Name: "Ss.St", Value: "", NoIndex: false, Multiple: false}, Property{Name: "St", Value: "", NoIndex: false, Multiple: false}}, "", "", }, { "key", &K0{K: testKey1a}, &K0{K: testKey1b}, "", "", }, { "key with parent", &K0{K: testKey2a}, &K0{K: testKey2b}, "", "", }, { "nil key", &K0{}, &K0{}, "", "", }, { "all nil keys in slice", &K1{[]*Key{nil, nil}}, &K1{[]*Key{nil, nil}}, "", "", }, { "some nil keys in slice", &K1{[]*Key{testKey1a, nil, testKey2a}}, &K1{[]*Key{testKey1b, nil, testKey2b}}, "", "", }, { "overflow", &O0{I: 1 << 48}, &O1{}, "", "overflow", }, { "time", &T{T: time.Unix(1e9, 0)}, &T{T: time.Unix(1e9, 0)}, "", "", }, { "time as props", &T{T: time.Unix(1e9, 0)}, &PropertyList{ Property{Name: "T", Value: time.Unix(1e9, 0).UTC(), NoIndex: false, Multiple: false}, }, "", "", }, { "uint save", &U0{U: 1}, &U0{}, "unsupported struct field", "", }, { "uint load", &U1{U: "not a uint"}, &U0{}, "", "type mismatch", }, { "zero", &X0{}, &X0{}, "", "", }, { "basic", &X0{S: "one", I: 2, i: 3}, &X0{S: "one", I: 2}, "", "", }, { "save string/int load myString/int32", &X0{S: "one", I: 2, i: 3}, &X1{S: "one", I: 2}, "", "", }, { "missing fields", &X0{S: "one", I: 2, i: 3}, &X2{}, "", "no such struct field", }, { "save string load bool", &X0{S: "one", I: 2, i: 3}, &X3{I: 2}, "", "type mismatch", }, { "basic slice", &Y0{B: true, F: []float64{7, 8, 9}}, &Y0{B: true, F: []float64{7, 8, 9}}, "", "", }, { "save []float64 load float64", &Y0{B: true, F: []float64{7, 8, 9}}, &Y1{B: true}, "", "requires a slice", }, { "save []float64 load []int64", &Y0{B: true, F: []float64{7, 8, 9}}, &Y2{B: true}, "", "type mismatch", }, { "single slice is too long", &Y0{F: make([]float64, maxIndexedProperties+1)}, &Y0{}, "too many indexed properties", "", }, { "two slices are too long", &Y0{F: make([]float64, maxIndexedProperties), G: make([]float64, maxIndexedProperties)}, &Y0{}, "too many indexed properties", "", }, { "one slice and one scalar are too long", &Y0{F: make([]float64, maxIndexedProperties), B: true}, &Y0{}, "too many indexed properties", "", }, { "slice of slices of bytes", &Repeated{ Repeats: []Repeat{ { Key: "key 1", Value: []byte("value 1"), }, { Key: "key 2", Value: []byte("value 2"), }, }, }, &Repeated{ Repeats: []Repeat{ { Key: "key 1", Value: []byte("value 1"), }, { Key: "key 2", Value: []byte("value 2"), }, }, }, "", "", }, { "long blob", &B0{B: makeUint8Slice(maxIndexedProperties + 1)}, &B0{B: makeUint8Slice(maxIndexedProperties + 1)}, "", "", }, { "long []int8 is too long", &B1{B: makeInt8Slice(maxIndexedProperties + 1)}, &B1{}, "too many indexed properties", "", }, { "short []int8", &B1{B: makeInt8Slice(3)}, &B1{B: makeInt8Slice(3)}, "", "", }, { "long myBlob", &B2{B: makeUint8Slice(maxIndexedProperties + 1)}, &B2{B: makeUint8Slice(maxIndexedProperties + 1)}, "", "", }, { "short myBlob", &B2{B: makeUint8Slice(3)}, &B2{B: makeUint8Slice(3)}, "", "", }, { "long []myByte", &B3{B: makeMyByteSlice(maxIndexedProperties + 1)}, &B3{B: makeMyByteSlice(maxIndexedProperties + 1)}, "", "", }, { "short []myByte", &B3{B: makeMyByteSlice(3)}, &B3{B: makeMyByteSlice(3)}, "", "", }, { "slice of blobs", &B4{B: [][]byte{ makeUint8Slice(3), makeUint8Slice(4), makeUint8Slice(5), }}, &B4{B: [][]byte{ makeUint8Slice(3), makeUint8Slice(4), makeUint8Slice(5), }}, "", "", }, { "short ByteString", &B5{B: ByteString(makeUint8Slice(3))}, &B5{B: ByteString(makeUint8Slice(3))}, "", "", }, { "short ByteString as props", &B5{B: ByteString(makeUint8Slice(3))}, &PropertyList{ Property{Name: "B", Value: ByteString(makeUint8Slice(3)), NoIndex: false, Multiple: false}, }, "", "", }, { "short ByteString into string", &B5{B: ByteString("legacy")}, &struct{ B string }{"legacy"}, "", "", }, { "[]byte must be noindex", &PropertyList{ Property{Name: "B", Value: makeUint8Slice(3), NoIndex: false}, }, nil, "cannot index a []byte valued Property", "", }, { "save tagged load props", &Tagged{A: 1, B: []int{21, 22, 23}, C: 3, D: 4, E: 5, F: 6, G: 7, I: 8, J: 9}, &PropertyList{ // A and B are renamed to a and b; A and C are noindex, I is ignored. // Indexed properties are loaded before raw properties. Thus, the // result is: b, b, b, D, E, a, c. Property{Name: "C", Value: int64(3), NoIndex: true, Multiple: false}, Property{Name: "D", Value: int64(4), NoIndex: false, Multiple: false}, Property{Name: "E", Value: int64(5), NoIndex: false, Multiple: false}, Property{Name: "F", Value: int64(6), NoIndex: true, Multiple: false}, Property{Name: "G", Value: int64(7), NoIndex: false, Multiple: false}, Property{Name: "J", Value: int64(9), NoIndex: true, Multiple: false}, Property{Name: "a", Value: int64(1), NoIndex: true, Multiple: false}, Property{Name: "b", Value: int64(21), NoIndex: false, Multiple: true}, Property{Name: "b", Value: int64(22), NoIndex: false, Multiple: true}, Property{Name: "b", Value: int64(23), NoIndex: false, Multiple: true}, }, "", "", }, { "save tagged load tagged", &Tagged{A: 1, B: []int{21, 22, 23}, C: 3, D: 4, E: 5, I: 6, J: 7}, &Tagged{A: 1, B: []int{21, 22, 23}, C: 3, D: 4, E: 5, J: 7}, "", "", }, { "save props load tagged", &PropertyList{ Property{Name: "A", Value: int64(11), NoIndex: true, Multiple: false}, Property{Name: "a", Value: int64(12), NoIndex: true, Multiple: false}, }, &Tagged{A: 12}, "", `cannot load field "A"`, }, { "invalid tagged1", &InvalidTagged1{I: 1}, &InvalidTagged1{}, "struct tag has invalid property name", "", }, { "invalid tagged2", &InvalidTagged2{I: 1, J: 2}, &InvalidTagged2{}, "struct tag has repeated property name", "", }, { "doubler", &Doubler{S: "s", I: 1, B: true}, &Doubler{S: "ss", I: 2, B: true}, "", "", }, { "save struct load props", &X0{S: "s", I: 1}, &PropertyList{ Property{Name: "I", Value: int64(1), NoIndex: false, Multiple: false}, Property{Name: "S", Value: "s", NoIndex: false, Multiple: false}, }, "", "", }, { "save props load struct", &PropertyList{ Property{Name: "S", Value: "s", NoIndex: false, Multiple: false}, Property{Name: "I", Value: int64(1), NoIndex: false, Multiple: false}, }, &X0{S: "s", I: 1}, "", "", }, { "nil-value props", &PropertyList{ Property{Name: "I", Value: nil, NoIndex: false, Multiple: false}, Property{Name: "B", Value: nil, NoIndex: false, Multiple: false}, Property{Name: "S", Value: nil, NoIndex: false, Multiple: false}, Property{Name: "F", Value: nil, NoIndex: false, Multiple: false}, Property{Name: "K", Value: nil, NoIndex: false, Multiple: false}, Property{Name: "T", Value: nil, NoIndex: false, Multiple: false}, Property{Name: "J", Value: nil, NoIndex: false, Multiple: true}, Property{Name: "J", Value: int64(7), NoIndex: false, Multiple: true}, Property{Name: "J", Value: nil, NoIndex: false, Multiple: true}, }, &struct { I int64 B bool S string F float64 K *Key T time.Time J []int64 }{ J: []int64{0, 7, 0}, }, "", "", }, { "save outer load props", &Outer{ A: 1, I: []Inner1{ {10, "ten"}, {20, "twenty"}, {30, "thirty"}, }, J: Inner2{ Y: 3.14, }, Inner3: Inner3{ Z: true, }, }, &PropertyList{ Property{Name: "A", Value: int64(1), NoIndex: false, Multiple: false}, Property{Name: "I.W", Value: int64(10), NoIndex: false, Multiple: true}, Property{Name: "I.W", Value: int64(20), NoIndex: false, Multiple: true}, Property{Name: "I.W", Value: int64(30), NoIndex: false, Multiple: true}, Property{Name: "I.X", Value: "ten", NoIndex: false, Multiple: true}, Property{Name: "I.X", Value: "twenty", NoIndex: false, Multiple: true}, Property{Name: "I.X", Value: "thirty", NoIndex: false, Multiple: true}, Property{Name: "J.Y", Value: float64(3.14), NoIndex: false, Multiple: false}, Property{Name: "Z", Value: true, NoIndex: false, Multiple: false}, }, "", "", }, { "save props load outer-equivalent", &PropertyList{ Property{Name: "A", Value: int64(1), NoIndex: false, Multiple: false}, Property{Name: "I.W", Value: int64(10), NoIndex: false, Multiple: true}, Property{Name: "I.X", Value: "ten", NoIndex: false, Multiple: true}, Property{Name: "I.W", Value: int64(20), NoIndex: false, Multiple: true}, Property{Name: "I.X", Value: "twenty", NoIndex: false, Multiple: true}, Property{Name: "I.W", Value: int64(30), NoIndex: false, Multiple: true}, Property{Name: "I.X", Value: "thirty", NoIndex: false, Multiple: true}, Property{Name: "J.Y", Value: float64(3.14), NoIndex: false, Multiple: false}, Property{Name: "Z", Value: true, NoIndex: false, Multiple: false}, }, &OuterEquivalent{ A: 1, IDotW: []int32{10, 20, 30}, IDotX: []string{"ten", "twenty", "thirty"}, JDotY: 3.14, Z: true, }, "", "", }, { "save outer-equivalent load outer", &OuterEquivalent{ A: 1, IDotW: []int32{10, 20, 30}, IDotX: []string{"ten", "twenty", "thirty"}, JDotY: 3.14, Z: true, }, &Outer{ A: 1, I: []Inner1{ {10, "ten"}, {20, "twenty"}, {30, "thirty"}, }, J: Inner2{ Y: 3.14, }, Inner3: Inner3{ Z: true, }, }, "", "", }, { "dotted names save", &Dotted{A: DottedA{B: DottedB{C: 88}}}, &PropertyList{ Property{Name: "A0.A1.A2.B3.C4.C5", Value: int64(88), NoIndex: false, Multiple: false}, }, "", "", }, { "dotted names load", &PropertyList{ Property{Name: "A0.A1.A2.B3.C4.C5", Value: int64(99), NoIndex: false, Multiple: false}, }, &Dotted{A: DottedA{B: DottedB{C: 99}}}, "", "", }, { "save struct load deriver", &X0{S: "s", I: 1}, &Deriver{S: "s", Derived: "derived+s"}, "", "", }, { "save deriver load struct", &Deriver{S: "s", Derived: "derived+s", Ignored: "ignored"}, &X0{S: "s"}, "", "", }, { "bad multi-prop entity", &BadMultiPropEntity{}, &BadMultiPropEntity{}, "Multiple is false", "", }, // Regression: CL 25062824 broke handling of appengine.BlobKey fields. { "appengine.BlobKey", &BK{Key: "blah"}, &BK{Key: "blah"}, "", "", }, { "zero time.Time", &T{T: time.Time{}}, &T{T: time.Time{}}, "", "", }, { "time.Time near Unix zero time", &T{T: time.Unix(0, 4e3)}, &T{T: time.Unix(0, 4e3)}, "", "", }, { "time.Time, far in the future", &T{T: time.Date(99999, 1, 1, 0, 0, 0, 0, time.UTC)}, &T{T: time.Date(99999, 1, 1, 0, 0, 0, 0, time.UTC)}, "", "", }, { "time.Time, very far in the past", &T{T: time.Date(-300000, 1, 1, 0, 0, 0, 0, time.UTC)}, &T{}, "time value out of range", "", }, { "time.Time, very far in the future", &T{T: time.Date(294248, 1, 1, 0, 0, 0, 0, time.UTC)}, &T{}, "time value out of range", "", }, { "structs", &N0{ X0: X0{S: "one", I: 2, i: 3}, Nonymous: X0{S: "four", I: 5, i: 6}, Ignore: "ignore", Other: "other", }, &N0{ X0: X0{S: "one", I: 2}, Nonymous: X0{S: "four", I: 5}, Other: "other", }, "", "", }, { "slice of structs", &N1{ X0: X0{S: "one", I: 2, i: 3}, Nonymous: []X0{ {S: "four", I: 5, i: 6}, {S: "seven", I: 8, i: 9}, {S: "ten", I: 11, i: 12}, {S: "thirteen", I: 14, i: 15}, }, Ignore: "ignore", Other: "other", }, &N1{ X0: X0{S: "one", I: 2}, Nonymous: []X0{ {S: "four", I: 5}, {S: "seven", I: 8}, {S: "ten", I: 11}, {S: "thirteen", I: 14}, }, Other: "other", }, "", "", }, { "structs with slices of structs", &N2{ N1: N1{ X0: X0{S: "rouge"}, Nonymous: []X0{ {S: "rosso0"}, {S: "rosso1"}, }, }, Green: N1{ X0: X0{S: "vert"}, Nonymous: []X0{ {S: "verde0"}, {S: "verde1"}, {S: "verde2"}, }, }, Blue: N1{ X0: X0{S: "bleu"}, Nonymous: []X0{ {S: "blu0"}, {S: "blu1"}, {S: "blu2"}, {S: "blu3"}, }, }, }, &N2{ N1: N1{ X0: X0{S: "rouge"}, Nonymous: []X0{ {S: "rosso0"}, {S: "rosso1"}, }, }, Green: N1{ X0: X0{S: "vert"}, Nonymous: []X0{ {S: "verde0"}, {S: "verde1"}, {S: "verde2"}, }, }, Blue: N1{ X0: X0{S: "bleu"}, Nonymous: []X0{ {S: "blu0"}, {S: "blu1"}, {S: "blu2"}, {S: "blu3"}, }, }, }, "", "", }, { "save structs load props", &N2{ N1: N1{ X0: X0{S: "rouge"}, Nonymous: []X0{ {S: "rosso0"}, {S: "rosso1"}, }, }, Green: N1{ X0: X0{S: "vert"}, Nonymous: []X0{ {S: "verde0"}, {S: "verde1"}, {S: "verde2"}, }, }, Blue: N1{ X0: X0{S: "bleu"}, Nonymous: []X0{ {S: "blu0"}, {S: "blu1"}, {S: "blu2"}, {S: "blu3"}, }, }, }, &PropertyList{ Property{Name: "Blue.I", Value: int64(0), NoIndex: false, Multiple: false}, Property{Name: "Blue.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.S", Value: "blu0", NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.S", Value: "blu1", NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.S", Value: "blu2", NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.S", Value: "blu3", NoIndex: false, Multiple: true}, Property{Name: "Blue.Other", Value: "", NoIndex: false, Multiple: false}, Property{Name: "Blue.S", Value: "bleu", NoIndex: false, Multiple: false}, Property{Name: "green.I", Value: int64(0), NoIndex: false, Multiple: false}, Property{Name: "green.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "green.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "green.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "green.Nonymous.S", Value: "verde0", NoIndex: false, Multiple: true}, Property{Name: "green.Nonymous.S", Value: "verde1", NoIndex: false, Multiple: true}, Property{Name: "green.Nonymous.S", Value: "verde2", NoIndex: false, Multiple: true}, Property{Name: "green.Other", Value: "", NoIndex: false, Multiple: false}, Property{Name: "green.S", Value: "vert", NoIndex: false, Multiple: false}, Property{Name: "red.I", Value: int64(0), NoIndex: false, Multiple: false}, Property{Name: "red.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "red.Nonymous.I", Value: int64(0), NoIndex: false, Multiple: true}, Property{Name: "red.Nonymous.S", Value: "rosso0", NoIndex: false, Multiple: true}, Property{Name: "red.Nonymous.S", Value: "rosso1", NoIndex: false, Multiple: true}, Property{Name: "red.Other", Value: "", NoIndex: false, Multiple: false}, Property{Name: "red.S", Value: "rouge", NoIndex: false, Multiple: false}, }, "", "", }, { "save props load structs with ragged fields", &PropertyList{ Property{Name: "red.S", Value: "rot", NoIndex: false, Multiple: false}, Property{Name: "green.Nonymous.I", Value: int64(10), NoIndex: false, Multiple: true}, Property{Name: "green.Nonymous.I", Value: int64(11), NoIndex: false, Multiple: true}, Property{Name: "green.Nonymous.I", Value: int64(12), NoIndex: false, Multiple: true}, Property{Name: "green.Nonymous.I", Value: int64(13), NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.S", Value: "blau0", NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.I", Value: int64(20), NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.S", Value: "blau1", NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.I", Value: int64(21), NoIndex: false, Multiple: true}, Property{Name: "Blue.Nonymous.S", Value: "blau2", NoIndex: false, Multiple: true}, }, &N2{ N1: N1{ X0: X0{S: "rot"}, }, Green: N1{ Nonymous: []X0{ {I: 10}, {I: 11}, {I: 12}, {I: 13}, }, }, Blue: N1{ Nonymous: []X0{ {S: "blau0", I: 20}, {S: "blau1", I: 21}, {S: "blau2"}, }, }, }, "", "", }, { "save structs with noindex tags", &struct { A struct { X string `datastore:",noindex"` Y string } `datastore:",noindex"` B struct { X string `datastore:",noindex"` Y string } }{}, &PropertyList{ Property{Name: "A.X", Value: "", NoIndex: true, Multiple: false}, Property{Name: "A.Y", Value: "", NoIndex: true, Multiple: false}, Property{Name: "B.X", Value: "", NoIndex: true, Multiple: false}, Property{Name: "B.Y", Value: "", NoIndex: false, Multiple: false}, }, "", "", }, { "embedded struct with name override", &struct { Inner1 `datastore:"foo"` }{}, &PropertyList{ Property{Name: "foo.W", Value: int64(0), NoIndex: false, Multiple: false}, Property{Name: "foo.X", Value: "", NoIndex: false, Multiple: false}, }, "", "", }, { "slice of slices", &SliceOfSlices{}, nil, "flattening nested structs leads to a slice of slices", "", }, { "recursive struct", &Recursive{}, nil, "recursive struct", "", }, { "mutually recursive struct", &MutuallyRecursive0{}, nil, "recursive struct", "", }, { "non-exported struct fields", &struct { i, J int64 }{i: 1, J: 2}, &PropertyList{ Property{Name: "J", Value: int64(2), NoIndex: false, Multiple: false}, }, "", "", }, { "json.RawMessage", &struct { J json.RawMessage }{ J: json.RawMessage("rawr"), }, &PropertyList{ Property{Name: "J", Value: []byte("rawr"), NoIndex: true, Multiple: false}, }, "", "", }, { "json.RawMessage to myBlob", &struct { B json.RawMessage }{ B: json.RawMessage("rawr"), }, &B2{B: myBlob("rawr")}, "", "", }, { "embedded time field", &SpecialTime{MyTime: EmbeddedTime{now}}, &SpecialTime{MyTime: EmbeddedTime{now}}, "", "", }, { "embedded time load", &PropertyList{ Property{Name: "MyTime.", Value: now, NoIndex: false, Multiple: false}, }, &SpecialTime{MyTime: EmbeddedTime{now}}, "", "", }, } // checkErr returns the empty string if either both want and err are zero, // or if want is a non-empty substring of err's string representation. func checkErr(want string, err error) string { if err != nil { got := err.Error() if want == "" || strings.Index(got, want) == -1 { return got } } else if want != "" { return fmt.Sprintf("want error %q", want) } return "" } func TestRoundTrip(t *testing.T) { for _, tc := range testCases { p, err := saveEntity(testAppID, testKey0, tc.src) if s := checkErr(tc.putErr, err); s != "" { t.Errorf("%s: save: %s", tc.desc, s) continue } if p == nil { continue } var got interface{} if _, ok := tc.want.(*PropertyList); ok { got = new(PropertyList) } else { got = reflect.New(reflect.TypeOf(tc.want).Elem()).Interface() } err = loadEntity(got, p) if s := checkErr(tc.getErr, err); s != "" { t.Errorf("%s: load: %s", tc.desc, s) continue } if pl, ok := got.(*PropertyList); ok { // Sort by name to make sure we have a deterministic order. sort.Stable(byName(*pl)) } equal := false if gotT, ok := got.(*T); ok { // Round tripping a time.Time can result in a different time.Location: Local instead of UTC. // We therefore test equality explicitly, instead of relying on reflect.DeepEqual. equal = gotT.T.Equal(tc.want.(*T).T) } else { equal = reflect.DeepEqual(got, tc.want) } if !equal { t.Errorf("%s: compare: got %v want %v", tc.desc, got, tc.want) continue } } } type byName PropertyList func (s byName) Len() int { return len(s) } func (s byName) Less(i, j int) bool { return s[i].Name < s[j].Name } func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] } func TestQueryConstruction(t *testing.T) { tests := []struct { q, exp *Query err string }{ { q: NewQuery("Foo"), exp: &Query{ kind: "Foo", limit: -1, }, }, { // Regular filtered query with standard spacing. q: NewQuery("Foo").Filter("foo >", 7), exp: &Query{ kind: "Foo", filter: []filter{ { FieldName: "foo", Op: greaterThan, Value: 7, }, }, limit: -1, }, }, { // Filtered query with no spacing. q: NewQuery("Foo").Filter("foo=", 6), exp: &Query{ kind: "Foo", filter: []filter{ { FieldName: "foo", Op: equal, Value: 6, }, }, limit: -1, }, }, { // Filtered query with funky spacing. q: NewQuery("Foo").Filter(" foo< ", 8), exp: &Query{ kind: "Foo", filter: []filter{ { FieldName: "foo", Op: lessThan, Value: 8, }, }, limit: -1, }, }, { // Filtered query with multicharacter op. q: NewQuery("Foo").Filter("foo >=", 9), exp: &Query{ kind: "Foo", filter: []filter{ { FieldName: "foo", Op: greaterEq, Value: 9, }, }, limit: -1, }, }, { // Query with ordering. q: NewQuery("Foo").Order("bar"), exp: &Query{ kind: "Foo", order: []order{ { FieldName: "bar", Direction: ascending, }, }, limit: -1, }, }, { // Query with reverse ordering, and funky spacing. q: NewQuery("Foo").Order(" - bar"), exp: &Query{ kind: "Foo", order: []order{ { FieldName: "bar", Direction: descending, }, }, limit: -1, }, }, { // Query with an empty ordering. q: NewQuery("Foo").Order(""), err: "empty order", }, { // Query with a + ordering. q: NewQuery("Foo").Order("+bar"), err: "invalid order", }, } for i, test := range tests { if test.q.err != nil { got := test.q.err.Error() if !strings.Contains(got, test.err) { t.Errorf("%d: error mismatch: got %q want something containing %q", i, got, test.err) } continue } if !reflect.DeepEqual(test.q, test.exp) { t.Errorf("%d: mismatch: got %v want %v", i, test.q, test.exp) } } } func TestStringMeaning(t *testing.T) { var xx [4]interface{} xx[0] = &struct { X string }{"xx0"} xx[1] = &struct { X string `datastore:",noindex"` }{"xx1"} xx[2] = &struct { X []byte }{[]byte("xx2")} xx[3] = &struct { X []byte `datastore:",noindex"` }{[]byte("xx3")} indexed := [4]bool{ true, false, false, // A []byte is always no-index. false, } want := [4]pb.Property_Meaning{ pb.Property_NO_MEANING, pb.Property_TEXT, pb.Property_BLOB, pb.Property_BLOB, } for i, x := range xx { props, err := SaveStruct(x) if err != nil { t.Errorf("i=%d: SaveStruct: %v", i, err) continue } e, err := propertiesToProto("appID", testKey0, props) if err != nil { t.Errorf("i=%d: propertiesToProto: %v", i, err) continue } var p *pb.Property switch { case indexed[i] && len(e.Property) == 1: p = e.Property[0] case !indexed[i] && len(e.RawProperty) == 1: p = e.RawProperty[0] default: t.Errorf("i=%d: EntityProto did not have expected property slice", i) continue } if got := p.GetMeaning(); got != want[i] { t.Errorf("i=%d: meaning: got %v, want %v", i, got, want[i]) continue } } } func TestNamespaceResetting(t *testing.T) { // These environment variables are necessary because *Query.Run will // call internal.FullyQualifiedAppID which checks these variables or falls // back to the Metadata service that is not available in tests. environ := []struct { key, value string }{ {"GAE_LONG_APP_ID", "my-app-id"}, {"GAE_PARTITION", "1"}, } for _, v := range environ { old := os.Getenv(v.key) os.Setenv(v.key, v.value) v.value = old } defer func() { // Restore old environment after the test completes. for _, v := range environ { if v.value == "" { os.Unsetenv(v.key) continue } os.Setenv(v.key, v.value) } }() namec := make(chan *string, 1) c0 := aetesting.FakeSingleContext(t, "datastore_v3", "RunQuery", func(req *pb.Query, res *pb.QueryResult) error { namec <- req.NameSpace return fmt.Errorf("RPC error") }) // Check that wrapping c0 in a namespace twice works correctly. c1, err := appengine.Namespace(c0, "A") if err != nil { t.Fatalf("appengine.Namespace: %v", err) } c2, err := appengine.Namespace(c1, "") // should act as the original context if err != nil { t.Fatalf("appengine.Namespace: %v", err) } q := NewQuery("SomeKind") q.Run(c0) if ns := <-namec; ns != nil { t.Errorf(`RunQuery with c0: ns = %q, want nil`, *ns) } q.Run(c1) if ns := <-namec; ns == nil { t.Error(`RunQuery with c1: ns = nil, want "A"`) } else if *ns != "A" { t.Errorf(`RunQuery with c1: ns = %q, want "A"`, *ns) } q.Run(c2) if ns := <-namec; ns != nil { t.Errorf(`RunQuery with c2: ns = %q, want nil`, *ns) } }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/time_test.go
// Copyright 2012 Google Inc. All Rights Reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "testing" "time" ) func TestUnixMicro(t *testing.T) { // Test that all these time.Time values survive a round trip to unix micros. testCases := []time.Time{ {}, time.Date(2, 1, 1, 0, 0, 0, 0, time.UTC), time.Date(23, 1, 1, 0, 0, 0, 0, time.UTC), time.Date(234, 1, 1, 0, 0, 0, 0, time.UTC), time.Date(1000, 1, 1, 0, 0, 0, 0, time.UTC), time.Date(1600, 1, 1, 0, 0, 0, 0, time.UTC), time.Date(1700, 1, 1, 0, 0, 0, 0, time.UTC), time.Date(1800, 1, 1, 0, 0, 0, 0, time.UTC), time.Date(1900, 1, 1, 0, 0, 0, 0, time.UTC), time.Unix(-1e6, -1000), time.Unix(-1e6, 0), time.Unix(-1e6, +1000), time.Unix(-60, -1000), time.Unix(-60, 0), time.Unix(-60, +1000), time.Unix(-1, -1000), time.Unix(-1, 0), time.Unix(-1, +1000), time.Unix(0, -3000), time.Unix(0, -2000), time.Unix(0, -1000), time.Unix(0, 0), time.Unix(0, +1000), time.Unix(0, +2000), time.Unix(+60, -1000), time.Unix(+60, 0), time.Unix(+60, +1000), time.Unix(+1e6, -1000), time.Unix(+1e6, 0), time.Unix(+1e6, +1000), time.Date(1999, 12, 31, 23, 59, 59, 999000, time.UTC), time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC), time.Date(2006, 1, 2, 15, 4, 5, 678000, time.UTC), time.Date(2009, 11, 10, 23, 0, 0, 0, time.UTC), time.Date(3456, 1, 1, 0, 0, 0, 0, time.UTC), } for _, tc := range testCases { got := fromUnixMicro(toUnixMicro(tc)) if !got.Equal(tc) { t.Errorf("got %q, want %q", got, tc) } } // Test that a time.Time that isn't an integral number of microseconds // is not perfectly reconstructed after a round trip. t0 := time.Unix(0, 123) t1 := fromUnixMicro(toUnixMicro(t0)) if t1.Nanosecond()%1000 != 0 || t0.Nanosecond()%1000 == 0 { t.Errorf("quantization to µs: got %q with %d ns, started with %d ns", t1, t1.Nanosecond(), t0.Nanosecond()) } }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/keycompat_test.go
// Copyright 2019 Google Inc. All Rights Reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "reflect" "testing" ) func TestKeyConversion(t *testing.T) { var tests = []struct { desc string key *Key encodedKey string }{ { desc: "A control test for legacy to legacy key conversion int as the key", key: &Key{ kind: "Person", intID: 1, appID: "glibrary", }, encodedKey: "aghnbGlicmFyeXIMCxIGUGVyc29uGAEM", }, { desc: "A control test for legacy to legacy key conversion string as the key", key: &Key{ kind: "Graph", stringID: "graph:7-day-active", appID: "glibrary", }, encodedKey: "aghnbGlicmFyeXIdCxIFR3JhcGgiEmdyYXBoOjctZGF5LWFjdGl2ZQw", }, // These are keys encoded with cloud.google.com/go/datastore // Standard int as the key { desc: "Convert new key format to old key with int id", key: &Key{ kind: "WordIndex", intID: 1033, appID: "glibrary", }, encodedKey: "Eg4KCVdvcmRJbmRleBCJCA", }, // These are keys encoded with cloud.google.com/go/datastore // Standard string { desc: "Convert new key format to old key with string id", key: &Key{ kind: "WordIndex", stringID: "IAmAnID", appID: "glibrary", }, encodedKey: "EhQKCVdvcmRJbmRleBoHSUFtQW5JRA", }, // These are keys encoded with cloud.google.com/go/datastore // ID String with parent as string { desc: "Convert new key format to old key with string id with a parent", key: &Key{ kind: "WordIndex", stringID: "IAmAnID", appID: "glibrary", parent: &Key{ kind: "LetterIndex", stringID: "IAmAnotherID", appID: "glibrary", }, }, encodedKey: "EhsKC0xldHRlckluZGV4GgxJQW1Bbm90aGVySUQSFAoJV29yZEluZGV4GgdJQW1BbklE", }, } // Simulate the key converter enablement keyConversion.appID = "glibrary" for _, tc := range tests { dk, err := DecodeKey(tc.encodedKey) if err != nil { t.Fatalf("DecodeKey: %v", err) } if !reflect.DeepEqual(dk, tc.key) { t.Errorf("%s: got %+v, want %+v", tc.desc, dk, tc.key) } } }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/prop_test.go
// Copyright 2011 Google Inc. All Rights Reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "reflect" "sort" "testing" "time" "google.golang.org/appengine" ) func TestValidPropertyName(t *testing.T) { testCases := []struct { name string want bool }{ // Invalid names. {"", false}, {"'", false}, {".", false}, {"..", false}, {".foo", false}, {"0", false}, {"00", false}, {"X.X.4.X.X", false}, {"\n", false}, {"\x00", false}, {"abc\xffz", false}, {"foo.", false}, {"foo..", false}, {"foo..bar", false}, {"☃", false}, {`"`, false}, // Valid names. {"AB", true}, {"Abc", true}, {"X.X.X.X.X", true}, {"_", true}, {"_0", true}, {"a", true}, {"a_B", true}, {"f00", true}, {"f0o", true}, {"fo0", true}, {"foo", true}, {"foo.bar", true}, {"foo.bar.baz", true}, {"世界", true}, } for _, tc := range testCases { got := validPropertyName(tc.name) if got != tc.want { t.Errorf("%q: got %v, want %v", tc.name, got, tc.want) } } } func TestStructCodec(t *testing.T) { type oStruct struct { O int } type pStruct struct { P int Q int } type rStruct struct { R int S pStruct T oStruct oStruct } type uStruct struct { U int v int } type vStruct struct { V string `datastore:",noindex"` } oStructCodec := &structCodec{ fields: map[string]fieldCodec{ "O": {path: []int{0}}, }, complete: true, } pStructCodec := &structCodec{ fields: map[string]fieldCodec{ "P": {path: []int{0}}, "Q": {path: []int{1}}, }, complete: true, } rStructCodec := &structCodec{ fields: map[string]fieldCodec{ "R": {path: []int{0}}, "S": {path: []int{1}, structCodec: pStructCodec}, "T": {path: []int{2}, structCodec: oStructCodec}, "O": {path: []int{3, 0}}, }, complete: true, } uStructCodec := &structCodec{ fields: map[string]fieldCodec{ "U": {path: []int{0}}, }, complete: true, } vStructCodec := &structCodec{ fields: map[string]fieldCodec{ "V": {path: []int{0}, noIndex: true}, }, complete: true, } testCases := []struct { desc string structValue interface{} want *structCodec }{ { "oStruct", oStruct{}, oStructCodec, }, { "pStruct", pStruct{}, pStructCodec, }, { "rStruct", rStruct{}, rStructCodec, }, { "uStruct", uStruct{}, uStructCodec, }, { "non-basic fields", struct { B appengine.BlobKey K *Key T time.Time }{}, &structCodec{ fields: map[string]fieldCodec{ "B": {path: []int{0}}, "K": {path: []int{1}}, "T": {path: []int{2}}, }, complete: true, }, }, { "struct tags with ignored embed", struct { A int `datastore:"a,noindex"` B int `datastore:"b"` C int `datastore:",noindex"` D int `datastore:""` E int I int `datastore:"-"` J int `datastore:",noindex" json:"j"` oStruct `datastore:"-"` }{}, &structCodec{ fields: map[string]fieldCodec{ "a": {path: []int{0}, noIndex: true}, "b": {path: []int{1}}, "C": {path: []int{2}, noIndex: true}, "D": {path: []int{3}}, "E": {path: []int{4}}, "J": {path: []int{6}, noIndex: true}, }, complete: true, }, }, { "unexported fields", struct { A int b int C int `datastore:"x"` d int `datastore:"Y"` }{}, &structCodec{ fields: map[string]fieldCodec{ "A": {path: []int{0}}, "x": {path: []int{2}}, }, complete: true, }, }, { "nested and embedded structs", struct { A int B int CC oStruct DDD rStruct oStruct }{}, &structCodec{ fields: map[string]fieldCodec{ "A": {path: []int{0}}, "B": {path: []int{1}}, "CC": {path: []int{2}, structCodec: oStructCodec}, "DDD": {path: []int{3}, structCodec: rStructCodec}, "O": {path: []int{4, 0}}, }, complete: true, }, }, { "struct tags with nested and embedded structs", struct { A int `datastore:"-"` B int `datastore:"w"` C oStruct `datastore:"xx"` D rStruct `datastore:"y"` oStruct `datastore:"z"` }{}, &structCodec{ fields: map[string]fieldCodec{ "w": {path: []int{1}}, "xx": {path: []int{2}, structCodec: oStructCodec}, "y": {path: []int{3}, structCodec: rStructCodec}, "z.O": {path: []int{4, 0}}, }, complete: true, }, }, { "unexported nested and embedded structs", struct { a int B int c uStruct D uStruct uStruct }{}, &structCodec{ fields: map[string]fieldCodec{ "B": {path: []int{1}}, "D": {path: []int{3}, structCodec: uStructCodec}, "U": {path: []int{4, 0}}, }, complete: true, }, }, { "noindex nested struct", struct { A oStruct `datastore:",noindex"` }{}, &structCodec{ fields: map[string]fieldCodec{ "A": {path: []int{0}, structCodec: oStructCodec, noIndex: true}, }, complete: true, }, }, { "noindex slice", struct { A []string `datastore:",noindex"` }{}, &structCodec{ fields: map[string]fieldCodec{ "A": {path: []int{0}, noIndex: true}, }, hasSlice: true, complete: true, }, }, { "noindex embedded struct slice", struct { // vStruct has a single field, V, also with noindex. A []vStruct `datastore:",noindex"` }{}, &structCodec{ fields: map[string]fieldCodec{ "A": {path: []int{0}, structCodec: vStructCodec, noIndex: true}, }, hasSlice: true, complete: true, }, }, } for _, tc := range testCases { got, err := getStructCodec(reflect.TypeOf(tc.structValue)) if err != nil { t.Errorf("%s: getStructCodec: %v", tc.desc, err) continue } // can't reflect.DeepEqual b/c element order in fields map may differ if !isEqualStructCodec(got, tc.want) { t.Errorf("%s\ngot %+v\nwant %+v\n", tc.desc, got, tc.want) } } } func isEqualStructCodec(got, want *structCodec) bool { if got.complete != want.complete { return false } if got.hasSlice != want.hasSlice { return false } if len(got.fields) != len(want.fields) { return false } for name, wantF := range want.fields { gotF := got.fields[name] if !reflect.DeepEqual(wantF.path, gotF.path) { return false } if wantF.noIndex != gotF.noIndex { return false } if wantF.structCodec != nil { if gotF.structCodec == nil { return false } if !isEqualStructCodec(gotF.structCodec, wantF.structCodec) { return false } } } return true } func TestRepeatedPropertyName(t *testing.T) { good := []interface{}{ struct { A int `datastore:"-"` }{}, struct { A int `datastore:"b"` B int }{}, struct { A int B int `datastore:"B"` }{}, struct { A int `datastore:"B"` B int `datastore:"-"` }{}, struct { A int `datastore:"-"` B int `datastore:"A"` }{}, struct { A int `datastore:"B"` B int `datastore:"A"` }{}, struct { A int `datastore:"B"` B int `datastore:"C"` C int `datastore:"A"` }{}, struct { A int `datastore:"B"` B int `datastore:"C"` C int `datastore:"D"` }{}, } bad := []interface{}{ struct { A int `datastore:"B"` B int }{}, struct { A int B int `datastore:"A"` }{}, struct { A int `datastore:"C"` B int `datastore:"C"` }{}, struct { A int `datastore:"B"` B int `datastore:"C"` C int `datastore:"B"` }{}, } testGetStructCodec(t, good, bad) } func TestFlatteningNestedStructs(t *testing.T) { type DeepGood struct { A struct { B []struct { C struct { D int } } } } type DeepBad struct { A struct { B []struct { C struct { D []int } } } } type ISay struct { Tomato int } type YouSay struct { Tomato int } type Tweedledee struct { Dee int `datastore:"D"` } type Tweedledum struct { Dum int `datastore:"D"` } good := []interface{}{ struct { X []struct { Y string } }{}, struct { X []struct { Y []byte } }{}, struct { P []int X struct { Y []int } }{}, struct { X struct { Y []int } Q []int }{}, struct { P []int X struct { Y []int } Q []int }{}, struct { DeepGood }{}, struct { DG DeepGood }{}, struct { Foo struct { Z int } `datastore:"A"` Bar struct { Z int } `datastore:"B"` }{}, } bad := []interface{}{ struct { X []struct { Y []string } }{}, struct { X []struct { Y []int } }{}, struct { DeepBad }{}, struct { DB DeepBad }{}, struct { ISay YouSay }{}, struct { Tweedledee Tweedledum }{}, struct { Foo struct { Z int } `datastore:"A"` Bar struct { Z int } `datastore:"A"` }{}, } testGetStructCodec(t, good, bad) } func testGetStructCodec(t *testing.T, good []interface{}, bad []interface{}) { for _, x := range good { if _, err := getStructCodec(reflect.TypeOf(x)); err != nil { t.Errorf("type %T: got non-nil error (%s), want nil", x, err) } } for _, x := range bad { if _, err := getStructCodec(reflect.TypeOf(x)); err == nil { t.Errorf("type %T: got nil error, want non-nil", x) } } } func TestNilKeyIsStored(t *testing.T) { x := struct { K *Key I int }{} p := PropertyList{} // Save x as properties. p1, _ := SaveStruct(&x) p.Load(p1) // Set x's fields to non-zero. x.K = &Key{} x.I = 2 // Load x from properties. p2, _ := p.Save() LoadStruct(&x, p2) // Check that x's fields were set to zero. if x.K != nil { t.Errorf("K field was not zero") } if x.I != 0 { t.Errorf("I field was not zero") } } func TestSaveStructOmitEmpty(t *testing.T) { // Expected props names are sorted alphabetically expectedPropNamesForSingles := []string{"EmptyValue", "NonEmptyValue", "OmitEmptyWithValue"} expectedPropNamesForSlices := []string{"NonEmptyValue", "NonEmptyValue", "OmitEmptyWithValue", "OmitEmptyWithValue"} testOmitted := func(expectedPropNames []string, src interface{}) { // t.Helper() - this is available from Go version 1.9, but we also support Go versions 1.6, 1.7, 1.8 if props, err := SaveStruct(src); err != nil { t.Fatal(err) } else { // Collect names for reporting if diffs from expected and for easier sorting actualPropNames := make([]string, len(props)) for i := range props { actualPropNames[i] = props[i].Name } // Sort actuals for comparing with already sorted expected names sort.Sort(sort.StringSlice(actualPropNames)) if !reflect.DeepEqual(actualPropNames, expectedPropNames) { t.Errorf("Expected this properties: %v, got: %v", expectedPropNames, actualPropNames) } } } testOmitted(expectedPropNamesForSingles, &struct { EmptyValue int NonEmptyValue int OmitEmptyNoValue int `datastore:",omitempty"` OmitEmptyWithValue int `datastore:",omitempty"` }{ NonEmptyValue: 1, OmitEmptyWithValue: 2, }) testOmitted(expectedPropNamesForSlices, &struct { EmptyValue []int NonEmptyValue []int OmitEmptyNoValue []int `datastore:",omitempty"` OmitEmptyWithValue []int `datastore:",omitempty"` }{ NonEmptyValue: []int{1, 2}, OmitEmptyWithValue: []int{3, 4}, }) testOmitted(expectedPropNamesForSingles, &struct { EmptyValue bool NonEmptyValue bool OmitEmptyNoValue bool `datastore:",omitempty"` OmitEmptyWithValue bool `datastore:",omitempty"` }{ NonEmptyValue: true, OmitEmptyWithValue: true, }) testOmitted(expectedPropNamesForSlices, &struct { EmptyValue []bool NonEmptyValue []bool OmitEmptyNoValue []bool `datastore:",omitempty"` OmitEmptyWithValue []bool `datastore:",omitempty"` }{ NonEmptyValue: []bool{true, true}, OmitEmptyWithValue: []bool{true, true}, }) testOmitted(expectedPropNamesForSingles, &struct { EmptyValue string NonEmptyValue string OmitEmptyNoValue string `datastore:",omitempty"` OmitEmptyWithValue string `datastore:",omitempty"` }{ NonEmptyValue: "s", OmitEmptyWithValue: "s", }) testOmitted(expectedPropNamesForSlices, &struct { EmptyValue []string NonEmptyValue []string OmitEmptyNoValue []string `datastore:",omitempty"` OmitEmptyWithValue []string `datastore:",omitempty"` }{ NonEmptyValue: []string{"s1", "s2"}, OmitEmptyWithValue: []string{"s3", "s4"}, }) testOmitted(expectedPropNamesForSingles, &struct { EmptyValue float32 NonEmptyValue float32 OmitEmptyNoValue float32 `datastore:",omitempty"` OmitEmptyWithValue float32 `datastore:",omitempty"` }{ NonEmptyValue: 1.1, OmitEmptyWithValue: 1.2, }) testOmitted(expectedPropNamesForSlices, &struct { EmptyValue []float32 NonEmptyValue []float32 OmitEmptyNoValue []float32 `datastore:",omitempty"` OmitEmptyWithValue []float32 `datastore:",omitempty"` }{ NonEmptyValue: []float32{1.1, 2.2}, OmitEmptyWithValue: []float32{3.3, 4.4}, }) testOmitted(expectedPropNamesForSingles, &struct { EmptyValue time.Time NonEmptyValue time.Time OmitEmptyNoValue time.Time `datastore:",omitempty"` OmitEmptyWithValue time.Time `datastore:",omitempty"` }{ NonEmptyValue: now, OmitEmptyWithValue: now, }) testOmitted(expectedPropNamesForSlices, &struct { EmptyValue []time.Time NonEmptyValue []time.Time OmitEmptyNoValue []time.Time `datastore:",omitempty"` OmitEmptyWithValue []time.Time `datastore:",omitempty"` }{ NonEmptyValue: []time.Time{now, now}, OmitEmptyWithValue: []time.Time{now, now}, }) }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/key_test.go
// Copyright 2011 Google Inc. All Rights Reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "bytes" "context" "encoding/gob" "encoding/json" "testing" "google.golang.org/appengine/internal" ) func TestKeyEncoding(t *testing.T) { testCases := []struct { desc string key *Key exp string }{ { desc: "A simple key with an int ID", key: &Key{ kind: "Person", intID: 1, appID: "glibrary", }, exp: "aghnbGlicmFyeXIMCxIGUGVyc29uGAEM", }, { desc: "A simple key with a string ID", key: &Key{ kind: "Graph", stringID: "graph:7-day-active", appID: "glibrary", }, exp: "aghnbGlicmFyeXIdCxIFR3JhcGgiEmdyYXBoOjctZGF5LWFjdGl2ZQw", }, { desc: "A key with a parent", key: &Key{ kind: "WordIndex", intID: 1033, parent: &Key{ kind: "WordIndex", intID: 1020032, appID: "glibrary", }, appID: "glibrary", }, exp: "aghnbGlicmFyeXIhCxIJV29yZEluZGV4GIChPgwLEglXb3JkSW5kZXgYiQgM", }, } for _, tc := range testCases { enc := tc.key.Encode() if enc != tc.exp { t.Errorf("%s: got %q, want %q", tc.desc, enc, tc.exp) } key, err := DecodeKey(tc.exp) if err != nil { t.Errorf("%s: failed decoding key: %v", tc.desc, err) continue } if !key.Equal(tc.key) { t.Errorf("%s: decoded key %v, want %v", tc.desc, key, tc.key) } } } func TestKeyGob(t *testing.T) { k := &Key{ kind: "Gopher", intID: 3, parent: &Key{ kind: "Mom", stringID: "narwhal", appID: "gopher-con", }, appID: "gopher-con", } buf := new(bytes.Buffer) if err := gob.NewEncoder(buf).Encode(k); err != nil { t.Fatalf("gob encode failed: %v", err) } k2 := new(Key) if err := gob.NewDecoder(buf).Decode(k2); err != nil { t.Fatalf("gob decode failed: %v", err) } if !k2.Equal(k) { t.Errorf("gob round trip of %v produced %v", k, k2) } } func TestNilKeyGob(t *testing.T) { type S struct { Key *Key } s1 := new(S) buf := new(bytes.Buffer) if err := gob.NewEncoder(buf).Encode(s1); err != nil { t.Fatalf("gob encode failed: %v", err) } s2 := new(S) if err := gob.NewDecoder(buf).Decode(s2); err != nil { t.Fatalf("gob decode failed: %v", err) } if s2.Key != nil { t.Errorf("gob round trip of nil key produced %v", s2.Key) } } func TestKeyJSON(t *testing.T) { k := &Key{ kind: "Gopher", intID: 2, parent: &Key{ kind: "Mom", stringID: "narwhal", appID: "gopher-con", }, appID: "gopher-con", } exp := `"` + k.Encode() + `"` buf, err := json.Marshal(k) if err != nil { t.Fatalf("json.Marshal failed: %v", err) } if s := string(buf); s != exp { t.Errorf("JSON encoding of key %v: got %q, want %q", k, s, exp) } k2 := new(Key) if err := json.Unmarshal(buf, k2); err != nil { t.Fatalf("json.Unmarshal failed: %v", err) } if !k2.Equal(k) { t.Errorf("JSON round trip of %v produced %v", k, k2) } } func TestNilKeyJSON(t *testing.T) { type S struct { Key *Key } s1 := new(S) buf, err := json.Marshal(s1) if err != nil { t.Fatalf("json.Marshal failed: %v", err) } s2 := new(S) if err := json.Unmarshal(buf, s2); err != nil { t.Fatalf("json.Unmarshal failed: %v", err) } if s2.Key != nil { t.Errorf("JSON round trip of nil key produced %v", s2.Key) } } func TestIncompleteKeyWithParent(t *testing.T) { c := internal.WithAppIDOverride(context.Background(), "s~some-app") // fadduh is a complete key. fadduh := NewKey(c, "Person", "", 1, nil) if fadduh.Incomplete() { t.Fatalf("fadduh is incomplete") } // robert is an incomplete key with fadduh as a parent. robert := NewIncompleteKey(c, "Person", fadduh) if !robert.Incomplete() { t.Fatalf("robert is complete") } // Both should be valid keys. if !fadduh.valid() { t.Errorf("fadduh is invalid: %v", fadduh) } if !robert.valid() { t.Errorf("robert is invalid: %v", robert) } } func TestNamespace(t *testing.T) { key := &Key{ kind: "Person", intID: 1, appID: "s~some-app", namespace: "mynamespace", } if g, w := key.Namespace(), "mynamespace"; g != w { t.Errorf("key.Namespace() = %q, want %q", g, w) } }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/load.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "fmt" "reflect" "strings" "time" "github.com/golang/protobuf/proto" "google.golang.org/appengine" pb "google.golang.org/appengine/internal/datastore" ) var ( typeOfBlobKey = reflect.TypeOf(appengine.BlobKey("")) typeOfByteSlice = reflect.TypeOf([]byte(nil)) typeOfByteString = reflect.TypeOf(ByteString(nil)) typeOfGeoPoint = reflect.TypeOf(appengine.GeoPoint{}) typeOfTime = reflect.TypeOf(time.Time{}) typeOfKeyPtr = reflect.TypeOf(&Key{}) typeOfEntityPtr = reflect.TypeOf(&Entity{}) ) // typeMismatchReason returns a string explaining why the property p could not // be stored in an entity field of type v.Type(). func typeMismatchReason(pValue interface{}, v reflect.Value) string { entityType := "empty" switch pValue.(type) { case int64: entityType = "int" case bool: entityType = "bool" case string: entityType = "string" case float64: entityType = "float" case *Key: entityType = "*datastore.Key" case time.Time: entityType = "time.Time" case appengine.BlobKey: entityType = "appengine.BlobKey" case appengine.GeoPoint: entityType = "appengine.GeoPoint" case ByteString: entityType = "datastore.ByteString" case []byte: entityType = "[]byte" } return fmt.Sprintf("type mismatch: %s versus %v", entityType, v.Type()) } type propertyLoader struct { // m holds the number of times a substruct field like "Foo.Bar.Baz" has // been seen so far. The map is constructed lazily. m map[string]int } func (l *propertyLoader) load(codec *structCodec, structValue reflect.Value, p Property, requireSlice bool) string { var v reflect.Value var sliceIndex int name := p.Name // If name ends with a '.', the last field is anonymous. // In this case, strings.Split will give us "" as the // last element of our fields slice, which will match the "" // field name in the substruct codec. fields := strings.Split(name, ".") for len(fields) > 0 { var decoder fieldCodec var ok bool // Cut off the last field (delimited by ".") and find its parent // in the codec. // eg. for name "A.B.C.D", split off "A.B.C" and try to // find a field in the codec with this name. // Loop again with "A.B", etc. for i := len(fields); i > 0; i-- { parent := strings.Join(fields[:i], ".") decoder, ok = codec.fields[parent] if ok { fields = fields[i:] break } } // If we never found a matching field in the codec, return // error message. if !ok { return "no such struct field" } v = initField(structValue, decoder.path) if !v.IsValid() { return "no such struct field" } if !v.CanSet() { return "cannot set struct field" } if decoder.structCodec != nil { codec = decoder.structCodec structValue = v } if v.Kind() == reflect.Slice && v.Type() != typeOfByteSlice { if l.m == nil { l.m = make(map[string]int) } sliceIndex = l.m[p.Name] l.m[p.Name] = sliceIndex + 1 for v.Len() <= sliceIndex { v.Set(reflect.Append(v, reflect.New(v.Type().Elem()).Elem())) } structValue = v.Index(sliceIndex) requireSlice = false } } var slice reflect.Value if v.Kind() == reflect.Slice && v.Type().Elem().Kind() != reflect.Uint8 { slice = v v = reflect.New(v.Type().Elem()).Elem() } else if requireSlice { return "multiple-valued property requires a slice field type" } // Convert indexValues to a Go value with a meaning derived from the // destination type. pValue := p.Value if iv, ok := pValue.(indexValue); ok { meaning := pb.Property_NO_MEANING switch v.Type() { case typeOfBlobKey: meaning = pb.Property_BLOBKEY case typeOfByteSlice: meaning = pb.Property_BLOB case typeOfByteString: meaning = pb.Property_BYTESTRING case typeOfGeoPoint: meaning = pb.Property_GEORSS_POINT case typeOfTime: meaning = pb.Property_GD_WHEN case typeOfEntityPtr: meaning = pb.Property_ENTITY_PROTO } var err error pValue, err = propValue(iv.value, meaning) if err != nil { return err.Error() } } if errReason := setVal(v, pValue); errReason != "" { // Set the slice back to its zero value. if slice.IsValid() { slice.Set(reflect.Zero(slice.Type())) } return errReason } if slice.IsValid() { slice.Index(sliceIndex).Set(v) } return "" } // setVal sets v to the value pValue. func setVal(v reflect.Value, pValue interface{}) string { switch v.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: x, ok := pValue.(int64) if !ok && pValue != nil { return typeMismatchReason(pValue, v) } if v.OverflowInt(x) { return fmt.Sprintf("value %v overflows struct field of type %v", x, v.Type()) } v.SetInt(x) case reflect.Bool: x, ok := pValue.(bool) if !ok && pValue != nil { return typeMismatchReason(pValue, v) } v.SetBool(x) case reflect.String: switch x := pValue.(type) { case appengine.BlobKey: v.SetString(string(x)) case ByteString: v.SetString(string(x)) case string: v.SetString(x) default: if pValue != nil { return typeMismatchReason(pValue, v) } } case reflect.Float32, reflect.Float64: x, ok := pValue.(float64) if !ok && pValue != nil { return typeMismatchReason(pValue, v) } if v.OverflowFloat(x) { return fmt.Sprintf("value %v overflows struct field of type %v", x, v.Type()) } v.SetFloat(x) case reflect.Ptr: x, ok := pValue.(*Key) if !ok && pValue != nil { return typeMismatchReason(pValue, v) } if _, ok := v.Interface().(*Key); !ok { return typeMismatchReason(pValue, v) } v.Set(reflect.ValueOf(x)) case reflect.Struct: switch v.Type() { case typeOfTime: x, ok := pValue.(time.Time) if !ok && pValue != nil { return typeMismatchReason(pValue, v) } v.Set(reflect.ValueOf(x)) case typeOfGeoPoint: x, ok := pValue.(appengine.GeoPoint) if !ok && pValue != nil { return typeMismatchReason(pValue, v) } v.Set(reflect.ValueOf(x)) default: ent, ok := pValue.(*Entity) if !ok { return typeMismatchReason(pValue, v) } // Recursively load nested struct pls, err := newStructPLS(v.Addr().Interface()) if err != nil { return err.Error() } // if ent has a Key value and our struct has a Key field, // load the Entity's Key value into the Key field on the struct. if ent.Key != nil && pls.codec.keyField != -1 { pls.v.Field(pls.codec.keyField).Set(reflect.ValueOf(ent.Key)) } err = pls.Load(ent.Properties) if err != nil { return err.Error() } } case reflect.Slice: x, ok := pValue.([]byte) if !ok { if y, yok := pValue.(ByteString); yok { x, ok = []byte(y), true } } if !ok && pValue != nil { return typeMismatchReason(pValue, v) } if v.Type().Elem().Kind() != reflect.Uint8 { return typeMismatchReason(pValue, v) } v.SetBytes(x) default: return typeMismatchReason(pValue, v) } return "" } // initField is similar to reflect's Value.FieldByIndex, in that it // returns the nested struct field corresponding to index, but it // initialises any nil pointers encountered when traversing the structure. func initField(val reflect.Value, index []int) reflect.Value { for _, i := range index[:len(index)-1] { val = val.Field(i) if val.Kind() == reflect.Ptr { if val.IsNil() { val.Set(reflect.New(val.Type().Elem())) } val = val.Elem() } } return val.Field(index[len(index)-1]) } // loadEntity loads an EntityProto into PropertyLoadSaver or struct pointer. func loadEntity(dst interface{}, src *pb.EntityProto) (err error) { ent, err := protoToEntity(src) if err != nil { return err } if e, ok := dst.(PropertyLoadSaver); ok { return e.Load(ent.Properties) } return LoadStruct(dst, ent.Properties) } func (s structPLS) Load(props []Property) error { var fieldName, reason string var l propertyLoader for _, p := range props { if errStr := l.load(s.codec, s.v, p, p.Multiple); errStr != "" { // We don't return early, as we try to load as many properties as possible. // It is valid to load an entity into a struct that cannot fully represent it. // That case returns an error, but the caller is free to ignore it. fieldName, reason = p.Name, errStr } } if reason != "" { return &ErrFieldMismatch{ StructType: s.v.Type(), FieldName: fieldName, Reason: reason, } } return nil } func protoToEntity(src *pb.EntityProto) (*Entity, error) { props, rawProps := src.Property, src.RawProperty outProps := make([]Property, 0, len(props)+len(rawProps)) for { var ( x *pb.Property noIndex bool ) if len(props) > 0 { x, props = props[0], props[1:] } else if len(rawProps) > 0 { x, rawProps = rawProps[0], rawProps[1:] noIndex = true } else { break } var value interface{} if x.Meaning != nil && *x.Meaning == pb.Property_INDEX_VALUE { value = indexValue{x.Value} } else { var err error value, err = propValue(x.Value, x.GetMeaning()) if err != nil { return nil, err } } outProps = append(outProps, Property{ Name: x.GetName(), Value: value, NoIndex: noIndex, Multiple: x.GetMultiple(), }) } var key *Key if src.Key != nil { // Ignore any error, since nested entity values // are allowed to have an invalid key. key, _ = protoToKey(src.Key) } return &Entity{key, outProps}, nil } // propValue returns a Go value that combines the raw PropertyValue with a // meaning. For example, an Int64Value with GD_WHEN becomes a time.Time. func propValue(v *pb.PropertyValue, m pb.Property_Meaning) (interface{}, error) { switch { case v.Int64Value != nil: if m == pb.Property_GD_WHEN { return fromUnixMicro(*v.Int64Value), nil } else { return *v.Int64Value, nil } case v.BooleanValue != nil: return *v.BooleanValue, nil case v.StringValue != nil: if m == pb.Property_BLOB { return []byte(*v.StringValue), nil } else if m == pb.Property_BLOBKEY { return appengine.BlobKey(*v.StringValue), nil } else if m == pb.Property_BYTESTRING { return ByteString(*v.StringValue), nil } else if m == pb.Property_ENTITY_PROTO { var ent pb.EntityProto err := proto.Unmarshal([]byte(*v.StringValue), &ent) if err != nil { return nil, err } return protoToEntity(&ent) } else { return *v.StringValue, nil } case v.DoubleValue != nil: return *v.DoubleValue, nil case v.Referencevalue != nil: key, err := referenceValueToKey(v.Referencevalue) if err != nil { return nil, err } return key, nil case v.Pointvalue != nil: // NOTE: Strangely, latitude maps to X, longitude to Y. return appengine.GeoPoint{Lat: v.Pointvalue.GetX(), Lng: v.Pointvalue.GetY()}, nil } return nil, nil } // indexValue is a Property value that is created when entities are loaded from // an index, such as from a projection query. // // Such Property values do not contain all of the metadata required to be // faithfully represented as a Go value, and are instead represented as an // opaque indexValue. Load the properties into a concrete struct type (e.g. by // passing a struct pointer to Iterator.Next) to reconstruct actual Go values // of type int, string, time.Time, etc. type indexValue struct { value *pb.PropertyValue }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/load_test.go
// Copyright 2016 Google Inc. All Rights Reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package datastore import ( "reflect" "testing" proto "github.com/golang/protobuf/proto" pb "google.golang.org/appengine/internal/datastore" ) type Simple struct { I int64 } type SimpleWithTag struct { I int64 `datastore:"II"` } type NestedSimpleWithTag struct { A SimpleWithTag `datastore:"AA"` } type NestedSliceOfSimple struct { A []Simple } type SimpleTwoFields struct { S string SS string } type NestedSimpleAnonymous struct { Simple X string } type NestedSimple struct { A Simple I int64 } type NestedSimple1 struct { A Simple X string } type NestedSimple2X struct { AA NestedSimple A SimpleTwoFields S string } type BDotB struct { B string `datastore:"B.B"` } type ABDotB struct { A BDotB } type MultiAnonymous struct { Simple SimpleTwoFields X string } var ( // these values need to be addressable testString2 = "two" testString3 = "three" testInt64 = int64(2) fieldNameI = "I" fieldNameX = "X" fieldNameS = "S" fieldNameSS = "SS" fieldNameADotI = "A.I" fieldNameAADotII = "AA.II" fieldNameADotBDotB = "A.B.B" ) func TestLoadEntityNestedLegacy(t *testing.T) { testCases := []struct { desc string src *pb.EntityProto want interface{} }{ { "nested", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameX, Value: &pb.PropertyValue{ StringValue: &testString2, }, }, &pb.Property{ Name: &fieldNameADotI, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, }, }, }, &NestedSimple1{ A: Simple{I: testInt64}, X: testString2, }, }, { "nested with tag", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameAADotII, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, }, }, }, &NestedSimpleWithTag{ A: SimpleWithTag{I: testInt64}, }, }, { "nested with anonymous struct field", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameX, Value: &pb.PropertyValue{ StringValue: &testString2, }, }, &pb.Property{ Name: &fieldNameI, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, }, }, }, &NestedSimpleAnonymous{ Simple: Simple{I: testInt64}, X: testString2, }, }, { "nested with dotted field tag", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameADotBDotB, Value: &pb.PropertyValue{ StringValue: &testString2, }, }, }, }, &ABDotB{ A: BDotB{ B: testString2, }, }, }, { "nested with dotted field tag", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameI, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, }, &pb.Property{ Name: &fieldNameS, Value: &pb.PropertyValue{ StringValue: &testString2, }, }, &pb.Property{ Name: &fieldNameSS, Value: &pb.PropertyValue{ StringValue: &testString3, }, }, &pb.Property{ Name: &fieldNameX, Value: &pb.PropertyValue{ StringValue: &testString3, }, }, }, }, &MultiAnonymous{ Simple: Simple{I: testInt64}, SimpleTwoFields: SimpleTwoFields{S: "two", SS: "three"}, X: "three", }, }, } for _, tc := range testCases { dst := reflect.New(reflect.TypeOf(tc.want).Elem()).Interface() err := loadEntity(dst, tc.src) if err != nil { t.Errorf("loadEntity: %s: %v", tc.desc, err) continue } if !reflect.DeepEqual(tc.want, dst) { t.Errorf("%s: compare:\ngot: %#v\nwant: %#v", tc.desc, dst, tc.want) } } } type WithKey struct { X string I int64 K *Key `datastore:"__key__"` } type NestedWithKey struct { N WithKey Y string } var ( incompleteKey = newKey("", nil) invalidKey = newKey("s", incompleteKey) // these values need to be addressable fieldNameA = "A" fieldNameK = "K" fieldNameN = "N" fieldNameY = "Y" fieldNameAA = "AA" fieldNameII = "II" fieldNameBDotB = "B.B" entityProtoMeaning = pb.Property_ENTITY_PROTO TRUE = true FALSE = false ) var ( simpleEntityProto, nestedSimpleEntityProto, simpleTwoFieldsEntityProto, simpleWithTagEntityProto, bDotBEntityProto, withKeyEntityProto string ) func init() { // simpleEntityProto corresponds to: // Simple{I: testInt64} simpleEntityProtob, err := proto.Marshal(&pb.EntityProto{ Key: keyToProto("", incompleteKey), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameI, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, Multiple: &FALSE, }, }, EntityGroup: &pb.Path{}, }) if err != nil { panic(err) } simpleEntityProto = string(simpleEntityProtob) // nestedSimpleEntityProto corresponds to: // NestedSimple{ // A: Simple{I: testInt64}, // I: testInt64, // } nestedSimpleEntityProtob, err := proto.Marshal(&pb.EntityProto{ Key: keyToProto("", incompleteKey), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameA, Meaning: &entityProtoMeaning, Value: &pb.PropertyValue{ StringValue: &simpleEntityProto, }, Multiple: &FALSE, }, &pb.Property{ Name: &fieldNameI, Meaning: &entityProtoMeaning, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, Multiple: &FALSE, }, }, EntityGroup: &pb.Path{}, }) if err != nil { panic(err) } nestedSimpleEntityProto = string(nestedSimpleEntityProtob) // simpleTwoFieldsEntityProto corresponds to: // SimpleTwoFields{S: testString2, SS: testString3} simpleTwoFieldsEntityProtob, err := proto.Marshal(&pb.EntityProto{ Key: keyToProto("", incompleteKey), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameS, Value: &pb.PropertyValue{ StringValue: &testString2, }, Multiple: &FALSE, }, &pb.Property{ Name: &fieldNameSS, Value: &pb.PropertyValue{ StringValue: &testString3, }, Multiple: &FALSE, }, }, EntityGroup: &pb.Path{}, }) if err != nil { panic(err) } simpleTwoFieldsEntityProto = string(simpleTwoFieldsEntityProtob) // simpleWithTagEntityProto corresponds to: // SimpleWithTag{I: testInt64} simpleWithTagEntityProtob, err := proto.Marshal(&pb.EntityProto{ Key: keyToProto("", incompleteKey), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameII, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, Multiple: &FALSE, }, }, EntityGroup: &pb.Path{}, }) if err != nil { panic(err) } simpleWithTagEntityProto = string(simpleWithTagEntityProtob) // bDotBEntityProto corresponds to: // BDotB{ // B: testString2, // } bDotBEntityProtob, err := proto.Marshal(&pb.EntityProto{ Key: keyToProto("", incompleteKey), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameBDotB, Value: &pb.PropertyValue{ StringValue: &testString2, }, Multiple: &FALSE, }, }, EntityGroup: &pb.Path{}, }) if err != nil { panic(err) } bDotBEntityProto = string(bDotBEntityProtob) // withKeyEntityProto corresponds to: // WithKey{ // X: testString3, // I: testInt64, // K: testKey1a, // } withKeyEntityProtob, err := proto.Marshal(&pb.EntityProto{ Key: keyToProto("", testKey1a), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameX, Value: &pb.PropertyValue{ StringValue: &testString3, }, Multiple: &FALSE, }, &pb.Property{ Name: &fieldNameI, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, Multiple: &FALSE, }, }, EntityGroup: &pb.Path{}, }) if err != nil { panic(err) } withKeyEntityProto = string(withKeyEntityProtob) } func TestLoadEntityNested(t *testing.T) { testCases := []struct { desc string src *pb.EntityProto want interface{} }{ { "nested basic", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameA, Meaning: &entityProtoMeaning, Value: &pb.PropertyValue{ StringValue: &simpleEntityProto, }, }, &pb.Property{ Name: &fieldNameI, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, }, }, }, &NestedSimple{ A: Simple{I: 2}, I: 2, }, }, { "nested with struct tags", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameAA, Meaning: &entityProtoMeaning, Value: &pb.PropertyValue{ StringValue: &simpleWithTagEntityProto, }, }, }, }, &NestedSimpleWithTag{ A: SimpleWithTag{I: testInt64}, }, }, { "nested 2x", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameAA, Meaning: &entityProtoMeaning, Value: &pb.PropertyValue{ StringValue: &nestedSimpleEntityProto, }, }, &pb.Property{ Name: &fieldNameA, Meaning: &entityProtoMeaning, Value: &pb.PropertyValue{ StringValue: &simpleTwoFieldsEntityProto, }, }, &pb.Property{ Name: &fieldNameS, Value: &pb.PropertyValue{ StringValue: &testString3, }, }, }, }, &NestedSimple2X{ AA: NestedSimple{ A: Simple{I: testInt64}, I: testInt64, }, A: SimpleTwoFields{S: testString2, SS: testString3}, S: testString3, }, }, { "nested anonymous", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameI, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, }, &pb.Property{ Name: &fieldNameX, Value: &pb.PropertyValue{ StringValue: &testString2, }, }, }, }, &NestedSimpleAnonymous{ Simple: Simple{I: testInt64}, X: testString2, }, }, { "nested simple with slice", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameA, Meaning: &entityProtoMeaning, Multiple: &TRUE, Value: &pb.PropertyValue{ StringValue: &simpleEntityProto, }, }, &pb.Property{ Name: &fieldNameA, Meaning: &entityProtoMeaning, Multiple: &TRUE, Value: &pb.PropertyValue{ StringValue: &simpleEntityProto, }, }, }, }, &NestedSliceOfSimple{ A: []Simple{Simple{I: testInt64}, Simple{I: testInt64}}, }, }, { "nested with multiple anonymous fields", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameI, Value: &pb.PropertyValue{ Int64Value: &testInt64, }, }, &pb.Property{ Name: &fieldNameS, Value: &pb.PropertyValue{ StringValue: &testString2, }, }, &pb.Property{ Name: &fieldNameSS, Value: &pb.PropertyValue{ StringValue: &testString3, }, }, &pb.Property{ Name: &fieldNameX, Value: &pb.PropertyValue{ StringValue: &testString2, }, }, }, }, &MultiAnonymous{ Simple: Simple{I: testInt64}, SimpleTwoFields: SimpleTwoFields{S: testString2, SS: testString3}, X: testString2, }, }, { "nested with dotted field tag", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameA, Meaning: &entityProtoMeaning, Value: &pb.PropertyValue{ StringValue: &bDotBEntityProto, }, }, }, }, &ABDotB{ A: BDotB{ B: testString2, }, }, }, { "nested entity with key", &pb.EntityProto{ Key: keyToProto("some-app-id", testKey0), Property: []*pb.Property{ &pb.Property{ Name: &fieldNameY, Value: &pb.PropertyValue{ StringValue: &testString2, }, }, &pb.Property{ Name: &fieldNameN, Meaning: &entityProtoMeaning, Value: &pb.PropertyValue{ StringValue: &withKeyEntityProto, }, }, }, }, &NestedWithKey{ Y: testString2, N: WithKey{ X: testString3, I: testInt64, K: testKey1a, }, }, }, } for _, tc := range testCases { dst := reflect.New(reflect.TypeOf(tc.want).Elem()).Interface() err := loadEntity(dst, tc.src) if err != nil { t.Errorf("loadEntity: %s: %v", tc.desc, err) continue } if !reflect.DeepEqual(tc.want, dst) { t.Errorf("%s: compare:\ngot: %#v\nwant: %#v", tc.desc, dst, tc.want) } } }
cloudpb
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/internal/cloudpb/entity.pb.go
// Copyright 2019 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package cloudpb is a subset of protobufs, copied from google.golang.org/genproto/googleapis/datastore/v1. // // They are copied here to provide compatibility to decode keys generated by the cloud.google.com/go/datastore package. package cloudpb import ( "fmt" "github.com/golang/protobuf/proto" ) // A partition ID identifies a grouping of entities. The grouping is always // by project and namespace, however the namespace ID may be empty. // // A partition ID contains several dimensions: // project ID and namespace ID. // // Partition dimensions: // // - May be `""`. // - Must be valid UTF-8 bytes. // - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` // If the value of any dimension matches regex `__.*__`, the partition is // reserved/read-only. // A reserved/read-only partition ID is forbidden in certain documented // contexts. // // Foreign partition IDs (in which the project ID does // not match the context project ID ) are discouraged. // Reads and writes of foreign partition IDs may fail if the project is not in // an active state. type PartitionId struct { // The ID of the project to which the entities belong. ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // If not empty, the ID of the namespace to which the entities belong. NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PartitionId) Reset() { *m = PartitionId{} } func (m *PartitionId) String() string { return proto.CompactTextString(m) } func (*PartitionId) ProtoMessage() {} func (*PartitionId) Descriptor() ([]byte, []int) { return fileDescriptor_entity_096a297364b049a5, []int{0} } func (m *PartitionId) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PartitionId.Unmarshal(m, b) } func (m *PartitionId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PartitionId.Marshal(b, m, deterministic) } func (dst *PartitionId) XXX_Merge(src proto.Message) { xxx_messageInfo_PartitionId.Merge(dst, src) } func (m *PartitionId) XXX_Size() int { return xxx_messageInfo_PartitionId.Size(m) } func (m *PartitionId) XXX_DiscardUnknown() { xxx_messageInfo_PartitionId.DiscardUnknown(m) } var xxx_messageInfo_PartitionId proto.InternalMessageInfo func (m *PartitionId) GetProjectId() string { if m != nil { return m.ProjectId } return "" } func (m *PartitionId) GetNamespaceId() string { if m != nil { return m.NamespaceId } return "" } // A unique identifier for an entity. // If a key's partition ID or any of its path kinds or names are // reserved/read-only, the key is reserved/read-only. // A reserved/read-only key is forbidden in certain documented contexts. type Key struct { // Entities are partitioned into subsets, currently identified by a project // ID and namespace ID. // Queries are scoped to a single partition. PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"` // The entity path. // An entity path consists of one or more elements composed of a kind and a // string or numerical identifier, which identify entities. The first // element identifies a _root entity_, the second element identifies // a _child_ of the root entity, the third element identifies a child of the // second entity, and so forth. The entities identified by all prefixes of // the path are called the element's _ancestors_. // // An entity path is always fully complete: *all* of the entity's ancestors // are required to be in the path along with the entity identifier itself. // The only exception is that in some documented cases, the identifier in the // last path element (for the entity) itself may be omitted. For example, // the last path element of the key of `Mutation.insert` may have no // identifier. // // A path can never be empty, and a path can have at most 100 elements. Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Key) Reset() { *m = Key{} } func (m *Key) String() string { return proto.CompactTextString(m) } func (*Key) ProtoMessage() {} func (*Key) Descriptor() ([]byte, []int) { return fileDescriptor_entity_096a297364b049a5, []int{1} } func (m *Key) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Key.Unmarshal(m, b) } func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Key.Marshal(b, m, deterministic) } func (dst *Key) XXX_Merge(src proto.Message) { xxx_messageInfo_Key.Merge(dst, src) } func (m *Key) XXX_Size() int { return xxx_messageInfo_Key.Size(m) } func (m *Key) XXX_DiscardUnknown() { xxx_messageInfo_Key.DiscardUnknown(m) } // A (kind, ID/name) pair used to construct a key path. // // If either name or ID is set, the element is complete. // If neither is set, the element is incomplete. type Key_PathElement struct { // The kind of the entity. // A kind matching regex `__.*__` is reserved/read-only. // A kind must not contain more than 1500 bytes when UTF-8 encoded. // Cannot be `""`. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The type of ID. // // Types that are valid to be assigned to IdType: // *Key_PathElement_Id // *Key_PathElement_Name IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Key_PathElement) Reset() { *m = Key_PathElement{} } func (m *Key_PathElement) String() string { return proto.CompactTextString(m) } func (*Key_PathElement) ProtoMessage() {} func (*Key_PathElement) Descriptor() ([]byte, []int) { return fileDescriptor_entity_096a297364b049a5, []int{1, 0} } func (m *Key_PathElement) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Key_PathElement.Unmarshal(m, b) } func (m *Key_PathElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Key_PathElement.Marshal(b, m, deterministic) } func (dst *Key_PathElement) XXX_Merge(src proto.Message) { xxx_messageInfo_Key_PathElement.Merge(dst, src) } func (m *Key_PathElement) XXX_Size() int { return xxx_messageInfo_Key_PathElement.Size(m) } func (m *Key_PathElement) XXX_DiscardUnknown() { xxx_messageInfo_Key_PathElement.DiscardUnknown(m) } var xxx_messageInfo_Key_PathElement proto.InternalMessageInfo func (m *Key_PathElement) GetKind() string { if m != nil { return m.Kind } return "" } type isKey_PathElement_IdType interface { isKey_PathElement_IdType() } type Key_PathElement_Id struct { Id int64 `protobuf:"varint,2,opt,name=id,proto3,oneof"` } type Key_PathElement_Name struct { Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"` } func (*Key_PathElement_Id) isKey_PathElement_IdType() {} func (*Key_PathElement_Name) isKey_PathElement_IdType() {} func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType { if m != nil { return m.IdType } return nil } func (m *Key_PathElement) GetId() int64 { if x, ok := m.GetIdType().(*Key_PathElement_Id); ok { return x.Id } return 0 } func (m *Key_PathElement) GetName() string { if x, ok := m.GetIdType().(*Key_PathElement_Name); ok { return x.Name } return "" } // XXX_OneofFuncs is for the internal use of the proto package. func (*Key_PathElement) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _Key_PathElement_OneofMarshaler, _Key_PathElement_OneofUnmarshaler, _Key_PathElement_OneofSizer, []interface{}{ (*Key_PathElement_Id)(nil), (*Key_PathElement_Name)(nil), } } func _Key_PathElement_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { m := msg.(*Key_PathElement) // id_type switch x := m.IdType.(type) { case *Key_PathElement_Id: b.EncodeVarint(2<<3 | proto.WireVarint) b.EncodeVarint(uint64(x.Id)) case *Key_PathElement_Name: b.EncodeVarint(3<<3 | proto.WireBytes) b.EncodeStringBytes(x.Name) case nil: default: return fmt.Errorf("Key_PathElement.IdType has unexpected type %T", x) } return nil } func _Key_PathElement_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Key_PathElement) switch tag { case 2: // id_type.id if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.IdType = &Key_PathElement_Id{int64(x)} return true, err case 3: // id_type.name if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.IdType = &Key_PathElement_Name{x} return true, err default: return false, nil } } func _Key_PathElement_OneofSizer(msg proto.Message) (n int) { m := msg.(*Key_PathElement) // id_type switch x := m.IdType.(type) { case *Key_PathElement_Id: n += 1 // tag and wire n += proto.SizeVarint(uint64(x.Id)) case *Key_PathElement_Name: n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.Name))) n += len(x.Name) case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) } return n } var fileDescriptor_entity_096a297364b049a5 = []byte{ // 780 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xff, 0x6e, 0xdc, 0x44, 0x10, 0xc7, 0xed, 0xbb, 0x5c, 0x1a, 0x8f, 0xdd, 0xa4, 0x6c, 0x2a, 0x61, 0x02, 0x28, 0x26, 0x80, 0x74, 0x02, 0xc9, 0x6e, 0xc2, 0x1f, 0x54, 0x14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, 0x45, 0x06, 0x00, 0x00, } var xxx_messageInfo_Key proto.InternalMessageInfo
cloudkey
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/datastore/internal/cloudkey/cloudkey.go
// Copyright 2019 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package cloudpb is a subset of types and functions, copied from cloud.google.com/go/datastore. // // They are copied here to provide compatibility to decode keys generated by the cloud.google.com/go/datastore package. package cloudkey import ( "encoding/base64" "errors" "strings" "github.com/golang/protobuf/proto" cloudpb "google.golang.org/appengine/datastore/internal/cloudpb" ) ///////////////////////////////////////////////////////////////////// // Code below is copied from https://github.com/googleapis/google-cloud-go/blob/master/datastore/datastore.go ///////////////////////////////////////////////////////////////////// var ( // ErrInvalidKey is returned when an invalid key is presented. ErrInvalidKey = errors.New("datastore: invalid key") ) ///////////////////////////////////////////////////////////////////// // Code below is copied from https://github.com/googleapis/google-cloud-go/blob/master/datastore/key.go ///////////////////////////////////////////////////////////////////// // Key represents the datastore key for a stored entity. type Key struct { // Kind cannot be empty. Kind string // Either ID or Name must be zero for the Key to be valid. // If both are zero, the Key is incomplete. ID int64 Name string // Parent must either be a complete Key or nil. Parent *Key // Namespace provides the ability to partition your data for multiple // tenants. In most cases, it is not necessary to specify a namespace. // See docs on datastore multitenancy for details: // https://cloud.google.com/datastore/docs/concepts/multitenancy Namespace string } // DecodeKey decodes a key from the opaque representation returned by Encode. func DecodeKey(encoded string) (*Key, error) { // Re-add padding. if m := len(encoded) % 4; m != 0 { encoded += strings.Repeat("=", 4-m) } b, err := base64.URLEncoding.DecodeString(encoded) if err != nil { return nil, err } pKey := new(cloudpb.Key) if err := proto.Unmarshal(b, pKey); err != nil { return nil, err } return protoToKey(pKey) } // valid returns whether the key is valid. func (k *Key) valid() bool { if k == nil { return false } for ; k != nil; k = k.Parent { if k.Kind == "" { return false } if k.Name != "" && k.ID != 0 { return false } if k.Parent != nil { if k.Parent.Incomplete() { return false } if k.Parent.Namespace != k.Namespace { return false } } } return true } // Incomplete reports whether the key does not refer to a stored entity. func (k *Key) Incomplete() bool { return k.Name == "" && k.ID == 0 } // protoToKey decodes a protocol buffer representation of a key into an // equivalent *Key object. If the key is invalid, protoToKey will return the // invalid key along with ErrInvalidKey. func protoToKey(p *cloudpb.Key) (*Key, error) { var key *Key var namespace string if partition := p.PartitionId; partition != nil { namespace = partition.NamespaceId } for _, el := range p.Path { key = &Key{ Namespace: namespace, Kind: el.Kind, ID: el.GetId(), Name: el.GetName(), Parent: key, } } if !key.valid() { // Also detects key == nil. return key, ErrInvalidKey } return key, nil }
xmpp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/xmpp/xmpp.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. /* Package xmpp provides the means to send and receive instant messages to and from users of XMPP-compatible services. To send a message, m := &xmpp.Message{ To: []string{"kaylee@example.com"}, Body: `Hi! How's the carrot?`, } err := m.Send(c) To receive messages, func init() { xmpp.Handle(handleChat) } func handleChat(c context.Context, m *xmpp.Message) { // ... } */ package xmpp // import "google.golang.org/appengine/xmpp" import ( "context" "errors" "fmt" "net/http" "google.golang.org/appengine" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/xmpp" ) // Message represents an incoming chat message. type Message struct { // Sender is the JID of the sender. // Optional for outgoing messages. Sender string // To is the intended recipients of the message. // Incoming messages will have exactly one element. To []string // Body is the body of the message. Body string // Type is the message type, per RFC 3921. // It defaults to "chat". Type string // RawXML is whether the body contains raw XML. RawXML bool } // Presence represents an outgoing presence update. type Presence struct { // Sender is the JID (optional). Sender string // The intended recipient of the presence update. To string // Type, per RFC 3921 (optional). Defaults to "available". Type string // State of presence (optional). // Valid values: "away", "chat", "xa", "dnd" (RFC 3921). State string // Free text status message (optional). Status string } var ( ErrPresenceUnavailable = errors.New("xmpp: presence unavailable") ErrInvalidJID = errors.New("xmpp: invalid JID") ) // Handle arranges for f to be called for incoming XMPP messages. // Only messages of type "chat" or "normal" will be handled. func Handle(f func(c context.Context, m *Message)) { http.HandleFunc("/_ah/xmpp/message/chat/", func(_ http.ResponseWriter, r *http.Request) { f(appengine.NewContext(r), &Message{ Sender: r.FormValue("from"), To: []string{r.FormValue("to")}, Body: r.FormValue("body"), }) }) } // Send sends a message. // If any failures occur with specific recipients, the error will be an appengine.MultiError. func (m *Message) Send(c context.Context) error { req := &pb.XmppMessageRequest{ Jid: m.To, Body: &m.Body, RawXml: &m.RawXML, } if m.Type != "" && m.Type != "chat" { req.Type = &m.Type } if m.Sender != "" { req.FromJid = &m.Sender } res := &pb.XmppMessageResponse{} if err := internal.Call(c, "xmpp", "SendMessage", req, res); err != nil { return err } if len(res.Status) != len(req.Jid) { return fmt.Errorf("xmpp: sent message to %d JIDs, but only got %d statuses back", len(req.Jid), len(res.Status)) } me, any := make(appengine.MultiError, len(req.Jid)), false for i, st := range res.Status { if st != pb.XmppMessageResponse_NO_ERROR { me[i] = errors.New(st.String()) any = true } } if any { return me } return nil } // Invite sends an invitation. If the from address is an empty string // the default (yourapp@appspot.com/bot) will be used. func Invite(c context.Context, to, from string) error { req := &pb.XmppInviteRequest{ Jid: &to, } if from != "" { req.FromJid = &from } res := &pb.XmppInviteResponse{} return internal.Call(c, "xmpp", "SendInvite", req, res) } // Send sends a presence update. func (p *Presence) Send(c context.Context) error { req := &pb.XmppSendPresenceRequest{ Jid: &p.To, } if p.State != "" { req.Show = &p.State } if p.Type != "" { req.Type = &p.Type } if p.Sender != "" { req.FromJid = &p.Sender } if p.Status != "" { req.Status = &p.Status } res := &pb.XmppSendPresenceResponse{} return internal.Call(c, "xmpp", "SendPresence", req, res) } var presenceMap = map[pb.PresenceResponse_SHOW]string{ pb.PresenceResponse_NORMAL: "", pb.PresenceResponse_AWAY: "away", pb.PresenceResponse_DO_NOT_DISTURB: "dnd", pb.PresenceResponse_CHAT: "chat", pb.PresenceResponse_EXTENDED_AWAY: "xa", } // GetPresence retrieves a user's presence. // If the from address is an empty string the default // (yourapp@appspot.com/bot) will be used. // Possible return values are "", "away", "dnd", "chat", "xa". // ErrPresenceUnavailable is returned if the presence is unavailable. func GetPresence(c context.Context, to string, from string) (string, error) { req := &pb.PresenceRequest{ Jid: &to, } if from != "" { req.FromJid = &from } res := &pb.PresenceResponse{} if err := internal.Call(c, "xmpp", "GetPresence", req, res); err != nil { return "", err } if !*res.IsAvailable || res.Presence == nil { return "", ErrPresenceUnavailable } presence, ok := presenceMap[*res.Presence] if ok { return presence, nil } return "", fmt.Errorf("xmpp: unknown presence %v", *res.Presence) } // GetPresenceMulti retrieves multiple users' presence. // If the from address is an empty string the default // (yourapp@appspot.com/bot) will be used. // Possible return values are "", "away", "dnd", "chat", "xa". // If any presence is unavailable, an appengine.MultiError is returned func GetPresenceMulti(c context.Context, to []string, from string) ([]string, error) { req := &pb.BulkPresenceRequest{ Jid: to, } if from != "" { req.FromJid = &from } res := &pb.BulkPresenceResponse{} if err := internal.Call(c, "xmpp", "BulkGetPresence", req, res); err != nil { return nil, err } presences := make([]string, 0, len(res.PresenceResponse)) errs := appengine.MultiError{} addResult := func(presence string, err error) { presences = append(presences, presence) errs = append(errs, err) } anyErr := false for _, subres := range res.PresenceResponse { if !subres.GetValid() { anyErr = true addResult("", ErrInvalidJID) continue } if !*subres.IsAvailable || subres.Presence == nil { anyErr = true addResult("", ErrPresenceUnavailable) continue } presence, ok := presenceMap[*subres.Presence] if ok { addResult(presence, nil) } else { anyErr = true addResult("", fmt.Errorf("xmpp: unknown presence %q", *subres.Presence)) } } if anyErr { return presences, errs } return presences, nil } func init() { internal.RegisterErrorCodeMap("xmpp", pb.XmppServiceError_ErrorCode_name) }
xmpp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/xmpp/xmpp_test.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package xmpp import ( "fmt" "reflect" "testing" "github.com/golang/protobuf/proto" "google.golang.org/appengine" "google.golang.org/appengine/internal/aetesting" pb "google.golang.org/appengine/internal/xmpp" ) func newPresenceResponse(isAvailable bool, presence pb.PresenceResponse_SHOW, valid bool) *pb.PresenceResponse { return &pb.PresenceResponse{ IsAvailable: proto.Bool(isAvailable), Presence: presence.Enum(), Valid: proto.Bool(valid), } } func setPresenceResponse(m *pb.PresenceResponse, isAvailable bool, presence pb.PresenceResponse_SHOW, valid bool) { m.IsAvailable = &isAvailable m.Presence = presence.Enum() m.Valid = &valid } func TestGetPresence(t *testing.T) { c := aetesting.FakeSingleContext(t, "xmpp", "GetPresence", func(in *pb.PresenceRequest, out *pb.PresenceResponse) error { if jid := in.GetJid(); jid != "user@example.com" { return fmt.Errorf("bad jid %q", jid) } setPresenceResponse(out, true, pb.PresenceResponse_CHAT, true) return nil }) presence, err := GetPresence(c, "user@example.com", "") if err != nil { t.Fatalf("GetPresence: %v", err) } if presence != "chat" { t.Errorf("GetPresence: got %#v, want %#v", presence, pb.PresenceResponse_CHAT) } } func TestGetPresenceMultiSingleJID(t *testing.T) { c := aetesting.FakeSingleContext(t, "xmpp", "BulkGetPresence", func(in *pb.BulkPresenceRequest, out *pb.BulkPresenceResponse) error { if !reflect.DeepEqual(in.Jid, []string{"user@example.com"}) { return fmt.Errorf("bad request jids %#v", in.Jid) } out.PresenceResponse = []*pb.PresenceResponse{ newPresenceResponse(true, pb.PresenceResponse_NORMAL, true), } return nil }) presence, err := GetPresenceMulti(c, []string{"user@example.com"}, "") if err != nil { t.Fatalf("GetPresenceMulti: %v", err) } if !reflect.DeepEqual(presence, []string{""}) { t.Errorf("GetPresenceMulti: got %s, want %s", presence, []string{""}) } } func TestGetPresenceMultiJID(t *testing.T) { c := aetesting.FakeSingleContext(t, "xmpp", "BulkGetPresence", func(in *pb.BulkPresenceRequest, out *pb.BulkPresenceResponse) error { if !reflect.DeepEqual(in.Jid, []string{"user@example.com", "user2@example.com"}) { return fmt.Errorf("bad request jids %#v", in.Jid) } out.PresenceResponse = []*pb.PresenceResponse{ newPresenceResponse(true, pb.PresenceResponse_NORMAL, true), newPresenceResponse(true, pb.PresenceResponse_AWAY, true), } return nil }) jids := []string{"user@example.com", "user2@example.com"} presence, err := GetPresenceMulti(c, jids, "") if err != nil { t.Fatalf("GetPresenceMulti: %v", err) } want := []string{"", "away"} if !reflect.DeepEqual(presence, want) { t.Errorf("GetPresenceMulti: got %v, want %v", presence, want) } } func TestGetPresenceMultiFromJID(t *testing.T) { c := aetesting.FakeSingleContext(t, "xmpp", "BulkGetPresence", func(in *pb.BulkPresenceRequest, out *pb.BulkPresenceResponse) error { if !reflect.DeepEqual(in.Jid, []string{"user@example.com", "user2@example.com"}) { return fmt.Errorf("bad request jids %#v", in.Jid) } if jid := in.GetFromJid(); jid != "bot@appspot.com" { return fmt.Errorf("bad from jid %q", jid) } out.PresenceResponse = []*pb.PresenceResponse{ newPresenceResponse(true, pb.PresenceResponse_NORMAL, true), newPresenceResponse(true, pb.PresenceResponse_CHAT, true), } return nil }) jids := []string{"user@example.com", "user2@example.com"} presence, err := GetPresenceMulti(c, jids, "bot@appspot.com") if err != nil { t.Fatalf("GetPresenceMulti: %v", err) } want := []string{"", "chat"} if !reflect.DeepEqual(presence, want) { t.Errorf("GetPresenceMulti: got %v, want %v", presence, want) } } func TestGetPresenceMultiInvalid(t *testing.T) { c := aetesting.FakeSingleContext(t, "xmpp", "BulkGetPresence", func(in *pb.BulkPresenceRequest, out *pb.BulkPresenceResponse) error { if !reflect.DeepEqual(in.Jid, []string{"user@example.com", "user2@example.com"}) { return fmt.Errorf("bad request jids %#v", in.Jid) } out.PresenceResponse = []*pb.PresenceResponse{ newPresenceResponse(true, pb.PresenceResponse_EXTENDED_AWAY, true), newPresenceResponse(true, pb.PresenceResponse_CHAT, false), } return nil }) jids := []string{"user@example.com", "user2@example.com"} presence, err := GetPresenceMulti(c, jids, "") wantErr := appengine.MultiError{nil, ErrInvalidJID} if !reflect.DeepEqual(err, wantErr) { t.Fatalf("GetPresenceMulti: got %#v, want %#v", err, wantErr) } want := []string{"xa", ""} if !reflect.DeepEqual(presence, want) { t.Errorf("GetPresenceMulti: got %#v, want %#v", presence, want) } } func TestGetPresenceMultiUnavailable(t *testing.T) { c := aetesting.FakeSingleContext(t, "xmpp", "BulkGetPresence", func(in *pb.BulkPresenceRequest, out *pb.BulkPresenceResponse) error { if !reflect.DeepEqual(in.Jid, []string{"user@example.com", "user2@example.com"}) { return fmt.Errorf("bad request jids %#v", in.Jid) } out.PresenceResponse = []*pb.PresenceResponse{ newPresenceResponse(false, pb.PresenceResponse_AWAY, true), newPresenceResponse(false, pb.PresenceResponse_DO_NOT_DISTURB, true), } return nil }) jids := []string{"user@example.com", "user2@example.com"} presence, err := GetPresenceMulti(c, jids, "") wantErr := appengine.MultiError{ ErrPresenceUnavailable, ErrPresenceUnavailable, } if !reflect.DeepEqual(err, wantErr) { t.Fatalf("GetPresenceMulti: got %#v, want %#v", err, wantErr) } want := []string{"", ""} if !reflect.DeepEqual(presence, want) { t.Errorf("GetPresenceMulti: got %#v, want %#v", presence, want) } }
runtime
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/runtime/runtime_test.go
// Copyright 2012 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package runtime import ( "context" "fmt" "net/http" "net/http/httptest" "testing" "time" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal/aetesting" pb "google.golang.org/appengine/internal/system" ) func TestRunInBackgroundSendFirst(t *testing.T) { testRunInBackground(t, true) } func TestRunInBackgroundRecvFirst(t *testing.T) { testRunInBackground(t, false) } func testRunInBackground(t *testing.T, sendFirst bool) { srv := httptest.NewServer(nil) defer srv.Close() const id = "f00bar" sendWait, recvWait := make(chan bool), make(chan bool) sbr := make(chan bool) // strobed when system.StartBackgroundRequest has started calls := 0 c := aetesting.FakeSingleContext(t, "system", "StartBackgroundRequest", func(req *pb.StartBackgroundRequestRequest, res *pb.StartBackgroundRequestResponse) error { calls++ if calls > 1 { t.Errorf("Too many calls to system.StartBackgroundRequest") } sbr <- true res.RequestId = proto.String(id) <-sendWait return nil }) var c2 context.Context // a fake newContext = func(*http.Request) context.Context { return c2 } var fRun int f := func(c3 context.Context) { fRun++ if c3 != c2 { t.Errorf("f got a different context than expected") } } ribErrc := make(chan error) go func() { ribErrc <- RunInBackground(c, f) }() brErrc := make(chan error) go func() { <-sbr req, err := http.NewRequest("GET", srv.URL+"/_ah/background", nil) if err != nil { brErrc <- fmt.Errorf("http.NewRequest: %v", err) return } req.Header.Set("X-AppEngine-BackgroundRequest", id) client := &http.Client{ Transport: &http.Transport{ Proxy: http.ProxyFromEnvironment, }, } <-recvWait _, err = client.Do(req) brErrc <- err }() // Send and receive are both waiting at this point. waits := [2]chan bool{sendWait, recvWait} if !sendFirst { waits[0], waits[1] = waits[1], waits[0] } waits[0] <- true time.Sleep(100 * time.Millisecond) waits[1] <- true if err := <-ribErrc; err != nil { t.Fatalf("RunInBackground: %v", err) } if err := <-brErrc; err != nil { t.Fatalf("background request: %v", err) } if fRun != 1 { t.Errorf("Got %d runs of f, want 1", fRun) } }
runtime
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/runtime/runtime.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. /* Package runtime exposes information about the resource usage of the application. It also provides a way to run code in a new background context of a module. This package does not work on App Engine "flexible environment". */ package runtime // import "google.golang.org/appengine/runtime" import ( "context" "net/http" "google.golang.org/appengine" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/system" ) // Statistics represents the system's statistics. type Statistics struct { // CPU records the CPU consumed by this instance, in megacycles. CPU struct { Total float64 Rate1M float64 // consumption rate over one minute Rate10M float64 // consumption rate over ten minutes } // RAM records the memory used by the instance, in megabytes. RAM struct { Current float64 Average1M float64 // average usage over one minute Average10M float64 // average usage over ten minutes } } func Stats(c context.Context) (*Statistics, error) { req := &pb.GetSystemStatsRequest{} res := &pb.GetSystemStatsResponse{} if err := internal.Call(c, "system", "GetSystemStats", req, res); err != nil { return nil, err } s := &Statistics{} if res.Cpu != nil { s.CPU.Total = res.Cpu.GetTotal() s.CPU.Rate1M = res.Cpu.GetRate1M() s.CPU.Rate10M = res.Cpu.GetRate10M() } if res.Memory != nil { s.RAM.Current = res.Memory.GetCurrent() s.RAM.Average1M = res.Memory.GetAverage1M() s.RAM.Average10M = res.Memory.GetAverage10M() } return s, nil } /* RunInBackground makes an API call that triggers an /_ah/background request. There are two independent code paths that need to make contact: the RunInBackground code, and the /_ah/background handler. The matchmaker loop arranges for the two paths to meet. The RunInBackground code passes a send to the matchmaker, the /_ah/background passes a recv to the matchmaker, and the matchmaker hooks them up. */ func init() { http.HandleFunc("/_ah/background", handleBackground) sc := make(chan send) rc := make(chan recv) sendc, recvc = sc, rc go matchmaker(sc, rc) } var ( sendc chan<- send // RunInBackground sends to this recvc chan<- recv // handleBackground sends to this ) type send struct { id string f func(context.Context) } type recv struct { id string ch chan<- func(context.Context) } func matchmaker(sendc <-chan send, recvc <-chan recv) { // When one side of the match arrives before the other // it is inserted in the corresponding map. waitSend := make(map[string]send) waitRecv := make(map[string]recv) for { select { case s := <-sendc: if r, ok := waitRecv[s.id]; ok { // meet! delete(waitRecv, s.id) r.ch <- s.f } else { // waiting for r waitSend[s.id] = s } case r := <-recvc: if s, ok := waitSend[r.id]; ok { // meet! delete(waitSend, r.id) r.ch <- s.f } else { // waiting for s waitRecv[r.id] = r } } } } var newContext = appengine.NewContext // for testing func handleBackground(w http.ResponseWriter, req *http.Request) { id := req.Header.Get("X-AppEngine-BackgroundRequest") ch := make(chan func(context.Context)) recvc <- recv{id, ch} (<-ch)(newContext(req)) } // RunInBackground runs f in a background goroutine in this process. // f is provided a context that may outlast the context provided to RunInBackground. // This is only valid to invoke from a service set to basic or manual scaling. func RunInBackground(c context.Context, f func(c context.Context)) error { req := &pb.StartBackgroundRequestRequest{} res := &pb.StartBackgroundRequestResponse{} if err := internal.Call(c, "system", "StartBackgroundRequest", req, res); err != nil { return err } sendc <- send{res.GetRequestId(), f} return nil } func init() { internal.RegisterErrorCodeMap("system", pb.SystemServiceError_ErrorCode_name) }
socket
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/socket/socket_vm.go
// Copyright 2015 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build !appengine // +build !appengine package socket import ( "context" "net" "time" ) // Dial connects to the address addr on the network protocol. // The address format is host:port, where host may be a hostname or an IP address. // Known protocols are "tcp" and "udp". // The returned connection satisfies net.Conn, and is valid while ctx is valid; // if the connection is to be used after ctx becomes invalid, invoke SetContext // with the new context. func Dial(ctx context.Context, protocol, addr string) (*Conn, error) { conn, err := net.Dial(protocol, addr) if err != nil { return nil, err } return &Conn{conn}, nil } // DialTimeout is like Dial but takes a timeout. // The timeout includes name resolution, if required. func DialTimeout(ctx context.Context, protocol, addr string, timeout time.Duration) (*Conn, error) { conn, err := net.DialTimeout(protocol, addr, timeout) if err != nil { return nil, err } return &Conn{conn}, nil } // LookupIP returns the given host's IP addresses. func LookupIP(ctx context.Context, host string) (addrs []net.IP, err error) { return net.LookupIP(host) } // Conn represents a socket connection. // It implements net.Conn. type Conn struct { net.Conn } // SetContext sets the context that is used by this Conn. // It is usually used only when using a Conn that was created in a different context, // such as when a connection is created during a warmup request but used while // servicing a user request. func (cn *Conn) SetContext(ctx context.Context) { // This function is not required in App Engine "flexible environment". } // KeepAlive signals that the connection is still in use. // It may be called to prevent the socket being closed due to inactivity. func (cn *Conn) KeepAlive() error { // This function is not required in App Engine "flexible environment". return nil }
socket
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/socket/doc.go
// Copyright 2012 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package socket provides outbound network sockets. // // This package is only required in the classic App Engine environment. // Applications running only in App Engine "flexible environment" should // use the standard library's net package. package socket
socket
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/socket/socket_classic.go
// Copyright 2012 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build appengine // +build appengine package socket import ( "context" "fmt" "io" "net" "strconv" "time" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/socket" ) // Dial connects to the address addr on the network protocol. // The address format is host:port, where host may be a hostname or an IP address. // Known protocols are "tcp" and "udp". // The returned connection satisfies net.Conn, and is valid while ctx is valid; // if the connection is to be used after ctx becomes invalid, invoke SetContext // with the new context. func Dial(ctx context.Context, protocol, addr string) (*Conn, error) { return DialTimeout(ctx, protocol, addr, 0) } var ipFamilies = []pb.CreateSocketRequest_SocketFamily{ pb.CreateSocketRequest_IPv4, pb.CreateSocketRequest_IPv6, } // DialTimeout is like Dial but takes a timeout. // The timeout includes name resolution, if required. func DialTimeout(ctx context.Context, protocol, addr string, timeout time.Duration) (*Conn, error) { dialCtx := ctx // Used for dialing and name resolution, but not stored in the *Conn. if timeout > 0 { var cancel context.CancelFunc dialCtx, cancel = context.WithTimeout(ctx, timeout) defer cancel() } host, portStr, err := net.SplitHostPort(addr) if err != nil { return nil, err } port, err := strconv.Atoi(portStr) if err != nil { return nil, fmt.Errorf("socket: bad port %q: %v", portStr, err) } var prot pb.CreateSocketRequest_SocketProtocol switch protocol { case "tcp": prot = pb.CreateSocketRequest_TCP case "udp": prot = pb.CreateSocketRequest_UDP default: return nil, fmt.Errorf("socket: unknown protocol %q", protocol) } packedAddrs, resolved, err := resolve(dialCtx, ipFamilies, host) if err != nil { return nil, fmt.Errorf("socket: failed resolving %q: %v", host, err) } if len(packedAddrs) == 0 { return nil, fmt.Errorf("no addresses for %q", host) } packedAddr := packedAddrs[0] // use first address fam := pb.CreateSocketRequest_IPv4 if len(packedAddr) == net.IPv6len { fam = pb.CreateSocketRequest_IPv6 } req := &pb.CreateSocketRequest{ Family: fam.Enum(), Protocol: prot.Enum(), RemoteIp: &pb.AddressPort{ Port: proto.Int32(int32(port)), PackedAddress: packedAddr, }, } if resolved { req.RemoteIp.HostnameHint = &host } res := &pb.CreateSocketReply{} if err := internal.Call(dialCtx, "remote_socket", "CreateSocket", req, res); err != nil { return nil, err } return &Conn{ ctx: ctx, desc: res.GetSocketDescriptor(), prot: prot, local: res.ProxyExternalIp, remote: req.RemoteIp, }, nil } // LookupIP returns the given host's IP addresses. func LookupIP(ctx context.Context, host string) (addrs []net.IP, err error) { packedAddrs, _, err := resolve(ctx, ipFamilies, host) if err != nil { return nil, fmt.Errorf("socket: failed resolving %q: %v", host, err) } addrs = make([]net.IP, len(packedAddrs)) for i, pa := range packedAddrs { addrs[i] = net.IP(pa) } return addrs, nil } func resolve(ctx context.Context, fams []pb.CreateSocketRequest_SocketFamily, host string) ([][]byte, bool, error) { // Check if it's an IP address. if ip := net.ParseIP(host); ip != nil { if ip := ip.To4(); ip != nil { return [][]byte{ip}, false, nil } return [][]byte{ip}, false, nil } req := &pb.ResolveRequest{ Name: &host, AddressFamilies: fams, } res := &pb.ResolveReply{} if err := internal.Call(ctx, "remote_socket", "Resolve", req, res); err != nil { // XXX: need to map to pb.ResolveReply_ErrorCode? return nil, false, err } return res.PackedAddress, true, nil } // withDeadline is like context.WithDeadline, except it ignores the zero deadline. func withDeadline(parent context.Context, deadline time.Time) (context.Context, context.CancelFunc) { if deadline.IsZero() { return parent, func() {} } return context.WithDeadline(parent, deadline) } // Conn represents a socket connection. // It implements net.Conn. type Conn struct { ctx context.Context desc string offset int64 prot pb.CreateSocketRequest_SocketProtocol local, remote *pb.AddressPort readDeadline, writeDeadline time.Time // optional } // SetContext sets the context that is used by this Conn. // It is usually used only when using a Conn that was created in a different context, // such as when a connection is created during a warmup request but used while // servicing a user request. func (cn *Conn) SetContext(ctx context.Context) { cn.ctx = ctx } func (cn *Conn) Read(b []byte) (n int, err error) { const maxRead = 1 << 20 if len(b) > maxRead { b = b[:maxRead] } req := &pb.ReceiveRequest{ SocketDescriptor: &cn.desc, DataSize: proto.Int32(int32(len(b))), } res := &pb.ReceiveReply{} if !cn.readDeadline.IsZero() { req.TimeoutSeconds = proto.Float64(cn.readDeadline.Sub(time.Now()).Seconds()) } ctx, cancel := withDeadline(cn.ctx, cn.readDeadline) defer cancel() if err := internal.Call(ctx, "remote_socket", "Receive", req, res); err != nil { return 0, err } if len(res.Data) == 0 { return 0, io.EOF } if len(res.Data) > len(b) { return 0, fmt.Errorf("socket: internal error: read too much data: %d > %d", len(res.Data), len(b)) } return copy(b, res.Data), nil } func (cn *Conn) Write(b []byte) (n int, err error) { const lim = 1 << 20 // max per chunk for n < len(b) { chunk := b[n:] if len(chunk) > lim { chunk = chunk[:lim] } req := &pb.SendRequest{ SocketDescriptor: &cn.desc, Data: chunk, StreamOffset: &cn.offset, } res := &pb.SendReply{} if !cn.writeDeadline.IsZero() { req.TimeoutSeconds = proto.Float64(cn.writeDeadline.Sub(time.Now()).Seconds()) } ctx, cancel := withDeadline(cn.ctx, cn.writeDeadline) defer cancel() if err = internal.Call(ctx, "remote_socket", "Send", req, res); err != nil { // assume zero bytes were sent in this RPC break } n += int(res.GetDataSent()) cn.offset += int64(res.GetDataSent()) } return } func (cn *Conn) Close() error { req := &pb.CloseRequest{ SocketDescriptor: &cn.desc, } res := &pb.CloseReply{} if err := internal.Call(cn.ctx, "remote_socket", "Close", req, res); err != nil { return err } cn.desc = "CLOSED" return nil } func addr(prot pb.CreateSocketRequest_SocketProtocol, ap *pb.AddressPort) net.Addr { if ap == nil { return nil } switch prot { case pb.CreateSocketRequest_TCP: return &net.TCPAddr{ IP: net.IP(ap.PackedAddress), Port: int(*ap.Port), } case pb.CreateSocketRequest_UDP: return &net.UDPAddr{ IP: net.IP(ap.PackedAddress), Port: int(*ap.Port), } } panic("unknown protocol " + prot.String()) } func (cn *Conn) LocalAddr() net.Addr { return addr(cn.prot, cn.local) } func (cn *Conn) RemoteAddr() net.Addr { return addr(cn.prot, cn.remote) } func (cn *Conn) SetDeadline(t time.Time) error { cn.readDeadline = t cn.writeDeadline = t return nil } func (cn *Conn) SetReadDeadline(t time.Time) error { cn.readDeadline = t return nil } func (cn *Conn) SetWriteDeadline(t time.Time) error { cn.writeDeadline = t return nil } // KeepAlive signals that the connection is still in use. // It may be called to prevent the socket being closed due to inactivity. func (cn *Conn) KeepAlive() error { req := &pb.GetSocketNameRequest{ SocketDescriptor: &cn.desc, } res := &pb.GetSocketNameReply{} return internal.Call(cn.ctx, "remote_socket", "GetSocketName", req, res) } func init() { internal.RegisterErrorCodeMap("remote_socket", pb.RemoteSocketServiceError_ErrorCode_name) }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/main_test.go
//go:build !appengine // +build !appengine package internal import ( "go/build" "path/filepath" "testing" ) func TestFindMainPath(t *testing.T) { // Tests won't have package main, instead they have testing.tRunner want := filepath.Join(build.Default.GOROOT, "src", "testing", "testing.go") got := findMainPath() if want != got { t.Errorf("findMainPath: want %s, got %s", want, got) } }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/internal_vm_test.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build !appengine // +build !appengine package internal import ( "io" "io/ioutil" "net/http" "net/http/httptest" "testing" ) func TestInstallingHealthChecker(t *testing.T) { try := func(desc string, mux *http.ServeMux, wantCode int, wantBody string) { installHealthChecker(mux) srv := httptest.NewServer(mux) defer srv.Close() resp, err := http.Get(srv.URL + "/_ah/health") if err != nil { t.Errorf("%s: http.Get: %v", desc, err) return } defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) if err != nil { t.Errorf("%s: reading body: %v", desc, err) return } if resp.StatusCode != wantCode { t.Errorf("%s: got HTTP %d, want %d", desc, resp.StatusCode, wantCode) return } if wantBody != "" && string(body) != wantBody { t.Errorf("%s: got HTTP body %q, want %q", desc, body, wantBody) return } } // If there's no handlers, or only a root handler, a health checker should be installed. try("empty mux", http.NewServeMux(), 200, "ok") mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { io.WriteString(w, "root handler") }) try("mux with root handler", mux, 200, "ok") // If there's a custom health check handler, one should not be installed. mux = http.NewServeMux() mux.HandleFunc("/_ah/health", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(418) io.WriteString(w, "I'm short and stout!") }) try("mux with custom health checker", mux, 418, "I'm short and stout!") }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/app_id_test.go
// Copyright 2011 Google Inc. All Rights Reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package internal import ( "testing" ) func TestAppIDParsing(t *testing.T) { testCases := []struct { in string partition, domain, displayID string }{ {"simple-app-id", "", "", "simple-app-id"}, {"domain.com:domain-app-id", "", "domain.com", "domain-app-id"}, {"part~partition-app-id", "part", "", "partition-app-id"}, {"part~domain.com:display", "part", "domain.com", "display"}, } for _, tc := range testCases { part, dom, dis := parseFullAppID(tc.in) if part != tc.partition { t.Errorf("partition of %q: got %q, want %q", tc.in, part, tc.partition) } if dom != tc.domain { t.Errorf("domain of %q: got %q, want %q", tc.in, dom, tc.domain) } if dis != tc.displayID { t.Errorf("displayID of %q: got %q, want %q", tc.in, dis, tc.displayID) } } }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/identity_classic.go
// Copyright 2015 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build appengine // +build appengine package internal import ( "context" "appengine" ) func init() { appengineStandard = true } func DefaultVersionHostname(ctx context.Context) string { c := fromContext(ctx) if c == nil { panic(errNotAppEngineContext) } return appengine.DefaultVersionHostname(c) } func Datacenter(_ context.Context) string { return appengine.Datacenter() } func ServerSoftware() string { return appengine.ServerSoftware() } func InstanceID() string { return appengine.InstanceID() } func IsDevAppServer() bool { return appengine.IsDevAppServer() } func RequestID(ctx context.Context) string { c := fromContext(ctx) if c == nil { panic(errNotAppEngineContext) } return appengine.RequestID(c) } func ModuleName(ctx context.Context) string { c := fromContext(ctx) if c == nil { panic(errNotAppEngineContext) } return appengine.ModuleName(c) } func VersionID(ctx context.Context) string { c := fromContext(ctx) if c == nil { panic(errNotAppEngineContext) } return appengine.VersionID(c) } func fullyQualifiedAppID(ctx context.Context) string { c := fromContext(ctx) if c == nil { panic(errNotAppEngineContext) } return c.FullyQualifiedAppID() }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/app_id.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package internal import ( "strings" ) func parseFullAppID(appid string) (partition, domain, displayID string) { if i := strings.Index(appid, "~"); i != -1 { partition, appid = appid[:i], appid[i+1:] } if i := strings.Index(appid, ":"); i != -1 { domain, appid = appid[:i], appid[i+1:] } return partition, domain, appid } // appID returns "appid" or "domain.com:appid". func appID(fullAppID string) string { _, dom, dis := parseFullAppID(fullAppID) if dom != "" { return dom + ":" + dis } return dis }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/api_test.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build !appengine // +build !appengine package internal import ( "bufio" "bytes" "context" "fmt" "io" "io/ioutil" "net/http" "net/http/httptest" "net/url" "os" "os/exec" "runtime" "strings" "sync/atomic" "testing" "time" "github.com/golang/protobuf/proto" basepb "google.golang.org/appengine/internal/base" remotepb "google.golang.org/appengine/internal/remote_api" ) const testTicketHeader = "X-Magic-Ticket-Header" const logserviceEnvVarKey = "LOG_TO_LOGSERVICE" func init() { ticketHeader = testTicketHeader } type fakeAPIHandler struct { hang chan int // used for RunSlowly RPC LogFlushes int32 // atomic allowMissingTicket bool } func (f *fakeAPIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { writeResponse := func(res *remotepb.Response) { hresBody, err := proto.Marshal(res) if err != nil { http.Error(w, fmt.Sprintf("Failed encoding API response: %v", err), 500) return } w.Write(hresBody) } if r.URL.Path != "/rpc_http" { http.NotFound(w, r) return } hreqBody, err := ioutil.ReadAll(r.Body) if err != nil { http.Error(w, fmt.Sprintf("Bad body: %v", err), 500) return } apiReq := &remotepb.Request{} if err := proto.Unmarshal(hreqBody, apiReq); err != nil { http.Error(w, fmt.Sprintf("Bad encoded API request: %v", err), 500) return } if *apiReq.RequestId != "s3cr3t" && !f.allowMissingTicket { writeResponse(&remotepb.Response{ RpcError: &remotepb.RpcError{ Code: proto.Int32(int32(remotepb.RpcError_SECURITY_VIOLATION)), Detail: proto.String("bad security ticket"), }, }) return } if got, want := r.Header.Get(dapperHeader), "trace-001"; got != want { writeResponse(&remotepb.Response{ RpcError: &remotepb.RpcError{ Code: proto.Int32(int32(remotepb.RpcError_BAD_REQUEST)), Detail: proto.String(fmt.Sprintf("trace info = %q, want %q", got, want)), }, }) return } service, method := *apiReq.ServiceName, *apiReq.Method var resOut proto.Message if service == "actordb" && method == "LookupActor" { req := &basepb.StringProto{} res := &basepb.StringProto{} if err := proto.Unmarshal(apiReq.Request, req); err != nil { http.Error(w, fmt.Sprintf("Bad encoded request: %v", err), 500) return } if *req.Value == "Doctor Who" { res.Value = proto.String("David Tennant") } resOut = res } if service == "errors" { switch method { case "Non200": http.Error(w, "I'm a little teapot.", 418) return case "ShortResponse": w.Header().Set("Content-Length", "100") w.Write([]byte("way too short")) return case "OverQuota": writeResponse(&remotepb.Response{ RpcError: &remotepb.RpcError{ Code: proto.Int32(int32(remotepb.RpcError_OVER_QUOTA)), Detail: proto.String("you are hogging the resources!"), }, }) return case "RunSlowly": // TestAPICallRPCFailure creates f.hang, but does not strobe it // until Call returns with remotepb.RpcError_CANCELLED. // This is here to force a happens-before relationship between // the httptest server handler and shutdown. <-f.hang resOut = &basepb.VoidProto{} } } if service == "logservice" && method == "Flush" { // Pretend log flushing is slow. time.Sleep(50 * time.Millisecond) atomic.AddInt32(&f.LogFlushes, 1) resOut = &basepb.VoidProto{} } encOut, err := proto.Marshal(resOut) if err != nil { http.Error(w, fmt.Sprintf("Failed encoding response: %v", err), 500) return } writeResponse(&remotepb.Response{ Response: encOut, }) } func setup() (f *fakeAPIHandler, c *aeContext, cleanup func()) { f = &fakeAPIHandler{} srv := httptest.NewServer(f) u, err := url.Parse(srv.URL + apiPath) restoreAPIHost := restoreEnvVar("API_HOST") restoreAPIPort := restoreEnvVar("API_HOST") os.Setenv("API_HOST", u.Hostname()) os.Setenv("API_PORT", u.Port()) if err != nil { panic(fmt.Sprintf("url.Parse(%q): %v", srv.URL+apiPath, err)) } return f, &aeContext{ req: &http.Request{ Header: http.Header{ ticketHeader: []string{"s3cr3t"}, dapperHeader: []string{"trace-001"}, }, }, }, func() { restoreAPIHost() restoreAPIPort() srv.Close() } } func restoreEnvVar(key string) (cleanup func()) { oldval, ok := os.LookupEnv(key) return func() { if ok { os.Setenv(key, oldval) } else { os.Unsetenv(key) } } } func TestAPICall(t *testing.T) { _, c, cleanup := setup() defer cleanup() req := &basepb.StringProto{ Value: proto.String("Doctor Who"), } res := &basepb.StringProto{} err := Call(toContext(c), "actordb", "LookupActor", req, res) if err != nil { t.Fatalf("API call failed: %v", err) } if got, want := *res.Value, "David Tennant"; got != want { t.Errorf("Response is %q, want %q", got, want) } } func TestAPICallTicketUnavailable(t *testing.T) { resetEnv := SetTestEnv() defer resetEnv() f, c, cleanup := setup() defer cleanup() f.allowMissingTicket = true c.req.Header.Set(ticketHeader, "") req := &basepb.StringProto{ Value: proto.String("Doctor Who"), } res := &basepb.StringProto{} err := Call(toContext(c), "actordb", "LookupActor", req, res) if err != nil { t.Fatalf("API call failed: %v", err) } if got, want := *res.Value, "David Tennant"; got != want { t.Errorf("Response is %q, want %q", got, want) } } func TestAPICallRPCFailure(t *testing.T) { f, c, cleanup := setup() defer cleanup() testCases := []struct { method string code remotepb.RpcError_ErrorCode }{ {"Non200", remotepb.RpcError_UNKNOWN}, {"ShortResponse", remotepb.RpcError_UNKNOWN}, {"OverQuota", remotepb.RpcError_OVER_QUOTA}, {"RunSlowly", remotepb.RpcError_CANCELLED}, } f.hang = make(chan int) // only for RunSlowly for _, tc := range testCases { ctx, _ := context.WithTimeout(toContext(c), 300*time.Millisecond) err := Call(ctx, "errors", tc.method, &basepb.VoidProto{}, &basepb.VoidProto{}) ce, ok := err.(*CallError) if !ok { t.Errorf("%s: API call error is %T (%v), want *CallError", tc.method, err, err) continue } if ce.Code != int32(tc.code) { t.Errorf("%s: ce.Code = %d, want %d", tc.method, ce.Code, tc.code) } if tc.method == "RunSlowly" { f.hang <- 1 // release the HTTP handler } } } func TestAPICallDialFailure(t *testing.T) { // See what happens if the API host is unresponsive. // This should time out quickly, not hang forever. // We intentially don't set up the fakeAPIHandler for this test to cause the dail failure. start := time.Now() err := Call(context.Background(), "foo", "bar", &basepb.VoidProto{}, &basepb.VoidProto{}) const max = 1 * time.Second if taken := time.Since(start); taken > max { t.Errorf("Dial hang took too long: %v > %v", taken, max) } if err == nil { t.Error("Call did not fail") } } func TestDelayedLogFlushing(t *testing.T) { defer restoreEnvVar(logserviceEnvVarKey)() testCases := []struct { logToLogservice string wantInitialFlushes int32 wantHeader string wantEndFlushes int32 }{ {logToLogservice: "", wantHeader: "1", wantInitialFlushes: 1, wantEndFlushes: 2}, // default behavior {logToLogservice: "1", wantHeader: "1", wantInitialFlushes: 1, wantEndFlushes: 2}, {logToLogservice: "0", wantHeader: "", wantInitialFlushes: 0, wantEndFlushes: 0}, } for _, tc := range testCases { t.Run(fmt.Sprintf("$%s=%q", logserviceEnvVarKey, tc.logToLogservice), func(t *testing.T) { f, c, cleanup := setup() defer cleanup() os.Setenv(logserviceEnvVarKey, tc.logToLogservice) path := "/slow_log_" + tc.logToLogservice http.HandleFunc(path, func(w http.ResponseWriter, r *http.Request) { logC := WithContext(context.Background(), r) Logf(logC, 1, "It's a lovely day.") w.WriteHeader(200) time.Sleep(1200 * time.Millisecond) w.Write(make([]byte, 100<<10)) // write 100 KB to force HTTP flush }) r := &http.Request{ Method: "GET", URL: &url.URL{ Scheme: "http", Path: path, }, Header: c.req.Header, Body: ioutil.NopCloser(bytes.NewReader(nil)), } w := httptest.NewRecorder() handled := make(chan struct{}) go func() { defer close(handled) Middleware(http.DefaultServeMux).ServeHTTP(w, r) }() // Check that the log flush eventually comes in. time.Sleep(1200 * time.Millisecond) if got := atomic.LoadInt32(&f.LogFlushes); got != tc.wantInitialFlushes { t.Errorf("After 1.2s: f.LogFlushes = %d, want %d", got, tc.wantInitialFlushes) } <-handled const hdr = "X-AppEngine-Log-Flush-Count" if got := w.HeaderMap.Get(hdr); got != tc.wantHeader { t.Errorf("%s header = %q, want %q", hdr, got, tc.wantHeader) } if got := atomic.LoadInt32(&f.LogFlushes); got != tc.wantEndFlushes { t.Errorf("After HTTP response: f.LogFlushes = %d, want %d", got, tc.wantEndFlushes) } }) } } func TestLogFlushing(t *testing.T) { defer restoreEnvVar(logserviceEnvVarKey)() testCases := []struct { logToLogservice string wantHeader string wantFlushes int32 }{ {logToLogservice: "", wantHeader: "1", wantFlushes: 1}, // default behavior {logToLogservice: "1", wantHeader: "1", wantFlushes: 1}, {logToLogservice: "0", wantHeader: "", wantFlushes: 0}, } for _, tc := range testCases { t.Run(fmt.Sprintf("$%s=%q", logserviceEnvVarKey, tc.logToLogservice), func(t *testing.T) { f, c, cleanup := setup() defer cleanup() os.Setenv(logserviceEnvVarKey, tc.logToLogservice) path := "/quick_log_" + tc.logToLogservice http.HandleFunc(path, func(w http.ResponseWriter, r *http.Request) { logC := WithContext(context.Background(), r) Logf(logC, 1, "It's a lovely day.") w.WriteHeader(200) w.Write(make([]byte, 100<<10)) // write 100 KB to force HTTP flush }) r := &http.Request{ Method: "GET", URL: &url.URL{ Scheme: "http", Path: path, }, Header: c.req.Header, Body: ioutil.NopCloser(bytes.NewReader(nil)), } w := httptest.NewRecorder() Middleware(http.DefaultServeMux).ServeHTTP(w, r) const hdr = "X-AppEngine-Log-Flush-Count" if got := w.HeaderMap.Get(hdr); got != tc.wantHeader { t.Errorf("%s header = %q, want %q", hdr, got, tc.wantHeader) } if got := atomic.LoadInt32(&f.LogFlushes); got != tc.wantFlushes { t.Errorf("After HTTP response: f.LogFlushes = %d, want %d", got, tc.wantFlushes) } }) } } func TestRemoteAddr(t *testing.T) { var addr string http.HandleFunc("/remote_addr", func(w http.ResponseWriter, r *http.Request) { addr = r.RemoteAddr }) testCases := []struct { headers http.Header addr string }{ {http.Header{"X-Appengine-User-Ip": []string{"10.5.2.1"}}, "10.5.2.1:80"}, {http.Header{"X-Appengine-Remote-Addr": []string{"1.2.3.4"}}, "1.2.3.4:80"}, {http.Header{"X-Appengine-Remote-Addr": []string{"1.2.3.4:8080"}}, "1.2.3.4:8080"}, { http.Header{"X-Appengine-Remote-Addr": []string{"2401:fa00:9:1:7646:a0ff:fe90:ca66"}}, "[2401:fa00:9:1:7646:a0ff:fe90:ca66]:80", }, { http.Header{"X-Appengine-Remote-Addr": []string{"[::1]:http"}}, "[::1]:http", }, {http.Header{}, "127.0.0.1:80"}, } for _, tc := range testCases { r := &http.Request{ Method: "GET", URL: &url.URL{Scheme: "http", Path: "/remote_addr"}, Header: tc.headers, Body: ioutil.NopCloser(bytes.NewReader(nil)), } Middleware(http.DefaultServeMux).ServeHTTP(httptest.NewRecorder(), r) if addr != tc.addr { t.Errorf("Header %v, got %q, want %q", tc.headers, addr, tc.addr) } } } func TestPanickingHandler(t *testing.T) { http.HandleFunc("/panic", func(http.ResponseWriter, *http.Request) { panic("whoops!") }) r := &http.Request{ Method: "GET", URL: &url.URL{Scheme: "http", Path: "/panic"}, Body: ioutil.NopCloser(bytes.NewReader(nil)), } rec := httptest.NewRecorder() Middleware(http.DefaultServeMux).ServeHTTP(rec, r) if rec.Code != 500 { t.Errorf("Panicking handler returned HTTP %d, want HTTP %d", rec.Code, 500) } } var raceDetector = false func TestAPICallAllocations(t *testing.T) { if raceDetector { t.Skip("not running under race detector") } // Run the test API server in a subprocess so we aren't counting its allocations. cleanup := launchHelperProcess(t) defer cleanup() c := &aeContext{ req: &http.Request{ Header: http.Header{ ticketHeader: []string{"s3cr3t"}, dapperHeader: []string{"trace-001"}, }, }, } req := &basepb.StringProto{ Value: proto.String("Doctor Who"), } res := &basepb.StringProto{} var apiErr error avg := testing.AllocsPerRun(100, func() { ctx, _ := context.WithTimeout(toContext(c), 100*time.Millisecond) if err := Call(ctx, "actordb", "LookupActor", req, res); err != nil && apiErr == nil { apiErr = err // get the first error only } }) if apiErr != nil { t.Errorf("API call failed: %v", apiErr) } // Lots of room for improvement... var min, max float64 = 60, 86 if strings.HasPrefix(runtime.Version(), "go1.11.") || strings.HasPrefix(runtime.Version(), "go1.12.") { // add a bit more overhead for versions before go1.13 // see https://go.dev/doc/go1.13#compilers max = 90 } if avg < min || max < avg { t.Errorf("Allocations per API call = %g, want in [%g,%g]", avg, min, max) } } func launchHelperProcess(t *testing.T) (cleanup func()) { cmd := exec.Command(os.Args[0], "-test.run=TestHelperProcess") cmd.Env = []string{"GO_WANT_HELPER_PROCESS=1"} stdin, err := cmd.StdinPipe() if err != nil { t.Fatalf("StdinPipe: %v", err) } stdout, err := cmd.StdoutPipe() if err != nil { t.Fatalf("StdoutPipe: %v", err) } if err := cmd.Start(); err != nil { t.Fatalf("Starting helper process: %v", err) } scan := bufio.NewScanner(stdout) var u *url.URL for scan.Scan() { line := scan.Text() if hp := strings.TrimPrefix(line, helperProcessMagic); hp != line { var err error u, err = url.Parse(hp) if err != nil { t.Fatalf("Failed to parse %q: %v", hp, err) } break } } if err := scan.Err(); err != nil { t.Fatalf("Scanning helper process stdout: %v", err) } if u == nil { t.Fatal("Helper process never reported") } restoreAPIHost := restoreEnvVar("API_HOST") restoreAPIPort := restoreEnvVar("API_HOST") os.Setenv("API_HOST", u.Hostname()) os.Setenv("API_PORT", u.Port()) return func() { restoreAPIHost() restoreAPIPort() stdin.Close() if err := cmd.Wait(); err != nil { t.Errorf("Helper process did not exit cleanly: %v", err) } } } const helperProcessMagic = "A lovely helper process is listening at " // This isn't a real test. It's used as a helper process. func TestHelperProcess(*testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" { return } defer os.Exit(0) f := &fakeAPIHandler{} srv := httptest.NewServer(f) defer srv.Close() fmt.Println(helperProcessMagic + srv.URL + apiPath) // Wait for stdin to be closed. io.Copy(ioutil.Discard, os.Stdin) }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/regen.sh
#!/bin/bash -e # # This script rebuilds the generated code for the protocol buffers. # To run this you will need protoc and goprotobuf installed; # see https://github.com/golang/protobuf for instructions. PKG=google.golang.org/appengine function die() { echo 1>&2 $* exit 1 } # Sanity check that the right tools are accessible. for tool in go protoc protoc-gen-go; do q=$(which $tool) || die "didn't find $tool" echo 1>&2 "$tool: $q" done echo -n 1>&2 "finding package dir... " pkgdir=$(go list -f '{{.Dir}}' $PKG) echo 1>&2 $pkgdir base=$(echo $pkgdir | sed "s,/$PKG\$,,") echo 1>&2 "base: $base" cd $base # Run protoc once per package. for dir in $(find $PKG/internal -name '*.proto' | xargs dirname | sort | uniq); do echo 1>&2 "* $dir" protoc --go_out=. $dir/*.proto done for f in $(find $PKG/internal -name '*.pb.go'); do # Remove proto.RegisterEnum calls. # These cause duplicate registration panics when these packages # are used on classic App Engine. proto.RegisterEnum only affects # parsing the text format; we don't care about that. # https://code.google.com/p/googleappengine/issues/detail?id=11670#c17 sed -i '/proto.RegisterEnum/d' $f done
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/api_common.go
// Copyright 2015 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package internal import ( "context" "errors" "os" "github.com/golang/protobuf/proto" ) type ctxKey string func (c ctxKey) String() string { return "appengine context key: " + string(c) } var errNotAppEngineContext = errors.New("not an App Engine context") type CallOverrideFunc func(ctx context.Context, service, method string, in, out proto.Message) error var callOverrideKey = "holds []CallOverrideFunc" func WithCallOverride(ctx context.Context, f CallOverrideFunc) context.Context { // We avoid appending to any existing call override // so we don't risk overwriting a popped stack below. var cofs []CallOverrideFunc if uf, ok := ctx.Value(&callOverrideKey).([]CallOverrideFunc); ok { cofs = append(cofs, uf...) } cofs = append(cofs, f) return context.WithValue(ctx, &callOverrideKey, cofs) } func callOverrideFromContext(ctx context.Context) (CallOverrideFunc, context.Context, bool) { cofs, _ := ctx.Value(&callOverrideKey).([]CallOverrideFunc) if len(cofs) == 0 { return nil, nil, false } // We found a list of overrides; grab the last, and reconstitute a // context that will hide it. f := cofs[len(cofs)-1] ctx = context.WithValue(ctx, &callOverrideKey, cofs[:len(cofs)-1]) return f, ctx, true } type logOverrideFunc func(level int64, format string, args ...interface{}) var logOverrideKey = "holds a logOverrideFunc" func WithLogOverride(ctx context.Context, f logOverrideFunc) context.Context { return context.WithValue(ctx, &logOverrideKey, f) } var appIDOverrideKey = "holds a string, being the full app ID" func WithAppIDOverride(ctx context.Context, appID string) context.Context { return context.WithValue(ctx, &appIDOverrideKey, appID) } var apiHostOverrideKey = ctxKey("holds a string, being the alternate API_HOST") func withAPIHostOverride(ctx context.Context, apiHost string) context.Context { return context.WithValue(ctx, apiHostOverrideKey, apiHost) } var apiPortOverrideKey = ctxKey("holds a string, being the alternate API_PORT") func withAPIPortOverride(ctx context.Context, apiPort string) context.Context { return context.WithValue(ctx, apiPortOverrideKey, apiPort) } var namespaceKey = "holds the namespace string" func withNamespace(ctx context.Context, ns string) context.Context { return context.WithValue(ctx, &namespaceKey, ns) } func NamespaceFromContext(ctx context.Context) string { // If there's no namespace, return the empty string. ns, _ := ctx.Value(&namespaceKey).(string) return ns } // FullyQualifiedAppID returns the fully-qualified application ID. // This may contain a partition prefix (e.g. "s~" for High Replication apps), // or a domain prefix (e.g. "example.com:"). func FullyQualifiedAppID(ctx context.Context) string { if id, ok := ctx.Value(&appIDOverrideKey).(string); ok { return id } return fullyQualifiedAppID(ctx) } func Logf(ctx context.Context, level int64, format string, args ...interface{}) { if f, ok := ctx.Value(&logOverrideKey).(logOverrideFunc); ok { f(level, format, args...) return } c := fromContext(ctx) if c == nil { panic(errNotAppEngineContext) } logf(c, level, format, args...) } // NamespacedContext wraps a Context to support namespaces. func NamespacedContext(ctx context.Context, namespace string) context.Context { return withNamespace(ctx, namespace) } // SetTestEnv sets the env variables for testing background ticket in Flex. func SetTestEnv() func() { var environ = []struct { key, value string }{ {"GAE_LONG_APP_ID", "my-app-id"}, {"GAE_MINOR_VERSION", "067924799508853122"}, {"GAE_MODULE_INSTANCE", "0"}, {"GAE_MODULE_NAME", "default"}, {"GAE_MODULE_VERSION", "20150612t184001"}, } for _, v := range environ { old := os.Getenv(v.key) os.Setenv(v.key, v.value) v.value = old } return func() { // Restore old environment after the test completes. for _, v := range environ { if v.value == "" { os.Unsetenv(v.key) continue } os.Setenv(v.key, v.value) } } }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/identity.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package internal import ( "context" "os" ) var ( // This is set to true in identity_classic.go, which is behind the appengine build tag. // The appengine build tag is set for the first generation runtimes (<= Go 1.9) but not // the second generation runtimes (>= Go 1.11), so this indicates whether we're on a // first-gen runtime. See IsStandard below for the second-gen check. appengineStandard bool // This is set to true in identity_flex.go, which is behind the appenginevm build tag. appengineFlex bool ) // AppID is the implementation of the wrapper function of the same name in // ../identity.go. See that file for commentary. func AppID(c context.Context) string { return appID(FullyQualifiedAppID(c)) } // IsStandard is the implementation of the wrapper function of the same name in // ../appengine.go. See that file for commentary. func IsStandard() bool { // appengineStandard will be true for first-gen runtimes (<= Go 1.9) but not // second-gen (>= Go 1.11). return appengineStandard || IsSecondGen() } // IsSecondGen is the implementation of the wrapper function of the same name in // ../appengine.go. See that file for commentary. func IsSecondGen() bool { // Second-gen runtimes set $GAE_ENV so we use that to check if we're on a second-gen runtime. return os.Getenv("GAE_ENV") == "standard" } // IsFlex is the implementation of the wrapper function of the same name in // ../appengine.go. See that file for commentary. func IsFlex() bool { return appengineFlex } // IsAppEngine is the implementation of the wrapper function of the same name in // ../appengine.go. See that file for commentary. func IsAppEngine() bool { return IsStandard() || IsFlex() }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/internal.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package internal provides support for package appengine. // // Programs should not use this package directly. Its API is not stable. // Use packages appengine and appengine/* instead. package internal import ( "fmt" "github.com/golang/protobuf/proto" remotepb "google.golang.org/appengine/internal/remote_api" ) // errorCodeMaps is a map of service name to the error code map for the service. var errorCodeMaps = make(map[string]map[int32]string) // RegisterErrorCodeMap is called from API implementations to register their // error code map. This should only be called from init functions. func RegisterErrorCodeMap(service string, m map[int32]string) { errorCodeMaps[service] = m } type timeoutCodeKey struct { service string code int32 } // timeoutCodes is the set of service+code pairs that represent timeouts. var timeoutCodes = make(map[timeoutCodeKey]bool) func RegisterTimeoutErrorCode(service string, code int32) { timeoutCodes[timeoutCodeKey{service, code}] = true } // APIError is the type returned by appengine.Context's Call method // when an API call fails in an API-specific way. This may be, for instance, // a taskqueue API call failing with TaskQueueServiceError::UNKNOWN_QUEUE. type APIError struct { Service string Detail string Code int32 // API-specific error code } func (e *APIError) Error() string { if e.Code == 0 { if e.Detail == "" { return "APIError <empty>" } return e.Detail } s := fmt.Sprintf("API error %d", e.Code) if m, ok := errorCodeMaps[e.Service]; ok { s += " (" + e.Service + ": " + m[e.Code] + ")" } else { // Shouldn't happen, but provide a bit more detail if it does. s = e.Service + " " + s } if e.Detail != "" { s += ": " + e.Detail } return s } func (e *APIError) IsTimeout() bool { return timeoutCodes[timeoutCodeKey{e.Service, e.Code}] } // CallError is the type returned by appengine.Context's Call method when an // API call fails in a generic way, such as RpcError::CAPABILITY_DISABLED. type CallError struct { Detail string Code int32 // TODO: Remove this if we get a distinguishable error code. Timeout bool } func (e *CallError) Error() string { var msg string switch remotepb.RpcError_ErrorCode(e.Code) { case remotepb.RpcError_UNKNOWN: return e.Detail case remotepb.RpcError_OVER_QUOTA: msg = "Over quota" case remotepb.RpcError_CAPABILITY_DISABLED: msg = "Capability disabled" case remotepb.RpcError_CANCELLED: msg = "Canceled" default: msg = fmt.Sprintf("Call error %d", e.Code) } s := msg + ": " + e.Detail if e.Timeout { s += " (timeout)" } return s } func (e *CallError) IsTimeout() bool { return e.Timeout } // NamespaceMods is a map from API service to a function that will mutate an RPC request to attach a namespace. // The function should be prepared to be called on the same message more than once; it should only modify the // RPC request the first time. var NamespaceMods = make(map[string]func(m proto.Message, namespace string))
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/transaction.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package internal // This file implements hooks for applying datastore transactions. import ( "context" "errors" "reflect" "github.com/golang/protobuf/proto" basepb "google.golang.org/appengine/internal/base" pb "google.golang.org/appengine/internal/datastore" ) var transactionSetters = make(map[reflect.Type]reflect.Value) // RegisterTransactionSetter registers a function that sets transaction information // in a protocol buffer message. f should be a function with two arguments, // the first being a protocol buffer type, and the second being *datastore.Transaction. func RegisterTransactionSetter(f interface{}) { v := reflect.ValueOf(f) transactionSetters[v.Type().In(0)] = v } // applyTransaction applies the transaction t to message pb // by using the relevant setter passed to RegisterTransactionSetter. func applyTransaction(pb proto.Message, t *pb.Transaction) { v := reflect.ValueOf(pb) if f, ok := transactionSetters[v.Type()]; ok { f.Call([]reflect.Value{v, reflect.ValueOf(t)}) } } var transactionKey = "used for *Transaction" func transactionFromContext(ctx context.Context) *transaction { t, _ := ctx.Value(&transactionKey).(*transaction) return t } func withTransaction(ctx context.Context, t *transaction) context.Context { return context.WithValue(ctx, &transactionKey, t) } type transaction struct { transaction pb.Transaction finished bool } var ErrConcurrentTransaction = errors.New("internal: concurrent transaction") func RunTransactionOnce(c context.Context, f func(context.Context) error, xg bool, readOnly bool, previousTransaction *pb.Transaction) (*pb.Transaction, error) { if transactionFromContext(c) != nil { return nil, errors.New("nested transactions are not supported") } // Begin the transaction. t := &transaction{} req := &pb.BeginTransactionRequest{ App: proto.String(FullyQualifiedAppID(c)), } if xg { req.AllowMultipleEg = proto.Bool(true) } if previousTransaction != nil { req.PreviousTransaction = previousTransaction } if readOnly { req.Mode = pb.BeginTransactionRequest_READ_ONLY.Enum() } else { req.Mode = pb.BeginTransactionRequest_READ_WRITE.Enum() } if err := Call(c, "datastore_v3", "BeginTransaction", req, &t.transaction); err != nil { return nil, err } // Call f, rolling back the transaction if f returns a non-nil error, or panics. // The panic is not recovered. defer func() { if t.finished { return } t.finished = true // Ignore the error return value, since we are already returning a non-nil // error (or we're panicking). Call(c, "datastore_v3", "Rollback", &t.transaction, &basepb.VoidProto{}) }() if err := f(withTransaction(c, t)); err != nil { return &t.transaction, err } t.finished = true // Commit the transaction. res := &pb.CommitResponse{} err := Call(c, "datastore_v3", "Commit", &t.transaction, res) if ae, ok := err.(*APIError); ok { /* TODO: restore this conditional if appengine.IsDevAppServer() { */ // The Python Dev AppServer raises an ApplicationError with error code 2 (which is // Error.CONCURRENT_TRANSACTION) and message "Concurrency exception.". if ae.Code == int32(pb.Error_BAD_REQUEST) && ae.Detail == "ApplicationError: 2 Concurrency exception." { return &t.transaction, ErrConcurrentTransaction } if ae.Code == int32(pb.Error_CONCURRENT_TRANSACTION) { return &t.transaction, ErrConcurrentTransaction } } return &t.transaction, err }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/api_classic.go
// Copyright 2015 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build appengine // +build appengine package internal import ( "context" "errors" "fmt" "net/http" "time" "appengine" "appengine_internal" basepb "appengine_internal/base" "github.com/golang/protobuf/proto" ) var contextKey = "holds an appengine.Context" // fromContext returns the App Engine context or nil if ctx is not // derived from an App Engine context. func fromContext(ctx context.Context) appengine.Context { c, _ := ctx.Value(&contextKey).(appengine.Context) return c } // This is only for classic App Engine adapters. func ClassicContextFromContext(ctx context.Context) (appengine.Context, error) { c := fromContext(ctx) if c == nil { return nil, errNotAppEngineContext } return c, nil } func withContext(parent context.Context, c appengine.Context) context.Context { ctx := context.WithValue(parent, &contextKey, c) s := &basepb.StringProto{} c.Call("__go__", "GetNamespace", &basepb.VoidProto{}, s, nil) if ns := s.GetValue(); ns != "" { ctx = NamespacedContext(ctx, ns) } return ctx } func IncomingHeaders(ctx context.Context) http.Header { if c := fromContext(ctx); c != nil { if req, ok := c.Request().(*http.Request); ok { return req.Header } } return nil } func ReqContext(req *http.Request) context.Context { return WithContext(context.Background(), req) } func WithContext(parent context.Context, req *http.Request) context.Context { c := appengine.NewContext(req) return withContext(parent, c) } type testingContext struct { appengine.Context req *http.Request } func (t *testingContext) FullyQualifiedAppID() string { return "dev~testcontext" } func (t *testingContext) Call(service, method string, _, _ appengine_internal.ProtoMessage, _ *appengine_internal.CallOptions) error { if service == "__go__" && method == "GetNamespace" { return nil } return fmt.Errorf("testingContext: unsupported Call") } func (t *testingContext) Request() interface{} { return t.req } func ContextForTesting(req *http.Request) context.Context { return withContext(context.Background(), &testingContext{req: req}) } func Call(ctx context.Context, service, method string, in, out proto.Message) error { if ns := NamespaceFromContext(ctx); ns != "" { if fn, ok := NamespaceMods[service]; ok { fn(in, ns) } } if f, ctx, ok := callOverrideFromContext(ctx); ok { return f(ctx, service, method, in, out) } // Handle already-done contexts quickly. select { case <-ctx.Done(): return ctx.Err() default: } c := fromContext(ctx) if c == nil { // Give a good error message rather than a panic lower down. return errNotAppEngineContext } // Apply transaction modifications if we're in a transaction. if t := transactionFromContext(ctx); t != nil { if t.finished { return errors.New("transaction context has expired") } applyTransaction(in, &t.transaction) } var opts *appengine_internal.CallOptions if d, ok := ctx.Deadline(); ok { opts = &appengine_internal.CallOptions{ Timeout: d.Sub(time.Now()), } } err := c.Call(service, method, in, out, opts) switch v := err.(type) { case *appengine_internal.APIError: return &APIError{ Service: v.Service, Detail: v.Detail, Code: v.Code, } case *appengine_internal.CallError: return &CallError{ Detail: v.Detail, Code: v.Code, Timeout: v.Timeout, } } return err } func Middleware(next http.Handler) http.Handler { panic("Middleware called; this should be impossible") } func logf(c appengine.Context, level int64, format string, args ...interface{}) { var fn func(format string, args ...interface{}) switch level { case 0: fn = c.Debugf case 1: fn = c.Infof case 2: fn = c.Warningf case 3: fn = c.Errorf case 4: fn = c.Criticalf default: // This shouldn't happen. fn = c.Criticalf } fn(format, args...) }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/metadata.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package internal // This file has code for accessing metadata. // // References: // https://cloud.google.com/compute/docs/metadata import ( "fmt" "io/ioutil" "net/http" "net/url" ) const ( metadataHost = "metadata" metadataPath = "/computeMetadata/v1/" ) var ( metadataRequestHeaders = http.Header{ "Metadata-Flavor": []string{"Google"}, } ) // TODO(dsymonds): Do we need to support default values, like Python? func mustGetMetadata(key string) []byte { b, err := getMetadata(key) if err != nil { panic(fmt.Sprintf("Metadata fetch failed for '%s': %v", key, err)) } return b } func getMetadata(key string) ([]byte, error) { // TODO(dsymonds): May need to use url.Parse to support keys with query args. req := &http.Request{ Method: "GET", URL: &url.URL{ Scheme: "http", Host: metadataHost, Path: metadataPath + key, }, Header: metadataRequestHeaders, Host: metadataHost, } resp, err := http.DefaultClient.Do(req) if err != nil { return nil, err } defer resp.Body.Close() if resp.StatusCode != 200 { return nil, fmt.Errorf("metadata server returned HTTP %d", resp.StatusCode) } return ioutil.ReadAll(resp.Body) }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/main_common.go
package internal // MainPath stores the file path of the main package. On App Engine Standard // using Go version 1.9 and below, this will be unset. On App Engine Flex and // App Engine Standard second-gen (Go 1.11 and above), this will be the // filepath to package main. var MainPath string
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/identity_vm.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build !appengine // +build !appengine package internal import ( "context" "log" "net/http" "os" "strings" ) // These functions are implementations of the wrapper functions // in ../appengine/identity.go. See that file for commentary. const ( hDefaultVersionHostname = "X-AppEngine-Default-Version-Hostname" hRequestLogId = "X-AppEngine-Request-Log-Id" hDatacenter = "X-AppEngine-Datacenter" ) func ctxHeaders(ctx context.Context) http.Header { c := fromContext(ctx) if c == nil { return nil } return c.Request().Header } func DefaultVersionHostname(ctx context.Context) string { return ctxHeaders(ctx).Get(hDefaultVersionHostname) } func RequestID(ctx context.Context) string { return ctxHeaders(ctx).Get(hRequestLogId) } func Datacenter(ctx context.Context) string { if dc := ctxHeaders(ctx).Get(hDatacenter); dc != "" { return dc } // If the header isn't set, read zone from the metadata service. // It has the format projects/[NUMERIC_PROJECT_ID]/zones/[ZONE] zone, err := getMetadata("instance/zone") if err != nil { log.Printf("Datacenter: %v", err) return "" } parts := strings.Split(string(zone), "/") if len(parts) == 0 { return "" } return parts[len(parts)-1] } func ServerSoftware() string { // TODO(dsymonds): Remove fallback when we've verified this. if s := os.Getenv("SERVER_SOFTWARE"); s != "" { return s } if s := os.Getenv("GAE_ENV"); s != "" { return s } return "Google App Engine/1.x.x" } // TODO(dsymonds): Remove the metadata fetches. func ModuleName(_ context.Context) string { if s := os.Getenv("GAE_MODULE_NAME"); s != "" { return s } if s := os.Getenv("GAE_SERVICE"); s != "" { return s } return string(mustGetMetadata("instance/attributes/gae_backend_name")) } func VersionID(_ context.Context) string { if s1, s2 := os.Getenv("GAE_MODULE_VERSION"), os.Getenv("GAE_MINOR_VERSION"); s1 != "" && s2 != "" { return s1 + "." + s2 } if s1, s2 := os.Getenv("GAE_VERSION"), os.Getenv("GAE_DEPLOYMENT_ID"); s1 != "" && s2 != "" { return s1 + "." + s2 } return string(mustGetMetadata("instance/attributes/gae_backend_version")) + "." + string(mustGetMetadata("instance/attributes/gae_backend_minor_version")) } func InstanceID() string { if s := os.Getenv("GAE_MODULE_INSTANCE"); s != "" { return s } if s := os.Getenv("GAE_INSTANCE"); s != "" { return s } return string(mustGetMetadata("instance/attributes/gae_backend_instance")) } func partitionlessAppID() string { // gae_project has everything except the partition prefix. if appID := os.Getenv("GAE_LONG_APP_ID"); appID != "" { return appID } if project := os.Getenv("GOOGLE_CLOUD_PROJECT"); project != "" { return project } return string(mustGetMetadata("instance/attributes/gae_project")) } func fullyQualifiedAppID(_ context.Context) string { if s := os.Getenv("GAE_APPLICATION"); s != "" { return s } appID := partitionlessAppID() part := os.Getenv("GAE_PARTITION") if part == "" { part = string(mustGetMetadata("instance/attributes/gae_partition")) } if part != "" { appID = part + "~" + appID } return appID } func IsDevAppServer() bool { return os.Getenv("RUN_WITH_DEVAPPSERVER") != "" || os.Getenv("GAE_ENV") == "localdev" }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/api_race_test.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build race // +build race package internal func init() { raceDetector = true }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/main.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build appengine // +build appengine package internal import ( "appengine_internal" ) func Main() { MainPath = "" appengine_internal.Main() }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/identity_flex.go
// Copyright 2018 Google LLC. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build appenginevm // +build appenginevm package internal func init() { appengineFlex = true }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/main_vm.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build !appengine // +build !appengine package internal import ( "io" "log" "net/http" "net/url" "os" "path/filepath" "runtime" ) func Main() { MainPath = filepath.Dir(findMainPath()) installHealthChecker(http.DefaultServeMux) port := "8080" if s := os.Getenv("PORT"); s != "" { port = s } host := "" if IsDevAppServer() { host = "127.0.0.1" } if err := http.ListenAndServe(host+":"+port, Middleware(http.DefaultServeMux)); err != nil { log.Fatalf("http.ListenAndServe: %v", err) } } // Find the path to package main by looking at the root Caller. func findMainPath() string { pc := make([]uintptr, 100) n := runtime.Callers(2, pc) frames := runtime.CallersFrames(pc[:n]) for { frame, more := frames.Next() // Tests won't have package main, instead they have testing.tRunner if frame.Function == "main.main" || frame.Function == "testing.tRunner" { return frame.File } if !more { break } } return "" } func installHealthChecker(mux *http.ServeMux) { // If no health check handler has been installed by this point, add a trivial one. const healthPath = "/_ah/health" hreq := &http.Request{ Method: "GET", URL: &url.URL{ Path: healthPath, }, } if _, pat := mux.Handler(hreq); pat != healthPath { mux.HandleFunc(healthPath, func(w http.ResponseWriter, r *http.Request) { io.WriteString(w, "ok") }) } }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/net.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package internal // This file implements a network dialer that limits the number of concurrent connections. // It is only used for API calls. import ( "log" "net" "runtime" "sync" "time" ) var limitSem = make(chan int, 100) // TODO(dsymonds): Use environment variable. func limitRelease() { // non-blocking select { case <-limitSem: default: // This should not normally happen. log.Print("appengine: unbalanced limitSem release!") } } func limitDial(network, addr string) (net.Conn, error) { limitSem <- 1 // Dial with a timeout in case the API host is MIA. // The connection should normally be very fast. conn, err := net.DialTimeout(network, addr, 10*time.Second) if err != nil { limitRelease() return nil, err } lc := &limitConn{Conn: conn} runtime.SetFinalizer(lc, (*limitConn).Close) // shouldn't usually be required return lc, nil } type limitConn struct { close sync.Once net.Conn } func (lc *limitConn) Close() error { defer lc.close.Do(func() { limitRelease() runtime.SetFinalizer(lc, nil) }) return lc.Conn.Close() }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/net_test.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build !appengine // +build !appengine package internal import ( "context" "sync" "testing" "time" basepb "google.golang.org/appengine/internal/base" ) func TestDialLimit(t *testing.T) { // Fill up semaphore with false acquisitions to permit only two TCP connections at a time. // We don't replace limitSem because that results in a data race when net/http lazily closes connections. nFake := cap(limitSem) - 2 for i := 0; i < nFake; i++ { limitSem <- 1 } defer func() { for i := 0; i < nFake; i++ { <-limitSem } }() f, c, cleanup := setup() // setup is in api_test.go defer cleanup() f.hang = make(chan int) // If we make two RunSlowly RPCs (which will wait for f.hang to be strobed), // then the simple Non200 RPC should hang. var wg sync.WaitGroup wg.Add(2) for i := 0; i < 2; i++ { go func() { defer wg.Done() Call(toContext(c), "errors", "RunSlowly", &basepb.VoidProto{}, &basepb.VoidProto{}) }() } time.Sleep(50 * time.Millisecond) // let those two RPCs start ctx, _ := context.WithTimeout(toContext(c), 50*time.Millisecond) err := Call(ctx, "errors", "Non200", &basepb.VoidProto{}, &basepb.VoidProto{}) if err != errTimeout { t.Errorf("Non200 RPC returned with err %v, want errTimeout", err) } // Drain the two RunSlowly calls. f.hang <- 1 f.hang <- 1 wg.Wait() }
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/api.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. //go:build !appengine // +build !appengine package internal import ( "bytes" "context" "errors" "fmt" "io/ioutil" "log" "net" "net/http" "net/url" "os" "runtime" "strconv" "strings" "sync" "sync/atomic" "time" "github.com/golang/protobuf/proto" basepb "google.golang.org/appengine/internal/base" logpb "google.golang.org/appengine/internal/log" remotepb "google.golang.org/appengine/internal/remote_api" ) const ( apiPath = "/rpc_http" ) var ( // Incoming headers. ticketHeader = http.CanonicalHeaderKey("X-AppEngine-API-Ticket") dapperHeader = http.CanonicalHeaderKey("X-Google-DapperTraceInfo") traceHeader = http.CanonicalHeaderKey("X-Cloud-Trace-Context") curNamespaceHeader = http.CanonicalHeaderKey("X-AppEngine-Current-Namespace") userIPHeader = http.CanonicalHeaderKey("X-AppEngine-User-IP") remoteAddrHeader = http.CanonicalHeaderKey("X-AppEngine-Remote-Addr") devRequestIdHeader = http.CanonicalHeaderKey("X-Appengine-Dev-Request-Id") // Outgoing headers. apiEndpointHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-Endpoint") apiEndpointHeaderValue = []string{"app-engine-apis"} apiMethodHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-Method") apiMethodHeaderValue = []string{"/VMRemoteAPI.CallRemoteAPI"} apiDeadlineHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-Deadline") apiContentType = http.CanonicalHeaderKey("Content-Type") apiContentTypeValue = []string{"application/octet-stream"} logFlushHeader = http.CanonicalHeaderKey("X-AppEngine-Log-Flush-Count") apiHTTPClient = &http.Client{ Transport: &http.Transport{ Proxy: http.ProxyFromEnvironment, Dial: limitDial, MaxIdleConns: 1000, MaxIdleConnsPerHost: 10000, IdleConnTimeout: 90 * time.Second, }, } ) func apiURL(ctx context.Context) *url.URL { host, port := "appengine.googleapis.internal", "10001" if h := os.Getenv("API_HOST"); h != "" { host = h } if hostOverride := ctx.Value(apiHostOverrideKey); hostOverride != nil { host = hostOverride.(string) } if p := os.Getenv("API_PORT"); p != "" { port = p } if portOverride := ctx.Value(apiPortOverrideKey); portOverride != nil { port = portOverride.(string) } return &url.URL{ Scheme: "http", Host: host + ":" + port, Path: apiPath, } } // Middleware wraps an http handler so that it can make GAE API calls func Middleware(next http.Handler) http.Handler { return handleHTTPMiddleware(executeRequestSafelyMiddleware(next)) } func handleHTTPMiddleware(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { c := &aeContext{ req: r, outHeader: w.Header(), } r = r.WithContext(withContext(r.Context(), c)) c.req = r stopFlushing := make(chan int) // Patch up RemoteAddr so it looks reasonable. if addr := r.Header.Get(userIPHeader); addr != "" { r.RemoteAddr = addr } else if addr = r.Header.Get(remoteAddrHeader); addr != "" { r.RemoteAddr = addr } else { // Should not normally reach here, but pick a sensible default anyway. r.RemoteAddr = "127.0.0.1" } // The address in the headers will most likely be of these forms: // 123.123.123.123 // 2001:db8::1 // net/http.Request.RemoteAddr is specified to be in "IP:port" form. if _, _, err := net.SplitHostPort(r.RemoteAddr); err != nil { // Assume the remote address is only a host; add a default port. r.RemoteAddr = net.JoinHostPort(r.RemoteAddr, "80") } if logToLogservice() { // Start goroutine responsible for flushing app logs. // This is done after adding c to ctx.m (and stopped before removing it) // because flushing logs requires making an API call. go c.logFlusher(stopFlushing) } next.ServeHTTP(c, r) c.outHeader = nil // make sure header changes aren't respected any more flushed := make(chan struct{}) if logToLogservice() { stopFlushing <- 1 // any logging beyond this point will be dropped // Flush any pending logs asynchronously. c.pendingLogs.Lock() flushes := c.pendingLogs.flushes if len(c.pendingLogs.lines) > 0 { flushes++ } c.pendingLogs.Unlock() go func() { defer close(flushed) // Force a log flush, because with very short requests we // may not ever flush logs. c.flushLog(true) }() w.Header().Set(logFlushHeader, strconv.Itoa(flushes)) } // Avoid nil Write call if c.Write is never called. if c.outCode != 0 { w.WriteHeader(c.outCode) } if c.outBody != nil { w.Write(c.outBody) } if logToLogservice() { // Wait for the last flush to complete before returning, // otherwise the security ticket will not be valid. <-flushed } }) } func executeRequestSafelyMiddleware(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { defer func() { if x := recover(); x != nil { c := w.(*aeContext) logf(c, 4, "%s", renderPanic(x)) // 4 == critical c.outCode = 500 } }() next.ServeHTTP(w, r) }) } func renderPanic(x interface{}) string { buf := make([]byte, 16<<10) // 16 KB should be plenty buf = buf[:runtime.Stack(buf, false)] // Remove the first few stack frames: // this func // the recover closure in the caller // That will root the stack trace at the site of the panic. const ( skipStart = "internal.renderPanic" skipFrames = 2 ) start := bytes.Index(buf, []byte(skipStart)) p := start for i := 0; i < skipFrames*2 && p+1 < len(buf); i++ { p = bytes.IndexByte(buf[p+1:], '\n') + p + 1 if p < 0 { break } } if p >= 0 { // buf[start:p+1] is the block to remove. // Copy buf[p+1:] over buf[start:] and shrink buf. copy(buf[start:], buf[p+1:]) buf = buf[:len(buf)-(p+1-start)] } // Add panic heading. head := fmt.Sprintf("panic: %v\n\n", x) if len(head) > len(buf) { // Extremely unlikely to happen. return head } copy(buf[len(head):], buf) copy(buf, head) return string(buf) } // aeContext represents the aeContext of an in-flight HTTP request. // It implements the appengine.Context and http.ResponseWriter interfaces. type aeContext struct { req *http.Request outCode int outHeader http.Header outBody []byte pendingLogs struct { sync.Mutex lines []*logpb.UserAppLogLine flushes int } } var contextKey = "holds a *context" // jointContext joins two contexts in a superficial way. // It takes values and timeouts from a base context, and only values from another context. type jointContext struct { base context.Context valuesOnly context.Context } func (c jointContext) Deadline() (time.Time, bool) { return c.base.Deadline() } func (c jointContext) Done() <-chan struct{} { return c.base.Done() } func (c jointContext) Err() error { return c.base.Err() } func (c jointContext) Value(key interface{}) interface{} { if val := c.base.Value(key); val != nil { return val } return c.valuesOnly.Value(key) } // fromContext returns the App Engine context or nil if ctx is not // derived from an App Engine context. func fromContext(ctx context.Context) *aeContext { c, _ := ctx.Value(&contextKey).(*aeContext) return c } func withContext(parent context.Context, c *aeContext) context.Context { ctx := context.WithValue(parent, &contextKey, c) if ns := c.req.Header.Get(curNamespaceHeader); ns != "" { ctx = withNamespace(ctx, ns) } return ctx } func toContext(c *aeContext) context.Context { return withContext(context.Background(), c) } func IncomingHeaders(ctx context.Context) http.Header { if c := fromContext(ctx); c != nil { return c.req.Header } return nil } func ReqContext(req *http.Request) context.Context { return req.Context() } func WithContext(parent context.Context, req *http.Request) context.Context { return jointContext{ base: parent, valuesOnly: req.Context(), } } // RegisterTestRequest registers the HTTP request req for testing, such that // any API calls are sent to the provided URL. // It should only be used by aetest package. func RegisterTestRequest(req *http.Request, apiURL *url.URL, appID string) *http.Request { ctx := req.Context() ctx = withAPIHostOverride(ctx, apiURL.Hostname()) ctx = withAPIPortOverride(ctx, apiURL.Port()) ctx = WithAppIDOverride(ctx, appID) // use the unregistered request as a placeholder so that withContext can read the headers c := &aeContext{req: req} c.req = req.WithContext(withContext(ctx, c)) return c.req } var errTimeout = &CallError{ Detail: "Deadline exceeded", Code: int32(remotepb.RpcError_CANCELLED), Timeout: true, } func (c *aeContext) Header() http.Header { return c.outHeader } // Copied from $GOROOT/src/pkg/net/http/transfer.go. Some response status // codes do not permit a response body (nor response entity headers such as // Content-Length, Content-Type, etc). func bodyAllowedForStatus(status int) bool { switch { case status >= 100 && status <= 199: return false case status == 204: return false case status == 304: return false } return true } func (c *aeContext) Write(b []byte) (int, error) { if c.outCode == 0 { c.WriteHeader(http.StatusOK) } if len(b) > 0 && !bodyAllowedForStatus(c.outCode) { return 0, http.ErrBodyNotAllowed } c.outBody = append(c.outBody, b...) return len(b), nil } func (c *aeContext) WriteHeader(code int) { if c.outCode != 0 { logf(c, 3, "WriteHeader called multiple times on request.") // error level return } c.outCode = code } func post(ctx context.Context, body []byte, timeout time.Duration) (b []byte, err error) { apiURL := apiURL(ctx) hreq := &http.Request{ Method: "POST", URL: apiURL, Header: http.Header{ apiEndpointHeader: apiEndpointHeaderValue, apiMethodHeader: apiMethodHeaderValue, apiContentType: apiContentTypeValue, apiDeadlineHeader: []string{strconv.FormatFloat(timeout.Seconds(), 'f', -1, 64)}, }, Body: ioutil.NopCloser(bytes.NewReader(body)), ContentLength: int64(len(body)), Host: apiURL.Host, } c := fromContext(ctx) if c != nil { if info := c.req.Header.Get(dapperHeader); info != "" { hreq.Header.Set(dapperHeader, info) } if info := c.req.Header.Get(traceHeader); info != "" { hreq.Header.Set(traceHeader, info) } } tr := apiHTTPClient.Transport.(*http.Transport) var timedOut int32 // atomic; set to 1 if timed out t := time.AfterFunc(timeout, func() { atomic.StoreInt32(&timedOut, 1) tr.CancelRequest(hreq) }) defer t.Stop() defer func() { // Check if timeout was exceeded. if atomic.LoadInt32(&timedOut) != 0 { err = errTimeout } }() hresp, err := apiHTTPClient.Do(hreq) if err != nil { return nil, &CallError{ Detail: fmt.Sprintf("service bridge HTTP failed: %v", err), Code: int32(remotepb.RpcError_UNKNOWN), } } defer hresp.Body.Close() hrespBody, err := ioutil.ReadAll(hresp.Body) if hresp.StatusCode != 200 { return nil, &CallError{ Detail: fmt.Sprintf("service bridge returned HTTP %d (%q)", hresp.StatusCode, hrespBody), Code: int32(remotepb.RpcError_UNKNOWN), } } if err != nil { return nil, &CallError{ Detail: fmt.Sprintf("service bridge response bad: %v", err), Code: int32(remotepb.RpcError_UNKNOWN), } } return hrespBody, nil } func Call(ctx context.Context, service, method string, in, out proto.Message) error { if ns := NamespaceFromContext(ctx); ns != "" { if fn, ok := NamespaceMods[service]; ok { fn(in, ns) } } if f, ctx, ok := callOverrideFromContext(ctx); ok { return f(ctx, service, method, in, out) } // Handle already-done contexts quickly. select { case <-ctx.Done(): return ctx.Err() default: } c := fromContext(ctx) // Apply transaction modifications if we're in a transaction. if t := transactionFromContext(ctx); t != nil { if t.finished { return errors.New("transaction aeContext has expired") } applyTransaction(in, &t.transaction) } // Default RPC timeout is 60s. timeout := 60 * time.Second if deadline, ok := ctx.Deadline(); ok { timeout = deadline.Sub(time.Now()) } data, err := proto.Marshal(in) if err != nil { return err } ticket := "" if c != nil { ticket = c.req.Header.Get(ticketHeader) if dri := c.req.Header.Get(devRequestIdHeader); IsDevAppServer() && dri != "" { ticket = dri } } req := &remotepb.Request{ ServiceName: &service, Method: &method, Request: data, RequestId: &ticket, } hreqBody, err := proto.Marshal(req) if err != nil { return err } hrespBody, err := post(ctx, hreqBody, timeout) if err != nil { return err } res := &remotepb.Response{} if err := proto.Unmarshal(hrespBody, res); err != nil { return err } if res.RpcError != nil { ce := &CallError{ Detail: res.RpcError.GetDetail(), Code: *res.RpcError.Code, } switch remotepb.RpcError_ErrorCode(ce.Code) { case remotepb.RpcError_CANCELLED, remotepb.RpcError_DEADLINE_EXCEEDED: ce.Timeout = true } return ce } if res.ApplicationError != nil { return &APIError{ Service: *req.ServiceName, Detail: res.ApplicationError.GetDetail(), Code: *res.ApplicationError.Code, } } if res.Exception != nil || res.JavaException != nil { // This shouldn't happen, but let's be defensive. return &CallError{ Detail: "service bridge returned exception", Code: int32(remotepb.RpcError_UNKNOWN), } } return proto.Unmarshal(res.Response, out) } func (c *aeContext) Request() *http.Request { return c.req } func (c *aeContext) addLogLine(ll *logpb.UserAppLogLine) { // Truncate long log lines. // TODO(dsymonds): Check if this is still necessary. const lim = 8 << 10 if len(*ll.Message) > lim { suffix := fmt.Sprintf("...(length %d)", len(*ll.Message)) ll.Message = proto.String((*ll.Message)[:lim-len(suffix)] + suffix) } c.pendingLogs.Lock() c.pendingLogs.lines = append(c.pendingLogs.lines, ll) c.pendingLogs.Unlock() } var logLevelName = map[int64]string{ 0: "DEBUG", 1: "INFO", 2: "WARNING", 3: "ERROR", 4: "CRITICAL", } func logf(c *aeContext, level int64, format string, args ...interface{}) { if c == nil { panic("not an App Engine aeContext") } s := fmt.Sprintf(format, args...) s = strings.TrimRight(s, "\n") // Remove any trailing newline characters. if logToLogservice() { c.addLogLine(&logpb.UserAppLogLine{ TimestampUsec: proto.Int64(time.Now().UnixNano() / 1e3), Level: &level, Message: &s, }) } // Log to stdout if not deployed if !IsSecondGen() { log.Print(logLevelName[level] + ": " + s) } } // flushLog attempts to flush any pending logs to the appserver. // It should not be called concurrently. func (c *aeContext) flushLog(force bool) (flushed bool) { c.pendingLogs.Lock() // Grab up to 30 MB. We can get away with up to 32 MB, but let's be cautious. n, rem := 0, 30<<20 for ; n < len(c.pendingLogs.lines); n++ { ll := c.pendingLogs.lines[n] // Each log line will require about 3 bytes of overhead. nb := proto.Size(ll) + 3 if nb > rem { break } rem -= nb } lines := c.pendingLogs.lines[:n] c.pendingLogs.lines = c.pendingLogs.lines[n:] c.pendingLogs.Unlock() if len(lines) == 0 && !force { // Nothing to flush. return false } rescueLogs := false defer func() { if rescueLogs { c.pendingLogs.Lock() c.pendingLogs.lines = append(lines, c.pendingLogs.lines...) c.pendingLogs.Unlock() } }() buf, err := proto.Marshal(&logpb.UserAppLogGroup{ LogLine: lines, }) if err != nil { log.Printf("internal.flushLog: marshaling UserAppLogGroup: %v", err) rescueLogs = true return false } req := &logpb.FlushRequest{ Logs: buf, } res := &basepb.VoidProto{} c.pendingLogs.Lock() c.pendingLogs.flushes++ c.pendingLogs.Unlock() if err := Call(toContext(c), "logservice", "Flush", req, res); err != nil { log.Printf("internal.flushLog: Flush RPC: %v", err) rescueLogs = true return false } return true } const ( // Log flushing parameters. flushInterval = 1 * time.Second forceFlushInterval = 60 * time.Second ) func (c *aeContext) logFlusher(stop <-chan int) { lastFlush := time.Now() tick := time.NewTicker(flushInterval) for { select { case <-stop: // Request finished. tick.Stop() return case <-tick.C: force := time.Now().Sub(lastFlush) > forceFlushInterval if c.flushLog(force) { lastFlush = time.Now() } } } } func ContextForTesting(req *http.Request) context.Context { return toContext(&aeContext{req: req}) } func logToLogservice() bool { // TODO: replace logservice with json structured logs to $LOG_DIR/app.log.json // where $LOG_DIR is /var/log in prod and some tmpdir in dev return os.Getenv("LOG_TO_LOGSERVICE") != "0" }
log
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/log/log_service.proto
syntax = "proto2"; option go_package = "log"; package appengine; message LogServiceError { enum ErrorCode { OK = 0; INVALID_REQUEST = 1; STORAGE_ERROR = 2; } } message UserAppLogLine { required int64 timestamp_usec = 1; required int64 level = 2; required string message = 3; } message UserAppLogGroup { repeated UserAppLogLine log_line = 2; } message FlushRequest { optional bytes logs = 1; } message SetStatusRequest { required string status = 1; } message LogOffset { optional bytes request_id = 1; } message LogLine { required int64 time = 1; required int32 level = 2; required string log_message = 3; } message RequestLog { required string app_id = 1; optional string module_id = 37 [default="default"]; required string version_id = 2; required bytes request_id = 3; optional LogOffset offset = 35; required string ip = 4; optional string nickname = 5; required int64 start_time = 6; required int64 end_time = 7; required int64 latency = 8; required int64 mcycles = 9; required string method = 10; required string resource = 11; required string http_version = 12; required int32 status = 13; required int64 response_size = 14; optional string referrer = 15; optional string user_agent = 16; required string url_map_entry = 17; required string combined = 18; optional int64 api_mcycles = 19; optional string host = 20; optional double cost = 21; optional string task_queue_name = 22; optional string task_name = 23; optional bool was_loading_request = 24; optional int64 pending_time = 25; optional int32 replica_index = 26 [default = -1]; optional bool finished = 27 [default = true]; optional bytes clone_key = 28; repeated LogLine line = 29; optional bool lines_incomplete = 36; optional bytes app_engine_release = 38; optional int32 exit_reason = 30; optional bool was_throttled_for_time = 31; optional bool was_throttled_for_requests = 32; optional int64 throttled_time = 33; optional bytes server_name = 34; } message LogModuleVersion { optional string module_id = 1 [default="default"]; optional string version_id = 2; } message LogReadRequest { required string app_id = 1; repeated string version_id = 2; repeated LogModuleVersion module_version = 19; optional int64 start_time = 3; optional int64 end_time = 4; optional LogOffset offset = 5; repeated bytes request_id = 6; optional int32 minimum_log_level = 7; optional bool include_incomplete = 8; optional int64 count = 9; optional string combined_log_regex = 14; optional string host_regex = 15; optional int32 replica_index = 16; optional bool include_app_logs = 10; optional int32 app_logs_per_request = 17; optional bool include_host = 11; optional bool include_all = 12; optional bool cache_iterator = 13; optional int32 num_shards = 18; } message LogReadResponse { repeated RequestLog log = 1; optional LogOffset offset = 2; optional int64 last_end_time = 3; } message LogUsageRecord { optional string version_id = 1; optional int32 start_time = 2; optional int32 end_time = 3; optional int64 count = 4; optional int64 total_size = 5; optional int32 records = 6; } message LogUsageRequest { required string app_id = 1; repeated string version_id = 2; optional int32 start_time = 3; optional int32 end_time = 4; optional uint32 resolution_hours = 5 [default = 1]; optional bool combine_versions = 6; optional int32 usage_version = 7; optional bool versions_only = 8; } message LogUsageResponse { repeated LogUsageRecord usage = 1; optional LogUsageRecord summary = 2; }
log
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/log/log_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/log/log_service.proto package log import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type LogServiceError_ErrorCode int32 const ( LogServiceError_OK LogServiceError_ErrorCode = 0 LogServiceError_INVALID_REQUEST LogServiceError_ErrorCode = 1 LogServiceError_STORAGE_ERROR LogServiceError_ErrorCode = 2 ) var LogServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INVALID_REQUEST", 2: "STORAGE_ERROR", } var LogServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INVALID_REQUEST": 1, "STORAGE_ERROR": 2, } func (x LogServiceError_ErrorCode) Enum() *LogServiceError_ErrorCode { p := new(LogServiceError_ErrorCode) *p = x return p } func (x LogServiceError_ErrorCode) String() string { return proto.EnumName(LogServiceError_ErrorCode_name, int32(x)) } func (x *LogServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(LogServiceError_ErrorCode_value, data, "LogServiceError_ErrorCode") if err != nil { return err } *x = LogServiceError_ErrorCode(value) return nil } func (LogServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{0, 0} } type LogServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogServiceError) Reset() { *m = LogServiceError{} } func (m *LogServiceError) String() string { return proto.CompactTextString(m) } func (*LogServiceError) ProtoMessage() {} func (*LogServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{0} } func (m *LogServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogServiceError.Unmarshal(m, b) } func (m *LogServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogServiceError.Marshal(b, m, deterministic) } func (dst *LogServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_LogServiceError.Merge(dst, src) } func (m *LogServiceError) XXX_Size() int { return xxx_messageInfo_LogServiceError.Size(m) } func (m *LogServiceError) XXX_DiscardUnknown() { xxx_messageInfo_LogServiceError.DiscardUnknown(m) } var xxx_messageInfo_LogServiceError proto.InternalMessageInfo type UserAppLogLine struct { TimestampUsec *int64 `protobuf:"varint,1,req,name=timestamp_usec,json=timestampUsec" json:"timestamp_usec,omitempty"` Level *int64 `protobuf:"varint,2,req,name=level" json:"level,omitempty"` Message *string `protobuf:"bytes,3,req,name=message" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *UserAppLogLine) Reset() { *m = UserAppLogLine{} } func (m *UserAppLogLine) String() string { return proto.CompactTextString(m) } func (*UserAppLogLine) ProtoMessage() {} func (*UserAppLogLine) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{1} } func (m *UserAppLogLine) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UserAppLogLine.Unmarshal(m, b) } func (m *UserAppLogLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UserAppLogLine.Marshal(b, m, deterministic) } func (dst *UserAppLogLine) XXX_Merge(src proto.Message) { xxx_messageInfo_UserAppLogLine.Merge(dst, src) } func (m *UserAppLogLine) XXX_Size() int { return xxx_messageInfo_UserAppLogLine.Size(m) } func (m *UserAppLogLine) XXX_DiscardUnknown() { xxx_messageInfo_UserAppLogLine.DiscardUnknown(m) } var xxx_messageInfo_UserAppLogLine proto.InternalMessageInfo func (m *UserAppLogLine) GetTimestampUsec() int64 { if m != nil && m.TimestampUsec != nil { return *m.TimestampUsec } return 0 } func (m *UserAppLogLine) GetLevel() int64 { if m != nil && m.Level != nil { return *m.Level } return 0 } func (m *UserAppLogLine) GetMessage() string { if m != nil && m.Message != nil { return *m.Message } return "" } type UserAppLogGroup struct { LogLine []*UserAppLogLine `protobuf:"bytes,2,rep,name=log_line,json=logLine" json:"log_line,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *UserAppLogGroup) Reset() { *m = UserAppLogGroup{} } func (m *UserAppLogGroup) String() string { return proto.CompactTextString(m) } func (*UserAppLogGroup) ProtoMessage() {} func (*UserAppLogGroup) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{2} } func (m *UserAppLogGroup) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UserAppLogGroup.Unmarshal(m, b) } func (m *UserAppLogGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UserAppLogGroup.Marshal(b, m, deterministic) } func (dst *UserAppLogGroup) XXX_Merge(src proto.Message) { xxx_messageInfo_UserAppLogGroup.Merge(dst, src) } func (m *UserAppLogGroup) XXX_Size() int { return xxx_messageInfo_UserAppLogGroup.Size(m) } func (m *UserAppLogGroup) XXX_DiscardUnknown() { xxx_messageInfo_UserAppLogGroup.DiscardUnknown(m) } var xxx_messageInfo_UserAppLogGroup proto.InternalMessageInfo func (m *UserAppLogGroup) GetLogLine() []*UserAppLogLine { if m != nil { return m.LogLine } return nil } type FlushRequest struct { Logs []byte `protobuf:"bytes,1,opt,name=logs" json:"logs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FlushRequest) Reset() { *m = FlushRequest{} } func (m *FlushRequest) String() string { return proto.CompactTextString(m) } func (*FlushRequest) ProtoMessage() {} func (*FlushRequest) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{3} } func (m *FlushRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FlushRequest.Unmarshal(m, b) } func (m *FlushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FlushRequest.Marshal(b, m, deterministic) } func (dst *FlushRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_FlushRequest.Merge(dst, src) } func (m *FlushRequest) XXX_Size() int { return xxx_messageInfo_FlushRequest.Size(m) } func (m *FlushRequest) XXX_DiscardUnknown() { xxx_messageInfo_FlushRequest.DiscardUnknown(m) } var xxx_messageInfo_FlushRequest proto.InternalMessageInfo func (m *FlushRequest) GetLogs() []byte { if m != nil { return m.Logs } return nil } type SetStatusRequest struct { Status *string `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SetStatusRequest) Reset() { *m = SetStatusRequest{} } func (m *SetStatusRequest) String() string { return proto.CompactTextString(m) } func (*SetStatusRequest) ProtoMessage() {} func (*SetStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{4} } func (m *SetStatusRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SetStatusRequest.Unmarshal(m, b) } func (m *SetStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SetStatusRequest.Marshal(b, m, deterministic) } func (dst *SetStatusRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SetStatusRequest.Merge(dst, src) } func (m *SetStatusRequest) XXX_Size() int { return xxx_messageInfo_SetStatusRequest.Size(m) } func (m *SetStatusRequest) XXX_DiscardUnknown() { xxx_messageInfo_SetStatusRequest.DiscardUnknown(m) } var xxx_messageInfo_SetStatusRequest proto.InternalMessageInfo func (m *SetStatusRequest) GetStatus() string { if m != nil && m.Status != nil { return *m.Status } return "" } type LogOffset struct { RequestId []byte `protobuf:"bytes,1,opt,name=request_id,json=requestId" json:"request_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogOffset) Reset() { *m = LogOffset{} } func (m *LogOffset) String() string { return proto.CompactTextString(m) } func (*LogOffset) ProtoMessage() {} func (*LogOffset) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{5} } func (m *LogOffset) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogOffset.Unmarshal(m, b) } func (m *LogOffset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogOffset.Marshal(b, m, deterministic) } func (dst *LogOffset) XXX_Merge(src proto.Message) { xxx_messageInfo_LogOffset.Merge(dst, src) } func (m *LogOffset) XXX_Size() int { return xxx_messageInfo_LogOffset.Size(m) } func (m *LogOffset) XXX_DiscardUnknown() { xxx_messageInfo_LogOffset.DiscardUnknown(m) } var xxx_messageInfo_LogOffset proto.InternalMessageInfo func (m *LogOffset) GetRequestId() []byte { if m != nil { return m.RequestId } return nil } type LogLine struct { Time *int64 `protobuf:"varint,1,req,name=time" json:"time,omitempty"` Level *int32 `protobuf:"varint,2,req,name=level" json:"level,omitempty"` LogMessage *string `protobuf:"bytes,3,req,name=log_message,json=logMessage" json:"log_message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogLine) Reset() { *m = LogLine{} } func (m *LogLine) String() string { return proto.CompactTextString(m) } func (*LogLine) ProtoMessage() {} func (*LogLine) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{6} } func (m *LogLine) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogLine.Unmarshal(m, b) } func (m *LogLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogLine.Marshal(b, m, deterministic) } func (dst *LogLine) XXX_Merge(src proto.Message) { xxx_messageInfo_LogLine.Merge(dst, src) } func (m *LogLine) XXX_Size() int { return xxx_messageInfo_LogLine.Size(m) } func (m *LogLine) XXX_DiscardUnknown() { xxx_messageInfo_LogLine.DiscardUnknown(m) } var xxx_messageInfo_LogLine proto.InternalMessageInfo func (m *LogLine) GetTime() int64 { if m != nil && m.Time != nil { return *m.Time } return 0 } func (m *LogLine) GetLevel() int32 { if m != nil && m.Level != nil { return *m.Level } return 0 } func (m *LogLine) GetLogMessage() string { if m != nil && m.LogMessage != nil { return *m.LogMessage } return "" } type RequestLog struct { AppId *string `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` ModuleId *string `protobuf:"bytes,37,opt,name=module_id,json=moduleId,def=default" json:"module_id,omitempty"` VersionId *string `protobuf:"bytes,2,req,name=version_id,json=versionId" json:"version_id,omitempty"` RequestId []byte `protobuf:"bytes,3,req,name=request_id,json=requestId" json:"request_id,omitempty"` Offset *LogOffset `protobuf:"bytes,35,opt,name=offset" json:"offset,omitempty"` Ip *string `protobuf:"bytes,4,req,name=ip" json:"ip,omitempty"` Nickname *string `protobuf:"bytes,5,opt,name=nickname" json:"nickname,omitempty"` StartTime *int64 `protobuf:"varint,6,req,name=start_time,json=startTime" json:"start_time,omitempty"` EndTime *int64 `protobuf:"varint,7,req,name=end_time,json=endTime" json:"end_time,omitempty"` Latency *int64 `protobuf:"varint,8,req,name=latency" json:"latency,omitempty"` Mcycles *int64 `protobuf:"varint,9,req,name=mcycles" json:"mcycles,omitempty"` Method *string `protobuf:"bytes,10,req,name=method" json:"method,omitempty"` Resource *string `protobuf:"bytes,11,req,name=resource" json:"resource,omitempty"` HttpVersion *string `protobuf:"bytes,12,req,name=http_version,json=httpVersion" json:"http_version,omitempty"` Status *int32 `protobuf:"varint,13,req,name=status" json:"status,omitempty"` ResponseSize *int64 `protobuf:"varint,14,req,name=response_size,json=responseSize" json:"response_size,omitempty"` Referrer *string `protobuf:"bytes,15,opt,name=referrer" json:"referrer,omitempty"` UserAgent *string `protobuf:"bytes,16,opt,name=user_agent,json=userAgent" json:"user_agent,omitempty"` UrlMapEntry *string `protobuf:"bytes,17,req,name=url_map_entry,json=urlMapEntry" json:"url_map_entry,omitempty"` Combined *string `protobuf:"bytes,18,req,name=combined" json:"combined,omitempty"` ApiMcycles *int64 `protobuf:"varint,19,opt,name=api_mcycles,json=apiMcycles" json:"api_mcycles,omitempty"` Host *string `protobuf:"bytes,20,opt,name=host" json:"host,omitempty"` Cost *float64 `protobuf:"fixed64,21,opt,name=cost" json:"cost,omitempty"` TaskQueueName *string `protobuf:"bytes,22,opt,name=task_queue_name,json=taskQueueName" json:"task_queue_name,omitempty"` TaskName *string `protobuf:"bytes,23,opt,name=task_name,json=taskName" json:"task_name,omitempty"` WasLoadingRequest *bool `protobuf:"varint,24,opt,name=was_loading_request,json=wasLoadingRequest" json:"was_loading_request,omitempty"` PendingTime *int64 `protobuf:"varint,25,opt,name=pending_time,json=pendingTime" json:"pending_time,omitempty"` ReplicaIndex *int32 `protobuf:"varint,26,opt,name=replica_index,json=replicaIndex,def=-1" json:"replica_index,omitempty"` Finished *bool `protobuf:"varint,27,opt,name=finished,def=1" json:"finished,omitempty"` CloneKey []byte `protobuf:"bytes,28,opt,name=clone_key,json=cloneKey" json:"clone_key,omitempty"` Line []*LogLine `protobuf:"bytes,29,rep,name=line" json:"line,omitempty"` LinesIncomplete *bool `protobuf:"varint,36,opt,name=lines_incomplete,json=linesIncomplete" json:"lines_incomplete,omitempty"` AppEngineRelease []byte `protobuf:"bytes,38,opt,name=app_engine_release,json=appEngineRelease" json:"app_engine_release,omitempty"` ExitReason *int32 `protobuf:"varint,30,opt,name=exit_reason,json=exitReason" json:"exit_reason,omitempty"` WasThrottledForTime *bool `protobuf:"varint,31,opt,name=was_throttled_for_time,json=wasThrottledForTime" json:"was_throttled_for_time,omitempty"` WasThrottledForRequests *bool `protobuf:"varint,32,opt,name=was_throttled_for_requests,json=wasThrottledForRequests" json:"was_throttled_for_requests,omitempty"` ThrottledTime *int64 `protobuf:"varint,33,opt,name=throttled_time,json=throttledTime" json:"throttled_time,omitempty"` ServerName []byte `protobuf:"bytes,34,opt,name=server_name,json=serverName" json:"server_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *RequestLog) Reset() { *m = RequestLog{} } func (m *RequestLog) String() string { return proto.CompactTextString(m) } func (*RequestLog) ProtoMessage() {} func (*RequestLog) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{7} } func (m *RequestLog) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RequestLog.Unmarshal(m, b) } func (m *RequestLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RequestLog.Marshal(b, m, deterministic) } func (dst *RequestLog) XXX_Merge(src proto.Message) { xxx_messageInfo_RequestLog.Merge(dst, src) } func (m *RequestLog) XXX_Size() int { return xxx_messageInfo_RequestLog.Size(m) } func (m *RequestLog) XXX_DiscardUnknown() { xxx_messageInfo_RequestLog.DiscardUnknown(m) } var xxx_messageInfo_RequestLog proto.InternalMessageInfo const Default_RequestLog_ModuleId string = "default" const Default_RequestLog_ReplicaIndex int32 = -1 const Default_RequestLog_Finished bool = true func (m *RequestLog) GetAppId() string { if m != nil && m.AppId != nil { return *m.AppId } return "" } func (m *RequestLog) GetModuleId() string { if m != nil && m.ModuleId != nil { return *m.ModuleId } return Default_RequestLog_ModuleId } func (m *RequestLog) GetVersionId() string { if m != nil && m.VersionId != nil { return *m.VersionId } return "" } func (m *RequestLog) GetRequestId() []byte { if m != nil { return m.RequestId } return nil } func (m *RequestLog) GetOffset() *LogOffset { if m != nil { return m.Offset } return nil } func (m *RequestLog) GetIp() string { if m != nil && m.Ip != nil { return *m.Ip } return "" } func (m *RequestLog) GetNickname() string { if m != nil && m.Nickname != nil { return *m.Nickname } return "" } func (m *RequestLog) GetStartTime() int64 { if m != nil && m.StartTime != nil { return *m.StartTime } return 0 } func (m *RequestLog) GetEndTime() int64 { if m != nil && m.EndTime != nil { return *m.EndTime } return 0 } func (m *RequestLog) GetLatency() int64 { if m != nil && m.Latency != nil { return *m.Latency } return 0 } func (m *RequestLog) GetMcycles() int64 { if m != nil && m.Mcycles != nil { return *m.Mcycles } return 0 } func (m *RequestLog) GetMethod() string { if m != nil && m.Method != nil { return *m.Method } return "" } func (m *RequestLog) GetResource() string { if m != nil && m.Resource != nil { return *m.Resource } return "" } func (m *RequestLog) GetHttpVersion() string { if m != nil && m.HttpVersion != nil { return *m.HttpVersion } return "" } func (m *RequestLog) GetStatus() int32 { if m != nil && m.Status != nil { return *m.Status } return 0 } func (m *RequestLog) GetResponseSize() int64 { if m != nil && m.ResponseSize != nil { return *m.ResponseSize } return 0 } func (m *RequestLog) GetReferrer() string { if m != nil && m.Referrer != nil { return *m.Referrer } return "" } func (m *RequestLog) GetUserAgent() string { if m != nil && m.UserAgent != nil { return *m.UserAgent } return "" } func (m *RequestLog) GetUrlMapEntry() string { if m != nil && m.UrlMapEntry != nil { return *m.UrlMapEntry } return "" } func (m *RequestLog) GetCombined() string { if m != nil && m.Combined != nil { return *m.Combined } return "" } func (m *RequestLog) GetApiMcycles() int64 { if m != nil && m.ApiMcycles != nil { return *m.ApiMcycles } return 0 } func (m *RequestLog) GetHost() string { if m != nil && m.Host != nil { return *m.Host } return "" } func (m *RequestLog) GetCost() float64 { if m != nil && m.Cost != nil { return *m.Cost } return 0 } func (m *RequestLog) GetTaskQueueName() string { if m != nil && m.TaskQueueName != nil { return *m.TaskQueueName } return "" } func (m *RequestLog) GetTaskName() string { if m != nil && m.TaskName != nil { return *m.TaskName } return "" } func (m *RequestLog) GetWasLoadingRequest() bool { if m != nil && m.WasLoadingRequest != nil { return *m.WasLoadingRequest } return false } func (m *RequestLog) GetPendingTime() int64 { if m != nil && m.PendingTime != nil { return *m.PendingTime } return 0 } func (m *RequestLog) GetReplicaIndex() int32 { if m != nil && m.ReplicaIndex != nil { return *m.ReplicaIndex } return Default_RequestLog_ReplicaIndex } func (m *RequestLog) GetFinished() bool { if m != nil && m.Finished != nil { return *m.Finished } return Default_RequestLog_Finished } func (m *RequestLog) GetCloneKey() []byte { if m != nil { return m.CloneKey } return nil } func (m *RequestLog) GetLine() []*LogLine { if m != nil { return m.Line } return nil } func (m *RequestLog) GetLinesIncomplete() bool { if m != nil && m.LinesIncomplete != nil { return *m.LinesIncomplete } return false } func (m *RequestLog) GetAppEngineRelease() []byte { if m != nil { return m.AppEngineRelease } return nil } func (m *RequestLog) GetExitReason() int32 { if m != nil && m.ExitReason != nil { return *m.ExitReason } return 0 } func (m *RequestLog) GetWasThrottledForTime() bool { if m != nil && m.WasThrottledForTime != nil { return *m.WasThrottledForTime } return false } func (m *RequestLog) GetWasThrottledForRequests() bool { if m != nil && m.WasThrottledForRequests != nil { return *m.WasThrottledForRequests } return false } func (m *RequestLog) GetThrottledTime() int64 { if m != nil && m.ThrottledTime != nil { return *m.ThrottledTime } return 0 } func (m *RequestLog) GetServerName() []byte { if m != nil { return m.ServerName } return nil } type LogModuleVersion struct { ModuleId *string `protobuf:"bytes,1,opt,name=module_id,json=moduleId,def=default" json:"module_id,omitempty"` VersionId *string `protobuf:"bytes,2,opt,name=version_id,json=versionId" json:"version_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogModuleVersion) Reset() { *m = LogModuleVersion{} } func (m *LogModuleVersion) String() string { return proto.CompactTextString(m) } func (*LogModuleVersion) ProtoMessage() {} func (*LogModuleVersion) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{8} } func (m *LogModuleVersion) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogModuleVersion.Unmarshal(m, b) } func (m *LogModuleVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogModuleVersion.Marshal(b, m, deterministic) } func (dst *LogModuleVersion) XXX_Merge(src proto.Message) { xxx_messageInfo_LogModuleVersion.Merge(dst, src) } func (m *LogModuleVersion) XXX_Size() int { return xxx_messageInfo_LogModuleVersion.Size(m) } func (m *LogModuleVersion) XXX_DiscardUnknown() { xxx_messageInfo_LogModuleVersion.DiscardUnknown(m) } var xxx_messageInfo_LogModuleVersion proto.InternalMessageInfo const Default_LogModuleVersion_ModuleId string = "default" func (m *LogModuleVersion) GetModuleId() string { if m != nil && m.ModuleId != nil { return *m.ModuleId } return Default_LogModuleVersion_ModuleId } func (m *LogModuleVersion) GetVersionId() string { if m != nil && m.VersionId != nil { return *m.VersionId } return "" } type LogReadRequest struct { AppId *string `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` VersionId []string `protobuf:"bytes,2,rep,name=version_id,json=versionId" json:"version_id,omitempty"` ModuleVersion []*LogModuleVersion `protobuf:"bytes,19,rep,name=module_version,json=moduleVersion" json:"module_version,omitempty"` StartTime *int64 `protobuf:"varint,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"` EndTime *int64 `protobuf:"varint,4,opt,name=end_time,json=endTime" json:"end_time,omitempty"` Offset *LogOffset `protobuf:"bytes,5,opt,name=offset" json:"offset,omitempty"` RequestId [][]byte `protobuf:"bytes,6,rep,name=request_id,json=requestId" json:"request_id,omitempty"` MinimumLogLevel *int32 `protobuf:"varint,7,opt,name=minimum_log_level,json=minimumLogLevel" json:"minimum_log_level,omitempty"` IncludeIncomplete *bool `protobuf:"varint,8,opt,name=include_incomplete,json=includeIncomplete" json:"include_incomplete,omitempty"` Count *int64 `protobuf:"varint,9,opt,name=count" json:"count,omitempty"` CombinedLogRegex *string `protobuf:"bytes,14,opt,name=combined_log_regex,json=combinedLogRegex" json:"combined_log_regex,omitempty"` HostRegex *string `protobuf:"bytes,15,opt,name=host_regex,json=hostRegex" json:"host_regex,omitempty"` ReplicaIndex *int32 `protobuf:"varint,16,opt,name=replica_index,json=replicaIndex" json:"replica_index,omitempty"` IncludeAppLogs *bool `protobuf:"varint,10,opt,name=include_app_logs,json=includeAppLogs" json:"include_app_logs,omitempty"` AppLogsPerRequest *int32 `protobuf:"varint,17,opt,name=app_logs_per_request,json=appLogsPerRequest" json:"app_logs_per_request,omitempty"` IncludeHost *bool `protobuf:"varint,11,opt,name=include_host,json=includeHost" json:"include_host,omitempty"` IncludeAll *bool `protobuf:"varint,12,opt,name=include_all,json=includeAll" json:"include_all,omitempty"` CacheIterator *bool `protobuf:"varint,13,opt,name=cache_iterator,json=cacheIterator" json:"cache_iterator,omitempty"` NumShards *int32 `protobuf:"varint,18,opt,name=num_shards,json=numShards" json:"num_shards,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogReadRequest) Reset() { *m = LogReadRequest{} } func (m *LogReadRequest) String() string { return proto.CompactTextString(m) } func (*LogReadRequest) ProtoMessage() {} func (*LogReadRequest) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{9} } func (m *LogReadRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogReadRequest.Unmarshal(m, b) } func (m *LogReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogReadRequest.Marshal(b, m, deterministic) } func (dst *LogReadRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LogReadRequest.Merge(dst, src) } func (m *LogReadRequest) XXX_Size() int { return xxx_messageInfo_LogReadRequest.Size(m) } func (m *LogReadRequest) XXX_DiscardUnknown() { xxx_messageInfo_LogReadRequest.DiscardUnknown(m) } var xxx_messageInfo_LogReadRequest proto.InternalMessageInfo func (m *LogReadRequest) GetAppId() string { if m != nil && m.AppId != nil { return *m.AppId } return "" } func (m *LogReadRequest) GetVersionId() []string { if m != nil { return m.VersionId } return nil } func (m *LogReadRequest) GetModuleVersion() []*LogModuleVersion { if m != nil { return m.ModuleVersion } return nil } func (m *LogReadRequest) GetStartTime() int64 { if m != nil && m.StartTime != nil { return *m.StartTime } return 0 } func (m *LogReadRequest) GetEndTime() int64 { if m != nil && m.EndTime != nil { return *m.EndTime } return 0 } func (m *LogReadRequest) GetOffset() *LogOffset { if m != nil { return m.Offset } return nil } func (m *LogReadRequest) GetRequestId() [][]byte { if m != nil { return m.RequestId } return nil } func (m *LogReadRequest) GetMinimumLogLevel() int32 { if m != nil && m.MinimumLogLevel != nil { return *m.MinimumLogLevel } return 0 } func (m *LogReadRequest) GetIncludeIncomplete() bool { if m != nil && m.IncludeIncomplete != nil { return *m.IncludeIncomplete } return false } func (m *LogReadRequest) GetCount() int64 { if m != nil && m.Count != nil { return *m.Count } return 0 } func (m *LogReadRequest) GetCombinedLogRegex() string { if m != nil && m.CombinedLogRegex != nil { return *m.CombinedLogRegex } return "" } func (m *LogReadRequest) GetHostRegex() string { if m != nil && m.HostRegex != nil { return *m.HostRegex } return "" } func (m *LogReadRequest) GetReplicaIndex() int32 { if m != nil && m.ReplicaIndex != nil { return *m.ReplicaIndex } return 0 } func (m *LogReadRequest) GetIncludeAppLogs() bool { if m != nil && m.IncludeAppLogs != nil { return *m.IncludeAppLogs } return false } func (m *LogReadRequest) GetAppLogsPerRequest() int32 { if m != nil && m.AppLogsPerRequest != nil { return *m.AppLogsPerRequest } return 0 } func (m *LogReadRequest) GetIncludeHost() bool { if m != nil && m.IncludeHost != nil { return *m.IncludeHost } return false } func (m *LogReadRequest) GetIncludeAll() bool { if m != nil && m.IncludeAll != nil { return *m.IncludeAll } return false } func (m *LogReadRequest) GetCacheIterator() bool { if m != nil && m.CacheIterator != nil { return *m.CacheIterator } return false } func (m *LogReadRequest) GetNumShards() int32 { if m != nil && m.NumShards != nil { return *m.NumShards } return 0 } type LogReadResponse struct { Log []*RequestLog `protobuf:"bytes,1,rep,name=log" json:"log,omitempty"` Offset *LogOffset `protobuf:"bytes,2,opt,name=offset" json:"offset,omitempty"` LastEndTime *int64 `protobuf:"varint,3,opt,name=last_end_time,json=lastEndTime" json:"last_end_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogReadResponse) Reset() { *m = LogReadResponse{} } func (m *LogReadResponse) String() string { return proto.CompactTextString(m) } func (*LogReadResponse) ProtoMessage() {} func (*LogReadResponse) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{10} } func (m *LogReadResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogReadResponse.Unmarshal(m, b) } func (m *LogReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogReadResponse.Marshal(b, m, deterministic) } func (dst *LogReadResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LogReadResponse.Merge(dst, src) } func (m *LogReadResponse) XXX_Size() int { return xxx_messageInfo_LogReadResponse.Size(m) } func (m *LogReadResponse) XXX_DiscardUnknown() { xxx_messageInfo_LogReadResponse.DiscardUnknown(m) } var xxx_messageInfo_LogReadResponse proto.InternalMessageInfo func (m *LogReadResponse) GetLog() []*RequestLog { if m != nil { return m.Log } return nil } func (m *LogReadResponse) GetOffset() *LogOffset { if m != nil { return m.Offset } return nil } func (m *LogReadResponse) GetLastEndTime() int64 { if m != nil && m.LastEndTime != nil { return *m.LastEndTime } return 0 } type LogUsageRecord struct { VersionId *string `protobuf:"bytes,1,opt,name=version_id,json=versionId" json:"version_id,omitempty"` StartTime *int32 `protobuf:"varint,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"` EndTime *int32 `protobuf:"varint,3,opt,name=end_time,json=endTime" json:"end_time,omitempty"` Count *int64 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` TotalSize *int64 `protobuf:"varint,5,opt,name=total_size,json=totalSize" json:"total_size,omitempty"` Records *int32 `protobuf:"varint,6,opt,name=records" json:"records,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogUsageRecord) Reset() { *m = LogUsageRecord{} } func (m *LogUsageRecord) String() string { return proto.CompactTextString(m) } func (*LogUsageRecord) ProtoMessage() {} func (*LogUsageRecord) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{11} } func (m *LogUsageRecord) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogUsageRecord.Unmarshal(m, b) } func (m *LogUsageRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogUsageRecord.Marshal(b, m, deterministic) } func (dst *LogUsageRecord) XXX_Merge(src proto.Message) { xxx_messageInfo_LogUsageRecord.Merge(dst, src) } func (m *LogUsageRecord) XXX_Size() int { return xxx_messageInfo_LogUsageRecord.Size(m) } func (m *LogUsageRecord) XXX_DiscardUnknown() { xxx_messageInfo_LogUsageRecord.DiscardUnknown(m) } var xxx_messageInfo_LogUsageRecord proto.InternalMessageInfo func (m *LogUsageRecord) GetVersionId() string { if m != nil && m.VersionId != nil { return *m.VersionId } return "" } func (m *LogUsageRecord) GetStartTime() int32 { if m != nil && m.StartTime != nil { return *m.StartTime } return 0 } func (m *LogUsageRecord) GetEndTime() int32 { if m != nil && m.EndTime != nil { return *m.EndTime } return 0 } func (m *LogUsageRecord) GetCount() int64 { if m != nil && m.Count != nil { return *m.Count } return 0 } func (m *LogUsageRecord) GetTotalSize() int64 { if m != nil && m.TotalSize != nil { return *m.TotalSize } return 0 } func (m *LogUsageRecord) GetRecords() int32 { if m != nil && m.Records != nil { return *m.Records } return 0 } type LogUsageRequest struct { AppId *string `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` VersionId []string `protobuf:"bytes,2,rep,name=version_id,json=versionId" json:"version_id,omitempty"` StartTime *int32 `protobuf:"varint,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"` EndTime *int32 `protobuf:"varint,4,opt,name=end_time,json=endTime" json:"end_time,omitempty"` ResolutionHours *uint32 `protobuf:"varint,5,opt,name=resolution_hours,json=resolutionHours,def=1" json:"resolution_hours,omitempty"` CombineVersions *bool `protobuf:"varint,6,opt,name=combine_versions,json=combineVersions" json:"combine_versions,omitempty"` UsageVersion *int32 `protobuf:"varint,7,opt,name=usage_version,json=usageVersion" json:"usage_version,omitempty"` VersionsOnly *bool `protobuf:"varint,8,opt,name=versions_only,json=versionsOnly" json:"versions_only,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogUsageRequest) Reset() { *m = LogUsageRequest{} } func (m *LogUsageRequest) String() string { return proto.CompactTextString(m) } func (*LogUsageRequest) ProtoMessage() {} func (*LogUsageRequest) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{12} } func (m *LogUsageRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogUsageRequest.Unmarshal(m, b) } func (m *LogUsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogUsageRequest.Marshal(b, m, deterministic) } func (dst *LogUsageRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LogUsageRequest.Merge(dst, src) } func (m *LogUsageRequest) XXX_Size() int { return xxx_messageInfo_LogUsageRequest.Size(m) } func (m *LogUsageRequest) XXX_DiscardUnknown() { xxx_messageInfo_LogUsageRequest.DiscardUnknown(m) } var xxx_messageInfo_LogUsageRequest proto.InternalMessageInfo const Default_LogUsageRequest_ResolutionHours uint32 = 1 func (m *LogUsageRequest) GetAppId() string { if m != nil && m.AppId != nil { return *m.AppId } return "" } func (m *LogUsageRequest) GetVersionId() []string { if m != nil { return m.VersionId } return nil } func (m *LogUsageRequest) GetStartTime() int32 { if m != nil && m.StartTime != nil { return *m.StartTime } return 0 } func (m *LogUsageRequest) GetEndTime() int32 { if m != nil && m.EndTime != nil { return *m.EndTime } return 0 } func (m *LogUsageRequest) GetResolutionHours() uint32 { if m != nil && m.ResolutionHours != nil { return *m.ResolutionHours } return Default_LogUsageRequest_ResolutionHours } func (m *LogUsageRequest) GetCombineVersions() bool { if m != nil && m.CombineVersions != nil { return *m.CombineVersions } return false } func (m *LogUsageRequest) GetUsageVersion() int32 { if m != nil && m.UsageVersion != nil { return *m.UsageVersion } return 0 } func (m *LogUsageRequest) GetVersionsOnly() bool { if m != nil && m.VersionsOnly != nil { return *m.VersionsOnly } return false } type LogUsageResponse struct { Usage []*LogUsageRecord `protobuf:"bytes,1,rep,name=usage" json:"usage,omitempty"` Summary *LogUsageRecord `protobuf:"bytes,2,opt,name=summary" json:"summary,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LogUsageResponse) Reset() { *m = LogUsageResponse{} } func (m *LogUsageResponse) String() string { return proto.CompactTextString(m) } func (*LogUsageResponse) ProtoMessage() {} func (*LogUsageResponse) Descriptor() ([]byte, []int) { return fileDescriptor_log_service_f054fd4b5012319d, []int{13} } func (m *LogUsageResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LogUsageResponse.Unmarshal(m, b) } func (m *LogUsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogUsageResponse.Marshal(b, m, deterministic) } func (dst *LogUsageResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LogUsageResponse.Merge(dst, src) } func (m *LogUsageResponse) XXX_Size() int { return xxx_messageInfo_LogUsageResponse.Size(m) } func (m *LogUsageResponse) XXX_DiscardUnknown() { xxx_messageInfo_LogUsageResponse.DiscardUnknown(m) } var xxx_messageInfo_LogUsageResponse proto.InternalMessageInfo func (m *LogUsageResponse) GetUsage() []*LogUsageRecord { if m != nil { return m.Usage } return nil } func (m *LogUsageResponse) GetSummary() *LogUsageRecord { if m != nil { return m.Summary } return nil } func init() { proto.RegisterType((*LogServiceError)(nil), "appengine.LogServiceError") proto.RegisterType((*UserAppLogLine)(nil), "appengine.UserAppLogLine") proto.RegisterType((*UserAppLogGroup)(nil), "appengine.UserAppLogGroup") proto.RegisterType((*FlushRequest)(nil), "appengine.FlushRequest") proto.RegisterType((*SetStatusRequest)(nil), "appengine.SetStatusRequest") proto.RegisterType((*LogOffset)(nil), "appengine.LogOffset") proto.RegisterType((*LogLine)(nil), "appengine.LogLine") proto.RegisterType((*RequestLog)(nil), "appengine.RequestLog") proto.RegisterType((*LogModuleVersion)(nil), "appengine.LogModuleVersion") proto.RegisterType((*LogReadRequest)(nil), "appengine.LogReadRequest") proto.RegisterType((*LogReadResponse)(nil), "appengine.LogReadResponse") proto.RegisterType((*LogUsageRecord)(nil), "appengine.LogUsageRecord") proto.RegisterType((*LogUsageRequest)(nil), "appengine.LogUsageRequest") proto.RegisterType((*LogUsageResponse)(nil), "appengine.LogUsageResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/log/log_service.proto", fileDescriptor_log_service_f054fd4b5012319d) } var fileDescriptor_log_service_f054fd4b5012319d = []byte{ // 1553 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x72, 0xdb, 0xc6, 0x15, 0x2e, 0x48, 0x51, 0x24, 0x0f, 0x49, 0x91, 0x5a, 0xcb, 0xce, 0xda, 0xae, 0x6b, 0x1a, 0x4e, 0x1c, 0xd6, 0x93, 0x48, 0x93, 0xa4, 0x57, 0xca, 0x95, 0xd3, 0x2a, 0x8e, 0x26, 0xb4, 0xd5, 0x40, 0x72, 0x3a, 0xd3, 0x1b, 0x0c, 0x0a, 0x1c, 0x81, 0x18, 0x2f, 0xb1, 0xc8, 0xee, 0xc2, 0x91, 0x72, 0xdb, 0xdb, 0x3e, 0x46, 0x1f, 0xa2, 0xaf, 0xd2, 0xb7, 0xe9, 0xec, 0xd9, 0x05, 0x44, 0x2a, 0x4d, 0xc6, 0x33, 0xb9, 0xe0, 0x10, 0xfb, 0x9d, 0x83, 0xdd, 0xf3, 0xf3, 0x9d, 0x6f, 0x01, 0xc7, 0xb9, 0x94, 0xb9, 0xc0, 0xc3, 0x5c, 0x8a, 0xa4, 0xcc, 0x0f, 0xa5, 0xca, 0x8f, 0x92, 0xaa, 0xc2, 0x32, 0x2f, 0x4a, 0x3c, 0x2a, 0x4a, 0x83, 0xaa, 0x4c, 0xc4, 0x91, 0x90, 0xb9, 0xfd, 0xc5, 0x1a, 0xd5, 0xbb, 0x22, 0xc5, 0xc3, 0x4a, 0x49, 0x23, 0xd9, 0xb0, 0xf5, 0x0c, 0x5f, 0xc3, 0x74, 0x29, 0xf3, 0x73, 0x67, 0x3e, 0x51, 0x4a, 0xaa, 0xf0, 0x4b, 0x18, 0xd2, 0xc3, 0x9f, 0x65, 0x86, 0x6c, 0x17, 0x3a, 0x67, 0xdf, 0xce, 0x7e, 0xc7, 0xee, 0xc0, 0xf4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6, 0x5a, 0xec, 0x25, 0xe3, 0x07, 0xa7, 0xd1, 0x23, 0x97, 0xd4, 0x20, 0x9a, 0x7a, 0xdc, 0x8b, 0x0e, 0x7d, 0xa0, 0xd4, 0x36, 0xb1, 0x56, 0xb8, 0xdc, 0xa8, 0x8f, 0x09, 0x6c, 0xa4, 0xe9, 0x29, 0x4c, 0x9a, 0x7d, 0x62, 0x59, 0x8a, 0x6b, 0x3f, 0xe2, 0xe3, 0x06, 0x3c, 0x2b, 0xc5, 0x75, 0x78, 0x45, 0x2a, 0xed, 0xab, 0xe4, 0x09, 0x77, 0x04, 0x3d, 0xda, 0xc8, 0x53, 0xee, 0xfe, 0x36, 0x8d, 0x36, 0xc8, 0x10, 0x39, 0x3f, 0xf6, 0x05, 0xf4, 0x75, 0xbd, 0x5e, 0x27, 0xea, 0xda, 0x33, 0xef, 0x57, 0x5e, 0x69, 0x3c, 0xbf, 0xea, 0xfd, 0xdd, 0x92, 0xf6, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x70, 0xd9, 0xa0, 0xf8, 0x48, 0x0d, 0x00, 0x00, }
mail
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/mail/mail_service.proto
syntax = "proto2"; option go_package = "mail"; package appengine; message MailServiceError { enum ErrorCode { OK = 0; INTERNAL_ERROR = 1; BAD_REQUEST = 2; UNAUTHORIZED_SENDER = 3; INVALID_ATTACHMENT_TYPE = 4; INVALID_HEADER_NAME = 5; INVALID_CONTENT_ID = 6; } } message MailAttachment { required string FileName = 1; required bytes Data = 2; optional string ContentID = 3; } message MailHeader { required string name = 1; required string value = 2; } message MailMessage { required string Sender = 1; optional string ReplyTo = 2; repeated string To = 3; repeated string Cc = 4; repeated string Bcc = 5; required string Subject = 6; optional string TextBody = 7; optional string HtmlBody = 8; repeated MailAttachment Attachment = 9; repeated MailHeader Header = 10; }
mail
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/mail/mail_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/mail/mail_service.proto package mail import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type MailServiceError_ErrorCode int32 const ( MailServiceError_OK MailServiceError_ErrorCode = 0 MailServiceError_INTERNAL_ERROR MailServiceError_ErrorCode = 1 MailServiceError_BAD_REQUEST MailServiceError_ErrorCode = 2 MailServiceError_UNAUTHORIZED_SENDER MailServiceError_ErrorCode = 3 MailServiceError_INVALID_ATTACHMENT_TYPE MailServiceError_ErrorCode = 4 MailServiceError_INVALID_HEADER_NAME MailServiceError_ErrorCode = 5 MailServiceError_INVALID_CONTENT_ID MailServiceError_ErrorCode = 6 ) var MailServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INTERNAL_ERROR", 2: "BAD_REQUEST", 3: "UNAUTHORIZED_SENDER", 4: "INVALID_ATTACHMENT_TYPE", 5: "INVALID_HEADER_NAME", 6: "INVALID_CONTENT_ID", } var MailServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INTERNAL_ERROR": 1, "BAD_REQUEST": 2, "UNAUTHORIZED_SENDER": 3, "INVALID_ATTACHMENT_TYPE": 4, "INVALID_HEADER_NAME": 5, "INVALID_CONTENT_ID": 6, } func (x MailServiceError_ErrorCode) Enum() *MailServiceError_ErrorCode { p := new(MailServiceError_ErrorCode) *p = x return p } func (x MailServiceError_ErrorCode) String() string { return proto.EnumName(MailServiceError_ErrorCode_name, int32(x)) } func (x *MailServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(MailServiceError_ErrorCode_value, data, "MailServiceError_ErrorCode") if err != nil { return err } *x = MailServiceError_ErrorCode(value) return nil } func (MailServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_mail_service_78722be3c4c01d17, []int{0, 0} } type MailServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *MailServiceError) Reset() { *m = MailServiceError{} } func (m *MailServiceError) String() string { return proto.CompactTextString(m) } func (*MailServiceError) ProtoMessage() {} func (*MailServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_mail_service_78722be3c4c01d17, []int{0} } func (m *MailServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MailServiceError.Unmarshal(m, b) } func (m *MailServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MailServiceError.Marshal(b, m, deterministic) } func (dst *MailServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_MailServiceError.Merge(dst, src) } func (m *MailServiceError) XXX_Size() int { return xxx_messageInfo_MailServiceError.Size(m) } func (m *MailServiceError) XXX_DiscardUnknown() { xxx_messageInfo_MailServiceError.DiscardUnknown(m) } var xxx_messageInfo_MailServiceError proto.InternalMessageInfo type MailAttachment struct { FileName *string `protobuf:"bytes,1,req,name=FileName" json:"FileName,omitempty"` Data []byte `protobuf:"bytes,2,req,name=Data" json:"Data,omitempty"` ContentID *string `protobuf:"bytes,3,opt,name=ContentID" json:"ContentID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *MailAttachment) Reset() { *m = MailAttachment{} } func (m *MailAttachment) String() string { return proto.CompactTextString(m) } func (*MailAttachment) ProtoMessage() {} func (*MailAttachment) Descriptor() ([]byte, []int) { return fileDescriptor_mail_service_78722be3c4c01d17, []int{1} } func (m *MailAttachment) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MailAttachment.Unmarshal(m, b) } func (m *MailAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MailAttachment.Marshal(b, m, deterministic) } func (dst *MailAttachment) XXX_Merge(src proto.Message) { xxx_messageInfo_MailAttachment.Merge(dst, src) } func (m *MailAttachment) XXX_Size() int { return xxx_messageInfo_MailAttachment.Size(m) } func (m *MailAttachment) XXX_DiscardUnknown() { xxx_messageInfo_MailAttachment.DiscardUnknown(m) } var xxx_messageInfo_MailAttachment proto.InternalMessageInfo func (m *MailAttachment) GetFileName() string { if m != nil && m.FileName != nil { return *m.FileName } return "" } func (m *MailAttachment) GetData() []byte { if m != nil { return m.Data } return nil } func (m *MailAttachment) GetContentID() string { if m != nil && m.ContentID != nil { return *m.ContentID } return "" } type MailHeader struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *MailHeader) Reset() { *m = MailHeader{} } func (m *MailHeader) String() string { return proto.CompactTextString(m) } func (*MailHeader) ProtoMessage() {} func (*MailHeader) Descriptor() ([]byte, []int) { return fileDescriptor_mail_service_78722be3c4c01d17, []int{2} } func (m *MailHeader) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MailHeader.Unmarshal(m, b) } func (m *MailHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MailHeader.Marshal(b, m, deterministic) } func (dst *MailHeader) XXX_Merge(src proto.Message) { xxx_messageInfo_MailHeader.Merge(dst, src) } func (m *MailHeader) XXX_Size() int { return xxx_messageInfo_MailHeader.Size(m) } func (m *MailHeader) XXX_DiscardUnknown() { xxx_messageInfo_MailHeader.DiscardUnknown(m) } var xxx_messageInfo_MailHeader proto.InternalMessageInfo func (m *MailHeader) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *MailHeader) GetValue() string { if m != nil && m.Value != nil { return *m.Value } return "" } type MailMessage struct { Sender *string `protobuf:"bytes,1,req,name=Sender" json:"Sender,omitempty"` ReplyTo *string `protobuf:"bytes,2,opt,name=ReplyTo" json:"ReplyTo,omitempty"` To []string `protobuf:"bytes,3,rep,name=To" json:"To,omitempty"` Cc []string `protobuf:"bytes,4,rep,name=Cc" json:"Cc,omitempty"` Bcc []string `protobuf:"bytes,5,rep,name=Bcc" json:"Bcc,omitempty"` Subject *string `protobuf:"bytes,6,req,name=Subject" json:"Subject,omitempty"` TextBody *string `protobuf:"bytes,7,opt,name=TextBody" json:"TextBody,omitempty"` HtmlBody *string `protobuf:"bytes,8,opt,name=HtmlBody" json:"HtmlBody,omitempty"` Attachment []*MailAttachment `protobuf:"bytes,9,rep,name=Attachment" json:"Attachment,omitempty"` Header []*MailHeader `protobuf:"bytes,10,rep,name=Header" json:"Header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *MailMessage) Reset() { *m = MailMessage{} } func (m *MailMessage) String() string { return proto.CompactTextString(m) } func (*MailMessage) ProtoMessage() {} func (*MailMessage) Descriptor() ([]byte, []int) { return fileDescriptor_mail_service_78722be3c4c01d17, []int{3} } func (m *MailMessage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MailMessage.Unmarshal(m, b) } func (m *MailMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MailMessage.Marshal(b, m, deterministic) } func (dst *MailMessage) XXX_Merge(src proto.Message) { xxx_messageInfo_MailMessage.Merge(dst, src) } func (m *MailMessage) XXX_Size() int { return xxx_messageInfo_MailMessage.Size(m) } func (m *MailMessage) XXX_DiscardUnknown() { xxx_messageInfo_MailMessage.DiscardUnknown(m) } var xxx_messageInfo_MailMessage proto.InternalMessageInfo func (m *MailMessage) GetSender() string { if m != nil && m.Sender != nil { return *m.Sender } return "" } func (m *MailMessage) GetReplyTo() string { if m != nil && m.ReplyTo != nil { return *m.ReplyTo } return "" } func (m *MailMessage) GetTo() []string { if m != nil { return m.To } return nil } func (m *MailMessage) GetCc() []string { if m != nil { return m.Cc } return nil } func (m *MailMessage) GetBcc() []string { if m != nil { return m.Bcc } return nil } func (m *MailMessage) GetSubject() string { if m != nil && m.Subject != nil { return *m.Subject } return "" } func (m *MailMessage) GetTextBody() string { if m != nil && m.TextBody != nil { return *m.TextBody } return "" } func (m *MailMessage) GetHtmlBody() string { if m != nil && m.HtmlBody != nil { return *m.HtmlBody } return "" } func (m *MailMessage) GetAttachment() []*MailAttachment { if m != nil { return m.Attachment } return nil } func (m *MailMessage) GetHeader() []*MailHeader { if m != nil { return m.Header } return nil } func init() { proto.RegisterType((*MailServiceError)(nil), "appengine.MailServiceError") proto.RegisterType((*MailAttachment)(nil), "appengine.MailAttachment") proto.RegisterType((*MailHeader)(nil), "appengine.MailHeader") proto.RegisterType((*MailMessage)(nil), "appengine.MailMessage") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/mail/mail_service.proto", fileDescriptor_mail_service_78722be3c4c01d17) } var fileDescriptor_mail_service_78722be3c4c01d17 = []byte{ // 480 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xcf, 0x6e, 0xd3, 0x40, 0x10, 0xc6, 0x89, 0x9d, 0xb8, 0xf5, 0x04, 0x05, 0x6b, 0x81, 0x76, 0xf9, 0x73, 0x88, 0x72, 0xca, 0x85, 0x44, 0xe2, 0x80, 0x84, 0xc4, 0xc5, 0xb1, 0x17, 0xc5, 0xa2, 0x71, 0x60, 0xb3, 0x41, 0xa2, 0x07, 0xac, 0xc5, 0x19, 0x19, 0x23, 0xc7, 0x1b, 0x39, 0xdb, 0x8a, 0x3e, 0x0d, 0x4f, 0xc0, 0x8d, 0x07, 0x44, 0x6b, 0xc7, 0x09, 0xf4, 0x62, 0xcd, 0x6f, 0xbf, 0xf9, 0x66, 0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x4f, 0x33, 0x79, 0x05, 0x4e, 0x13, 0x1a, 0x85, 0xda, 0xf6, 0xf4, 0x9e, 0xad, 0x11, 0xf9, 0xa1, 0x69, 0xe6, 0x5c, 0x77, 0xcd, 0x7d, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x4e, 0xd3, 0x01, 0x27, 0xd0, 0x02, 0x00, 0x00, }
modules
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/modules/modules_service.proto
syntax = "proto2"; option go_package = "modules"; package appengine; message ModulesServiceError { enum ErrorCode { OK = 0; INVALID_MODULE = 1; INVALID_VERSION = 2; INVALID_INSTANCES = 3; TRANSIENT_ERROR = 4; UNEXPECTED_STATE = 5; } } message GetModulesRequest { } message GetModulesResponse { repeated string module = 1; } message GetVersionsRequest { optional string module = 1; } message GetVersionsResponse { repeated string version = 1; } message GetDefaultVersionRequest { optional string module = 1; } message GetDefaultVersionResponse { required string version = 1; } message GetNumInstancesRequest { optional string module = 1; optional string version = 2; } message GetNumInstancesResponse { required int64 instances = 1; } message SetNumInstancesRequest { optional string module = 1; optional string version = 2; required int64 instances = 3; } message SetNumInstancesResponse {} message StartModuleRequest { required string module = 1; required string version = 2; } message StartModuleResponse {} message StopModuleRequest { optional string module = 1; optional string version = 2; } message StopModuleResponse {} message GetHostnameRequest { optional string module = 1; optional string version = 2; optional string instance = 3; } message GetHostnameResponse { required string hostname = 1; }
modules
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/modules/modules_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/modules/modules_service.proto package modules import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ModulesServiceError_ErrorCode int32 const ( ModulesServiceError_OK ModulesServiceError_ErrorCode = 0 ModulesServiceError_INVALID_MODULE ModulesServiceError_ErrorCode = 1 ModulesServiceError_INVALID_VERSION ModulesServiceError_ErrorCode = 2 ModulesServiceError_INVALID_INSTANCES ModulesServiceError_ErrorCode = 3 ModulesServiceError_TRANSIENT_ERROR ModulesServiceError_ErrorCode = 4 ModulesServiceError_UNEXPECTED_STATE ModulesServiceError_ErrorCode = 5 ) var ModulesServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INVALID_MODULE", 2: "INVALID_VERSION", 3: "INVALID_INSTANCES", 4: "TRANSIENT_ERROR", 5: "UNEXPECTED_STATE", } var ModulesServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INVALID_MODULE": 1, "INVALID_VERSION": 2, "INVALID_INSTANCES": 3, "TRANSIENT_ERROR": 4, "UNEXPECTED_STATE": 5, } func (x ModulesServiceError_ErrorCode) Enum() *ModulesServiceError_ErrorCode { p := new(ModulesServiceError_ErrorCode) *p = x return p } func (x ModulesServiceError_ErrorCode) String() string { return proto.EnumName(ModulesServiceError_ErrorCode_name, int32(x)) } func (x *ModulesServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ModulesServiceError_ErrorCode_value, data, "ModulesServiceError_ErrorCode") if err != nil { return err } *x = ModulesServiceError_ErrorCode(value) return nil } func (ModulesServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{0, 0} } type ModulesServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ModulesServiceError) Reset() { *m = ModulesServiceError{} } func (m *ModulesServiceError) String() string { return proto.CompactTextString(m) } func (*ModulesServiceError) ProtoMessage() {} func (*ModulesServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{0} } func (m *ModulesServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ModulesServiceError.Unmarshal(m, b) } func (m *ModulesServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ModulesServiceError.Marshal(b, m, deterministic) } func (dst *ModulesServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_ModulesServiceError.Merge(dst, src) } func (m *ModulesServiceError) XXX_Size() int { return xxx_messageInfo_ModulesServiceError.Size(m) } func (m *ModulesServiceError) XXX_DiscardUnknown() { xxx_messageInfo_ModulesServiceError.DiscardUnknown(m) } var xxx_messageInfo_ModulesServiceError proto.InternalMessageInfo type GetModulesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetModulesRequest) Reset() { *m = GetModulesRequest{} } func (m *GetModulesRequest) String() string { return proto.CompactTextString(m) } func (*GetModulesRequest) ProtoMessage() {} func (*GetModulesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{1} } func (m *GetModulesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetModulesRequest.Unmarshal(m, b) } func (m *GetModulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetModulesRequest.Marshal(b, m, deterministic) } func (dst *GetModulesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetModulesRequest.Merge(dst, src) } func (m *GetModulesRequest) XXX_Size() int { return xxx_messageInfo_GetModulesRequest.Size(m) } func (m *GetModulesRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetModulesRequest.DiscardUnknown(m) } var xxx_messageInfo_GetModulesRequest proto.InternalMessageInfo type GetModulesResponse struct { Module []string `protobuf:"bytes,1,rep,name=module" json:"module,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetModulesResponse) Reset() { *m = GetModulesResponse{} } func (m *GetModulesResponse) String() string { return proto.CompactTextString(m) } func (*GetModulesResponse) ProtoMessage() {} func (*GetModulesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{2} } func (m *GetModulesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetModulesResponse.Unmarshal(m, b) } func (m *GetModulesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetModulesResponse.Marshal(b, m, deterministic) } func (dst *GetModulesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetModulesResponse.Merge(dst, src) } func (m *GetModulesResponse) XXX_Size() int { return xxx_messageInfo_GetModulesResponse.Size(m) } func (m *GetModulesResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetModulesResponse.DiscardUnknown(m) } var xxx_messageInfo_GetModulesResponse proto.InternalMessageInfo func (m *GetModulesResponse) GetModule() []string { if m != nil { return m.Module } return nil } type GetVersionsRequest struct { Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetVersionsRequest) Reset() { *m = GetVersionsRequest{} } func (m *GetVersionsRequest) String() string { return proto.CompactTextString(m) } func (*GetVersionsRequest) ProtoMessage() {} func (*GetVersionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{3} } func (m *GetVersionsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetVersionsRequest.Unmarshal(m, b) } func (m *GetVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetVersionsRequest.Marshal(b, m, deterministic) } func (dst *GetVersionsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetVersionsRequest.Merge(dst, src) } func (m *GetVersionsRequest) XXX_Size() int { return xxx_messageInfo_GetVersionsRequest.Size(m) } func (m *GetVersionsRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetVersionsRequest.DiscardUnknown(m) } var xxx_messageInfo_GetVersionsRequest proto.InternalMessageInfo func (m *GetVersionsRequest) GetModule() string { if m != nil && m.Module != nil { return *m.Module } return "" } type GetVersionsResponse struct { Version []string `protobuf:"bytes,1,rep,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetVersionsResponse) Reset() { *m = GetVersionsResponse{} } func (m *GetVersionsResponse) String() string { return proto.CompactTextString(m) } func (*GetVersionsResponse) ProtoMessage() {} func (*GetVersionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{4} } func (m *GetVersionsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetVersionsResponse.Unmarshal(m, b) } func (m *GetVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetVersionsResponse.Marshal(b, m, deterministic) } func (dst *GetVersionsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetVersionsResponse.Merge(dst, src) } func (m *GetVersionsResponse) XXX_Size() int { return xxx_messageInfo_GetVersionsResponse.Size(m) } func (m *GetVersionsResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetVersionsResponse.DiscardUnknown(m) } var xxx_messageInfo_GetVersionsResponse proto.InternalMessageInfo func (m *GetVersionsResponse) GetVersion() []string { if m != nil { return m.Version } return nil } type GetDefaultVersionRequest struct { Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetDefaultVersionRequest) Reset() { *m = GetDefaultVersionRequest{} } func (m *GetDefaultVersionRequest) String() string { return proto.CompactTextString(m) } func (*GetDefaultVersionRequest) ProtoMessage() {} func (*GetDefaultVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{5} } func (m *GetDefaultVersionRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetDefaultVersionRequest.Unmarshal(m, b) } func (m *GetDefaultVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetDefaultVersionRequest.Marshal(b, m, deterministic) } func (dst *GetDefaultVersionRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetDefaultVersionRequest.Merge(dst, src) } func (m *GetDefaultVersionRequest) XXX_Size() int { return xxx_messageInfo_GetDefaultVersionRequest.Size(m) } func (m *GetDefaultVersionRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetDefaultVersionRequest.DiscardUnknown(m) } var xxx_messageInfo_GetDefaultVersionRequest proto.InternalMessageInfo func (m *GetDefaultVersionRequest) GetModule() string { if m != nil && m.Module != nil { return *m.Module } return "" } type GetDefaultVersionResponse struct { Version *string `protobuf:"bytes,1,req,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetDefaultVersionResponse) Reset() { *m = GetDefaultVersionResponse{} } func (m *GetDefaultVersionResponse) String() string { return proto.CompactTextString(m) } func (*GetDefaultVersionResponse) ProtoMessage() {} func (*GetDefaultVersionResponse) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{6} } func (m *GetDefaultVersionResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetDefaultVersionResponse.Unmarshal(m, b) } func (m *GetDefaultVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetDefaultVersionResponse.Marshal(b, m, deterministic) } func (dst *GetDefaultVersionResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetDefaultVersionResponse.Merge(dst, src) } func (m *GetDefaultVersionResponse) XXX_Size() int { return xxx_messageInfo_GetDefaultVersionResponse.Size(m) } func (m *GetDefaultVersionResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetDefaultVersionResponse.DiscardUnknown(m) } var xxx_messageInfo_GetDefaultVersionResponse proto.InternalMessageInfo func (m *GetDefaultVersionResponse) GetVersion() string { if m != nil && m.Version != nil { return *m.Version } return "" } type GetNumInstancesRequest struct { Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"` Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetNumInstancesRequest) Reset() { *m = GetNumInstancesRequest{} } func (m *GetNumInstancesRequest) String() string { return proto.CompactTextString(m) } func (*GetNumInstancesRequest) ProtoMessage() {} func (*GetNumInstancesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{7} } func (m *GetNumInstancesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetNumInstancesRequest.Unmarshal(m, b) } func (m *GetNumInstancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetNumInstancesRequest.Marshal(b, m, deterministic) } func (dst *GetNumInstancesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetNumInstancesRequest.Merge(dst, src) } func (m *GetNumInstancesRequest) XXX_Size() int { return xxx_messageInfo_GetNumInstancesRequest.Size(m) } func (m *GetNumInstancesRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetNumInstancesRequest.DiscardUnknown(m) } var xxx_messageInfo_GetNumInstancesRequest proto.InternalMessageInfo func (m *GetNumInstancesRequest) GetModule() string { if m != nil && m.Module != nil { return *m.Module } return "" } func (m *GetNumInstancesRequest) GetVersion() string { if m != nil && m.Version != nil { return *m.Version } return "" } type GetNumInstancesResponse struct { Instances *int64 `protobuf:"varint,1,req,name=instances" json:"instances,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetNumInstancesResponse) Reset() { *m = GetNumInstancesResponse{} } func (m *GetNumInstancesResponse) String() string { return proto.CompactTextString(m) } func (*GetNumInstancesResponse) ProtoMessage() {} func (*GetNumInstancesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{8} } func (m *GetNumInstancesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetNumInstancesResponse.Unmarshal(m, b) } func (m *GetNumInstancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetNumInstancesResponse.Marshal(b, m, deterministic) } func (dst *GetNumInstancesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetNumInstancesResponse.Merge(dst, src) } func (m *GetNumInstancesResponse) XXX_Size() int { return xxx_messageInfo_GetNumInstancesResponse.Size(m) } func (m *GetNumInstancesResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetNumInstancesResponse.DiscardUnknown(m) } var xxx_messageInfo_GetNumInstancesResponse proto.InternalMessageInfo func (m *GetNumInstancesResponse) GetInstances() int64 { if m != nil && m.Instances != nil { return *m.Instances } return 0 } type SetNumInstancesRequest struct { Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"` Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` Instances *int64 `protobuf:"varint,3,req,name=instances" json:"instances,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SetNumInstancesRequest) Reset() { *m = SetNumInstancesRequest{} } func (m *SetNumInstancesRequest) String() string { return proto.CompactTextString(m) } func (*SetNumInstancesRequest) ProtoMessage() {} func (*SetNumInstancesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{9} } func (m *SetNumInstancesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SetNumInstancesRequest.Unmarshal(m, b) } func (m *SetNumInstancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SetNumInstancesRequest.Marshal(b, m, deterministic) } func (dst *SetNumInstancesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SetNumInstancesRequest.Merge(dst, src) } func (m *SetNumInstancesRequest) XXX_Size() int { return xxx_messageInfo_SetNumInstancesRequest.Size(m) } func (m *SetNumInstancesRequest) XXX_DiscardUnknown() { xxx_messageInfo_SetNumInstancesRequest.DiscardUnknown(m) } var xxx_messageInfo_SetNumInstancesRequest proto.InternalMessageInfo func (m *SetNumInstancesRequest) GetModule() string { if m != nil && m.Module != nil { return *m.Module } return "" } func (m *SetNumInstancesRequest) GetVersion() string { if m != nil && m.Version != nil { return *m.Version } return "" } func (m *SetNumInstancesRequest) GetInstances() int64 { if m != nil && m.Instances != nil { return *m.Instances } return 0 } type SetNumInstancesResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SetNumInstancesResponse) Reset() { *m = SetNumInstancesResponse{} } func (m *SetNumInstancesResponse) String() string { return proto.CompactTextString(m) } func (*SetNumInstancesResponse) ProtoMessage() {} func (*SetNumInstancesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{10} } func (m *SetNumInstancesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SetNumInstancesResponse.Unmarshal(m, b) } func (m *SetNumInstancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SetNumInstancesResponse.Marshal(b, m, deterministic) } func (dst *SetNumInstancesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_SetNumInstancesResponse.Merge(dst, src) } func (m *SetNumInstancesResponse) XXX_Size() int { return xxx_messageInfo_SetNumInstancesResponse.Size(m) } func (m *SetNumInstancesResponse) XXX_DiscardUnknown() { xxx_messageInfo_SetNumInstancesResponse.DiscardUnknown(m) } var xxx_messageInfo_SetNumInstancesResponse proto.InternalMessageInfo type StartModuleRequest struct { Module *string `protobuf:"bytes,1,req,name=module" json:"module,omitempty"` Version *string `protobuf:"bytes,2,req,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StartModuleRequest) Reset() { *m = StartModuleRequest{} } func (m *StartModuleRequest) String() string { return proto.CompactTextString(m) } func (*StartModuleRequest) ProtoMessage() {} func (*StartModuleRequest) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{11} } func (m *StartModuleRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StartModuleRequest.Unmarshal(m, b) } func (m *StartModuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StartModuleRequest.Marshal(b, m, deterministic) } func (dst *StartModuleRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_StartModuleRequest.Merge(dst, src) } func (m *StartModuleRequest) XXX_Size() int { return xxx_messageInfo_StartModuleRequest.Size(m) } func (m *StartModuleRequest) XXX_DiscardUnknown() { xxx_messageInfo_StartModuleRequest.DiscardUnknown(m) } var xxx_messageInfo_StartModuleRequest proto.InternalMessageInfo func (m *StartModuleRequest) GetModule() string { if m != nil && m.Module != nil { return *m.Module } return "" } func (m *StartModuleRequest) GetVersion() string { if m != nil && m.Version != nil { return *m.Version } return "" } type StartModuleResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StartModuleResponse) Reset() { *m = StartModuleResponse{} } func (m *StartModuleResponse) String() string { return proto.CompactTextString(m) } func (*StartModuleResponse) ProtoMessage() {} func (*StartModuleResponse) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{12} } func (m *StartModuleResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StartModuleResponse.Unmarshal(m, b) } func (m *StartModuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StartModuleResponse.Marshal(b, m, deterministic) } func (dst *StartModuleResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_StartModuleResponse.Merge(dst, src) } func (m *StartModuleResponse) XXX_Size() int { return xxx_messageInfo_StartModuleResponse.Size(m) } func (m *StartModuleResponse) XXX_DiscardUnknown() { xxx_messageInfo_StartModuleResponse.DiscardUnknown(m) } var xxx_messageInfo_StartModuleResponse proto.InternalMessageInfo type StopModuleRequest struct { Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"` Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StopModuleRequest) Reset() { *m = StopModuleRequest{} } func (m *StopModuleRequest) String() string { return proto.CompactTextString(m) } func (*StopModuleRequest) ProtoMessage() {} func (*StopModuleRequest) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{13} } func (m *StopModuleRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StopModuleRequest.Unmarshal(m, b) } func (m *StopModuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StopModuleRequest.Marshal(b, m, deterministic) } func (dst *StopModuleRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_StopModuleRequest.Merge(dst, src) } func (m *StopModuleRequest) XXX_Size() int { return xxx_messageInfo_StopModuleRequest.Size(m) } func (m *StopModuleRequest) XXX_DiscardUnknown() { xxx_messageInfo_StopModuleRequest.DiscardUnknown(m) } var xxx_messageInfo_StopModuleRequest proto.InternalMessageInfo func (m *StopModuleRequest) GetModule() string { if m != nil && m.Module != nil { return *m.Module } return "" } func (m *StopModuleRequest) GetVersion() string { if m != nil && m.Version != nil { return *m.Version } return "" } type StopModuleResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StopModuleResponse) Reset() { *m = StopModuleResponse{} } func (m *StopModuleResponse) String() string { return proto.CompactTextString(m) } func (*StopModuleResponse) ProtoMessage() {} func (*StopModuleResponse) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{14} } func (m *StopModuleResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StopModuleResponse.Unmarshal(m, b) } func (m *StopModuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StopModuleResponse.Marshal(b, m, deterministic) } func (dst *StopModuleResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_StopModuleResponse.Merge(dst, src) } func (m *StopModuleResponse) XXX_Size() int { return xxx_messageInfo_StopModuleResponse.Size(m) } func (m *StopModuleResponse) XXX_DiscardUnknown() { xxx_messageInfo_StopModuleResponse.DiscardUnknown(m) } var xxx_messageInfo_StopModuleResponse proto.InternalMessageInfo type GetHostnameRequest struct { Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"` Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` Instance *string `protobuf:"bytes,3,opt,name=instance" json:"instance,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetHostnameRequest) Reset() { *m = GetHostnameRequest{} } func (m *GetHostnameRequest) String() string { return proto.CompactTextString(m) } func (*GetHostnameRequest) ProtoMessage() {} func (*GetHostnameRequest) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{15} } func (m *GetHostnameRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetHostnameRequest.Unmarshal(m, b) } func (m *GetHostnameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetHostnameRequest.Marshal(b, m, deterministic) } func (dst *GetHostnameRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetHostnameRequest.Merge(dst, src) } func (m *GetHostnameRequest) XXX_Size() int { return xxx_messageInfo_GetHostnameRequest.Size(m) } func (m *GetHostnameRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetHostnameRequest.DiscardUnknown(m) } var xxx_messageInfo_GetHostnameRequest proto.InternalMessageInfo func (m *GetHostnameRequest) GetModule() string { if m != nil && m.Module != nil { return *m.Module } return "" } func (m *GetHostnameRequest) GetVersion() string { if m != nil && m.Version != nil { return *m.Version } return "" } func (m *GetHostnameRequest) GetInstance() string { if m != nil && m.Instance != nil { return *m.Instance } return "" } type GetHostnameResponse struct { Hostname *string `protobuf:"bytes,1,req,name=hostname" json:"hostname,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetHostnameResponse) Reset() { *m = GetHostnameResponse{} } func (m *GetHostnameResponse) String() string { return proto.CompactTextString(m) } func (*GetHostnameResponse) ProtoMessage() {} func (*GetHostnameResponse) Descriptor() ([]byte, []int) { return fileDescriptor_modules_service_9cd3bffe4e91c59a, []int{16} } func (m *GetHostnameResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetHostnameResponse.Unmarshal(m, b) } func (m *GetHostnameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetHostnameResponse.Marshal(b, m, deterministic) } func (dst *GetHostnameResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetHostnameResponse.Merge(dst, src) } func (m *GetHostnameResponse) XXX_Size() int { return xxx_messageInfo_GetHostnameResponse.Size(m) } func (m *GetHostnameResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetHostnameResponse.DiscardUnknown(m) } var xxx_messageInfo_GetHostnameResponse proto.InternalMessageInfo func (m *GetHostnameResponse) GetHostname() string { if m != nil && m.Hostname != nil { return *m.Hostname } return "" } func init() { proto.RegisterType((*ModulesServiceError)(nil), "appengine.ModulesServiceError") proto.RegisterType((*GetModulesRequest)(nil), "appengine.GetModulesRequest") proto.RegisterType((*GetModulesResponse)(nil), "appengine.GetModulesResponse") proto.RegisterType((*GetVersionsRequest)(nil), "appengine.GetVersionsRequest") proto.RegisterType((*GetVersionsResponse)(nil), "appengine.GetVersionsResponse") proto.RegisterType((*GetDefaultVersionRequest)(nil), "appengine.GetDefaultVersionRequest") proto.RegisterType((*GetDefaultVersionResponse)(nil), "appengine.GetDefaultVersionResponse") proto.RegisterType((*GetNumInstancesRequest)(nil), "appengine.GetNumInstancesRequest") proto.RegisterType((*GetNumInstancesResponse)(nil), "appengine.GetNumInstancesResponse") proto.RegisterType((*SetNumInstancesRequest)(nil), "appengine.SetNumInstancesRequest") proto.RegisterType((*SetNumInstancesResponse)(nil), "appengine.SetNumInstancesResponse") proto.RegisterType((*StartModuleRequest)(nil), "appengine.StartModuleRequest") proto.RegisterType((*StartModuleResponse)(nil), "appengine.StartModuleResponse") proto.RegisterType((*StopModuleRequest)(nil), "appengine.StopModuleRequest") proto.RegisterType((*StopModuleResponse)(nil), "appengine.StopModuleResponse") proto.RegisterType((*GetHostnameRequest)(nil), "appengine.GetHostnameRequest") proto.RegisterType((*GetHostnameResponse)(nil), "appengine.GetHostnameResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/modules/modules_service.proto", fileDescriptor_modules_service_9cd3bffe4e91c59a) } var fileDescriptor_modules_service_9cd3bffe4e91c59a = []byte{ // 457 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xc1, 0x6f, 0xd3, 0x30, 0x14, 0xc6, 0x69, 0x02, 0xdb, 0xf2, 0x0e, 0x90, 0x3a, 0x5b, 0xd7, 0x4d,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0x1a, 0x63, 0xe0, 0xdf, 0xea, 0xfb, 0xf8, 0x41, 0x28, 0xcd, 0xb3, 0xf9, 0xff, 0xd3, 0xc9, 0x29, 0x1c, 0xd8, 0x59, 0x75, 0xdd, 0x7a, 0x69, 0x55, 0x87, 0xaf, 0xeb, 0x5b, 0xbc, 0xee, 0x61, 0xbe, 0xec, 0x29, 0x1c, 0xdc, 0x18, 0xcd, 0x8c, 0x68, 0x55, 0x9f, 0x79, 0x5f, 0xf7, 0xcd, 0x5f, 0xe2, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0xbc, 0xe0, 0x61, 0x5c, 0x04, 0x00, 0x00, }
app_identity
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/app_identity/app_identity_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/app_identity/app_identity_service.proto package app_identity import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type AppIdentityServiceError_ErrorCode int32 const ( AppIdentityServiceError_SUCCESS AppIdentityServiceError_ErrorCode = 0 AppIdentityServiceError_UNKNOWN_SCOPE AppIdentityServiceError_ErrorCode = 9 AppIdentityServiceError_BLOB_TOO_LARGE AppIdentityServiceError_ErrorCode = 1000 AppIdentityServiceError_DEADLINE_EXCEEDED AppIdentityServiceError_ErrorCode = 1001 AppIdentityServiceError_NOT_A_VALID_APP AppIdentityServiceError_ErrorCode = 1002 AppIdentityServiceError_UNKNOWN_ERROR AppIdentityServiceError_ErrorCode = 1003 AppIdentityServiceError_NOT_ALLOWED AppIdentityServiceError_ErrorCode = 1005 AppIdentityServiceError_NOT_IMPLEMENTED AppIdentityServiceError_ErrorCode = 1006 ) var AppIdentityServiceError_ErrorCode_name = map[int32]string{ 0: "SUCCESS", 9: "UNKNOWN_SCOPE", 1000: "BLOB_TOO_LARGE", 1001: "DEADLINE_EXCEEDED", 1002: "NOT_A_VALID_APP", 1003: "UNKNOWN_ERROR", 1005: "NOT_ALLOWED", 1006: "NOT_IMPLEMENTED", } var AppIdentityServiceError_ErrorCode_value = map[string]int32{ "SUCCESS": 0, "UNKNOWN_SCOPE": 9, "BLOB_TOO_LARGE": 1000, "DEADLINE_EXCEEDED": 1001, "NOT_A_VALID_APP": 1002, "UNKNOWN_ERROR": 1003, "NOT_ALLOWED": 1005, "NOT_IMPLEMENTED": 1006, } func (x AppIdentityServiceError_ErrorCode) Enum() *AppIdentityServiceError_ErrorCode { p := new(AppIdentityServiceError_ErrorCode) *p = x return p } func (x AppIdentityServiceError_ErrorCode) String() string { return proto.EnumName(AppIdentityServiceError_ErrorCode_name, int32(x)) } func (x *AppIdentityServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(AppIdentityServiceError_ErrorCode_value, data, "AppIdentityServiceError_ErrorCode") if err != nil { return err } *x = AppIdentityServiceError_ErrorCode(value) return nil } func (AppIdentityServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{0, 0} } type AppIdentityServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AppIdentityServiceError) Reset() { *m = AppIdentityServiceError{} } func (m *AppIdentityServiceError) String() string { return proto.CompactTextString(m) } func (*AppIdentityServiceError) ProtoMessage() {} func (*AppIdentityServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{0} } func (m *AppIdentityServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AppIdentityServiceError.Unmarshal(m, b) } func (m *AppIdentityServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AppIdentityServiceError.Marshal(b, m, deterministic) } func (dst *AppIdentityServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_AppIdentityServiceError.Merge(dst, src) } func (m *AppIdentityServiceError) XXX_Size() int { return xxx_messageInfo_AppIdentityServiceError.Size(m) } func (m *AppIdentityServiceError) XXX_DiscardUnknown() { xxx_messageInfo_AppIdentityServiceError.DiscardUnknown(m) } var xxx_messageInfo_AppIdentityServiceError proto.InternalMessageInfo type SignForAppRequest struct { BytesToSign []byte `protobuf:"bytes,1,opt,name=bytes_to_sign,json=bytesToSign" json:"bytes_to_sign,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SignForAppRequest) Reset() { *m = SignForAppRequest{} } func (m *SignForAppRequest) String() string { return proto.CompactTextString(m) } func (*SignForAppRequest) ProtoMessage() {} func (*SignForAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{1} } func (m *SignForAppRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SignForAppRequest.Unmarshal(m, b) } func (m *SignForAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SignForAppRequest.Marshal(b, m, deterministic) } func (dst *SignForAppRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SignForAppRequest.Merge(dst, src) } func (m *SignForAppRequest) XXX_Size() int { return xxx_messageInfo_SignForAppRequest.Size(m) } func (m *SignForAppRequest) XXX_DiscardUnknown() { xxx_messageInfo_SignForAppRequest.DiscardUnknown(m) } var xxx_messageInfo_SignForAppRequest proto.InternalMessageInfo func (m *SignForAppRequest) GetBytesToSign() []byte { if m != nil { return m.BytesToSign } return nil } type SignForAppResponse struct { KeyName *string `protobuf:"bytes,1,opt,name=key_name,json=keyName" json:"key_name,omitempty"` SignatureBytes []byte `protobuf:"bytes,2,opt,name=signature_bytes,json=signatureBytes" json:"signature_bytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SignForAppResponse) Reset() { *m = SignForAppResponse{} } func (m *SignForAppResponse) String() string { return proto.CompactTextString(m) } func (*SignForAppResponse) ProtoMessage() {} func (*SignForAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{2} } func (m *SignForAppResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SignForAppResponse.Unmarshal(m, b) } func (m *SignForAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SignForAppResponse.Marshal(b, m, deterministic) } func (dst *SignForAppResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_SignForAppResponse.Merge(dst, src) } func (m *SignForAppResponse) XXX_Size() int { return xxx_messageInfo_SignForAppResponse.Size(m) } func (m *SignForAppResponse) XXX_DiscardUnknown() { xxx_messageInfo_SignForAppResponse.DiscardUnknown(m) } var xxx_messageInfo_SignForAppResponse proto.InternalMessageInfo func (m *SignForAppResponse) GetKeyName() string { if m != nil && m.KeyName != nil { return *m.KeyName } return "" } func (m *SignForAppResponse) GetSignatureBytes() []byte { if m != nil { return m.SignatureBytes } return nil } type GetPublicCertificateForAppRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetPublicCertificateForAppRequest) Reset() { *m = GetPublicCertificateForAppRequest{} } func (m *GetPublicCertificateForAppRequest) String() string { return proto.CompactTextString(m) } func (*GetPublicCertificateForAppRequest) ProtoMessage() {} func (*GetPublicCertificateForAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{3} } func (m *GetPublicCertificateForAppRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetPublicCertificateForAppRequest.Unmarshal(m, b) } func (m *GetPublicCertificateForAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetPublicCertificateForAppRequest.Marshal(b, m, deterministic) } func (dst *GetPublicCertificateForAppRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetPublicCertificateForAppRequest.Merge(dst, src) } func (m *GetPublicCertificateForAppRequest) XXX_Size() int { return xxx_messageInfo_GetPublicCertificateForAppRequest.Size(m) } func (m *GetPublicCertificateForAppRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetPublicCertificateForAppRequest.DiscardUnknown(m) } var xxx_messageInfo_GetPublicCertificateForAppRequest proto.InternalMessageInfo type PublicCertificate struct { KeyName *string `protobuf:"bytes,1,opt,name=key_name,json=keyName" json:"key_name,omitempty"` X509CertificatePem *string `protobuf:"bytes,2,opt,name=x509_certificate_pem,json=x509CertificatePem" json:"x509_certificate_pem,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PublicCertificate) Reset() { *m = PublicCertificate{} } func (m *PublicCertificate) String() string { return proto.CompactTextString(m) } func (*PublicCertificate) ProtoMessage() {} func (*PublicCertificate) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{4} } func (m *PublicCertificate) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PublicCertificate.Unmarshal(m, b) } func (m *PublicCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PublicCertificate.Marshal(b, m, deterministic) } func (dst *PublicCertificate) XXX_Merge(src proto.Message) { xxx_messageInfo_PublicCertificate.Merge(dst, src) } func (m *PublicCertificate) XXX_Size() int { return xxx_messageInfo_PublicCertificate.Size(m) } func (m *PublicCertificate) XXX_DiscardUnknown() { xxx_messageInfo_PublicCertificate.DiscardUnknown(m) } var xxx_messageInfo_PublicCertificate proto.InternalMessageInfo func (m *PublicCertificate) GetKeyName() string { if m != nil && m.KeyName != nil { return *m.KeyName } return "" } func (m *PublicCertificate) GetX509CertificatePem() string { if m != nil && m.X509CertificatePem != nil { return *m.X509CertificatePem } return "" } type GetPublicCertificateForAppResponse struct { PublicCertificateList []*PublicCertificate `protobuf:"bytes,1,rep,name=public_certificate_list,json=publicCertificateList" json:"public_certificate_list,omitempty"` MaxClientCacheTimeInSecond *int64 `protobuf:"varint,2,opt,name=max_client_cache_time_in_second,json=maxClientCacheTimeInSecond" json:"max_client_cache_time_in_second,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetPublicCertificateForAppResponse) Reset() { *m = GetPublicCertificateForAppResponse{} } func (m *GetPublicCertificateForAppResponse) String() string { return proto.CompactTextString(m) } func (*GetPublicCertificateForAppResponse) ProtoMessage() {} func (*GetPublicCertificateForAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{5} } func (m *GetPublicCertificateForAppResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetPublicCertificateForAppResponse.Unmarshal(m, b) } func (m *GetPublicCertificateForAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetPublicCertificateForAppResponse.Marshal(b, m, deterministic) } func (dst *GetPublicCertificateForAppResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetPublicCertificateForAppResponse.Merge(dst, src) } func (m *GetPublicCertificateForAppResponse) XXX_Size() int { return xxx_messageInfo_GetPublicCertificateForAppResponse.Size(m) } func (m *GetPublicCertificateForAppResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetPublicCertificateForAppResponse.DiscardUnknown(m) } var xxx_messageInfo_GetPublicCertificateForAppResponse proto.InternalMessageInfo func (m *GetPublicCertificateForAppResponse) GetPublicCertificateList() []*PublicCertificate { if m != nil { return m.PublicCertificateList } return nil } func (m *GetPublicCertificateForAppResponse) GetMaxClientCacheTimeInSecond() int64 { if m != nil && m.MaxClientCacheTimeInSecond != nil { return *m.MaxClientCacheTimeInSecond } return 0 } type GetServiceAccountNameRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetServiceAccountNameRequest) Reset() { *m = GetServiceAccountNameRequest{} } func (m *GetServiceAccountNameRequest) String() string { return proto.CompactTextString(m) } func (*GetServiceAccountNameRequest) ProtoMessage() {} func (*GetServiceAccountNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{6} } func (m *GetServiceAccountNameRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetServiceAccountNameRequest.Unmarshal(m, b) } func (m *GetServiceAccountNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetServiceAccountNameRequest.Marshal(b, m, deterministic) } func (dst *GetServiceAccountNameRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetServiceAccountNameRequest.Merge(dst, src) } func (m *GetServiceAccountNameRequest) XXX_Size() int { return xxx_messageInfo_GetServiceAccountNameRequest.Size(m) } func (m *GetServiceAccountNameRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetServiceAccountNameRequest.DiscardUnknown(m) } var xxx_messageInfo_GetServiceAccountNameRequest proto.InternalMessageInfo type GetServiceAccountNameResponse struct { ServiceAccountName *string `protobuf:"bytes,1,opt,name=service_account_name,json=serviceAccountName" json:"service_account_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetServiceAccountNameResponse) Reset() { *m = GetServiceAccountNameResponse{} } func (m *GetServiceAccountNameResponse) String() string { return proto.CompactTextString(m) } func (*GetServiceAccountNameResponse) ProtoMessage() {} func (*GetServiceAccountNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{7} } func (m *GetServiceAccountNameResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetServiceAccountNameResponse.Unmarshal(m, b) } func (m *GetServiceAccountNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetServiceAccountNameResponse.Marshal(b, m, deterministic) } func (dst *GetServiceAccountNameResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetServiceAccountNameResponse.Merge(dst, src) } func (m *GetServiceAccountNameResponse) XXX_Size() int { return xxx_messageInfo_GetServiceAccountNameResponse.Size(m) } func (m *GetServiceAccountNameResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetServiceAccountNameResponse.DiscardUnknown(m) } var xxx_messageInfo_GetServiceAccountNameResponse proto.InternalMessageInfo func (m *GetServiceAccountNameResponse) GetServiceAccountName() string { if m != nil && m.ServiceAccountName != nil { return *m.ServiceAccountName } return "" } type GetAccessTokenRequest struct { Scope []string `protobuf:"bytes,1,rep,name=scope" json:"scope,omitempty"` ServiceAccountId *int64 `protobuf:"varint,2,opt,name=service_account_id,json=serviceAccountId" json:"service_account_id,omitempty"` ServiceAccountName *string `protobuf:"bytes,3,opt,name=service_account_name,json=serviceAccountName" json:"service_account_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetAccessTokenRequest) Reset() { *m = GetAccessTokenRequest{} } func (m *GetAccessTokenRequest) String() string { return proto.CompactTextString(m) } func (*GetAccessTokenRequest) ProtoMessage() {} func (*GetAccessTokenRequest) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{8} } func (m *GetAccessTokenRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetAccessTokenRequest.Unmarshal(m, b) } func (m *GetAccessTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetAccessTokenRequest.Marshal(b, m, deterministic) } func (dst *GetAccessTokenRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetAccessTokenRequest.Merge(dst, src) } func (m *GetAccessTokenRequest) XXX_Size() int { return xxx_messageInfo_GetAccessTokenRequest.Size(m) } func (m *GetAccessTokenRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetAccessTokenRequest.DiscardUnknown(m) } var xxx_messageInfo_GetAccessTokenRequest proto.InternalMessageInfo func (m *GetAccessTokenRequest) GetScope() []string { if m != nil { return m.Scope } return nil } func (m *GetAccessTokenRequest) GetServiceAccountId() int64 { if m != nil && m.ServiceAccountId != nil { return *m.ServiceAccountId } return 0 } func (m *GetAccessTokenRequest) GetServiceAccountName() string { if m != nil && m.ServiceAccountName != nil { return *m.ServiceAccountName } return "" } type GetAccessTokenResponse struct { AccessToken *string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"` ExpirationTime *int64 `protobuf:"varint,2,opt,name=expiration_time,json=expirationTime" json:"expiration_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetAccessTokenResponse) Reset() { *m = GetAccessTokenResponse{} } func (m *GetAccessTokenResponse) String() string { return proto.CompactTextString(m) } func (*GetAccessTokenResponse) ProtoMessage() {} func (*GetAccessTokenResponse) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{9} } func (m *GetAccessTokenResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetAccessTokenResponse.Unmarshal(m, b) } func (m *GetAccessTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetAccessTokenResponse.Marshal(b, m, deterministic) } func (dst *GetAccessTokenResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetAccessTokenResponse.Merge(dst, src) } func (m *GetAccessTokenResponse) XXX_Size() int { return xxx_messageInfo_GetAccessTokenResponse.Size(m) } func (m *GetAccessTokenResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetAccessTokenResponse.DiscardUnknown(m) } var xxx_messageInfo_GetAccessTokenResponse proto.InternalMessageInfo func (m *GetAccessTokenResponse) GetAccessToken() string { if m != nil && m.AccessToken != nil { return *m.AccessToken } return "" } func (m *GetAccessTokenResponse) GetExpirationTime() int64 { if m != nil && m.ExpirationTime != nil { return *m.ExpirationTime } return 0 } type GetDefaultGcsBucketNameRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetDefaultGcsBucketNameRequest) Reset() { *m = GetDefaultGcsBucketNameRequest{} } func (m *GetDefaultGcsBucketNameRequest) String() string { return proto.CompactTextString(m) } func (*GetDefaultGcsBucketNameRequest) ProtoMessage() {} func (*GetDefaultGcsBucketNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{10} } func (m *GetDefaultGcsBucketNameRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetDefaultGcsBucketNameRequest.Unmarshal(m, b) } func (m *GetDefaultGcsBucketNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetDefaultGcsBucketNameRequest.Marshal(b, m, deterministic) } func (dst *GetDefaultGcsBucketNameRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetDefaultGcsBucketNameRequest.Merge(dst, src) } func (m *GetDefaultGcsBucketNameRequest) XXX_Size() int { return xxx_messageInfo_GetDefaultGcsBucketNameRequest.Size(m) } func (m *GetDefaultGcsBucketNameRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetDefaultGcsBucketNameRequest.DiscardUnknown(m) } var xxx_messageInfo_GetDefaultGcsBucketNameRequest proto.InternalMessageInfo type GetDefaultGcsBucketNameResponse struct { DefaultGcsBucketName *string `protobuf:"bytes,1,opt,name=default_gcs_bucket_name,json=defaultGcsBucketName" json:"default_gcs_bucket_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetDefaultGcsBucketNameResponse) Reset() { *m = GetDefaultGcsBucketNameResponse{} } func (m *GetDefaultGcsBucketNameResponse) String() string { return proto.CompactTextString(m) } func (*GetDefaultGcsBucketNameResponse) ProtoMessage() {} func (*GetDefaultGcsBucketNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor_app_identity_service_08a6e3f74b04cfa4, []int{11} } func (m *GetDefaultGcsBucketNameResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetDefaultGcsBucketNameResponse.Unmarshal(m, b) } func (m *GetDefaultGcsBucketNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetDefaultGcsBucketNameResponse.Marshal(b, m, deterministic) } func (dst *GetDefaultGcsBucketNameResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetDefaultGcsBucketNameResponse.Merge(dst, src) } func (m *GetDefaultGcsBucketNameResponse) XXX_Size() int { return xxx_messageInfo_GetDefaultGcsBucketNameResponse.Size(m) } func (m *GetDefaultGcsBucketNameResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetDefaultGcsBucketNameResponse.DiscardUnknown(m) } var xxx_messageInfo_GetDefaultGcsBucketNameResponse proto.InternalMessageInfo func (m *GetDefaultGcsBucketNameResponse) GetDefaultGcsBucketName() string { if m != nil && m.DefaultGcsBucketName != nil { return *m.DefaultGcsBucketName } return "" } func init() { proto.RegisterType((*AppIdentityServiceError)(nil), "appengine.AppIdentityServiceError") proto.RegisterType((*SignForAppRequest)(nil), "appengine.SignForAppRequest") proto.RegisterType((*SignForAppResponse)(nil), "appengine.SignForAppResponse") proto.RegisterType((*GetPublicCertificateForAppRequest)(nil), "appengine.GetPublicCertificateForAppRequest") proto.RegisterType((*PublicCertificate)(nil), "appengine.PublicCertificate") proto.RegisterType((*GetPublicCertificateForAppResponse)(nil), "appengine.GetPublicCertificateForAppResponse") proto.RegisterType((*GetServiceAccountNameRequest)(nil), "appengine.GetServiceAccountNameRequest") proto.RegisterType((*GetServiceAccountNameResponse)(nil), "appengine.GetServiceAccountNameResponse") proto.RegisterType((*GetAccessTokenRequest)(nil), "appengine.GetAccessTokenRequest") proto.RegisterType((*GetAccessTokenResponse)(nil), "appengine.GetAccessTokenResponse") proto.RegisterType((*GetDefaultGcsBucketNameRequest)(nil), "appengine.GetDefaultGcsBucketNameRequest") proto.RegisterType((*GetDefaultGcsBucketNameResponse)(nil), "appengine.GetDefaultGcsBucketNameResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/app_identity/app_identity_service.proto", fileDescriptor_app_identity_service_08a6e3f74b04cfa4) } var fileDescriptor_app_identity_service_08a6e3f74b04cfa4 = []byte{ // 676 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xdb, 0x6e, 0xda, 0x58, 0x14, 0x1d, 0x26, 0x1a, 0x31, 0x6c, 0x12, 0x62, 0xce, 0x90, 0xcb, 0x8c, 0x32, 0xb9, 0x78, 0x1e, 0x26, 0x0f, 0x15, 0x89, 0x2a, 0x45, 0x55, 0x1f, 0x8d, 0xed, 0x22, 0x54, 0x07, 0x53, 0x43, 0x9a, 0xa8, 0x2f, 0xa7, 0xce, 0x61, 0xc7, 0x3d, 0x02, 0x9f, 0xe3, 0xda, 0x87, 0x0a, 0x3e, 0xa2, 0x3f, 0xd2, 0x9f, 0xe8, 0x5b, 0xbf, 0xa5, 0x17, 0xb5, 0xdf, 0x50, 0xd9, 0x38, 0x5c, 0x92, 0x92, 0x37, 0xbc, 0xf6, 0x5a, 0xcb, 0x6b, 0x2f, 0x6d, 0x0c, 0x4e, 0x20, 0x65, 0x30, 0xc4, 0x7a, 0x20, 0x87, 0xbe, 0x08, 0xea, 0x32, 0x0e, 0x4e, 0xfc, 0x28, 0x42, 0x11, 0x70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8, 0xc9, 0xfa, 0x19, 0x00, 0x00, 0xff, 0xff, 0x37, 0x4c, 0x56, 0x38, 0xf3, 0x04, 0x00, 0x00, }
app_identity
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/app_identity/app_identity_service.proto
syntax = "proto2"; option go_package = "app_identity"; package appengine; message AppIdentityServiceError { enum ErrorCode { SUCCESS = 0; UNKNOWN_SCOPE = 9; BLOB_TOO_LARGE = 1000; DEADLINE_EXCEEDED = 1001; NOT_A_VALID_APP = 1002; UNKNOWN_ERROR = 1003; NOT_ALLOWED = 1005; NOT_IMPLEMENTED = 1006; } } message SignForAppRequest { optional bytes bytes_to_sign = 1; } message SignForAppResponse { optional string key_name = 1; optional bytes signature_bytes = 2; } message GetPublicCertificateForAppRequest { } message PublicCertificate { optional string key_name = 1; optional string x509_certificate_pem = 2; } message GetPublicCertificateForAppResponse { repeated PublicCertificate public_certificate_list = 1; optional int64 max_client_cache_time_in_second = 2; } message GetServiceAccountNameRequest { } message GetServiceAccountNameResponse { optional string service_account_name = 1; } message GetAccessTokenRequest { repeated string scope = 1; optional int64 service_account_id = 2; optional string service_account_name = 3; } message GetAccessTokenResponse { optional string access_token = 1; optional int64 expiration_time = 2; } message GetDefaultGcsBucketNameRequest { } message GetDefaultGcsBucketNameResponse { optional string default_gcs_bucket_name = 1; }
system
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/system/system_service.proto
syntax = "proto2"; option go_package = "system"; package appengine; message SystemServiceError { enum ErrorCode { OK = 0; INTERNAL_ERROR = 1; BACKEND_REQUIRED = 2; LIMIT_REACHED = 3; } } message SystemStat { // Instaneous value of this stat. optional double current = 1; // Average over time, if this stat has an instaneous value. optional double average1m = 3; optional double average10m = 4; // Total value, if the stat accumulates over time. optional double total = 2; // Rate over time, if this stat accumulates. optional double rate1m = 5; optional double rate10m = 6; } message GetSystemStatsRequest { } message GetSystemStatsResponse { // CPU used by this instance, in mcycles. optional SystemStat cpu = 1; // Physical memory (RAM) used by this instance, in megabytes. optional SystemStat memory = 2; } message StartBackgroundRequestRequest { } message StartBackgroundRequestResponse { // Every /_ah/background request will have an X-AppEngine-BackgroundRequest // header, whose value will be equal to this parameter, the request_id. optional string request_id = 1; }
system
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/system/system_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/system/system_service.proto package system import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type SystemServiceError_ErrorCode int32 const ( SystemServiceError_OK SystemServiceError_ErrorCode = 0 SystemServiceError_INTERNAL_ERROR SystemServiceError_ErrorCode = 1 SystemServiceError_BACKEND_REQUIRED SystemServiceError_ErrorCode = 2 SystemServiceError_LIMIT_REACHED SystemServiceError_ErrorCode = 3 ) var SystemServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INTERNAL_ERROR", 2: "BACKEND_REQUIRED", 3: "LIMIT_REACHED", } var SystemServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INTERNAL_ERROR": 1, "BACKEND_REQUIRED": 2, "LIMIT_REACHED": 3, } func (x SystemServiceError_ErrorCode) Enum() *SystemServiceError_ErrorCode { p := new(SystemServiceError_ErrorCode) *p = x return p } func (x SystemServiceError_ErrorCode) String() string { return proto.EnumName(SystemServiceError_ErrorCode_name, int32(x)) } func (x *SystemServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(SystemServiceError_ErrorCode_value, data, "SystemServiceError_ErrorCode") if err != nil { return err } *x = SystemServiceError_ErrorCode(value) return nil } func (SystemServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_system_service_ccf41ec210fc59eb, []int{0, 0} } type SystemServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SystemServiceError) Reset() { *m = SystemServiceError{} } func (m *SystemServiceError) String() string { return proto.CompactTextString(m) } func (*SystemServiceError) ProtoMessage() {} func (*SystemServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_system_service_ccf41ec210fc59eb, []int{0} } func (m *SystemServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SystemServiceError.Unmarshal(m, b) } func (m *SystemServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SystemServiceError.Marshal(b, m, deterministic) } func (dst *SystemServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_SystemServiceError.Merge(dst, src) } func (m *SystemServiceError) XXX_Size() int { return xxx_messageInfo_SystemServiceError.Size(m) } func (m *SystemServiceError) XXX_DiscardUnknown() { xxx_messageInfo_SystemServiceError.DiscardUnknown(m) } var xxx_messageInfo_SystemServiceError proto.InternalMessageInfo type SystemStat struct { // Instaneous value of this stat. Current *float64 `protobuf:"fixed64,1,opt,name=current" json:"current,omitempty"` // Average over time, if this stat has an instaneous value. Average1M *float64 `protobuf:"fixed64,3,opt,name=average1m" json:"average1m,omitempty"` Average10M *float64 `protobuf:"fixed64,4,opt,name=average10m" json:"average10m,omitempty"` // Total value, if the stat accumulates over time. Total *float64 `protobuf:"fixed64,2,opt,name=total" json:"total,omitempty"` // Rate over time, if this stat accumulates. Rate1M *float64 `protobuf:"fixed64,5,opt,name=rate1m" json:"rate1m,omitempty"` Rate10M *float64 `protobuf:"fixed64,6,opt,name=rate10m" json:"rate10m,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SystemStat) Reset() { *m = SystemStat{} } func (m *SystemStat) String() string { return proto.CompactTextString(m) } func (*SystemStat) ProtoMessage() {} func (*SystemStat) Descriptor() ([]byte, []int) { return fileDescriptor_system_service_ccf41ec210fc59eb, []int{1} } func (m *SystemStat) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SystemStat.Unmarshal(m, b) } func (m *SystemStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SystemStat.Marshal(b, m, deterministic) } func (dst *SystemStat) XXX_Merge(src proto.Message) { xxx_messageInfo_SystemStat.Merge(dst, src) } func (m *SystemStat) XXX_Size() int { return xxx_messageInfo_SystemStat.Size(m) } func (m *SystemStat) XXX_DiscardUnknown() { xxx_messageInfo_SystemStat.DiscardUnknown(m) } var xxx_messageInfo_SystemStat proto.InternalMessageInfo func (m *SystemStat) GetCurrent() float64 { if m != nil && m.Current != nil { return *m.Current } return 0 } func (m *SystemStat) GetAverage1M() float64 { if m != nil && m.Average1M != nil { return *m.Average1M } return 0 } func (m *SystemStat) GetAverage10M() float64 { if m != nil && m.Average10M != nil { return *m.Average10M } return 0 } func (m *SystemStat) GetTotal() float64 { if m != nil && m.Total != nil { return *m.Total } return 0 } func (m *SystemStat) GetRate1M() float64 { if m != nil && m.Rate1M != nil { return *m.Rate1M } return 0 } func (m *SystemStat) GetRate10M() float64 { if m != nil && m.Rate10M != nil { return *m.Rate10M } return 0 } type GetSystemStatsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetSystemStatsRequest) Reset() { *m = GetSystemStatsRequest{} } func (m *GetSystemStatsRequest) String() string { return proto.CompactTextString(m) } func (*GetSystemStatsRequest) ProtoMessage() {} func (*GetSystemStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_system_service_ccf41ec210fc59eb, []int{2} } func (m *GetSystemStatsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSystemStatsRequest.Unmarshal(m, b) } func (m *GetSystemStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetSystemStatsRequest.Marshal(b, m, deterministic) } func (dst *GetSystemStatsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetSystemStatsRequest.Merge(dst, src) } func (m *GetSystemStatsRequest) XXX_Size() int { return xxx_messageInfo_GetSystemStatsRequest.Size(m) } func (m *GetSystemStatsRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetSystemStatsRequest.DiscardUnknown(m) } var xxx_messageInfo_GetSystemStatsRequest proto.InternalMessageInfo type GetSystemStatsResponse struct { // CPU used by this instance, in mcycles. Cpu *SystemStat `protobuf:"bytes,1,opt,name=cpu" json:"cpu,omitempty"` // Physical memory (RAM) used by this instance, in megabytes. Memory *SystemStat `protobuf:"bytes,2,opt,name=memory" json:"memory,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetSystemStatsResponse) Reset() { *m = GetSystemStatsResponse{} } func (m *GetSystemStatsResponse) String() string { return proto.CompactTextString(m) } func (*GetSystemStatsResponse) ProtoMessage() {} func (*GetSystemStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_system_service_ccf41ec210fc59eb, []int{3} } func (m *GetSystemStatsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSystemStatsResponse.Unmarshal(m, b) } func (m *GetSystemStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetSystemStatsResponse.Marshal(b, m, deterministic) } func (dst *GetSystemStatsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetSystemStatsResponse.Merge(dst, src) } func (m *GetSystemStatsResponse) XXX_Size() int { return xxx_messageInfo_GetSystemStatsResponse.Size(m) } func (m *GetSystemStatsResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetSystemStatsResponse.DiscardUnknown(m) } var xxx_messageInfo_GetSystemStatsResponse proto.InternalMessageInfo func (m *GetSystemStatsResponse) GetCpu() *SystemStat { if m != nil { return m.Cpu } return nil } func (m *GetSystemStatsResponse) GetMemory() *SystemStat { if m != nil { return m.Memory } return nil } type StartBackgroundRequestRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StartBackgroundRequestRequest) Reset() { *m = StartBackgroundRequestRequest{} } func (m *StartBackgroundRequestRequest) String() string { return proto.CompactTextString(m) } func (*StartBackgroundRequestRequest) ProtoMessage() {} func (*StartBackgroundRequestRequest) Descriptor() ([]byte, []int) { return fileDescriptor_system_service_ccf41ec210fc59eb, []int{4} } func (m *StartBackgroundRequestRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StartBackgroundRequestRequest.Unmarshal(m, b) } func (m *StartBackgroundRequestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StartBackgroundRequestRequest.Marshal(b, m, deterministic) } func (dst *StartBackgroundRequestRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_StartBackgroundRequestRequest.Merge(dst, src) } func (m *StartBackgroundRequestRequest) XXX_Size() int { return xxx_messageInfo_StartBackgroundRequestRequest.Size(m) } func (m *StartBackgroundRequestRequest) XXX_DiscardUnknown() { xxx_messageInfo_StartBackgroundRequestRequest.DiscardUnknown(m) } var xxx_messageInfo_StartBackgroundRequestRequest proto.InternalMessageInfo type StartBackgroundRequestResponse struct { // Every /_ah/background request will have an X-AppEngine-BackgroundRequest // header, whose value will be equal to this parameter, the request_id. RequestId *string `protobuf:"bytes,1,opt,name=request_id,json=requestId" json:"request_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StartBackgroundRequestResponse) Reset() { *m = StartBackgroundRequestResponse{} } func (m *StartBackgroundRequestResponse) String() string { return proto.CompactTextString(m) } func (*StartBackgroundRequestResponse) ProtoMessage() {} func (*StartBackgroundRequestResponse) Descriptor() ([]byte, []int) { return fileDescriptor_system_service_ccf41ec210fc59eb, []int{5} } func (m *StartBackgroundRequestResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StartBackgroundRequestResponse.Unmarshal(m, b) } func (m *StartBackgroundRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StartBackgroundRequestResponse.Marshal(b, m, deterministic) } func (dst *StartBackgroundRequestResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_StartBackgroundRequestResponse.Merge(dst, src) } func (m *StartBackgroundRequestResponse) XXX_Size() int { return xxx_messageInfo_StartBackgroundRequestResponse.Size(m) } func (m *StartBackgroundRequestResponse) XXX_DiscardUnknown() { xxx_messageInfo_StartBackgroundRequestResponse.DiscardUnknown(m) } var xxx_messageInfo_StartBackgroundRequestResponse proto.InternalMessageInfo func (m *StartBackgroundRequestResponse) GetRequestId() string { if m != nil && m.RequestId != nil { return *m.RequestId } return "" } func init() { proto.RegisterType((*SystemServiceError)(nil), "appengine.SystemServiceError") proto.RegisterType((*SystemStat)(nil), "appengine.SystemStat") proto.RegisterType((*GetSystemStatsRequest)(nil), "appengine.GetSystemStatsRequest") proto.RegisterType((*GetSystemStatsResponse)(nil), "appengine.GetSystemStatsResponse") proto.RegisterType((*StartBackgroundRequestRequest)(nil), "appengine.StartBackgroundRequestRequest") proto.RegisterType((*StartBackgroundRequestResponse)(nil), "appengine.StartBackgroundRequestResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/system/system_service.proto", fileDescriptor_system_service_ccf41ec210fc59eb) } var fileDescriptor_system_service_ccf41ec210fc59eb = []byte{ // 377 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x8f, 0x93, 0x40, 0x18, 0xc6, 0xa5, 0x75, 0x51, 0x5e,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, 0x7b, 0xeb, 0xb1, 0x43, 0x24, 0x2f, 0x21, 0xe0, 0x5b, 0xd4, 0x5c, 0xe0, 0xfb, 0x3a, 0x1a, 0xda, 0xed, 0x54, 0x90, 0x5b, 0x80, 0x43, 0xb8, 0xab, 0xa3, 0x87, 0x76, 0xfe, 0xaf, 0x21, 0x97, 0x70, 0x61, 0x94, 0xe1, 0x55, 0x34, 0xb0, 0x53, 0x1f, 0xc8, 0x35, 0xf8, 0x9a, 0x9b, 0xfd, 0x0d, 0x2f, 0x6c, 0xed, 0xd2, 0xde, 0xc2, 0x9e, 0xee, 0xea, 0xc8, 0xef, 0x2d, 0x5c, 0x8c, 0x5f, 0xc0, 0xd5, 0x67, 0x34, 0x27, 0xe1, 0x96, 0xe1, 0x9f, 0x0e, 0x5b, 0x13, 0x37, 0x70, 0x7d, 0x7f, 0x68, 0x1b, 0x25, 0x5b, 0x24, 0x6f, 0x60, 0x98, 0x37, 0x9d, 0x7d, 0x9d, 0x27, 0x1f, 0xae, 0x92, 0xe3, 0x27, 0x4e, 0x4e, 0x30, 0xdb, 0x13, 0xe4, 0x1d, 0xf8, 0x35, 0xd6, 0x4a, 0xef, 0xac, 0xe4, 0x59, 0xd6, 0x41, 0xf1, 0x2b, 0xb8, 0x59, 0x1b, 0xae, 0xcd, 0x84, 0xe7, 0xbf, 0x85, 0x56, 0x9d, 0x2c, 0x9c, 0xcb, 0x41, 0xe9, 0x23, 0xdc, 0x9e, 0x03, 0x9c, 0xda, 0x0d, 0x80, 0xee, 0xab, 0xac, 0x2c, 0xac, 0x61, 0xc0, 0x02, 0xd7, 0xa4, 0xc5, 0xe4, 0xf1, 0x4f, 0xbf, 0xff, 0x4d, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x56, 0x5d, 0x5e, 0xc3, 0x5b, 0x02, 0x00, 0x00, }
blobstore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/blobstore/blobstore_service.proto
syntax = "proto2"; option go_package = "blobstore"; package appengine; message BlobstoreServiceError { enum ErrorCode { OK = 0; INTERNAL_ERROR = 1; URL_TOO_LONG = 2; PERMISSION_DENIED = 3; BLOB_NOT_FOUND = 4; DATA_INDEX_OUT_OF_RANGE = 5; BLOB_FETCH_SIZE_TOO_LARGE = 6; ARGUMENT_OUT_OF_RANGE = 8; INVALID_BLOB_KEY = 9; } } message CreateUploadURLRequest { required string success_path = 1; optional int64 max_upload_size_bytes = 2; optional int64 max_upload_size_per_blob_bytes = 3; optional string gs_bucket_name = 4; optional int32 url_expiry_time_seconds = 5; } message CreateUploadURLResponse { required string url = 1; } message DeleteBlobRequest { repeated string blob_key = 1; optional string token = 2; } message FetchDataRequest { required string blob_key = 1; required int64 start_index = 2; required int64 end_index = 3; } message FetchDataResponse { required bytes data = 1000 [ctype = CORD]; } message CloneBlobRequest { required bytes blob_key = 1; required bytes mime_type = 2; required bytes target_app_id = 3; } message CloneBlobResponse { required bytes blob_key = 1; } message DecodeBlobKeyRequest { repeated string blob_key = 1; } message DecodeBlobKeyResponse { repeated string decoded = 1; } message CreateEncodedGoogleStorageKeyRequest { required string filename = 1; } message CreateEncodedGoogleStorageKeyResponse { required string blob_key = 1; }
blobstore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/blobstore/blobstore_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/blobstore/blobstore_service.proto package blobstore import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type BlobstoreServiceError_ErrorCode int32 const ( BlobstoreServiceError_OK BlobstoreServiceError_ErrorCode = 0 BlobstoreServiceError_INTERNAL_ERROR BlobstoreServiceError_ErrorCode = 1 BlobstoreServiceError_URL_TOO_LONG BlobstoreServiceError_ErrorCode = 2 BlobstoreServiceError_PERMISSION_DENIED BlobstoreServiceError_ErrorCode = 3 BlobstoreServiceError_BLOB_NOT_FOUND BlobstoreServiceError_ErrorCode = 4 BlobstoreServiceError_DATA_INDEX_OUT_OF_RANGE BlobstoreServiceError_ErrorCode = 5 BlobstoreServiceError_BLOB_FETCH_SIZE_TOO_LARGE BlobstoreServiceError_ErrorCode = 6 BlobstoreServiceError_ARGUMENT_OUT_OF_RANGE BlobstoreServiceError_ErrorCode = 8 BlobstoreServiceError_INVALID_BLOB_KEY BlobstoreServiceError_ErrorCode = 9 ) var BlobstoreServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INTERNAL_ERROR", 2: "URL_TOO_LONG", 3: "PERMISSION_DENIED", 4: "BLOB_NOT_FOUND", 5: "DATA_INDEX_OUT_OF_RANGE", 6: "BLOB_FETCH_SIZE_TOO_LARGE", 8: "ARGUMENT_OUT_OF_RANGE", 9: "INVALID_BLOB_KEY", } var BlobstoreServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INTERNAL_ERROR": 1, "URL_TOO_LONG": 2, "PERMISSION_DENIED": 3, "BLOB_NOT_FOUND": 4, "DATA_INDEX_OUT_OF_RANGE": 5, "BLOB_FETCH_SIZE_TOO_LARGE": 6, "ARGUMENT_OUT_OF_RANGE": 8, "INVALID_BLOB_KEY": 9, } func (x BlobstoreServiceError_ErrorCode) Enum() *BlobstoreServiceError_ErrorCode { p := new(BlobstoreServiceError_ErrorCode) *p = x return p } func (x BlobstoreServiceError_ErrorCode) String() string { return proto.EnumName(BlobstoreServiceError_ErrorCode_name, int32(x)) } func (x *BlobstoreServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(BlobstoreServiceError_ErrorCode_value, data, "BlobstoreServiceError_ErrorCode") if err != nil { return err } *x = BlobstoreServiceError_ErrorCode(value) return nil } func (BlobstoreServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{0, 0} } type BlobstoreServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BlobstoreServiceError) Reset() { *m = BlobstoreServiceError{} } func (m *BlobstoreServiceError) String() string { return proto.CompactTextString(m) } func (*BlobstoreServiceError) ProtoMessage() {} func (*BlobstoreServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{0} } func (m *BlobstoreServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BlobstoreServiceError.Unmarshal(m, b) } func (m *BlobstoreServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BlobstoreServiceError.Marshal(b, m, deterministic) } func (dst *BlobstoreServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_BlobstoreServiceError.Merge(dst, src) } func (m *BlobstoreServiceError) XXX_Size() int { return xxx_messageInfo_BlobstoreServiceError.Size(m) } func (m *BlobstoreServiceError) XXX_DiscardUnknown() { xxx_messageInfo_BlobstoreServiceError.DiscardUnknown(m) } var xxx_messageInfo_BlobstoreServiceError proto.InternalMessageInfo type CreateUploadURLRequest struct { SuccessPath *string `protobuf:"bytes,1,req,name=success_path,json=successPath" json:"success_path,omitempty"` MaxUploadSizeBytes *int64 `protobuf:"varint,2,opt,name=max_upload_size_bytes,json=maxUploadSizeBytes" json:"max_upload_size_bytes,omitempty"` MaxUploadSizePerBlobBytes *int64 `protobuf:"varint,3,opt,name=max_upload_size_per_blob_bytes,json=maxUploadSizePerBlobBytes" json:"max_upload_size_per_blob_bytes,omitempty"` GsBucketName *string `protobuf:"bytes,4,opt,name=gs_bucket_name,json=gsBucketName" json:"gs_bucket_name,omitempty"` UrlExpiryTimeSeconds *int32 `protobuf:"varint,5,opt,name=url_expiry_time_seconds,json=urlExpiryTimeSeconds" json:"url_expiry_time_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateUploadURLRequest) Reset() { *m = CreateUploadURLRequest{} } func (m *CreateUploadURLRequest) String() string { return proto.CompactTextString(m) } func (*CreateUploadURLRequest) ProtoMessage() {} func (*CreateUploadURLRequest) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{1} } func (m *CreateUploadURLRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateUploadURLRequest.Unmarshal(m, b) } func (m *CreateUploadURLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateUploadURLRequest.Marshal(b, m, deterministic) } func (dst *CreateUploadURLRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateUploadURLRequest.Merge(dst, src) } func (m *CreateUploadURLRequest) XXX_Size() int { return xxx_messageInfo_CreateUploadURLRequest.Size(m) } func (m *CreateUploadURLRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateUploadURLRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateUploadURLRequest proto.InternalMessageInfo func (m *CreateUploadURLRequest) GetSuccessPath() string { if m != nil && m.SuccessPath != nil { return *m.SuccessPath } return "" } func (m *CreateUploadURLRequest) GetMaxUploadSizeBytes() int64 { if m != nil && m.MaxUploadSizeBytes != nil { return *m.MaxUploadSizeBytes } return 0 } func (m *CreateUploadURLRequest) GetMaxUploadSizePerBlobBytes() int64 { if m != nil && m.MaxUploadSizePerBlobBytes != nil { return *m.MaxUploadSizePerBlobBytes } return 0 } func (m *CreateUploadURLRequest) GetGsBucketName() string { if m != nil && m.GsBucketName != nil { return *m.GsBucketName } return "" } func (m *CreateUploadURLRequest) GetUrlExpiryTimeSeconds() int32 { if m != nil && m.UrlExpiryTimeSeconds != nil { return *m.UrlExpiryTimeSeconds } return 0 } type CreateUploadURLResponse struct { Url *string `protobuf:"bytes,1,req,name=url" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateUploadURLResponse) Reset() { *m = CreateUploadURLResponse{} } func (m *CreateUploadURLResponse) String() string { return proto.CompactTextString(m) } func (*CreateUploadURLResponse) ProtoMessage() {} func (*CreateUploadURLResponse) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{2} } func (m *CreateUploadURLResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateUploadURLResponse.Unmarshal(m, b) } func (m *CreateUploadURLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateUploadURLResponse.Marshal(b, m, deterministic) } func (dst *CreateUploadURLResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateUploadURLResponse.Merge(dst, src) } func (m *CreateUploadURLResponse) XXX_Size() int { return xxx_messageInfo_CreateUploadURLResponse.Size(m) } func (m *CreateUploadURLResponse) XXX_DiscardUnknown() { xxx_messageInfo_CreateUploadURLResponse.DiscardUnknown(m) } var xxx_messageInfo_CreateUploadURLResponse proto.InternalMessageInfo func (m *CreateUploadURLResponse) GetUrl() string { if m != nil && m.Url != nil { return *m.Url } return "" } type DeleteBlobRequest struct { BlobKey []string `protobuf:"bytes,1,rep,name=blob_key,json=blobKey" json:"blob_key,omitempty"` Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteBlobRequest) Reset() { *m = DeleteBlobRequest{} } func (m *DeleteBlobRequest) String() string { return proto.CompactTextString(m) } func (*DeleteBlobRequest) ProtoMessage() {} func (*DeleteBlobRequest) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{3} } func (m *DeleteBlobRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteBlobRequest.Unmarshal(m, b) } func (m *DeleteBlobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteBlobRequest.Marshal(b, m, deterministic) } func (dst *DeleteBlobRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteBlobRequest.Merge(dst, src) } func (m *DeleteBlobRequest) XXX_Size() int { return xxx_messageInfo_DeleteBlobRequest.Size(m) } func (m *DeleteBlobRequest) XXX_DiscardUnknown() { xxx_messageInfo_DeleteBlobRequest.DiscardUnknown(m) } var xxx_messageInfo_DeleteBlobRequest proto.InternalMessageInfo func (m *DeleteBlobRequest) GetBlobKey() []string { if m != nil { return m.BlobKey } return nil } func (m *DeleteBlobRequest) GetToken() string { if m != nil && m.Token != nil { return *m.Token } return "" } type FetchDataRequest struct { BlobKey *string `protobuf:"bytes,1,req,name=blob_key,json=blobKey" json:"blob_key,omitempty"` StartIndex *int64 `protobuf:"varint,2,req,name=start_index,json=startIndex" json:"start_index,omitempty"` EndIndex *int64 `protobuf:"varint,3,req,name=end_index,json=endIndex" json:"end_index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FetchDataRequest) Reset() { *m = FetchDataRequest{} } func (m *FetchDataRequest) String() string { return proto.CompactTextString(m) } func (*FetchDataRequest) ProtoMessage() {} func (*FetchDataRequest) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{4} } func (m *FetchDataRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FetchDataRequest.Unmarshal(m, b) } func (m *FetchDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FetchDataRequest.Marshal(b, m, deterministic) } func (dst *FetchDataRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_FetchDataRequest.Merge(dst, src) } func (m *FetchDataRequest) XXX_Size() int { return xxx_messageInfo_FetchDataRequest.Size(m) } func (m *FetchDataRequest) XXX_DiscardUnknown() { xxx_messageInfo_FetchDataRequest.DiscardUnknown(m) } var xxx_messageInfo_FetchDataRequest proto.InternalMessageInfo func (m *FetchDataRequest) GetBlobKey() string { if m != nil && m.BlobKey != nil { return *m.BlobKey } return "" } func (m *FetchDataRequest) GetStartIndex() int64 { if m != nil && m.StartIndex != nil { return *m.StartIndex } return 0 } func (m *FetchDataRequest) GetEndIndex() int64 { if m != nil && m.EndIndex != nil { return *m.EndIndex } return 0 } type FetchDataResponse struct { Data []byte `protobuf:"bytes,1000,req,name=data" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FetchDataResponse) Reset() { *m = FetchDataResponse{} } func (m *FetchDataResponse) String() string { return proto.CompactTextString(m) } func (*FetchDataResponse) ProtoMessage() {} func (*FetchDataResponse) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{5} } func (m *FetchDataResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FetchDataResponse.Unmarshal(m, b) } func (m *FetchDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FetchDataResponse.Marshal(b, m, deterministic) } func (dst *FetchDataResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_FetchDataResponse.Merge(dst, src) } func (m *FetchDataResponse) XXX_Size() int { return xxx_messageInfo_FetchDataResponse.Size(m) } func (m *FetchDataResponse) XXX_DiscardUnknown() { xxx_messageInfo_FetchDataResponse.DiscardUnknown(m) } var xxx_messageInfo_FetchDataResponse proto.InternalMessageInfo func (m *FetchDataResponse) GetData() []byte { if m != nil { return m.Data } return nil } type CloneBlobRequest struct { BlobKey []byte `protobuf:"bytes,1,req,name=blob_key,json=blobKey" json:"blob_key,omitempty"` MimeType []byte `protobuf:"bytes,2,req,name=mime_type,json=mimeType" json:"mime_type,omitempty"` TargetAppId []byte `protobuf:"bytes,3,req,name=target_app_id,json=targetAppId" json:"target_app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CloneBlobRequest) Reset() { *m = CloneBlobRequest{} } func (m *CloneBlobRequest) String() string { return proto.CompactTextString(m) } func (*CloneBlobRequest) ProtoMessage() {} func (*CloneBlobRequest) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{6} } func (m *CloneBlobRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CloneBlobRequest.Unmarshal(m, b) } func (m *CloneBlobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CloneBlobRequest.Marshal(b, m, deterministic) } func (dst *CloneBlobRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CloneBlobRequest.Merge(dst, src) } func (m *CloneBlobRequest) XXX_Size() int { return xxx_messageInfo_CloneBlobRequest.Size(m) } func (m *CloneBlobRequest) XXX_DiscardUnknown() { xxx_messageInfo_CloneBlobRequest.DiscardUnknown(m) } var xxx_messageInfo_CloneBlobRequest proto.InternalMessageInfo func (m *CloneBlobRequest) GetBlobKey() []byte { if m != nil { return m.BlobKey } return nil } func (m *CloneBlobRequest) GetMimeType() []byte { if m != nil { return m.MimeType } return nil } func (m *CloneBlobRequest) GetTargetAppId() []byte { if m != nil { return m.TargetAppId } return nil } type CloneBlobResponse struct { BlobKey []byte `protobuf:"bytes,1,req,name=blob_key,json=blobKey" json:"blob_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CloneBlobResponse) Reset() { *m = CloneBlobResponse{} } func (m *CloneBlobResponse) String() string { return proto.CompactTextString(m) } func (*CloneBlobResponse) ProtoMessage() {} func (*CloneBlobResponse) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{7} } func (m *CloneBlobResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CloneBlobResponse.Unmarshal(m, b) } func (m *CloneBlobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CloneBlobResponse.Marshal(b, m, deterministic) } func (dst *CloneBlobResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CloneBlobResponse.Merge(dst, src) } func (m *CloneBlobResponse) XXX_Size() int { return xxx_messageInfo_CloneBlobResponse.Size(m) } func (m *CloneBlobResponse) XXX_DiscardUnknown() { xxx_messageInfo_CloneBlobResponse.DiscardUnknown(m) } var xxx_messageInfo_CloneBlobResponse proto.InternalMessageInfo func (m *CloneBlobResponse) GetBlobKey() []byte { if m != nil { return m.BlobKey } return nil } type DecodeBlobKeyRequest struct { BlobKey []string `protobuf:"bytes,1,rep,name=blob_key,json=blobKey" json:"blob_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DecodeBlobKeyRequest) Reset() { *m = DecodeBlobKeyRequest{} } func (m *DecodeBlobKeyRequest) String() string { return proto.CompactTextString(m) } func (*DecodeBlobKeyRequest) ProtoMessage() {} func (*DecodeBlobKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{8} } func (m *DecodeBlobKeyRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DecodeBlobKeyRequest.Unmarshal(m, b) } func (m *DecodeBlobKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DecodeBlobKeyRequest.Marshal(b, m, deterministic) } func (dst *DecodeBlobKeyRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DecodeBlobKeyRequest.Merge(dst, src) } func (m *DecodeBlobKeyRequest) XXX_Size() int { return xxx_messageInfo_DecodeBlobKeyRequest.Size(m) } func (m *DecodeBlobKeyRequest) XXX_DiscardUnknown() { xxx_messageInfo_DecodeBlobKeyRequest.DiscardUnknown(m) } var xxx_messageInfo_DecodeBlobKeyRequest proto.InternalMessageInfo func (m *DecodeBlobKeyRequest) GetBlobKey() []string { if m != nil { return m.BlobKey } return nil } type DecodeBlobKeyResponse struct { Decoded []string `protobuf:"bytes,1,rep,name=decoded" json:"decoded,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DecodeBlobKeyResponse) Reset() { *m = DecodeBlobKeyResponse{} } func (m *DecodeBlobKeyResponse) String() string { return proto.CompactTextString(m) } func (*DecodeBlobKeyResponse) ProtoMessage() {} func (*DecodeBlobKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{9} } func (m *DecodeBlobKeyResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DecodeBlobKeyResponse.Unmarshal(m, b) } func (m *DecodeBlobKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DecodeBlobKeyResponse.Marshal(b, m, deterministic) } func (dst *DecodeBlobKeyResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DecodeBlobKeyResponse.Merge(dst, src) } func (m *DecodeBlobKeyResponse) XXX_Size() int { return xxx_messageInfo_DecodeBlobKeyResponse.Size(m) } func (m *DecodeBlobKeyResponse) XXX_DiscardUnknown() { xxx_messageInfo_DecodeBlobKeyResponse.DiscardUnknown(m) } var xxx_messageInfo_DecodeBlobKeyResponse proto.InternalMessageInfo func (m *DecodeBlobKeyResponse) GetDecoded() []string { if m != nil { return m.Decoded } return nil } type CreateEncodedGoogleStorageKeyRequest struct { Filename *string `protobuf:"bytes,1,req,name=filename" json:"filename,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateEncodedGoogleStorageKeyRequest) Reset() { *m = CreateEncodedGoogleStorageKeyRequest{} } func (m *CreateEncodedGoogleStorageKeyRequest) String() string { return proto.CompactTextString(m) } func (*CreateEncodedGoogleStorageKeyRequest) ProtoMessage() {} func (*CreateEncodedGoogleStorageKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{10} } func (m *CreateEncodedGoogleStorageKeyRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateEncodedGoogleStorageKeyRequest.Unmarshal(m, b) } func (m *CreateEncodedGoogleStorageKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateEncodedGoogleStorageKeyRequest.Marshal(b, m, deterministic) } func (dst *CreateEncodedGoogleStorageKeyRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateEncodedGoogleStorageKeyRequest.Merge(dst, src) } func (m *CreateEncodedGoogleStorageKeyRequest) XXX_Size() int { return xxx_messageInfo_CreateEncodedGoogleStorageKeyRequest.Size(m) } func (m *CreateEncodedGoogleStorageKeyRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateEncodedGoogleStorageKeyRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateEncodedGoogleStorageKeyRequest proto.InternalMessageInfo func (m *CreateEncodedGoogleStorageKeyRequest) GetFilename() string { if m != nil && m.Filename != nil { return *m.Filename } return "" } type CreateEncodedGoogleStorageKeyResponse struct { BlobKey *string `protobuf:"bytes,1,req,name=blob_key,json=blobKey" json:"blob_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateEncodedGoogleStorageKeyResponse) Reset() { *m = CreateEncodedGoogleStorageKeyResponse{} } func (m *CreateEncodedGoogleStorageKeyResponse) String() string { return proto.CompactTextString(m) } func (*CreateEncodedGoogleStorageKeyResponse) ProtoMessage() {} func (*CreateEncodedGoogleStorageKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_blobstore_service_3604fb6033ea2e2e, []int{11} } func (m *CreateEncodedGoogleStorageKeyResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateEncodedGoogleStorageKeyResponse.Unmarshal(m, b) } func (m *CreateEncodedGoogleStorageKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateEncodedGoogleStorageKeyResponse.Marshal(b, m, deterministic) } func (dst *CreateEncodedGoogleStorageKeyResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateEncodedGoogleStorageKeyResponse.Merge(dst, src) } func (m *CreateEncodedGoogleStorageKeyResponse) XXX_Size() int { return xxx_messageInfo_CreateEncodedGoogleStorageKeyResponse.Size(m) } func (m *CreateEncodedGoogleStorageKeyResponse) XXX_DiscardUnknown() { xxx_messageInfo_CreateEncodedGoogleStorageKeyResponse.DiscardUnknown(m) } var xxx_messageInfo_CreateEncodedGoogleStorageKeyResponse proto.InternalMessageInfo func (m *CreateEncodedGoogleStorageKeyResponse) GetBlobKey() string { if m != nil && m.BlobKey != nil { return *m.BlobKey } return "" } func init() { proto.RegisterType((*BlobstoreServiceError)(nil), "appengine.BlobstoreServiceError") proto.RegisterType((*CreateUploadURLRequest)(nil), "appengine.CreateUploadURLRequest") proto.RegisterType((*CreateUploadURLResponse)(nil), "appengine.CreateUploadURLResponse") proto.RegisterType((*DeleteBlobRequest)(nil), "appengine.DeleteBlobRequest") proto.RegisterType((*FetchDataRequest)(nil), "appengine.FetchDataRequest") proto.RegisterType((*FetchDataResponse)(nil), "appengine.FetchDataResponse") proto.RegisterType((*CloneBlobRequest)(nil), "appengine.CloneBlobRequest") proto.RegisterType((*CloneBlobResponse)(nil), "appengine.CloneBlobResponse") proto.RegisterType((*DecodeBlobKeyRequest)(nil), "appengine.DecodeBlobKeyRequest") proto.RegisterType((*DecodeBlobKeyResponse)(nil), "appengine.DecodeBlobKeyResponse") proto.RegisterType((*CreateEncodedGoogleStorageKeyRequest)(nil), "appengine.CreateEncodedGoogleStorageKeyRequest") proto.RegisterType((*CreateEncodedGoogleStorageKeyResponse)(nil), "appengine.CreateEncodedGoogleStorageKeyResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/blobstore/blobstore_service.proto", fileDescriptor_blobstore_service_3604fb6033ea2e2e) } var fileDescriptor_blobstore_service_3604fb6033ea2e2e = []byte{ // 737 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xe1, 0x6e, 0xe3, 0x44, 0x10, 0xc6, 0x4e, 0x7b, 0x8d, 0xa7, 0xe1, 0xe4, 0xae, 0x1a, 0x9a, 0x52, 0x01, 0xc1, 0x3a, 0xa4, 0x48, 0xa0, 0x56, 0xfd, 0xc1, 0x03, 0xd8, 0xb5, 0x13, 0xac, 0xe6, 0xec, 0x6a, 0xe3, 0x20, 0xb8, 0x3f, 0xab, 0x6d, 0x3c, 0xb8, 0x56, 0x1d, 0xaf, 0x59, 0x6f, 0x50, 0x73, 0x0f, 0xc1, 0xbb, 0xf1, 0x16, 0x48, 0xbc, 0x04, 0xf2, 0xda, 0x6d, 0x73, 0x07, 0x77, 0xf7, 0x6f, 0xe7, 0xfb, 0xf6, 0x9b, 0xf9, 0x66, 0x66, 0xb5, 0x30, 0xcd, 0x84, 0xc8, 0x0a, 0x3c, 0xcf, 0x44, 0xc1, 0xcb, 0xec, 0x5c, 0xc8, 0xec, 0x82, 0x57, 0x15, 0x96, 0x59, 0x5e, 0xe2, 0x45, 0x5e, 0x2a, 0x94, 0x25, 0x2f, 0x2e, 0x6e, 0x0b, 0x71, 0x5b, 0x2b, 0x21, 0xf1, 0xf9, 0xc4, 0x6a, 0x94, 0x7f, 0xe4, 0x2b, 0x3c, 0xaf, 0xa4, 0x50, 0x82, 0x58, 0x4f, 0x2a, 0xe7, 0x1f, 0x03, 0x86, 0xde, 0xe3, 0xb5, 0x45, 0x7b, 0x2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, 0x96, 0x17, 0xa8, 0x9f, 0x64, 0xbb, 0xb4, 0xa7, 0xd8, 0xf1, 0xe0, 0xbb, 0x4f, 0xe4, 0xf8, 0x40, 0xb7, 0xcf, 0xd6, 0xbd, 0xc3, 0x37, 0xd6, 0xd3, 0x07, 0xf6, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xfb, 0x81, 0x94, 0xfb, 0x04, 0x00, 0x00, }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/datastore/datastore_v3.proto
syntax = "proto2"; option go_package = "datastore"; package appengine; message Action{} message PropertyValue { optional int64 int64Value = 1; optional bool booleanValue = 2; optional string stringValue = 3; optional double doubleValue = 4; optional group PointValue = 5 { required double x = 6; required double y = 7; } optional group UserValue = 8 { required string email = 9; required string auth_domain = 10; optional string nickname = 11; optional string federated_identity = 21; optional string federated_provider = 22; } optional group ReferenceValue = 12 { required string app = 13; optional string name_space = 20; repeated group PathElement = 14 { required string type = 15; optional int64 id = 16; optional string name = 17; } } } message Property { enum Meaning { NO_MEANING = 0; BLOB = 14; TEXT = 15; BYTESTRING = 16; ATOM_CATEGORY = 1; ATOM_LINK = 2; ATOM_TITLE = 3; ATOM_CONTENT = 4; ATOM_SUMMARY = 5; ATOM_AUTHOR = 6; GD_WHEN = 7; GD_EMAIL = 8; GEORSS_POINT = 9; GD_IM = 10; GD_PHONENUMBER = 11; GD_POSTALADDRESS = 12; GD_RATING = 13; BLOBKEY = 17; ENTITY_PROTO = 19; INDEX_VALUE = 18; }; optional Meaning meaning = 1 [default = NO_MEANING]; optional string meaning_uri = 2; required string name = 3; required PropertyValue value = 5; required bool multiple = 4; optional bool searchable = 6 [default=false]; enum FtsTokenizationOption { HTML = 1; ATOM = 2; } optional FtsTokenizationOption fts_tokenization_option = 8; optional string locale = 9 [default = "en"]; } message Path { repeated group Element = 1 { required string type = 2; optional int64 id = 3; optional string name = 4; } } message Reference { required string app = 13; optional string name_space = 20; required Path path = 14; } message User { required string email = 1; required string auth_domain = 2; optional string nickname = 3; optional string federated_identity = 6; optional string federated_provider = 7; } message EntityProto { required Reference key = 13; required Path entity_group = 16; optional User owner = 17; enum Kind { GD_CONTACT = 1; GD_EVENT = 2; GD_MESSAGE = 3; } optional Kind kind = 4; optional string kind_uri = 5; repeated Property property = 14; repeated Property raw_property = 15; optional int32 rank = 18; } message CompositeProperty { required int64 index_id = 1; repeated string value = 2; } message Index { required string entity_type = 1; required bool ancestor = 5; repeated group Property = 2 { required string name = 3; enum Direction { ASCENDING = 1; DESCENDING = 2; } optional Direction direction = 4 [default = ASCENDING]; } } message CompositeIndex { required string app_id = 1; required int64 id = 2; required Index definition = 3; enum State { WRITE_ONLY = 1; READ_WRITE = 2; DELETED = 3; ERROR = 4; } required State state = 4; optional bool only_use_if_required = 6 [default = false]; } message IndexPostfix { message IndexValue { required string property_name = 1; required PropertyValue value = 2; } repeated IndexValue index_value = 1; optional Reference key = 2; optional bool before = 3 [default=true]; } message IndexPosition { optional string key = 1; optional bool before = 2 [default=true]; } message Snapshot { enum Status { INACTIVE = 0; ACTIVE = 1; } required int64 ts = 1; } message InternalHeader { optional string qos = 1; } message Transaction { optional InternalHeader header = 4; required fixed64 handle = 1; required string app = 2; optional bool mark_changes = 3 [default = false]; } message Query { optional InternalHeader header = 39; required string app = 1; optional string name_space = 29; optional string kind = 3; optional Reference ancestor = 17; repeated group Filter = 4 { enum Operator { LESS_THAN = 1; LESS_THAN_OR_EQUAL = 2; GREATER_THAN = 3; GREATER_THAN_OR_EQUAL = 4; EQUAL = 5; IN = 6; EXISTS = 7; } required Operator op = 6; repeated Property property = 14; } optional string search_query = 8; repeated group Order = 9 { enum Direction { ASCENDING = 1; DESCENDING = 2; } required string property = 10; optional Direction direction = 11 [default = ASCENDING]; } enum Hint { ORDER_FIRST = 1; ANCESTOR_FIRST = 2; FILTER_FIRST = 3; } optional Hint hint = 18; optional int32 count = 23; optional int32 offset = 12 [default = 0]; optional int32 limit = 16; optional CompiledCursor compiled_cursor = 30; optional CompiledCursor end_compiled_cursor = 31; repeated CompositeIndex composite_index = 19; optional bool require_perfect_plan = 20 [default = false]; optional bool keys_only = 21 [default = false]; optional Transaction transaction = 22; optional bool compile = 25 [default = false]; optional int64 failover_ms = 26; optional bool strong = 32; repeated string property_name = 33; repeated string group_by_property_name = 34; optional bool distinct = 24; optional int64 min_safe_time_seconds = 35; repeated string safe_replica_name = 36; optional bool persist_offset = 37 [default=false]; } message CompiledQuery { required group PrimaryScan = 1 { optional string index_name = 2; optional string start_key = 3; optional bool start_inclusive = 4; optional string end_key = 5; optional bool end_inclusive = 6; repeated string start_postfix_value = 22; repeated string end_postfix_value = 23; optional int64 end_unapplied_log_timestamp_us = 19; } repeated group MergeJoinScan = 7 { required string index_name = 8; repeated string prefix_value = 9; optional bool value_prefix = 20 [default=false]; } optional Index index_def = 21; optional int32 offset = 10 [default = 0]; optional int32 limit = 11; required bool keys_only = 12; repeated string property_name = 24; optional int32 distinct_infix_size = 25; optional group EntityFilter = 13 { optional bool distinct = 14 [default=false]; optional string kind = 17; optional Reference ancestor = 18; } } message CompiledCursor { optional group Position = 2 { optional string start_key = 27; repeated group IndexValue = 29 { optional string property = 30; required PropertyValue value = 31; } optional Reference key = 32; optional bool start_inclusive = 28 [default=true]; } } message Cursor { required fixed64 cursor = 1; optional string app = 2; } message Error { enum ErrorCode { BAD_REQUEST = 1; CONCURRENT_TRANSACTION = 2; INTERNAL_ERROR = 3; NEED_INDEX = 4; TIMEOUT = 5; PERMISSION_DENIED = 6; BIGTABLE_ERROR = 7; COMMITTED_BUT_STILL_APPLYING = 8; CAPABILITY_DISABLED = 9; TRY_ALTERNATE_BACKEND = 10; SAFE_TIME_TOO_OLD = 11; } } message Cost { optional int32 index_writes = 1; optional int32 index_write_bytes = 2; optional int32 entity_writes = 3; optional int32 entity_write_bytes = 4; optional group CommitCost = 5 { optional int32 requested_entity_puts = 6; optional int32 requested_entity_deletes = 7; }; optional int32 approximate_storage_delta = 8; optional int32 id_sequence_updates = 9; } message GetRequest { optional InternalHeader header = 6; repeated Reference key = 1; optional Transaction transaction = 2; optional int64 failover_ms = 3; optional bool strong = 4; optional bool allow_deferred = 5 [default=false]; } message GetResponse { repeated group Entity = 1 { optional EntityProto entity = 2; optional Reference key = 4; optional int64 version = 3; } repeated Reference deferred = 5; optional bool in_order = 6 [default=true]; } message PutRequest { optional InternalHeader header = 11; repeated EntityProto entity = 1; optional Transaction transaction = 2; repeated CompositeIndex composite_index = 3; optional bool trusted = 4 [default = false]; optional bool force = 7 [default = false]; optional bool mark_changes = 8 [default = false]; repeated Snapshot snapshot = 9; enum AutoIdPolicy { CURRENT = 0; SEQUENTIAL = 1; } optional AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; } message PutResponse { repeated Reference key = 1; optional Cost cost = 2; repeated int64 version = 3; } message TouchRequest { optional InternalHeader header = 10; repeated Reference key = 1; repeated CompositeIndex composite_index = 2; optional bool force = 3 [default = false]; repeated Snapshot snapshot = 9; } message TouchResponse { optional Cost cost = 1; } message DeleteRequest { optional InternalHeader header = 10; repeated Reference key = 6; optional Transaction transaction = 5; optional bool trusted = 4 [default = false]; optional bool force = 7 [default = false]; optional bool mark_changes = 8 [default = false]; repeated Snapshot snapshot = 9; } message DeleteResponse { optional Cost cost = 1; repeated int64 version = 3; } message NextRequest { optional InternalHeader header = 5; required Cursor cursor = 1; optional int32 count = 2; optional int32 offset = 4 [default = 0]; optional bool compile = 3 [default = false]; } message QueryResult { optional Cursor cursor = 1; repeated EntityProto result = 2; optional int32 skipped_results = 7; required bool more_results = 3; optional bool keys_only = 4; optional bool index_only = 9; optional bool small_ops = 10; optional CompiledQuery compiled_query = 5; optional CompiledCursor compiled_cursor = 6; repeated CompositeIndex index = 8; repeated int64 version = 11; } message AllocateIdsRequest { optional InternalHeader header = 4; optional Reference model_key = 1; optional int64 size = 2; optional int64 max = 3; repeated Reference reserve = 5; } message AllocateIdsResponse { required int64 start = 1; required int64 end = 2; optional Cost cost = 3; } message CompositeIndices { repeated CompositeIndex index = 1; } message AddActionsRequest { optional InternalHeader header = 3; required Transaction transaction = 1; repeated Action action = 2; } message AddActionsResponse { } message BeginTransactionRequest { optional InternalHeader header = 3; required string app = 1; optional bool allow_multiple_eg = 2 [default = false]; optional string database_id = 4; enum TransactionMode { UNKNOWN = 0; READ_ONLY = 1; READ_WRITE = 2; } optional TransactionMode mode = 5 [default = UNKNOWN]; optional Transaction previous_transaction = 7; } message CommitResponse { optional Cost cost = 1; repeated group Version = 3 { required Reference root_entity_key = 4; required int64 version = 5; } }
datastore
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/datastore/datastore_v3.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/datastore/datastore_v3.proto package datastore import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type Property_Meaning int32 const ( Property_NO_MEANING Property_Meaning = 0 Property_BLOB Property_Meaning = 14 Property_TEXT Property_Meaning = 15 Property_BYTESTRING Property_Meaning = 16 Property_ATOM_CATEGORY Property_Meaning = 1 Property_ATOM_LINK Property_Meaning = 2 Property_ATOM_TITLE Property_Meaning = 3 Property_ATOM_CONTENT Property_Meaning = 4 Property_ATOM_SUMMARY Property_Meaning = 5 Property_ATOM_AUTHOR Property_Meaning = 6 Property_GD_WHEN Property_Meaning = 7 Property_GD_EMAIL Property_Meaning = 8 Property_GEORSS_POINT Property_Meaning = 9 Property_GD_IM Property_Meaning = 10 Property_GD_PHONENUMBER Property_Meaning = 11 Property_GD_POSTALADDRESS Property_Meaning = 12 Property_GD_RATING Property_Meaning = 13 Property_BLOBKEY Property_Meaning = 17 Property_ENTITY_PROTO Property_Meaning = 19 Property_INDEX_VALUE Property_Meaning = 18 ) var Property_Meaning_name = map[int32]string{ 0: "NO_MEANING", 14: "BLOB", 15: "TEXT", 16: "BYTESTRING", 1: "ATOM_CATEGORY", 2: "ATOM_LINK", 3: "ATOM_TITLE", 4: "ATOM_CONTENT", 5: "ATOM_SUMMARY", 6: "ATOM_AUTHOR", 7: "GD_WHEN", 8: "GD_EMAIL", 9: "GEORSS_POINT", 10: "GD_IM", 11: "GD_PHONENUMBER", 12: "GD_POSTALADDRESS", 13: "GD_RATING", 17: "BLOBKEY", 19: "ENTITY_PROTO", 18: "INDEX_VALUE", } var Property_Meaning_value = map[string]int32{ "NO_MEANING": 0, "BLOB": 14, "TEXT": 15, "BYTESTRING": 16, "ATOM_CATEGORY": 1, "ATOM_LINK": 2, "ATOM_TITLE": 3, "ATOM_CONTENT": 4, "ATOM_SUMMARY": 5, "ATOM_AUTHOR": 6, "GD_WHEN": 7, "GD_EMAIL": 8, "GEORSS_POINT": 9, "GD_IM": 10, "GD_PHONENUMBER": 11, "GD_POSTALADDRESS": 12, "GD_RATING": 13, "BLOBKEY": 17, "ENTITY_PROTO": 19, "INDEX_VALUE": 18, } func (x Property_Meaning) Enum() *Property_Meaning { p := new(Property_Meaning) *p = x return p } func (x Property_Meaning) String() string { return proto.EnumName(Property_Meaning_name, int32(x)) } func (x *Property_Meaning) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Property_Meaning_value, data, "Property_Meaning") if err != nil { return err } *x = Property_Meaning(value) return nil } func (Property_Meaning) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{2, 0} } type Property_FtsTokenizationOption int32 const ( Property_HTML Property_FtsTokenizationOption = 1 Property_ATOM Property_FtsTokenizationOption = 2 ) var Property_FtsTokenizationOption_name = map[int32]string{ 1: "HTML", 2: "ATOM", } var Property_FtsTokenizationOption_value = map[string]int32{ "HTML": 1, "ATOM": 2, } func (x Property_FtsTokenizationOption) Enum() *Property_FtsTokenizationOption { p := new(Property_FtsTokenizationOption) *p = x return p } func (x Property_FtsTokenizationOption) String() string { return proto.EnumName(Property_FtsTokenizationOption_name, int32(x)) } func (x *Property_FtsTokenizationOption) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Property_FtsTokenizationOption_value, data, "Property_FtsTokenizationOption") if err != nil { return err } *x = Property_FtsTokenizationOption(value) return nil } func (Property_FtsTokenizationOption) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{2, 1} } type EntityProto_Kind int32 const ( EntityProto_GD_CONTACT EntityProto_Kind = 1 EntityProto_GD_EVENT EntityProto_Kind = 2 EntityProto_GD_MESSAGE EntityProto_Kind = 3 ) var EntityProto_Kind_name = map[int32]string{ 1: "GD_CONTACT", 2: "GD_EVENT", 3: "GD_MESSAGE", } var EntityProto_Kind_value = map[string]int32{ "GD_CONTACT": 1, "GD_EVENT": 2, "GD_MESSAGE": 3, } func (x EntityProto_Kind) Enum() *EntityProto_Kind { p := new(EntityProto_Kind) *p = x return p } func (x EntityProto_Kind) String() string { return proto.EnumName(EntityProto_Kind_name, int32(x)) } func (x *EntityProto_Kind) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(EntityProto_Kind_value, data, "EntityProto_Kind") if err != nil { return err } *x = EntityProto_Kind(value) return nil } func (EntityProto_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{6, 0} } type Index_Property_Direction int32 const ( Index_Property_ASCENDING Index_Property_Direction = 1 Index_Property_DESCENDING Index_Property_Direction = 2 ) var Index_Property_Direction_name = map[int32]string{ 1: "ASCENDING", 2: "DESCENDING", } var Index_Property_Direction_value = map[string]int32{ "ASCENDING": 1, "DESCENDING": 2, } func (x Index_Property_Direction) Enum() *Index_Property_Direction { p := new(Index_Property_Direction) *p = x return p } func (x Index_Property_Direction) String() string { return proto.EnumName(Index_Property_Direction_name, int32(x)) } func (x *Index_Property_Direction) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Index_Property_Direction_value, data, "Index_Property_Direction") if err != nil { return err } *x = Index_Property_Direction(value) return nil } func (Index_Property_Direction) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{8, 0, 0} } type CompositeIndex_State int32 const ( CompositeIndex_WRITE_ONLY CompositeIndex_State = 1 CompositeIndex_READ_WRITE CompositeIndex_State = 2 CompositeIndex_DELETED CompositeIndex_State = 3 CompositeIndex_ERROR CompositeIndex_State = 4 ) var CompositeIndex_State_name = map[int32]string{ 1: "WRITE_ONLY", 2: "READ_WRITE", 3: "DELETED", 4: "ERROR", } var CompositeIndex_State_value = map[string]int32{ "WRITE_ONLY": 1, "READ_WRITE": 2, "DELETED": 3, "ERROR": 4, } func (x CompositeIndex_State) Enum() *CompositeIndex_State { p := new(CompositeIndex_State) *p = x return p } func (x CompositeIndex_State) String() string { return proto.EnumName(CompositeIndex_State_name, int32(x)) } func (x *CompositeIndex_State) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(CompositeIndex_State_value, data, "CompositeIndex_State") if err != nil { return err } *x = CompositeIndex_State(value) return nil } func (CompositeIndex_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{9, 0} } type Snapshot_Status int32 const ( Snapshot_INACTIVE Snapshot_Status = 0 Snapshot_ACTIVE Snapshot_Status = 1 ) var Snapshot_Status_name = map[int32]string{ 0: "INACTIVE", 1: "ACTIVE", } var Snapshot_Status_value = map[string]int32{ "INACTIVE": 0, "ACTIVE": 1, } func (x Snapshot_Status) Enum() *Snapshot_Status { p := new(Snapshot_Status) *p = x return p } func (x Snapshot_Status) String() string { return proto.EnumName(Snapshot_Status_name, int32(x)) } func (x *Snapshot_Status) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Snapshot_Status_value, data, "Snapshot_Status") if err != nil { return err } *x = Snapshot_Status(value) return nil } func (Snapshot_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{12, 0} } type Query_Hint int32 const ( Query_ORDER_FIRST Query_Hint = 1 Query_ANCESTOR_FIRST Query_Hint = 2 Query_FILTER_FIRST Query_Hint = 3 ) var Query_Hint_name = map[int32]string{ 1: "ORDER_FIRST", 2: "ANCESTOR_FIRST", 3: "FILTER_FIRST", } var Query_Hint_value = map[string]int32{ "ORDER_FIRST": 1, "ANCESTOR_FIRST": 2, "FILTER_FIRST": 3, } func (x Query_Hint) Enum() *Query_Hint { p := new(Query_Hint) *p = x return p } func (x Query_Hint) String() string { return proto.EnumName(Query_Hint_name, int32(x)) } func (x *Query_Hint) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Query_Hint_value, data, "Query_Hint") if err != nil { return err } *x = Query_Hint(value) return nil } func (Query_Hint) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{15, 0} } type Query_Filter_Operator int32 const ( Query_Filter_LESS_THAN Query_Filter_Operator = 1 Query_Filter_LESS_THAN_OR_EQUAL Query_Filter_Operator = 2 Query_Filter_GREATER_THAN Query_Filter_Operator = 3 Query_Filter_GREATER_THAN_OR_EQUAL Query_Filter_Operator = 4 Query_Filter_EQUAL Query_Filter_Operator = 5 Query_Filter_IN Query_Filter_Operator = 6 Query_Filter_EXISTS Query_Filter_Operator = 7 ) var Query_Filter_Operator_name = map[int32]string{ 1: "LESS_THAN", 2: "LESS_THAN_OR_EQUAL", 3: "GREATER_THAN", 4: "GREATER_THAN_OR_EQUAL", 5: "EQUAL", 6: "IN", 7: "EXISTS", } var Query_Filter_Operator_value = map[string]int32{ "LESS_THAN": 1, "LESS_THAN_OR_EQUAL": 2, "GREATER_THAN": 3, "GREATER_THAN_OR_EQUAL": 4, "EQUAL": 5, "IN": 6, "EXISTS": 7, } func (x Query_Filter_Operator) Enum() *Query_Filter_Operator { p := new(Query_Filter_Operator) *p = x return p } func (x Query_Filter_Operator) String() string { return proto.EnumName(Query_Filter_Operator_name, int32(x)) } func (x *Query_Filter_Operator) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Query_Filter_Operator_value, data, "Query_Filter_Operator") if err != nil { return err } *x = Query_Filter_Operator(value) return nil } func (Query_Filter_Operator) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{15, 0, 0} } type Query_Order_Direction int32 const ( Query_Order_ASCENDING Query_Order_Direction = 1 Query_Order_DESCENDING Query_Order_Direction = 2 ) var Query_Order_Direction_name = map[int32]string{ 1: "ASCENDING", 2: "DESCENDING", } var Query_Order_Direction_value = map[string]int32{ "ASCENDING": 1, "DESCENDING": 2, } func (x Query_Order_Direction) Enum() *Query_Order_Direction { p := new(Query_Order_Direction) *p = x return p } func (x Query_Order_Direction) String() string { return proto.EnumName(Query_Order_Direction_name, int32(x)) } func (x *Query_Order_Direction) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Query_Order_Direction_value, data, "Query_Order_Direction") if err != nil { return err } *x = Query_Order_Direction(value) return nil } func (Query_Order_Direction) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{15, 1, 0} } type Error_ErrorCode int32 const ( Error_BAD_REQUEST Error_ErrorCode = 1 Error_CONCURRENT_TRANSACTION Error_ErrorCode = 2 Error_INTERNAL_ERROR Error_ErrorCode = 3 Error_NEED_INDEX Error_ErrorCode = 4 Error_TIMEOUT Error_ErrorCode = 5 Error_PERMISSION_DENIED Error_ErrorCode = 6 Error_BIGTABLE_ERROR Error_ErrorCode = 7 Error_COMMITTED_BUT_STILL_APPLYING Error_ErrorCode = 8 Error_CAPABILITY_DISABLED Error_ErrorCode = 9 Error_TRY_ALTERNATE_BACKEND Error_ErrorCode = 10 Error_SAFE_TIME_TOO_OLD Error_ErrorCode = 11 ) var Error_ErrorCode_name = map[int32]string{ 1: "BAD_REQUEST", 2: "CONCURRENT_TRANSACTION", 3: "INTERNAL_ERROR", 4: "NEED_INDEX", 5: "TIMEOUT", 6: "PERMISSION_DENIED", 7: "BIGTABLE_ERROR", 8: "COMMITTED_BUT_STILL_APPLYING", 9: "CAPABILITY_DISABLED", 10: "TRY_ALTERNATE_BACKEND", 11: "SAFE_TIME_TOO_OLD", } var Error_ErrorCode_value = map[string]int32{ "BAD_REQUEST": 1, "CONCURRENT_TRANSACTION": 2, "INTERNAL_ERROR": 3, "NEED_INDEX": 4, "TIMEOUT": 5, "PERMISSION_DENIED": 6, "BIGTABLE_ERROR": 7, "COMMITTED_BUT_STILL_APPLYING": 8, "CAPABILITY_DISABLED": 9, "TRY_ALTERNATE_BACKEND": 10, "SAFE_TIME_TOO_OLD": 11, } func (x Error_ErrorCode) Enum() *Error_ErrorCode { p := new(Error_ErrorCode) *p = x return p } func (x Error_ErrorCode) String() string { return proto.EnumName(Error_ErrorCode_name, int32(x)) } func (x *Error_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Error_ErrorCode_value, data, "Error_ErrorCode") if err != nil { return err } *x = Error_ErrorCode(value) return nil } func (Error_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{19, 0} } type PutRequest_AutoIdPolicy int32 const ( PutRequest_CURRENT PutRequest_AutoIdPolicy = 0 PutRequest_SEQUENTIAL PutRequest_AutoIdPolicy = 1 ) var PutRequest_AutoIdPolicy_name = map[int32]string{ 0: "CURRENT", 1: "SEQUENTIAL", } var PutRequest_AutoIdPolicy_value = map[string]int32{ "CURRENT": 0, "SEQUENTIAL": 1, } func (x PutRequest_AutoIdPolicy) Enum() *PutRequest_AutoIdPolicy { p := new(PutRequest_AutoIdPolicy) *p = x return p } func (x PutRequest_AutoIdPolicy) String() string { return proto.EnumName(PutRequest_AutoIdPolicy_name, int32(x)) } func (x *PutRequest_AutoIdPolicy) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(PutRequest_AutoIdPolicy_value, data, "PutRequest_AutoIdPolicy") if err != nil { return err } *x = PutRequest_AutoIdPolicy(value) return nil } func (PutRequest_AutoIdPolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{23, 0} } type BeginTransactionRequest_TransactionMode int32 const ( BeginTransactionRequest_UNKNOWN BeginTransactionRequest_TransactionMode = 0 BeginTransactionRequest_READ_ONLY BeginTransactionRequest_TransactionMode = 1 BeginTransactionRequest_READ_WRITE BeginTransactionRequest_TransactionMode = 2 ) var BeginTransactionRequest_TransactionMode_name = map[int32]string{ 0: "UNKNOWN", 1: "READ_ONLY", 2: "READ_WRITE", } var BeginTransactionRequest_TransactionMode_value = map[string]int32{ "UNKNOWN": 0, "READ_ONLY": 1, "READ_WRITE": 2, } func (x BeginTransactionRequest_TransactionMode) Enum() *BeginTransactionRequest_TransactionMode { p := new(BeginTransactionRequest_TransactionMode) *p = x return p } func (x BeginTransactionRequest_TransactionMode) String() string { return proto.EnumName(BeginTransactionRequest_TransactionMode_name, int32(x)) } func (x *BeginTransactionRequest_TransactionMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(BeginTransactionRequest_TransactionMode_value, data, "BeginTransactionRequest_TransactionMode") if err != nil { return err } *x = BeginTransactionRequest_TransactionMode(value) return nil } func (BeginTransactionRequest_TransactionMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{36, 0} } type Action struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Action) Reset() { *m = Action{} } func (m *Action) String() string { return proto.CompactTextString(m) } func (*Action) ProtoMessage() {} func (*Action) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{0} } func (m *Action) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Action.Unmarshal(m, b) } func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Action.Marshal(b, m, deterministic) } func (dst *Action) XXX_Merge(src proto.Message) { xxx_messageInfo_Action.Merge(dst, src) } func (m *Action) XXX_Size() int { return xxx_messageInfo_Action.Size(m) } func (m *Action) XXX_DiscardUnknown() { xxx_messageInfo_Action.DiscardUnknown(m) } var xxx_messageInfo_Action proto.InternalMessageInfo type PropertyValue struct { Int64Value *int64 `protobuf:"varint,1,opt,name=int64Value" json:"int64Value,omitempty"` BooleanValue *bool `protobuf:"varint,2,opt,name=booleanValue" json:"booleanValue,omitempty"` StringValue *string `protobuf:"bytes,3,opt,name=stringValue" json:"stringValue,omitempty"` DoubleValue *float64 `protobuf:"fixed64,4,opt,name=doubleValue" json:"doubleValue,omitempty"` Pointvalue *PropertyValue_PointValue `protobuf:"group,5,opt,name=PointValue,json=pointvalue" json:"pointvalue,omitempty"` Uservalue *PropertyValue_UserValue `protobuf:"group,8,opt,name=UserValue,json=uservalue" json:"uservalue,omitempty"` Referencevalue *PropertyValue_ReferenceValue `protobuf:"group,12,opt,name=ReferenceValue,json=referencevalue" json:"referencevalue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PropertyValue) Reset() { *m = PropertyValue{} } func (m *PropertyValue) String() string { return proto.CompactTextString(m) } func (*PropertyValue) ProtoMessage() {} func (*PropertyValue) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{1} } func (m *PropertyValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PropertyValue.Unmarshal(m, b) } func (m *PropertyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PropertyValue.Marshal(b, m, deterministic) } func (dst *PropertyValue) XXX_Merge(src proto.Message) { xxx_messageInfo_PropertyValue.Merge(dst, src) } func (m *PropertyValue) XXX_Size() int { return xxx_messageInfo_PropertyValue.Size(m) } func (m *PropertyValue) XXX_DiscardUnknown() { xxx_messageInfo_PropertyValue.DiscardUnknown(m) } var xxx_messageInfo_PropertyValue proto.InternalMessageInfo func (m *PropertyValue) GetInt64Value() int64 { if m != nil && m.Int64Value != nil { return *m.Int64Value } return 0 } func (m *PropertyValue) GetBooleanValue() bool { if m != nil && m.BooleanValue != nil { return *m.BooleanValue } return false } func (m *PropertyValue) GetStringValue() string { if m != nil && m.StringValue != nil { return *m.StringValue } return "" } func (m *PropertyValue) GetDoubleValue() float64 { if m != nil && m.DoubleValue != nil { return *m.DoubleValue } return 0 } func (m *PropertyValue) GetPointvalue() *PropertyValue_PointValue { if m != nil { return m.Pointvalue } return nil } func (m *PropertyValue) GetUservalue() *PropertyValue_UserValue { if m != nil { return m.Uservalue } return nil } func (m *PropertyValue) GetReferencevalue() *PropertyValue_ReferenceValue { if m != nil { return m.Referencevalue } return nil } type PropertyValue_PointValue struct { X *float64 `protobuf:"fixed64,6,req,name=x" json:"x,omitempty"` Y *float64 `protobuf:"fixed64,7,req,name=y" json:"y,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PropertyValue_PointValue) Reset() { *m = PropertyValue_PointValue{} } func (m *PropertyValue_PointValue) String() string { return proto.CompactTextString(m) } func (*PropertyValue_PointValue) ProtoMessage() {} func (*PropertyValue_PointValue) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{1, 0} } func (m *PropertyValue_PointValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PropertyValue_PointValue.Unmarshal(m, b) } func (m *PropertyValue_PointValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PropertyValue_PointValue.Marshal(b, m, deterministic) } func (dst *PropertyValue_PointValue) XXX_Merge(src proto.Message) { xxx_messageInfo_PropertyValue_PointValue.Merge(dst, src) } func (m *PropertyValue_PointValue) XXX_Size() int { return xxx_messageInfo_PropertyValue_PointValue.Size(m) } func (m *PropertyValue_PointValue) XXX_DiscardUnknown() { xxx_messageInfo_PropertyValue_PointValue.DiscardUnknown(m) } var xxx_messageInfo_PropertyValue_PointValue proto.InternalMessageInfo func (m *PropertyValue_PointValue) GetX() float64 { if m != nil && m.X != nil { return *m.X } return 0 } func (m *PropertyValue_PointValue) GetY() float64 { if m != nil && m.Y != nil { return *m.Y } return 0 } type PropertyValue_UserValue struct { Email *string `protobuf:"bytes,9,req,name=email" json:"email,omitempty"` AuthDomain *string `protobuf:"bytes,10,req,name=auth_domain,json=authDomain" json:"auth_domain,omitempty"` Nickname *string `protobuf:"bytes,11,opt,name=nickname" json:"nickname,omitempty"` FederatedIdentity *string `protobuf:"bytes,21,opt,name=federated_identity,json=federatedIdentity" json:"federated_identity,omitempty"` FederatedProvider *string `protobuf:"bytes,22,opt,name=federated_provider,json=federatedProvider" json:"federated_provider,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PropertyValue_UserValue) Reset() { *m = PropertyValue_UserValue{} } func (m *PropertyValue_UserValue) String() string { return proto.CompactTextString(m) } func (*PropertyValue_UserValue) ProtoMessage() {} func (*PropertyValue_UserValue) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{1, 1} } func (m *PropertyValue_UserValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PropertyValue_UserValue.Unmarshal(m, b) } func (m *PropertyValue_UserValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PropertyValue_UserValue.Marshal(b, m, deterministic) } func (dst *PropertyValue_UserValue) XXX_Merge(src proto.Message) { xxx_messageInfo_PropertyValue_UserValue.Merge(dst, src) } func (m *PropertyValue_UserValue) XXX_Size() int { return xxx_messageInfo_PropertyValue_UserValue.Size(m) } func (m *PropertyValue_UserValue) XXX_DiscardUnknown() { xxx_messageInfo_PropertyValue_UserValue.DiscardUnknown(m) } var xxx_messageInfo_PropertyValue_UserValue proto.InternalMessageInfo func (m *PropertyValue_UserValue) GetEmail() string { if m != nil && m.Email != nil { return *m.Email } return "" } func (m *PropertyValue_UserValue) GetAuthDomain() string { if m != nil && m.AuthDomain != nil { return *m.AuthDomain } return "" } func (m *PropertyValue_UserValue) GetNickname() string { if m != nil && m.Nickname != nil { return *m.Nickname } return "" } func (m *PropertyValue_UserValue) GetFederatedIdentity() string { if m != nil && m.FederatedIdentity != nil { return *m.FederatedIdentity } return "" } func (m *PropertyValue_UserValue) GetFederatedProvider() string { if m != nil && m.FederatedProvider != nil { return *m.FederatedProvider } return "" } type PropertyValue_ReferenceValue struct { App *string `protobuf:"bytes,13,req,name=app" json:"app,omitempty"` NameSpace *string `protobuf:"bytes,20,opt,name=name_space,json=nameSpace" json:"name_space,omitempty"` Pathelement []*PropertyValue_ReferenceValue_PathElement `protobuf:"group,14,rep,name=PathElement,json=pathelement" json:"pathelement,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PropertyValue_ReferenceValue) Reset() { *m = PropertyValue_ReferenceValue{} } func (m *PropertyValue_ReferenceValue) String() string { return proto.CompactTextString(m) } func (*PropertyValue_ReferenceValue) ProtoMessage() {} func (*PropertyValue_ReferenceValue) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{1, 2} } func (m *PropertyValue_ReferenceValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PropertyValue_ReferenceValue.Unmarshal(m, b) } func (m *PropertyValue_ReferenceValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PropertyValue_ReferenceValue.Marshal(b, m, deterministic) } func (dst *PropertyValue_ReferenceValue) XXX_Merge(src proto.Message) { xxx_messageInfo_PropertyValue_ReferenceValue.Merge(dst, src) } func (m *PropertyValue_ReferenceValue) XXX_Size() int { return xxx_messageInfo_PropertyValue_ReferenceValue.Size(m) } func (m *PropertyValue_ReferenceValue) XXX_DiscardUnknown() { xxx_messageInfo_PropertyValue_ReferenceValue.DiscardUnknown(m) } var xxx_messageInfo_PropertyValue_ReferenceValue proto.InternalMessageInfo func (m *PropertyValue_ReferenceValue) GetApp() string { if m != nil && m.App != nil { return *m.App } return "" } func (m *PropertyValue_ReferenceValue) GetNameSpace() string { if m != nil && m.NameSpace != nil { return *m.NameSpace } return "" } func (m *PropertyValue_ReferenceValue) GetPathelement() []*PropertyValue_ReferenceValue_PathElement { if m != nil { return m.Pathelement } return nil } type PropertyValue_ReferenceValue_PathElement struct { Type *string `protobuf:"bytes,15,req,name=type" json:"type,omitempty"` Id *int64 `protobuf:"varint,16,opt,name=id" json:"id,omitempty"` Name *string `protobuf:"bytes,17,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PropertyValue_ReferenceValue_PathElement) Reset() { *m = PropertyValue_ReferenceValue_PathElement{} } func (m *PropertyValue_ReferenceValue_PathElement) String() string { return proto.CompactTextString(m) } func (*PropertyValue_ReferenceValue_PathElement) ProtoMessage() {} func (*PropertyValue_ReferenceValue_PathElement) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{1, 2, 0} } func (m *PropertyValue_ReferenceValue_PathElement) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PropertyValue_ReferenceValue_PathElement.Unmarshal(m, b) } func (m *PropertyValue_ReferenceValue_PathElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PropertyValue_ReferenceValue_PathElement.Marshal(b, m, deterministic) } func (dst *PropertyValue_ReferenceValue_PathElement) XXX_Merge(src proto.Message) { xxx_messageInfo_PropertyValue_ReferenceValue_PathElement.Merge(dst, src) } func (m *PropertyValue_ReferenceValue_PathElement) XXX_Size() int { return xxx_messageInfo_PropertyValue_ReferenceValue_PathElement.Size(m) } func (m *PropertyValue_ReferenceValue_PathElement) XXX_DiscardUnknown() { xxx_messageInfo_PropertyValue_ReferenceValue_PathElement.DiscardUnknown(m) } var xxx_messageInfo_PropertyValue_ReferenceValue_PathElement proto.InternalMessageInfo func (m *PropertyValue_ReferenceValue_PathElement) GetType() string { if m != nil && m.Type != nil { return *m.Type } return "" } func (m *PropertyValue_ReferenceValue_PathElement) GetId() int64 { if m != nil && m.Id != nil { return *m.Id } return 0 } func (m *PropertyValue_ReferenceValue_PathElement) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } type Property struct { Meaning *Property_Meaning `protobuf:"varint,1,opt,name=meaning,enum=appengine.Property_Meaning,def=0" json:"meaning,omitempty"` MeaningUri *string `protobuf:"bytes,2,opt,name=meaning_uri,json=meaningUri" json:"meaning_uri,omitempty"` Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"` Value *PropertyValue `protobuf:"bytes,5,req,name=value" json:"value,omitempty"` Multiple *bool `protobuf:"varint,4,req,name=multiple" json:"multiple,omitempty"` Searchable *bool `protobuf:"varint,6,opt,name=searchable,def=0" json:"searchable,omitempty"` FtsTokenizationOption *Property_FtsTokenizationOption `protobuf:"varint,8,opt,name=fts_tokenization_option,json=ftsTokenizationOption,enum=appengine.Property_FtsTokenizationOption" json:"fts_tokenization_option,omitempty"` Locale *string `protobuf:"bytes,9,opt,name=locale,def=en" json:"locale,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Property) Reset() { *m = Property{} } func (m *Property) String() string { return proto.CompactTextString(m) } func (*Property) ProtoMessage() {} func (*Property) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{2} } func (m *Property) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Property.Unmarshal(m, b) } func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Property.Marshal(b, m, deterministic) } func (dst *Property) XXX_Merge(src proto.Message) { xxx_messageInfo_Property.Merge(dst, src) } func (m *Property) XXX_Size() int { return xxx_messageInfo_Property.Size(m) } func (m *Property) XXX_DiscardUnknown() { xxx_messageInfo_Property.DiscardUnknown(m) } var xxx_messageInfo_Property proto.InternalMessageInfo const Default_Property_Meaning Property_Meaning = Property_NO_MEANING const Default_Property_Searchable bool = false const Default_Property_Locale string = "en" func (m *Property) GetMeaning() Property_Meaning { if m != nil && m.Meaning != nil { return *m.Meaning } return Default_Property_Meaning } func (m *Property) GetMeaningUri() string { if m != nil && m.MeaningUri != nil { return *m.MeaningUri } return "" } func (m *Property) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *Property) GetValue() *PropertyValue { if m != nil { return m.Value } return nil } func (m *Property) GetMultiple() bool { if m != nil && m.Multiple != nil { return *m.Multiple } return false } func (m *Property) GetSearchable() bool { if m != nil && m.Searchable != nil { return *m.Searchable } return Default_Property_Searchable } func (m *Property) GetFtsTokenizationOption() Property_FtsTokenizationOption { if m != nil && m.FtsTokenizationOption != nil { return *m.FtsTokenizationOption } return Property_HTML } func (m *Property) GetLocale() string { if m != nil && m.Locale != nil { return *m.Locale } return Default_Property_Locale } type Path struct { Element []*Path_Element `protobuf:"group,1,rep,name=Element,json=element" json:"element,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Path) Reset() { *m = Path{} } func (m *Path) String() string { return proto.CompactTextString(m) } func (*Path) ProtoMessage() {} func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{3} } func (m *Path) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Path.Unmarshal(m, b) } func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Path.Marshal(b, m, deterministic) } func (dst *Path) XXX_Merge(src proto.Message) { xxx_messageInfo_Path.Merge(dst, src) } func (m *Path) XXX_Size() int { return xxx_messageInfo_Path.Size(m) } func (m *Path) XXX_DiscardUnknown() { xxx_messageInfo_Path.DiscardUnknown(m) } var xxx_messageInfo_Path proto.InternalMessageInfo func (m *Path) GetElement() []*Path_Element { if m != nil { return m.Element } return nil } type Path_Element struct { Type *string `protobuf:"bytes,2,req,name=type" json:"type,omitempty"` Id *int64 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"` Name *string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Path_Element) Reset() { *m = Path_Element{} } func (m *Path_Element) String() string { return proto.CompactTextString(m) } func (*Path_Element) ProtoMessage() {} func (*Path_Element) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{3, 0} } func (m *Path_Element) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Path_Element.Unmarshal(m, b) } func (m *Path_Element) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Path_Element.Marshal(b, m, deterministic) } func (dst *Path_Element) XXX_Merge(src proto.Message) { xxx_messageInfo_Path_Element.Merge(dst, src) } func (m *Path_Element) XXX_Size() int { return xxx_messageInfo_Path_Element.Size(m) } func (m *Path_Element) XXX_DiscardUnknown() { xxx_messageInfo_Path_Element.DiscardUnknown(m) } var xxx_messageInfo_Path_Element proto.InternalMessageInfo func (m *Path_Element) GetType() string { if m != nil && m.Type != nil { return *m.Type } return "" } func (m *Path_Element) GetId() int64 { if m != nil && m.Id != nil { return *m.Id } return 0 } func (m *Path_Element) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } type Reference struct { App *string `protobuf:"bytes,13,req,name=app" json:"app,omitempty"` NameSpace *string `protobuf:"bytes,20,opt,name=name_space,json=nameSpace" json:"name_space,omitempty"` Path *Path `protobuf:"bytes,14,req,name=path" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Reference) Reset() { *m = Reference{} } func (m *Reference) String() string { return proto.CompactTextString(m) } func (*Reference) ProtoMessage() {} func (*Reference) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{4} } func (m *Reference) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Reference.Unmarshal(m, b) } func (m *Reference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Reference.Marshal(b, m, deterministic) } func (dst *Reference) XXX_Merge(src proto.Message) { xxx_messageInfo_Reference.Merge(dst, src) } func (m *Reference) XXX_Size() int { return xxx_messageInfo_Reference.Size(m) } func (m *Reference) XXX_DiscardUnknown() { xxx_messageInfo_Reference.DiscardUnknown(m) } var xxx_messageInfo_Reference proto.InternalMessageInfo func (m *Reference) GetApp() string { if m != nil && m.App != nil { return *m.App } return "" } func (m *Reference) GetNameSpace() string { if m != nil && m.NameSpace != nil { return *m.NameSpace } return "" } func (m *Reference) GetPath() *Path { if m != nil { return m.Path } return nil } type User struct { Email *string `protobuf:"bytes,1,req,name=email" json:"email,omitempty"` AuthDomain *string `protobuf:"bytes,2,req,name=auth_domain,json=authDomain" json:"auth_domain,omitempty"` Nickname *string `protobuf:"bytes,3,opt,name=nickname" json:"nickname,omitempty"` FederatedIdentity *string `protobuf:"bytes,6,opt,name=federated_identity,json=federatedIdentity" json:"federated_identity,omitempty"` FederatedProvider *string `protobuf:"bytes,7,opt,name=federated_provider,json=federatedProvider" json:"federated_provider,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *User) Reset() { *m = User{} } func (m *User) String() string { return proto.CompactTextString(m) } func (*User) ProtoMessage() {} func (*User) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{5} } func (m *User) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_User.Unmarshal(m, b) } func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_User.Marshal(b, m, deterministic) } func (dst *User) XXX_Merge(src proto.Message) { xxx_messageInfo_User.Merge(dst, src) } func (m *User) XXX_Size() int { return xxx_messageInfo_User.Size(m) } func (m *User) XXX_DiscardUnknown() { xxx_messageInfo_User.DiscardUnknown(m) } var xxx_messageInfo_User proto.InternalMessageInfo func (m *User) GetEmail() string { if m != nil && m.Email != nil { return *m.Email } return "" } func (m *User) GetAuthDomain() string { if m != nil && m.AuthDomain != nil { return *m.AuthDomain } return "" } func (m *User) GetNickname() string { if m != nil && m.Nickname != nil { return *m.Nickname } return "" } func (m *User) GetFederatedIdentity() string { if m != nil && m.FederatedIdentity != nil { return *m.FederatedIdentity } return "" } func (m *User) GetFederatedProvider() string { if m != nil && m.FederatedProvider != nil { return *m.FederatedProvider } return "" } type EntityProto struct { Key *Reference `protobuf:"bytes,13,req,name=key" json:"key,omitempty"` EntityGroup *Path `protobuf:"bytes,16,req,name=entity_group,json=entityGroup" json:"entity_group,omitempty"` Owner *User `protobuf:"bytes,17,opt,name=owner" json:"owner,omitempty"` Kind *EntityProto_Kind `protobuf:"varint,4,opt,name=kind,enum=appengine.EntityProto_Kind" json:"kind,omitempty"` KindUri *string `protobuf:"bytes,5,opt,name=kind_uri,json=kindUri" json:"kind_uri,omitempty"` Property []*Property `protobuf:"bytes,14,rep,name=property" json:"property,omitempty"` RawProperty []*Property `protobuf:"bytes,15,rep,name=raw_property,json=rawProperty" json:"raw_property,omitempty"` Rank *int32 `protobuf:"varint,18,opt,name=rank" json:"rank,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *EntityProto) Reset() { *m = EntityProto{} } func (m *EntityProto) String() string { return proto.CompactTextString(m) } func (*EntityProto) ProtoMessage() {} func (*EntityProto) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{6} } func (m *EntityProto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_EntityProto.Unmarshal(m, b) } func (m *EntityProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_EntityProto.Marshal(b, m, deterministic) } func (dst *EntityProto) XXX_Merge(src proto.Message) { xxx_messageInfo_EntityProto.Merge(dst, src) } func (m *EntityProto) XXX_Size() int { return xxx_messageInfo_EntityProto.Size(m) } func (m *EntityProto) XXX_DiscardUnknown() { xxx_messageInfo_EntityProto.DiscardUnknown(m) } var xxx_messageInfo_EntityProto proto.InternalMessageInfo func (m *EntityProto) GetKey() *Reference { if m != nil { return m.Key } return nil } func (m *EntityProto) GetEntityGroup() *Path { if m != nil { return m.EntityGroup } return nil } func (m *EntityProto) GetOwner() *User { if m != nil { return m.Owner } return nil } func (m *EntityProto) GetKind() EntityProto_Kind { if m != nil && m.Kind != nil { return *m.Kind } return EntityProto_GD_CONTACT } func (m *EntityProto) GetKindUri() string { if m != nil && m.KindUri != nil { return *m.KindUri } return "" } func (m *EntityProto) GetProperty() []*Property { if m != nil { return m.Property } return nil } func (m *EntityProto) GetRawProperty() []*Property { if m != nil { return m.RawProperty } return nil } func (m *EntityProto) GetRank() int32 { if m != nil && m.Rank != nil { return *m.Rank } return 0 } type CompositeProperty struct { IndexId *int64 `protobuf:"varint,1,req,name=index_id,json=indexId" json:"index_id,omitempty"` Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompositeProperty) Reset() { *m = CompositeProperty{} } func (m *CompositeProperty) String() string { return proto.CompactTextString(m) } func (*CompositeProperty) ProtoMessage() {} func (*CompositeProperty) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{7} } func (m *CompositeProperty) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompositeProperty.Unmarshal(m, b) } func (m *CompositeProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompositeProperty.Marshal(b, m, deterministic) } func (dst *CompositeProperty) XXX_Merge(src proto.Message) { xxx_messageInfo_CompositeProperty.Merge(dst, src) } func (m *CompositeProperty) XXX_Size() int { return xxx_messageInfo_CompositeProperty.Size(m) } func (m *CompositeProperty) XXX_DiscardUnknown() { xxx_messageInfo_CompositeProperty.DiscardUnknown(m) } var xxx_messageInfo_CompositeProperty proto.InternalMessageInfo func (m *CompositeProperty) GetIndexId() int64 { if m != nil && m.IndexId != nil { return *m.IndexId } return 0 } func (m *CompositeProperty) GetValue() []string { if m != nil { return m.Value } return nil } type Index struct { EntityType *string `protobuf:"bytes,1,req,name=entity_type,json=entityType" json:"entity_type,omitempty"` Ancestor *bool `protobuf:"varint,5,req,name=ancestor" json:"ancestor,omitempty"` Property []*Index_Property `protobuf:"group,2,rep,name=Property,json=property" json:"property,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Index) Reset() { *m = Index{} } func (m *Index) String() string { return proto.CompactTextString(m) } func (*Index) ProtoMessage() {} func (*Index) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{8} } func (m *Index) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Index.Unmarshal(m, b) } func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Index.Marshal(b, m, deterministic) } func (dst *Index) XXX_Merge(src proto.Message) { xxx_messageInfo_Index.Merge(dst, src) } func (m *Index) XXX_Size() int { return xxx_messageInfo_Index.Size(m) } func (m *Index) XXX_DiscardUnknown() { xxx_messageInfo_Index.DiscardUnknown(m) } var xxx_messageInfo_Index proto.InternalMessageInfo func (m *Index) GetEntityType() string { if m != nil && m.EntityType != nil { return *m.EntityType } return "" } func (m *Index) GetAncestor() bool { if m != nil && m.Ancestor != nil { return *m.Ancestor } return false } func (m *Index) GetProperty() []*Index_Property { if m != nil { return m.Property } return nil } type Index_Property struct { Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"` Direction *Index_Property_Direction `protobuf:"varint,4,opt,name=direction,enum=appengine.Index_Property_Direction,def=1" json:"direction,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Index_Property) Reset() { *m = Index_Property{} } func (m *Index_Property) String() string { return proto.CompactTextString(m) } func (*Index_Property) ProtoMessage() {} func (*Index_Property) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{8, 0} } func (m *Index_Property) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Index_Property.Unmarshal(m, b) } func (m *Index_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Index_Property.Marshal(b, m, deterministic) } func (dst *Index_Property) XXX_Merge(src proto.Message) { xxx_messageInfo_Index_Property.Merge(dst, src) } func (m *Index_Property) XXX_Size() int { return xxx_messageInfo_Index_Property.Size(m) } func (m *Index_Property) XXX_DiscardUnknown() { xxx_messageInfo_Index_Property.DiscardUnknown(m) } var xxx_messageInfo_Index_Property proto.InternalMessageInfo const Default_Index_Property_Direction Index_Property_Direction = Index_Property_ASCENDING func (m *Index_Property) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *Index_Property) GetDirection() Index_Property_Direction { if m != nil && m.Direction != nil { return *m.Direction } return Default_Index_Property_Direction } type CompositeIndex struct { AppId *string `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` Id *int64 `protobuf:"varint,2,req,name=id" json:"id,omitempty"` Definition *Index `protobuf:"bytes,3,req,name=definition" json:"definition,omitempty"` State *CompositeIndex_State `protobuf:"varint,4,req,name=state,enum=appengine.CompositeIndex_State" json:"state,omitempty"` OnlyUseIfRequired *bool `protobuf:"varint,6,opt,name=only_use_if_required,json=onlyUseIfRequired,def=0" json:"only_use_if_required,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompositeIndex) Reset() { *m = CompositeIndex{} } func (m *CompositeIndex) String() string { return proto.CompactTextString(m) } func (*CompositeIndex) ProtoMessage() {} func (*CompositeIndex) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{9} } func (m *CompositeIndex) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompositeIndex.Unmarshal(m, b) } func (m *CompositeIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompositeIndex.Marshal(b, m, deterministic) } func (dst *CompositeIndex) XXX_Merge(src proto.Message) { xxx_messageInfo_CompositeIndex.Merge(dst, src) } func (m *CompositeIndex) XXX_Size() int { return xxx_messageInfo_CompositeIndex.Size(m) } func (m *CompositeIndex) XXX_DiscardUnknown() { xxx_messageInfo_CompositeIndex.DiscardUnknown(m) } var xxx_messageInfo_CompositeIndex proto.InternalMessageInfo const Default_CompositeIndex_OnlyUseIfRequired bool = false func (m *CompositeIndex) GetAppId() string { if m != nil && m.AppId != nil { return *m.AppId } return "" } func (m *CompositeIndex) GetId() int64 { if m != nil && m.Id != nil { return *m.Id } return 0 } func (m *CompositeIndex) GetDefinition() *Index { if m != nil { return m.Definition } return nil } func (m *CompositeIndex) GetState() CompositeIndex_State { if m != nil && m.State != nil { return *m.State } return CompositeIndex_WRITE_ONLY } func (m *CompositeIndex) GetOnlyUseIfRequired() bool { if m != nil && m.OnlyUseIfRequired != nil { return *m.OnlyUseIfRequired } return Default_CompositeIndex_OnlyUseIfRequired } type IndexPostfix struct { IndexValue []*IndexPostfix_IndexValue `protobuf:"bytes,1,rep,name=index_value,json=indexValue" json:"index_value,omitempty"` Key *Reference `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` Before *bool `protobuf:"varint,3,opt,name=before,def=1" json:"before,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexPostfix) Reset() { *m = IndexPostfix{} } func (m *IndexPostfix) String() string { return proto.CompactTextString(m) } func (*IndexPostfix) ProtoMessage() {} func (*IndexPostfix) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{10} } func (m *IndexPostfix) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexPostfix.Unmarshal(m, b) } func (m *IndexPostfix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexPostfix.Marshal(b, m, deterministic) } func (dst *IndexPostfix) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexPostfix.Merge(dst, src) } func (m *IndexPostfix) XXX_Size() int { return xxx_messageInfo_IndexPostfix.Size(m) } func (m *IndexPostfix) XXX_DiscardUnknown() { xxx_messageInfo_IndexPostfix.DiscardUnknown(m) } var xxx_messageInfo_IndexPostfix proto.InternalMessageInfo const Default_IndexPostfix_Before bool = true func (m *IndexPostfix) GetIndexValue() []*IndexPostfix_IndexValue { if m != nil { return m.IndexValue } return nil } func (m *IndexPostfix) GetKey() *Reference { if m != nil { return m.Key } return nil } func (m *IndexPostfix) GetBefore() bool { if m != nil && m.Before != nil { return *m.Before } return Default_IndexPostfix_Before } type IndexPostfix_IndexValue struct { PropertyName *string `protobuf:"bytes,1,req,name=property_name,json=propertyName" json:"property_name,omitempty"` Value *PropertyValue `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexPostfix_IndexValue) Reset() { *m = IndexPostfix_IndexValue{} } func (m *IndexPostfix_IndexValue) String() string { return proto.CompactTextString(m) } func (*IndexPostfix_IndexValue) ProtoMessage() {} func (*IndexPostfix_IndexValue) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{10, 0} } func (m *IndexPostfix_IndexValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexPostfix_IndexValue.Unmarshal(m, b) } func (m *IndexPostfix_IndexValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexPostfix_IndexValue.Marshal(b, m, deterministic) } func (dst *IndexPostfix_IndexValue) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexPostfix_IndexValue.Merge(dst, src) } func (m *IndexPostfix_IndexValue) XXX_Size() int { return xxx_messageInfo_IndexPostfix_IndexValue.Size(m) } func (m *IndexPostfix_IndexValue) XXX_DiscardUnknown() { xxx_messageInfo_IndexPostfix_IndexValue.DiscardUnknown(m) } var xxx_messageInfo_IndexPostfix_IndexValue proto.InternalMessageInfo func (m *IndexPostfix_IndexValue) GetPropertyName() string { if m != nil && m.PropertyName != nil { return *m.PropertyName } return "" } func (m *IndexPostfix_IndexValue) GetValue() *PropertyValue { if m != nil { return m.Value } return nil } type IndexPosition struct { Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Before *bool `protobuf:"varint,2,opt,name=before,def=1" json:"before,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexPosition) Reset() { *m = IndexPosition{} } func (m *IndexPosition) String() string { return proto.CompactTextString(m) } func (*IndexPosition) ProtoMessage() {} func (*IndexPosition) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{11} } func (m *IndexPosition) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexPosition.Unmarshal(m, b) } func (m *IndexPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexPosition.Marshal(b, m, deterministic) } func (dst *IndexPosition) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexPosition.Merge(dst, src) } func (m *IndexPosition) XXX_Size() int { return xxx_messageInfo_IndexPosition.Size(m) } func (m *IndexPosition) XXX_DiscardUnknown() { xxx_messageInfo_IndexPosition.DiscardUnknown(m) } var xxx_messageInfo_IndexPosition proto.InternalMessageInfo const Default_IndexPosition_Before bool = true func (m *IndexPosition) GetKey() string { if m != nil && m.Key != nil { return *m.Key } return "" } func (m *IndexPosition) GetBefore() bool { if m != nil && m.Before != nil { return *m.Before } return Default_IndexPosition_Before } type Snapshot struct { Ts *int64 `protobuf:"varint,1,req,name=ts" json:"ts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Snapshot) Reset() { *m = Snapshot{} } func (m *Snapshot) String() string { return proto.CompactTextString(m) } func (*Snapshot) ProtoMessage() {} func (*Snapshot) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{12} } func (m *Snapshot) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Snapshot.Unmarshal(m, b) } func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Snapshot.Marshal(b, m, deterministic) } func (dst *Snapshot) XXX_Merge(src proto.Message) { xxx_messageInfo_Snapshot.Merge(dst, src) } func (m *Snapshot) XXX_Size() int { return xxx_messageInfo_Snapshot.Size(m) } func (m *Snapshot) XXX_DiscardUnknown() { xxx_messageInfo_Snapshot.DiscardUnknown(m) } var xxx_messageInfo_Snapshot proto.InternalMessageInfo func (m *Snapshot) GetTs() int64 { if m != nil && m.Ts != nil { return *m.Ts } return 0 } type InternalHeader struct { Qos *string `protobuf:"bytes,1,opt,name=qos" json:"qos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *InternalHeader) Reset() { *m = InternalHeader{} } func (m *InternalHeader) String() string { return proto.CompactTextString(m) } func (*InternalHeader) ProtoMessage() {} func (*InternalHeader) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{13} } func (m *InternalHeader) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InternalHeader.Unmarshal(m, b) } func (m *InternalHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InternalHeader.Marshal(b, m, deterministic) } func (dst *InternalHeader) XXX_Merge(src proto.Message) { xxx_messageInfo_InternalHeader.Merge(dst, src) } func (m *InternalHeader) XXX_Size() int { return xxx_messageInfo_InternalHeader.Size(m) } func (m *InternalHeader) XXX_DiscardUnknown() { xxx_messageInfo_InternalHeader.DiscardUnknown(m) } var xxx_messageInfo_InternalHeader proto.InternalMessageInfo func (m *InternalHeader) GetQos() string { if m != nil && m.Qos != nil { return *m.Qos } return "" } type Transaction struct { Header *InternalHeader `protobuf:"bytes,4,opt,name=header" json:"header,omitempty"` Handle *uint64 `protobuf:"fixed64,1,req,name=handle" json:"handle,omitempty"` App *string `protobuf:"bytes,2,req,name=app" json:"app,omitempty"` MarkChanges *bool `protobuf:"varint,3,opt,name=mark_changes,json=markChanges,def=0" json:"mark_changes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Transaction) Reset() { *m = Transaction{} } func (m *Transaction) String() string { return proto.CompactTextString(m) } func (*Transaction) ProtoMessage() {} func (*Transaction) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{14} } func (m *Transaction) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Transaction.Unmarshal(m, b) } func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Transaction.Marshal(b, m, deterministic) } func (dst *Transaction) XXX_Merge(src proto.Message) { xxx_messageInfo_Transaction.Merge(dst, src) } func (m *Transaction) XXX_Size() int { return xxx_messageInfo_Transaction.Size(m) } func (m *Transaction) XXX_DiscardUnknown() { xxx_messageInfo_Transaction.DiscardUnknown(m) } var xxx_messageInfo_Transaction proto.InternalMessageInfo const Default_Transaction_MarkChanges bool = false func (m *Transaction) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *Transaction) GetHandle() uint64 { if m != nil && m.Handle != nil { return *m.Handle } return 0 } func (m *Transaction) GetApp() string { if m != nil && m.App != nil { return *m.App } return "" } func (m *Transaction) GetMarkChanges() bool { if m != nil && m.MarkChanges != nil { return *m.MarkChanges } return Default_Transaction_MarkChanges } type Query struct { Header *InternalHeader `protobuf:"bytes,39,opt,name=header" json:"header,omitempty"` App *string `protobuf:"bytes,1,req,name=app" json:"app,omitempty"` NameSpace *string `protobuf:"bytes,29,opt,name=name_space,json=nameSpace" json:"name_space,omitempty"` Kind *string `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"` Ancestor *Reference `protobuf:"bytes,17,opt,name=ancestor" json:"ancestor,omitempty"` Filter []*Query_Filter `protobuf:"group,4,rep,name=Filter,json=filter" json:"filter,omitempty"` SearchQuery *string `protobuf:"bytes,8,opt,name=search_query,json=searchQuery" json:"search_query,omitempty"` Order []*Query_Order `protobuf:"group,9,rep,name=Order,json=order" json:"order,omitempty"` Hint *Query_Hint `protobuf:"varint,18,opt,name=hint,enum=appengine.Query_Hint" json:"hint,omitempty"` Count *int32 `protobuf:"varint,23,opt,name=count" json:"count,omitempty"` Offset *int32 `protobuf:"varint,12,opt,name=offset,def=0" json:"offset,omitempty"` Limit *int32 `protobuf:"varint,16,opt,name=limit" json:"limit,omitempty"` CompiledCursor *CompiledCursor `protobuf:"bytes,30,opt,name=compiled_cursor,json=compiledCursor" json:"compiled_cursor,omitempty"` EndCompiledCursor *CompiledCursor `protobuf:"bytes,31,opt,name=end_compiled_cursor,json=endCompiledCursor" json:"end_compiled_cursor,omitempty"` CompositeIndex []*CompositeIndex `protobuf:"bytes,19,rep,name=composite_index,json=compositeIndex" json:"composite_index,omitempty"` RequirePerfectPlan *bool `protobuf:"varint,20,opt,name=require_perfect_plan,json=requirePerfectPlan,def=0" json:"require_perfect_plan,omitempty"` KeysOnly *bool `protobuf:"varint,21,opt,name=keys_only,json=keysOnly,def=0" json:"keys_only,omitempty"` Transaction *Transaction `protobuf:"bytes,22,opt,name=transaction" json:"transaction,omitempty"` Compile *bool `protobuf:"varint,25,opt,name=compile,def=0" json:"compile,omitempty"` FailoverMs *int64 `protobuf:"varint,26,opt,name=failover_ms,json=failoverMs" json:"failover_ms,omitempty"` Strong *bool `protobuf:"varint,32,opt,name=strong" json:"strong,omitempty"` PropertyName []string `protobuf:"bytes,33,rep,name=property_name,json=propertyName" json:"property_name,omitempty"` GroupByPropertyName []string `protobuf:"bytes,34,rep,name=group_by_property_name,json=groupByPropertyName" json:"group_by_property_name,omitempty"` Distinct *bool `protobuf:"varint,24,opt,name=distinct" json:"distinct,omitempty"` MinSafeTimeSeconds *int64 `protobuf:"varint,35,opt,name=min_safe_time_seconds,json=minSafeTimeSeconds" json:"min_safe_time_seconds,omitempty"` SafeReplicaName []string `protobuf:"bytes,36,rep,name=safe_replica_name,json=safeReplicaName" json:"safe_replica_name,omitempty"` PersistOffset *bool `protobuf:"varint,37,opt,name=persist_offset,json=persistOffset,def=0" json:"persist_offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Query) Reset() { *m = Query{} } func (m *Query) String() string { return proto.CompactTextString(m) } func (*Query) ProtoMessage() {} func (*Query) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{15} } func (m *Query) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Query.Unmarshal(m, b) } func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Query.Marshal(b, m, deterministic) } func (dst *Query) XXX_Merge(src proto.Message) { xxx_messageInfo_Query.Merge(dst, src) } func (m *Query) XXX_Size() int { return xxx_messageInfo_Query.Size(m) } func (m *Query) XXX_DiscardUnknown() { xxx_messageInfo_Query.DiscardUnknown(m) } var xxx_messageInfo_Query proto.InternalMessageInfo const Default_Query_Offset int32 = 0 const Default_Query_RequirePerfectPlan bool = false const Default_Query_KeysOnly bool = false const Default_Query_Compile bool = false const Default_Query_PersistOffset bool = false func (m *Query) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *Query) GetApp() string { if m != nil && m.App != nil { return *m.App } return "" } func (m *Query) GetNameSpace() string { if m != nil && m.NameSpace != nil { return *m.NameSpace } return "" } func (m *Query) GetKind() string { if m != nil && m.Kind != nil { return *m.Kind } return "" } func (m *Query) GetAncestor() *Reference { if m != nil { return m.Ancestor } return nil } func (m *Query) GetFilter() []*Query_Filter { if m != nil { return m.Filter } return nil } func (m *Query) GetSearchQuery() string { if m != nil && m.SearchQuery != nil { return *m.SearchQuery } return "" } func (m *Query) GetOrder() []*Query_Order { if m != nil { return m.Order } return nil } func (m *Query) GetHint() Query_Hint { if m != nil && m.Hint != nil { return *m.Hint } return Query_ORDER_FIRST } func (m *Query) GetCount() int32 { if m != nil && m.Count != nil { return *m.Count } return 0 } func (m *Query) GetOffset() int32 { if m != nil && m.Offset != nil { return *m.Offset } return Default_Query_Offset } func (m *Query) GetLimit() int32 { if m != nil && m.Limit != nil { return *m.Limit } return 0 } func (m *Query) GetCompiledCursor() *CompiledCursor { if m != nil { return m.CompiledCursor } return nil } func (m *Query) GetEndCompiledCursor() *CompiledCursor { if m != nil { return m.EndCompiledCursor } return nil } func (m *Query) GetCompositeIndex() []*CompositeIndex { if m != nil { return m.CompositeIndex } return nil } func (m *Query) GetRequirePerfectPlan() bool { if m != nil && m.RequirePerfectPlan != nil { return *m.RequirePerfectPlan } return Default_Query_RequirePerfectPlan } func (m *Query) GetKeysOnly() bool { if m != nil && m.KeysOnly != nil { return *m.KeysOnly } return Default_Query_KeysOnly } func (m *Query) GetTransaction() *Transaction { if m != nil { return m.Transaction } return nil } func (m *Query) GetCompile() bool { if m != nil && m.Compile != nil { return *m.Compile } return Default_Query_Compile } func (m *Query) GetFailoverMs() int64 { if m != nil && m.FailoverMs != nil { return *m.FailoverMs } return 0 } func (m *Query) GetStrong() bool { if m != nil && m.Strong != nil { return *m.Strong } return false } func (m *Query) GetPropertyName() []string { if m != nil { return m.PropertyName } return nil } func (m *Query) GetGroupByPropertyName() []string { if m != nil { return m.GroupByPropertyName } return nil } func (m *Query) GetDistinct() bool { if m != nil && m.Distinct != nil { return *m.Distinct } return false } func (m *Query) GetMinSafeTimeSeconds() int64 { if m != nil && m.MinSafeTimeSeconds != nil { return *m.MinSafeTimeSeconds } return 0 } func (m *Query) GetSafeReplicaName() []string { if m != nil { return m.SafeReplicaName } return nil } func (m *Query) GetPersistOffset() bool { if m != nil && m.PersistOffset != nil { return *m.PersistOffset } return Default_Query_PersistOffset } type Query_Filter struct { Op *Query_Filter_Operator `protobuf:"varint,6,req,name=op,enum=appengine.Query_Filter_Operator" json:"op,omitempty"` Property []*Property `protobuf:"bytes,14,rep,name=property" json:"property,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Query_Filter) Reset() { *m = Query_Filter{} } func (m *Query_Filter) String() string { return proto.CompactTextString(m) } func (*Query_Filter) ProtoMessage() {} func (*Query_Filter) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{15, 0} } func (m *Query_Filter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Query_Filter.Unmarshal(m, b) } func (m *Query_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Query_Filter.Marshal(b, m, deterministic) } func (dst *Query_Filter) XXX_Merge(src proto.Message) { xxx_messageInfo_Query_Filter.Merge(dst, src) } func (m *Query_Filter) XXX_Size() int { return xxx_messageInfo_Query_Filter.Size(m) } func (m *Query_Filter) XXX_DiscardUnknown() { xxx_messageInfo_Query_Filter.DiscardUnknown(m) } var xxx_messageInfo_Query_Filter proto.InternalMessageInfo func (m *Query_Filter) GetOp() Query_Filter_Operator { if m != nil && m.Op != nil { return *m.Op } return Query_Filter_LESS_THAN } func (m *Query_Filter) GetProperty() []*Property { if m != nil { return m.Property } return nil } type Query_Order struct { Property *string `protobuf:"bytes,10,req,name=property" json:"property,omitempty"` Direction *Query_Order_Direction `protobuf:"varint,11,opt,name=direction,enum=appengine.Query_Order_Direction,def=1" json:"direction,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Query_Order) Reset() { *m = Query_Order{} } func (m *Query_Order) String() string { return proto.CompactTextString(m) } func (*Query_Order) ProtoMessage() {} func (*Query_Order) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{15, 1} } func (m *Query_Order) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Query_Order.Unmarshal(m, b) } func (m *Query_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Query_Order.Marshal(b, m, deterministic) } func (dst *Query_Order) XXX_Merge(src proto.Message) { xxx_messageInfo_Query_Order.Merge(dst, src) } func (m *Query_Order) XXX_Size() int { return xxx_messageInfo_Query_Order.Size(m) } func (m *Query_Order) XXX_DiscardUnknown() { xxx_messageInfo_Query_Order.DiscardUnknown(m) } var xxx_messageInfo_Query_Order proto.InternalMessageInfo const Default_Query_Order_Direction Query_Order_Direction = Query_Order_ASCENDING func (m *Query_Order) GetProperty() string { if m != nil && m.Property != nil { return *m.Property } return "" } func (m *Query_Order) GetDirection() Query_Order_Direction { if m != nil && m.Direction != nil { return *m.Direction } return Default_Query_Order_Direction } type CompiledQuery struct { Primaryscan *CompiledQuery_PrimaryScan `protobuf:"group,1,req,name=PrimaryScan,json=primaryscan" json:"primaryscan,omitempty"` Mergejoinscan []*CompiledQuery_MergeJoinScan `protobuf:"group,7,rep,name=MergeJoinScan,json=mergejoinscan" json:"mergejoinscan,omitempty"` IndexDef *Index `protobuf:"bytes,21,opt,name=index_def,json=indexDef" json:"index_def,omitempty"` Offset *int32 `protobuf:"varint,10,opt,name=offset,def=0" json:"offset,omitempty"` Limit *int32 `protobuf:"varint,11,opt,name=limit" json:"limit,omitempty"` KeysOnly *bool `protobuf:"varint,12,req,name=keys_only,json=keysOnly" json:"keys_only,omitempty"` PropertyName []string `protobuf:"bytes,24,rep,name=property_name,json=propertyName" json:"property_name,omitempty"` DistinctInfixSize *int32 `protobuf:"varint,25,opt,name=distinct_infix_size,json=distinctInfixSize" json:"distinct_infix_size,omitempty"` Entityfilter *CompiledQuery_EntityFilter `protobuf:"group,13,opt,name=EntityFilter,json=entityfilter" json:"entityfilter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompiledQuery) Reset() { *m = CompiledQuery{} } func (m *CompiledQuery) String() string { return proto.CompactTextString(m) } func (*CompiledQuery) ProtoMessage() {} func (*CompiledQuery) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{16} } func (m *CompiledQuery) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompiledQuery.Unmarshal(m, b) } func (m *CompiledQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompiledQuery.Marshal(b, m, deterministic) } func (dst *CompiledQuery) XXX_Merge(src proto.Message) { xxx_messageInfo_CompiledQuery.Merge(dst, src) } func (m *CompiledQuery) XXX_Size() int { return xxx_messageInfo_CompiledQuery.Size(m) } func (m *CompiledQuery) XXX_DiscardUnknown() { xxx_messageInfo_CompiledQuery.DiscardUnknown(m) } var xxx_messageInfo_CompiledQuery proto.InternalMessageInfo const Default_CompiledQuery_Offset int32 = 0 func (m *CompiledQuery) GetPrimaryscan() *CompiledQuery_PrimaryScan { if m != nil { return m.Primaryscan } return nil } func (m *CompiledQuery) GetMergejoinscan() []*CompiledQuery_MergeJoinScan { if m != nil { return m.Mergejoinscan } return nil } func (m *CompiledQuery) GetIndexDef() *Index { if m != nil { return m.IndexDef } return nil } func (m *CompiledQuery) GetOffset() int32 { if m != nil && m.Offset != nil { return *m.Offset } return Default_CompiledQuery_Offset } func (m *CompiledQuery) GetLimit() int32 { if m != nil && m.Limit != nil { return *m.Limit } return 0 } func (m *CompiledQuery) GetKeysOnly() bool { if m != nil && m.KeysOnly != nil { return *m.KeysOnly } return false } func (m *CompiledQuery) GetPropertyName() []string { if m != nil { return m.PropertyName } return nil } func (m *CompiledQuery) GetDistinctInfixSize() int32 { if m != nil && m.DistinctInfixSize != nil { return *m.DistinctInfixSize } return 0 } func (m *CompiledQuery) GetEntityfilter() *CompiledQuery_EntityFilter { if m != nil { return m.Entityfilter } return nil } type CompiledQuery_PrimaryScan struct { IndexName *string `protobuf:"bytes,2,opt,name=index_name,json=indexName" json:"index_name,omitempty"` StartKey *string `protobuf:"bytes,3,opt,name=start_key,json=startKey" json:"start_key,omitempty"` StartInclusive *bool `protobuf:"varint,4,opt,name=start_inclusive,json=startInclusive" json:"start_inclusive,omitempty"` EndKey *string `protobuf:"bytes,5,opt,name=end_key,json=endKey" json:"end_key,omitempty"` EndInclusive *bool `protobuf:"varint,6,opt,name=end_inclusive,json=endInclusive" json:"end_inclusive,omitempty"` StartPostfixValue []string `protobuf:"bytes,22,rep,name=start_postfix_value,json=startPostfixValue" json:"start_postfix_value,omitempty"` EndPostfixValue []string `protobuf:"bytes,23,rep,name=end_postfix_value,json=endPostfixValue" json:"end_postfix_value,omitempty"` EndUnappliedLogTimestampUs *int64 `protobuf:"varint,19,opt,name=end_unapplied_log_timestamp_us,json=endUnappliedLogTimestampUs" json:"end_unapplied_log_timestamp_us,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompiledQuery_PrimaryScan) Reset() { *m = CompiledQuery_PrimaryScan{} } func (m *CompiledQuery_PrimaryScan) String() string { return proto.CompactTextString(m) } func (*CompiledQuery_PrimaryScan) ProtoMessage() {} func (*CompiledQuery_PrimaryScan) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{16, 0} } func (m *CompiledQuery_PrimaryScan) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompiledQuery_PrimaryScan.Unmarshal(m, b) } func (m *CompiledQuery_PrimaryScan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompiledQuery_PrimaryScan.Marshal(b, m, deterministic) } func (dst *CompiledQuery_PrimaryScan) XXX_Merge(src proto.Message) { xxx_messageInfo_CompiledQuery_PrimaryScan.Merge(dst, src) } func (m *CompiledQuery_PrimaryScan) XXX_Size() int { return xxx_messageInfo_CompiledQuery_PrimaryScan.Size(m) } func (m *CompiledQuery_PrimaryScan) XXX_DiscardUnknown() { xxx_messageInfo_CompiledQuery_PrimaryScan.DiscardUnknown(m) } var xxx_messageInfo_CompiledQuery_PrimaryScan proto.InternalMessageInfo func (m *CompiledQuery_PrimaryScan) GetIndexName() string { if m != nil && m.IndexName != nil { return *m.IndexName } return "" } func (m *CompiledQuery_PrimaryScan) GetStartKey() string { if m != nil && m.StartKey != nil { return *m.StartKey } return "" } func (m *CompiledQuery_PrimaryScan) GetStartInclusive() bool { if m != nil && m.StartInclusive != nil { return *m.StartInclusive } return false } func (m *CompiledQuery_PrimaryScan) GetEndKey() string { if m != nil && m.EndKey != nil { return *m.EndKey } return "" } func (m *CompiledQuery_PrimaryScan) GetEndInclusive() bool { if m != nil && m.EndInclusive != nil { return *m.EndInclusive } return false } func (m *CompiledQuery_PrimaryScan) GetStartPostfixValue() []string { if m != nil { return m.StartPostfixValue } return nil } func (m *CompiledQuery_PrimaryScan) GetEndPostfixValue() []string { if m != nil { return m.EndPostfixValue } return nil } func (m *CompiledQuery_PrimaryScan) GetEndUnappliedLogTimestampUs() int64 { if m != nil && m.EndUnappliedLogTimestampUs != nil { return *m.EndUnappliedLogTimestampUs } return 0 } type CompiledQuery_MergeJoinScan struct { IndexName *string `protobuf:"bytes,8,req,name=index_name,json=indexName" json:"index_name,omitempty"` PrefixValue []string `protobuf:"bytes,9,rep,name=prefix_value,json=prefixValue" json:"prefix_value,omitempty"` ValuePrefix *bool `protobuf:"varint,20,opt,name=value_prefix,json=valuePrefix,def=0" json:"value_prefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompiledQuery_MergeJoinScan) Reset() { *m = CompiledQuery_MergeJoinScan{} } func (m *CompiledQuery_MergeJoinScan) String() string { return proto.CompactTextString(m) } func (*CompiledQuery_MergeJoinScan) ProtoMessage() {} func (*CompiledQuery_MergeJoinScan) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{16, 1} } func (m *CompiledQuery_MergeJoinScan) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompiledQuery_MergeJoinScan.Unmarshal(m, b) } func (m *CompiledQuery_MergeJoinScan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompiledQuery_MergeJoinScan.Marshal(b, m, deterministic) } func (dst *CompiledQuery_MergeJoinScan) XXX_Merge(src proto.Message) { xxx_messageInfo_CompiledQuery_MergeJoinScan.Merge(dst, src) } func (m *CompiledQuery_MergeJoinScan) XXX_Size() int { return xxx_messageInfo_CompiledQuery_MergeJoinScan.Size(m) } func (m *CompiledQuery_MergeJoinScan) XXX_DiscardUnknown() { xxx_messageInfo_CompiledQuery_MergeJoinScan.DiscardUnknown(m) } var xxx_messageInfo_CompiledQuery_MergeJoinScan proto.InternalMessageInfo const Default_CompiledQuery_MergeJoinScan_ValuePrefix bool = false func (m *CompiledQuery_MergeJoinScan) GetIndexName() string { if m != nil && m.IndexName != nil { return *m.IndexName } return "" } func (m *CompiledQuery_MergeJoinScan) GetPrefixValue() []string { if m != nil { return m.PrefixValue } return nil } func (m *CompiledQuery_MergeJoinScan) GetValuePrefix() bool { if m != nil && m.ValuePrefix != nil { return *m.ValuePrefix } return Default_CompiledQuery_MergeJoinScan_ValuePrefix } type CompiledQuery_EntityFilter struct { Distinct *bool `protobuf:"varint,14,opt,name=distinct,def=0" json:"distinct,omitempty"` Kind *string `protobuf:"bytes,17,opt,name=kind" json:"kind,omitempty"` Ancestor *Reference `protobuf:"bytes,18,opt,name=ancestor" json:"ancestor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompiledQuery_EntityFilter) Reset() { *m = CompiledQuery_EntityFilter{} } func (m *CompiledQuery_EntityFilter) String() string { return proto.CompactTextString(m) } func (*CompiledQuery_EntityFilter) ProtoMessage() {} func (*CompiledQuery_EntityFilter) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{16, 2} } func (m *CompiledQuery_EntityFilter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompiledQuery_EntityFilter.Unmarshal(m, b) } func (m *CompiledQuery_EntityFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompiledQuery_EntityFilter.Marshal(b, m, deterministic) } func (dst *CompiledQuery_EntityFilter) XXX_Merge(src proto.Message) { xxx_messageInfo_CompiledQuery_EntityFilter.Merge(dst, src) } func (m *CompiledQuery_EntityFilter) XXX_Size() int { return xxx_messageInfo_CompiledQuery_EntityFilter.Size(m) } func (m *CompiledQuery_EntityFilter) XXX_DiscardUnknown() { xxx_messageInfo_CompiledQuery_EntityFilter.DiscardUnknown(m) } var xxx_messageInfo_CompiledQuery_EntityFilter proto.InternalMessageInfo const Default_CompiledQuery_EntityFilter_Distinct bool = false func (m *CompiledQuery_EntityFilter) GetDistinct() bool { if m != nil && m.Distinct != nil { return *m.Distinct } return Default_CompiledQuery_EntityFilter_Distinct } func (m *CompiledQuery_EntityFilter) GetKind() string { if m != nil && m.Kind != nil { return *m.Kind } return "" } func (m *CompiledQuery_EntityFilter) GetAncestor() *Reference { if m != nil { return m.Ancestor } return nil } type CompiledCursor struct { Position *CompiledCursor_Position `protobuf:"group,2,opt,name=Position,json=position" json:"position,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompiledCursor) Reset() { *m = CompiledCursor{} } func (m *CompiledCursor) String() string { return proto.CompactTextString(m) } func (*CompiledCursor) ProtoMessage() {} func (*CompiledCursor) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{17} } func (m *CompiledCursor) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompiledCursor.Unmarshal(m, b) } func (m *CompiledCursor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompiledCursor.Marshal(b, m, deterministic) } func (dst *CompiledCursor) XXX_Merge(src proto.Message) { xxx_messageInfo_CompiledCursor.Merge(dst, src) } func (m *CompiledCursor) XXX_Size() int { return xxx_messageInfo_CompiledCursor.Size(m) } func (m *CompiledCursor) XXX_DiscardUnknown() { xxx_messageInfo_CompiledCursor.DiscardUnknown(m) } var xxx_messageInfo_CompiledCursor proto.InternalMessageInfo func (m *CompiledCursor) GetPosition() *CompiledCursor_Position { if m != nil { return m.Position } return nil } type CompiledCursor_Position struct { StartKey *string `protobuf:"bytes,27,opt,name=start_key,json=startKey" json:"start_key,omitempty"` Indexvalue []*CompiledCursor_Position_IndexValue `protobuf:"group,29,rep,name=IndexValue,json=indexvalue" json:"indexvalue,omitempty"` Key *Reference `protobuf:"bytes,32,opt,name=key" json:"key,omitempty"` StartInclusive *bool `protobuf:"varint,28,opt,name=start_inclusive,json=startInclusive,def=1" json:"start_inclusive,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompiledCursor_Position) Reset() { *m = CompiledCursor_Position{} } func (m *CompiledCursor_Position) String() string { return proto.CompactTextString(m) } func (*CompiledCursor_Position) ProtoMessage() {} func (*CompiledCursor_Position) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{17, 0} } func (m *CompiledCursor_Position) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompiledCursor_Position.Unmarshal(m, b) } func (m *CompiledCursor_Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompiledCursor_Position.Marshal(b, m, deterministic) } func (dst *CompiledCursor_Position) XXX_Merge(src proto.Message) { xxx_messageInfo_CompiledCursor_Position.Merge(dst, src) } func (m *CompiledCursor_Position) XXX_Size() int { return xxx_messageInfo_CompiledCursor_Position.Size(m) } func (m *CompiledCursor_Position) XXX_DiscardUnknown() { xxx_messageInfo_CompiledCursor_Position.DiscardUnknown(m) } var xxx_messageInfo_CompiledCursor_Position proto.InternalMessageInfo const Default_CompiledCursor_Position_StartInclusive bool = true func (m *CompiledCursor_Position) GetStartKey() string { if m != nil && m.StartKey != nil { return *m.StartKey } return "" } func (m *CompiledCursor_Position) GetIndexvalue() []*CompiledCursor_Position_IndexValue { if m != nil { return m.Indexvalue } return nil } func (m *CompiledCursor_Position) GetKey() *Reference { if m != nil { return m.Key } return nil } func (m *CompiledCursor_Position) GetStartInclusive() bool { if m != nil && m.StartInclusive != nil { return *m.StartInclusive } return Default_CompiledCursor_Position_StartInclusive } type CompiledCursor_Position_IndexValue struct { Property *string `protobuf:"bytes,30,opt,name=property" json:"property,omitempty"` Value *PropertyValue `protobuf:"bytes,31,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompiledCursor_Position_IndexValue) Reset() { *m = CompiledCursor_Position_IndexValue{} } func (m *CompiledCursor_Position_IndexValue) String() string { return proto.CompactTextString(m) } func (*CompiledCursor_Position_IndexValue) ProtoMessage() {} func (*CompiledCursor_Position_IndexValue) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{17, 0, 0} } func (m *CompiledCursor_Position_IndexValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompiledCursor_Position_IndexValue.Unmarshal(m, b) } func (m *CompiledCursor_Position_IndexValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompiledCursor_Position_IndexValue.Marshal(b, m, deterministic) } func (dst *CompiledCursor_Position_IndexValue) XXX_Merge(src proto.Message) { xxx_messageInfo_CompiledCursor_Position_IndexValue.Merge(dst, src) } func (m *CompiledCursor_Position_IndexValue) XXX_Size() int { return xxx_messageInfo_CompiledCursor_Position_IndexValue.Size(m) } func (m *CompiledCursor_Position_IndexValue) XXX_DiscardUnknown() { xxx_messageInfo_CompiledCursor_Position_IndexValue.DiscardUnknown(m) } var xxx_messageInfo_CompiledCursor_Position_IndexValue proto.InternalMessageInfo func (m *CompiledCursor_Position_IndexValue) GetProperty() string { if m != nil && m.Property != nil { return *m.Property } return "" } func (m *CompiledCursor_Position_IndexValue) GetValue() *PropertyValue { if m != nil { return m.Value } return nil } type Cursor struct { Cursor *uint64 `protobuf:"fixed64,1,req,name=cursor" json:"cursor,omitempty"` App *string `protobuf:"bytes,2,opt,name=app" json:"app,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Cursor) Reset() { *m = Cursor{} } func (m *Cursor) String() string { return proto.CompactTextString(m) } func (*Cursor) ProtoMessage() {} func (*Cursor) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{18} } func (m *Cursor) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Cursor.Unmarshal(m, b) } func (m *Cursor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Cursor.Marshal(b, m, deterministic) } func (dst *Cursor) XXX_Merge(src proto.Message) { xxx_messageInfo_Cursor.Merge(dst, src) } func (m *Cursor) XXX_Size() int { return xxx_messageInfo_Cursor.Size(m) } func (m *Cursor) XXX_DiscardUnknown() { xxx_messageInfo_Cursor.DiscardUnknown(m) } var xxx_messageInfo_Cursor proto.InternalMessageInfo func (m *Cursor) GetCursor() uint64 { if m != nil && m.Cursor != nil { return *m.Cursor } return 0 } func (m *Cursor) GetApp() string { if m != nil && m.App != nil { return *m.App } return "" } type Error struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Error) Reset() { *m = Error{} } func (m *Error) String() string { return proto.CompactTextString(m) } func (*Error) ProtoMessage() {} func (*Error) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{19} } func (m *Error) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Error.Unmarshal(m, b) } func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } func (dst *Error) XXX_Merge(src proto.Message) { xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return xxx_messageInfo_Error.Size(m) } func (m *Error) XXX_DiscardUnknown() { xxx_messageInfo_Error.DiscardUnknown(m) } var xxx_messageInfo_Error proto.InternalMessageInfo type Cost struct { IndexWrites *int32 `protobuf:"varint,1,opt,name=index_writes,json=indexWrites" json:"index_writes,omitempty"` IndexWriteBytes *int32 `protobuf:"varint,2,opt,name=index_write_bytes,json=indexWriteBytes" json:"index_write_bytes,omitempty"` EntityWrites *int32 `protobuf:"varint,3,opt,name=entity_writes,json=entityWrites" json:"entity_writes,omitempty"` EntityWriteBytes *int32 `protobuf:"varint,4,opt,name=entity_write_bytes,json=entityWriteBytes" json:"entity_write_bytes,omitempty"` Commitcost *Cost_CommitCost `protobuf:"group,5,opt,name=CommitCost,json=commitcost" json:"commitcost,omitempty"` ApproximateStorageDelta *int32 `protobuf:"varint,8,opt,name=approximate_storage_delta,json=approximateStorageDelta" json:"approximate_storage_delta,omitempty"` IdSequenceUpdates *int32 `protobuf:"varint,9,opt,name=id_sequence_updates,json=idSequenceUpdates" json:"id_sequence_updates,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Cost) Reset() { *m = Cost{} } func (m *Cost) String() string { return proto.CompactTextString(m) } func (*Cost) ProtoMessage() {} func (*Cost) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{20} } func (m *Cost) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Cost.Unmarshal(m, b) } func (m *Cost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Cost.Marshal(b, m, deterministic) } func (dst *Cost) XXX_Merge(src proto.Message) { xxx_messageInfo_Cost.Merge(dst, src) } func (m *Cost) XXX_Size() int { return xxx_messageInfo_Cost.Size(m) } func (m *Cost) XXX_DiscardUnknown() { xxx_messageInfo_Cost.DiscardUnknown(m) } var xxx_messageInfo_Cost proto.InternalMessageInfo func (m *Cost) GetIndexWrites() int32 { if m != nil && m.IndexWrites != nil { return *m.IndexWrites } return 0 } func (m *Cost) GetIndexWriteBytes() int32 { if m != nil && m.IndexWriteBytes != nil { return *m.IndexWriteBytes } return 0 } func (m *Cost) GetEntityWrites() int32 { if m != nil && m.EntityWrites != nil { return *m.EntityWrites } return 0 } func (m *Cost) GetEntityWriteBytes() int32 { if m != nil && m.EntityWriteBytes != nil { return *m.EntityWriteBytes } return 0 } func (m *Cost) GetCommitcost() *Cost_CommitCost { if m != nil { return m.Commitcost } return nil } func (m *Cost) GetApproximateStorageDelta() int32 { if m != nil && m.ApproximateStorageDelta != nil { return *m.ApproximateStorageDelta } return 0 } func (m *Cost) GetIdSequenceUpdates() int32 { if m != nil && m.IdSequenceUpdates != nil { return *m.IdSequenceUpdates } return 0 } type Cost_CommitCost struct { RequestedEntityPuts *int32 `protobuf:"varint,6,opt,name=requested_entity_puts,json=requestedEntityPuts" json:"requested_entity_puts,omitempty"` RequestedEntityDeletes *int32 `protobuf:"varint,7,opt,name=requested_entity_deletes,json=requestedEntityDeletes" json:"requested_entity_deletes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Cost_CommitCost) Reset() { *m = Cost_CommitCost{} } func (m *Cost_CommitCost) String() string { return proto.CompactTextString(m) } func (*Cost_CommitCost) ProtoMessage() {} func (*Cost_CommitCost) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{20, 0} } func (m *Cost_CommitCost) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Cost_CommitCost.Unmarshal(m, b) } func (m *Cost_CommitCost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Cost_CommitCost.Marshal(b, m, deterministic) } func (dst *Cost_CommitCost) XXX_Merge(src proto.Message) { xxx_messageInfo_Cost_CommitCost.Merge(dst, src) } func (m *Cost_CommitCost) XXX_Size() int { return xxx_messageInfo_Cost_CommitCost.Size(m) } func (m *Cost_CommitCost) XXX_DiscardUnknown() { xxx_messageInfo_Cost_CommitCost.DiscardUnknown(m) } var xxx_messageInfo_Cost_CommitCost proto.InternalMessageInfo func (m *Cost_CommitCost) GetRequestedEntityPuts() int32 { if m != nil && m.RequestedEntityPuts != nil { return *m.RequestedEntityPuts } return 0 } func (m *Cost_CommitCost) GetRequestedEntityDeletes() int32 { if m != nil && m.RequestedEntityDeletes != nil { return *m.RequestedEntityDeletes } return 0 } type GetRequest struct { Header *InternalHeader `protobuf:"bytes,6,opt,name=header" json:"header,omitempty"` Key []*Reference `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"` Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction" json:"transaction,omitempty"` FailoverMs *int64 `protobuf:"varint,3,opt,name=failover_ms,json=failoverMs" json:"failover_ms,omitempty"` Strong *bool `protobuf:"varint,4,opt,name=strong" json:"strong,omitempty"` AllowDeferred *bool `protobuf:"varint,5,opt,name=allow_deferred,json=allowDeferred,def=0" json:"allow_deferred,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetRequest) Reset() { *m = GetRequest{} } func (m *GetRequest) String() string { return proto.CompactTextString(m) } func (*GetRequest) ProtoMessage() {} func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{21} } func (m *GetRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetRequest.Unmarshal(m, b) } func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) } func (dst *GetRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetRequest.Merge(dst, src) } func (m *GetRequest) XXX_Size() int { return xxx_messageInfo_GetRequest.Size(m) } func (m *GetRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetRequest.DiscardUnknown(m) } var xxx_messageInfo_GetRequest proto.InternalMessageInfo const Default_GetRequest_AllowDeferred bool = false func (m *GetRequest) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *GetRequest) GetKey() []*Reference { if m != nil { return m.Key } return nil } func (m *GetRequest) GetTransaction() *Transaction { if m != nil { return m.Transaction } return nil } func (m *GetRequest) GetFailoverMs() int64 { if m != nil && m.FailoverMs != nil { return *m.FailoverMs } return 0 } func (m *GetRequest) GetStrong() bool { if m != nil && m.Strong != nil { return *m.Strong } return false } func (m *GetRequest) GetAllowDeferred() bool { if m != nil && m.AllowDeferred != nil { return *m.AllowDeferred } return Default_GetRequest_AllowDeferred } type GetResponse struct { Entity []*GetResponse_Entity `protobuf:"group,1,rep,name=Entity,json=entity" json:"entity,omitempty"` Deferred []*Reference `protobuf:"bytes,5,rep,name=deferred" json:"deferred,omitempty"` InOrder *bool `protobuf:"varint,6,opt,name=in_order,json=inOrder,def=1" json:"in_order,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetResponse) Reset() { *m = GetResponse{} } func (m *GetResponse) String() string { return proto.CompactTextString(m) } func (*GetResponse) ProtoMessage() {} func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{22} } func (m *GetResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetResponse.Unmarshal(m, b) } func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) } func (dst *GetResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetResponse.Merge(dst, src) } func (m *GetResponse) XXX_Size() int { return xxx_messageInfo_GetResponse.Size(m) } func (m *GetResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetResponse.DiscardUnknown(m) } var xxx_messageInfo_GetResponse proto.InternalMessageInfo const Default_GetResponse_InOrder bool = true func (m *GetResponse) GetEntity() []*GetResponse_Entity { if m != nil { return m.Entity } return nil } func (m *GetResponse) GetDeferred() []*Reference { if m != nil { return m.Deferred } return nil } func (m *GetResponse) GetInOrder() bool { if m != nil && m.InOrder != nil { return *m.InOrder } return Default_GetResponse_InOrder } type GetResponse_Entity struct { Entity *EntityProto `protobuf:"bytes,2,opt,name=entity" json:"entity,omitempty"` Key *Reference `protobuf:"bytes,4,opt,name=key" json:"key,omitempty"` Version *int64 `protobuf:"varint,3,opt,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetResponse_Entity) Reset() { *m = GetResponse_Entity{} } func (m *GetResponse_Entity) String() string { return proto.CompactTextString(m) } func (*GetResponse_Entity) ProtoMessage() {} func (*GetResponse_Entity) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{22, 0} } func (m *GetResponse_Entity) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetResponse_Entity.Unmarshal(m, b) } func (m *GetResponse_Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetResponse_Entity.Marshal(b, m, deterministic) } func (dst *GetResponse_Entity) XXX_Merge(src proto.Message) { xxx_messageInfo_GetResponse_Entity.Merge(dst, src) } func (m *GetResponse_Entity) XXX_Size() int { return xxx_messageInfo_GetResponse_Entity.Size(m) } func (m *GetResponse_Entity) XXX_DiscardUnknown() { xxx_messageInfo_GetResponse_Entity.DiscardUnknown(m) } var xxx_messageInfo_GetResponse_Entity proto.InternalMessageInfo func (m *GetResponse_Entity) GetEntity() *EntityProto { if m != nil { return m.Entity } return nil } func (m *GetResponse_Entity) GetKey() *Reference { if m != nil { return m.Key } return nil } func (m *GetResponse_Entity) GetVersion() int64 { if m != nil && m.Version != nil { return *m.Version } return 0 } type PutRequest struct { Header *InternalHeader `protobuf:"bytes,11,opt,name=header" json:"header,omitempty"` Entity []*EntityProto `protobuf:"bytes,1,rep,name=entity" json:"entity,omitempty"` Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction" json:"transaction,omitempty"` CompositeIndex []*CompositeIndex `protobuf:"bytes,3,rep,name=composite_index,json=compositeIndex" json:"composite_index,omitempty"` Trusted *bool `protobuf:"varint,4,opt,name=trusted,def=0" json:"trusted,omitempty"` Force *bool `protobuf:"varint,7,opt,name=force,def=0" json:"force,omitempty"` MarkChanges *bool `protobuf:"varint,8,opt,name=mark_changes,json=markChanges,def=0" json:"mark_changes,omitempty"` Snapshot []*Snapshot `protobuf:"bytes,9,rep,name=snapshot" json:"snapshot,omitempty"` AutoIdPolicy *PutRequest_AutoIdPolicy `protobuf:"varint,10,opt,name=auto_id_policy,json=autoIdPolicy,enum=appengine.PutRequest_AutoIdPolicy,def=0" json:"auto_id_policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PutRequest) Reset() { *m = PutRequest{} } func (m *PutRequest) String() string { return proto.CompactTextString(m) } func (*PutRequest) ProtoMessage() {} func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{23} } func (m *PutRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PutRequest.Unmarshal(m, b) } func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic) } func (dst *PutRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_PutRequest.Merge(dst, src) } func (m *PutRequest) XXX_Size() int { return xxx_messageInfo_PutRequest.Size(m) } func (m *PutRequest) XXX_DiscardUnknown() { xxx_messageInfo_PutRequest.DiscardUnknown(m) } var xxx_messageInfo_PutRequest proto.InternalMessageInfo const Default_PutRequest_Trusted bool = false const Default_PutRequest_Force bool = false const Default_PutRequest_MarkChanges bool = false const Default_PutRequest_AutoIdPolicy PutRequest_AutoIdPolicy = PutRequest_CURRENT func (m *PutRequest) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *PutRequest) GetEntity() []*EntityProto { if m != nil { return m.Entity } return nil } func (m *PutRequest) GetTransaction() *Transaction { if m != nil { return m.Transaction } return nil } func (m *PutRequest) GetCompositeIndex() []*CompositeIndex { if m != nil { return m.CompositeIndex } return nil } func (m *PutRequest) GetTrusted() bool { if m != nil && m.Trusted != nil { return *m.Trusted } return Default_PutRequest_Trusted } func (m *PutRequest) GetForce() bool { if m != nil && m.Force != nil { return *m.Force } return Default_PutRequest_Force } func (m *PutRequest) GetMarkChanges() bool { if m != nil && m.MarkChanges != nil { return *m.MarkChanges } return Default_PutRequest_MarkChanges } func (m *PutRequest) GetSnapshot() []*Snapshot { if m != nil { return m.Snapshot } return nil } func (m *PutRequest) GetAutoIdPolicy() PutRequest_AutoIdPolicy { if m != nil && m.AutoIdPolicy != nil { return *m.AutoIdPolicy } return Default_PutRequest_AutoIdPolicy } type PutResponse struct { Key []*Reference `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"` Cost *Cost `protobuf:"bytes,2,opt,name=cost" json:"cost,omitempty"` Version []int64 `protobuf:"varint,3,rep,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PutResponse) Reset() { *m = PutResponse{} } func (m *PutResponse) String() string { return proto.CompactTextString(m) } func (*PutResponse) ProtoMessage() {} func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{24} } func (m *PutResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PutResponse.Unmarshal(m, b) } func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic) } func (dst *PutResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_PutResponse.Merge(dst, src) } func (m *PutResponse) XXX_Size() int { return xxx_messageInfo_PutResponse.Size(m) } func (m *PutResponse) XXX_DiscardUnknown() { xxx_messageInfo_PutResponse.DiscardUnknown(m) } var xxx_messageInfo_PutResponse proto.InternalMessageInfo func (m *PutResponse) GetKey() []*Reference { if m != nil { return m.Key } return nil } func (m *PutResponse) GetCost() *Cost { if m != nil { return m.Cost } return nil } func (m *PutResponse) GetVersion() []int64 { if m != nil { return m.Version } return nil } type TouchRequest struct { Header *InternalHeader `protobuf:"bytes,10,opt,name=header" json:"header,omitempty"` Key []*Reference `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"` CompositeIndex []*CompositeIndex `protobuf:"bytes,2,rep,name=composite_index,json=compositeIndex" json:"composite_index,omitempty"` Force *bool `protobuf:"varint,3,opt,name=force,def=0" json:"force,omitempty"` Snapshot []*Snapshot `protobuf:"bytes,9,rep,name=snapshot" json:"snapshot,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TouchRequest) Reset() { *m = TouchRequest{} } func (m *TouchRequest) String() string { return proto.CompactTextString(m) } func (*TouchRequest) ProtoMessage() {} func (*TouchRequest) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{25} } func (m *TouchRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TouchRequest.Unmarshal(m, b) } func (m *TouchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TouchRequest.Marshal(b, m, deterministic) } func (dst *TouchRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TouchRequest.Merge(dst, src) } func (m *TouchRequest) XXX_Size() int { return xxx_messageInfo_TouchRequest.Size(m) } func (m *TouchRequest) XXX_DiscardUnknown() { xxx_messageInfo_TouchRequest.DiscardUnknown(m) } var xxx_messageInfo_TouchRequest proto.InternalMessageInfo const Default_TouchRequest_Force bool = false func (m *TouchRequest) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *TouchRequest) GetKey() []*Reference { if m != nil { return m.Key } return nil } func (m *TouchRequest) GetCompositeIndex() []*CompositeIndex { if m != nil { return m.CompositeIndex } return nil } func (m *TouchRequest) GetForce() bool { if m != nil && m.Force != nil { return *m.Force } return Default_TouchRequest_Force } func (m *TouchRequest) GetSnapshot() []*Snapshot { if m != nil { return m.Snapshot } return nil } type TouchResponse struct { Cost *Cost `protobuf:"bytes,1,opt,name=cost" json:"cost,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TouchResponse) Reset() { *m = TouchResponse{} } func (m *TouchResponse) String() string { return proto.CompactTextString(m) } func (*TouchResponse) ProtoMessage() {} func (*TouchResponse) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{26} } func (m *TouchResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TouchResponse.Unmarshal(m, b) } func (m *TouchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TouchResponse.Marshal(b, m, deterministic) } func (dst *TouchResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TouchResponse.Merge(dst, src) } func (m *TouchResponse) XXX_Size() int { return xxx_messageInfo_TouchResponse.Size(m) } func (m *TouchResponse) XXX_DiscardUnknown() { xxx_messageInfo_TouchResponse.DiscardUnknown(m) } var xxx_messageInfo_TouchResponse proto.InternalMessageInfo func (m *TouchResponse) GetCost() *Cost { if m != nil { return m.Cost } return nil } type DeleteRequest struct { Header *InternalHeader `protobuf:"bytes,10,opt,name=header" json:"header,omitempty"` Key []*Reference `protobuf:"bytes,6,rep,name=key" json:"key,omitempty"` Transaction *Transaction `protobuf:"bytes,5,opt,name=transaction" json:"transaction,omitempty"` Trusted *bool `protobuf:"varint,4,opt,name=trusted,def=0" json:"trusted,omitempty"` Force *bool `protobuf:"varint,7,opt,name=force,def=0" json:"force,omitempty"` MarkChanges *bool `protobuf:"varint,8,opt,name=mark_changes,json=markChanges,def=0" json:"mark_changes,omitempty"` Snapshot []*Snapshot `protobuf:"bytes,9,rep,name=snapshot" json:"snapshot,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } func (*DeleteRequest) ProtoMessage() {} func (*DeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{27} } func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteRequest.Unmarshal(m, b) } func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) } func (dst *DeleteRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteRequest.Merge(dst, src) } func (m *DeleteRequest) XXX_Size() int { return xxx_messageInfo_DeleteRequest.Size(m) } func (m *DeleteRequest) XXX_DiscardUnknown() { xxx_messageInfo_DeleteRequest.DiscardUnknown(m) } var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo const Default_DeleteRequest_Trusted bool = false const Default_DeleteRequest_Force bool = false const Default_DeleteRequest_MarkChanges bool = false func (m *DeleteRequest) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *DeleteRequest) GetKey() []*Reference { if m != nil { return m.Key } return nil } func (m *DeleteRequest) GetTransaction() *Transaction { if m != nil { return m.Transaction } return nil } func (m *DeleteRequest) GetTrusted() bool { if m != nil && m.Trusted != nil { return *m.Trusted } return Default_DeleteRequest_Trusted } func (m *DeleteRequest) GetForce() bool { if m != nil && m.Force != nil { return *m.Force } return Default_DeleteRequest_Force } func (m *DeleteRequest) GetMarkChanges() bool { if m != nil && m.MarkChanges != nil { return *m.MarkChanges } return Default_DeleteRequest_MarkChanges } func (m *DeleteRequest) GetSnapshot() []*Snapshot { if m != nil { return m.Snapshot } return nil } type DeleteResponse struct { Cost *Cost `protobuf:"bytes,1,opt,name=cost" json:"cost,omitempty"` Version []int64 `protobuf:"varint,3,rep,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } func (*DeleteResponse) ProtoMessage() {} func (*DeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{28} } func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) } func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) } func (dst *DeleteResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteResponse.Merge(dst, src) } func (m *DeleteResponse) XXX_Size() int { return xxx_messageInfo_DeleteResponse.Size(m) } func (m *DeleteResponse) XXX_DiscardUnknown() { xxx_messageInfo_DeleteResponse.DiscardUnknown(m) } var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo func (m *DeleteResponse) GetCost() *Cost { if m != nil { return m.Cost } return nil } func (m *DeleteResponse) GetVersion() []int64 { if m != nil { return m.Version } return nil } type NextRequest struct { Header *InternalHeader `protobuf:"bytes,5,opt,name=header" json:"header,omitempty"` Cursor *Cursor `protobuf:"bytes,1,req,name=cursor" json:"cursor,omitempty"` Count *int32 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` Offset *int32 `protobuf:"varint,4,opt,name=offset,def=0" json:"offset,omitempty"` Compile *bool `protobuf:"varint,3,opt,name=compile,def=0" json:"compile,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *NextRequest) Reset() { *m = NextRequest{} } func (m *NextRequest) String() string { return proto.CompactTextString(m) } func (*NextRequest) ProtoMessage() {} func (*NextRequest) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{29} } func (m *NextRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NextRequest.Unmarshal(m, b) } func (m *NextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NextRequest.Marshal(b, m, deterministic) } func (dst *NextRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_NextRequest.Merge(dst, src) } func (m *NextRequest) XXX_Size() int { return xxx_messageInfo_NextRequest.Size(m) } func (m *NextRequest) XXX_DiscardUnknown() { xxx_messageInfo_NextRequest.DiscardUnknown(m) } var xxx_messageInfo_NextRequest proto.InternalMessageInfo const Default_NextRequest_Offset int32 = 0 const Default_NextRequest_Compile bool = false func (m *NextRequest) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *NextRequest) GetCursor() *Cursor { if m != nil { return m.Cursor } return nil } func (m *NextRequest) GetCount() int32 { if m != nil && m.Count != nil { return *m.Count } return 0 } func (m *NextRequest) GetOffset() int32 { if m != nil && m.Offset != nil { return *m.Offset } return Default_NextRequest_Offset } func (m *NextRequest) GetCompile() bool { if m != nil && m.Compile != nil { return *m.Compile } return Default_NextRequest_Compile } type QueryResult struct { Cursor *Cursor `protobuf:"bytes,1,opt,name=cursor" json:"cursor,omitempty"` Result []*EntityProto `protobuf:"bytes,2,rep,name=result" json:"result,omitempty"` SkippedResults *int32 `protobuf:"varint,7,opt,name=skipped_results,json=skippedResults" json:"skipped_results,omitempty"` MoreResults *bool `protobuf:"varint,3,req,name=more_results,json=moreResults" json:"more_results,omitempty"` KeysOnly *bool `protobuf:"varint,4,opt,name=keys_only,json=keysOnly" json:"keys_only,omitempty"` IndexOnly *bool `protobuf:"varint,9,opt,name=index_only,json=indexOnly" json:"index_only,omitempty"` SmallOps *bool `protobuf:"varint,10,opt,name=small_ops,json=smallOps" json:"small_ops,omitempty"` CompiledQuery *CompiledQuery `protobuf:"bytes,5,opt,name=compiled_query,json=compiledQuery" json:"compiled_query,omitempty"` CompiledCursor *CompiledCursor `protobuf:"bytes,6,opt,name=compiled_cursor,json=compiledCursor" json:"compiled_cursor,omitempty"` Index []*CompositeIndex `protobuf:"bytes,8,rep,name=index" json:"index,omitempty"` Version []int64 `protobuf:"varint,11,rep,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *QueryResult) Reset() { *m = QueryResult{} } func (m *QueryResult) String() string { return proto.CompactTextString(m) } func (*QueryResult) ProtoMessage() {} func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{30} } func (m *QueryResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_QueryResult.Unmarshal(m, b) } func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_QueryResult.Marshal(b, m, deterministic) } func (dst *QueryResult) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryResult.Merge(dst, src) } func (m *QueryResult) XXX_Size() int { return xxx_messageInfo_QueryResult.Size(m) } func (m *QueryResult) XXX_DiscardUnknown() { xxx_messageInfo_QueryResult.DiscardUnknown(m) } var xxx_messageInfo_QueryResult proto.InternalMessageInfo func (m *QueryResult) GetCursor() *Cursor { if m != nil { return m.Cursor } return nil } func (m *QueryResult) GetResult() []*EntityProto { if m != nil { return m.Result } return nil } func (m *QueryResult) GetSkippedResults() int32 { if m != nil && m.SkippedResults != nil { return *m.SkippedResults } return 0 } func (m *QueryResult) GetMoreResults() bool { if m != nil && m.MoreResults != nil { return *m.MoreResults } return false } func (m *QueryResult) GetKeysOnly() bool { if m != nil && m.KeysOnly != nil { return *m.KeysOnly } return false } func (m *QueryResult) GetIndexOnly() bool { if m != nil && m.IndexOnly != nil { return *m.IndexOnly } return false } func (m *QueryResult) GetSmallOps() bool { if m != nil && m.SmallOps != nil { return *m.SmallOps } return false } func (m *QueryResult) GetCompiledQuery() *CompiledQuery { if m != nil { return m.CompiledQuery } return nil } func (m *QueryResult) GetCompiledCursor() *CompiledCursor { if m != nil { return m.CompiledCursor } return nil } func (m *QueryResult) GetIndex() []*CompositeIndex { if m != nil { return m.Index } return nil } func (m *QueryResult) GetVersion() []int64 { if m != nil { return m.Version } return nil } type AllocateIdsRequest struct { Header *InternalHeader `protobuf:"bytes,4,opt,name=header" json:"header,omitempty"` ModelKey *Reference `protobuf:"bytes,1,opt,name=model_key,json=modelKey" json:"model_key,omitempty"` Size *int64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` Max *int64 `protobuf:"varint,3,opt,name=max" json:"max,omitempty"` Reserve []*Reference `protobuf:"bytes,5,rep,name=reserve" json:"reserve,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AllocateIdsRequest) Reset() { *m = AllocateIdsRequest{} } func (m *AllocateIdsRequest) String() string { return proto.CompactTextString(m) } func (*AllocateIdsRequest) ProtoMessage() {} func (*AllocateIdsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{31} } func (m *AllocateIdsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AllocateIdsRequest.Unmarshal(m, b) } func (m *AllocateIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AllocateIdsRequest.Marshal(b, m, deterministic) } func (dst *AllocateIdsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AllocateIdsRequest.Merge(dst, src) } func (m *AllocateIdsRequest) XXX_Size() int { return xxx_messageInfo_AllocateIdsRequest.Size(m) } func (m *AllocateIdsRequest) XXX_DiscardUnknown() { xxx_messageInfo_AllocateIdsRequest.DiscardUnknown(m) } var xxx_messageInfo_AllocateIdsRequest proto.InternalMessageInfo func (m *AllocateIdsRequest) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *AllocateIdsRequest) GetModelKey() *Reference { if m != nil { return m.ModelKey } return nil } func (m *AllocateIdsRequest) GetSize() int64 { if m != nil && m.Size != nil { return *m.Size } return 0 } func (m *AllocateIdsRequest) GetMax() int64 { if m != nil && m.Max != nil { return *m.Max } return 0 } func (m *AllocateIdsRequest) GetReserve() []*Reference { if m != nil { return m.Reserve } return nil } type AllocateIdsResponse struct { Start *int64 `protobuf:"varint,1,req,name=start" json:"start,omitempty"` End *int64 `protobuf:"varint,2,req,name=end" json:"end,omitempty"` Cost *Cost `protobuf:"bytes,3,opt,name=cost" json:"cost,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AllocateIdsResponse) Reset() { *m = AllocateIdsResponse{} } func (m *AllocateIdsResponse) String() string { return proto.CompactTextString(m) } func (*AllocateIdsResponse) ProtoMessage() {} func (*AllocateIdsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{32} } func (m *AllocateIdsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AllocateIdsResponse.Unmarshal(m, b) } func (m *AllocateIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AllocateIdsResponse.Marshal(b, m, deterministic) } func (dst *AllocateIdsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_AllocateIdsResponse.Merge(dst, src) } func (m *AllocateIdsResponse) XXX_Size() int { return xxx_messageInfo_AllocateIdsResponse.Size(m) } func (m *AllocateIdsResponse) XXX_DiscardUnknown() { xxx_messageInfo_AllocateIdsResponse.DiscardUnknown(m) } var xxx_messageInfo_AllocateIdsResponse proto.InternalMessageInfo func (m *AllocateIdsResponse) GetStart() int64 { if m != nil && m.Start != nil { return *m.Start } return 0 } func (m *AllocateIdsResponse) GetEnd() int64 { if m != nil && m.End != nil { return *m.End } return 0 } func (m *AllocateIdsResponse) GetCost() *Cost { if m != nil { return m.Cost } return nil } type CompositeIndices struct { Index []*CompositeIndex `protobuf:"bytes,1,rep,name=index" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompositeIndices) Reset() { *m = CompositeIndices{} } func (m *CompositeIndices) String() string { return proto.CompactTextString(m) } func (*CompositeIndices) ProtoMessage() {} func (*CompositeIndices) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{33} } func (m *CompositeIndices) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompositeIndices.Unmarshal(m, b) } func (m *CompositeIndices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompositeIndices.Marshal(b, m, deterministic) } func (dst *CompositeIndices) XXX_Merge(src proto.Message) { xxx_messageInfo_CompositeIndices.Merge(dst, src) } func (m *CompositeIndices) XXX_Size() int { return xxx_messageInfo_CompositeIndices.Size(m) } func (m *CompositeIndices) XXX_DiscardUnknown() { xxx_messageInfo_CompositeIndices.DiscardUnknown(m) } var xxx_messageInfo_CompositeIndices proto.InternalMessageInfo func (m *CompositeIndices) GetIndex() []*CompositeIndex { if m != nil { return m.Index } return nil } type AddActionsRequest struct { Header *InternalHeader `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"` Transaction *Transaction `protobuf:"bytes,1,req,name=transaction" json:"transaction,omitempty"` Action []*Action `protobuf:"bytes,2,rep,name=action" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AddActionsRequest) Reset() { *m = AddActionsRequest{} } func (m *AddActionsRequest) String() string { return proto.CompactTextString(m) } func (*AddActionsRequest) ProtoMessage() {} func (*AddActionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{34} } func (m *AddActionsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddActionsRequest.Unmarshal(m, b) } func (m *AddActionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AddActionsRequest.Marshal(b, m, deterministic) } func (dst *AddActionsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AddActionsRequest.Merge(dst, src) } func (m *AddActionsRequest) XXX_Size() int { return xxx_messageInfo_AddActionsRequest.Size(m) } func (m *AddActionsRequest) XXX_DiscardUnknown() { xxx_messageInfo_AddActionsRequest.DiscardUnknown(m) } var xxx_messageInfo_AddActionsRequest proto.InternalMessageInfo func (m *AddActionsRequest) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *AddActionsRequest) GetTransaction() *Transaction { if m != nil { return m.Transaction } return nil } func (m *AddActionsRequest) GetAction() []*Action { if m != nil { return m.Action } return nil } type AddActionsResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AddActionsResponse) Reset() { *m = AddActionsResponse{} } func (m *AddActionsResponse) String() string { return proto.CompactTextString(m) } func (*AddActionsResponse) ProtoMessage() {} func (*AddActionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{35} } func (m *AddActionsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddActionsResponse.Unmarshal(m, b) } func (m *AddActionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AddActionsResponse.Marshal(b, m, deterministic) } func (dst *AddActionsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_AddActionsResponse.Merge(dst, src) } func (m *AddActionsResponse) XXX_Size() int { return xxx_messageInfo_AddActionsResponse.Size(m) } func (m *AddActionsResponse) XXX_DiscardUnknown() { xxx_messageInfo_AddActionsResponse.DiscardUnknown(m) } var xxx_messageInfo_AddActionsResponse proto.InternalMessageInfo type BeginTransactionRequest struct { Header *InternalHeader `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"` App *string `protobuf:"bytes,1,req,name=app" json:"app,omitempty"` AllowMultipleEg *bool `protobuf:"varint,2,opt,name=allow_multiple_eg,json=allowMultipleEg,def=0" json:"allow_multiple_eg,omitempty"` DatabaseId *string `protobuf:"bytes,4,opt,name=database_id,json=databaseId" json:"database_id,omitempty"` Mode *BeginTransactionRequest_TransactionMode `protobuf:"varint,5,opt,name=mode,enum=appengine.BeginTransactionRequest_TransactionMode,def=0" json:"mode,omitempty"` PreviousTransaction *Transaction `protobuf:"bytes,7,opt,name=previous_transaction,json=previousTransaction" json:"previous_transaction,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BeginTransactionRequest) Reset() { *m = BeginTransactionRequest{} } func (m *BeginTransactionRequest) String() string { return proto.CompactTextString(m) } func (*BeginTransactionRequest) ProtoMessage() {} func (*BeginTransactionRequest) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{36} } func (m *BeginTransactionRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BeginTransactionRequest.Unmarshal(m, b) } func (m *BeginTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BeginTransactionRequest.Marshal(b, m, deterministic) } func (dst *BeginTransactionRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_BeginTransactionRequest.Merge(dst, src) } func (m *BeginTransactionRequest) XXX_Size() int { return xxx_messageInfo_BeginTransactionRequest.Size(m) } func (m *BeginTransactionRequest) XXX_DiscardUnknown() { xxx_messageInfo_BeginTransactionRequest.DiscardUnknown(m) } var xxx_messageInfo_BeginTransactionRequest proto.InternalMessageInfo const Default_BeginTransactionRequest_AllowMultipleEg bool = false const Default_BeginTransactionRequest_Mode BeginTransactionRequest_TransactionMode = BeginTransactionRequest_UNKNOWN func (m *BeginTransactionRequest) GetHeader() *InternalHeader { if m != nil { return m.Header } return nil } func (m *BeginTransactionRequest) GetApp() string { if m != nil && m.App != nil { return *m.App } return "" } func (m *BeginTransactionRequest) GetAllowMultipleEg() bool { if m != nil && m.AllowMultipleEg != nil { return *m.AllowMultipleEg } return Default_BeginTransactionRequest_AllowMultipleEg } func (m *BeginTransactionRequest) GetDatabaseId() string { if m != nil && m.DatabaseId != nil { return *m.DatabaseId } return "" } func (m *BeginTransactionRequest) GetMode() BeginTransactionRequest_TransactionMode { if m != nil && m.Mode != nil { return *m.Mode } return Default_BeginTransactionRequest_Mode } func (m *BeginTransactionRequest) GetPreviousTransaction() *Transaction { if m != nil { return m.PreviousTransaction } return nil } type CommitResponse struct { Cost *Cost `protobuf:"bytes,1,opt,name=cost" json:"cost,omitempty"` Version []*CommitResponse_Version `protobuf:"group,3,rep,name=Version,json=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CommitResponse) Reset() { *m = CommitResponse{} } func (m *CommitResponse) String() string { return proto.CompactTextString(m) } func (*CommitResponse) ProtoMessage() {} func (*CommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{37} } func (m *CommitResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitResponse.Unmarshal(m, b) } func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CommitResponse.Marshal(b, m, deterministic) } func (dst *CommitResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CommitResponse.Merge(dst, src) } func (m *CommitResponse) XXX_Size() int { return xxx_messageInfo_CommitResponse.Size(m) } func (m *CommitResponse) XXX_DiscardUnknown() { xxx_messageInfo_CommitResponse.DiscardUnknown(m) } var xxx_messageInfo_CommitResponse proto.InternalMessageInfo func (m *CommitResponse) GetCost() *Cost { if m != nil { return m.Cost } return nil } func (m *CommitResponse) GetVersion() []*CommitResponse_Version { if m != nil { return m.Version } return nil } type CommitResponse_Version struct { RootEntityKey *Reference `protobuf:"bytes,4,req,name=root_entity_key,json=rootEntityKey" json:"root_entity_key,omitempty"` Version *int64 `protobuf:"varint,5,req,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CommitResponse_Version) Reset() { *m = CommitResponse_Version{} } func (m *CommitResponse_Version) String() string { return proto.CompactTextString(m) } func (*CommitResponse_Version) ProtoMessage() {} func (*CommitResponse_Version) Descriptor() ([]byte, []int) { return fileDescriptor_datastore_v3_83b17b80c34f6179, []int{37, 0} } func (m *CommitResponse_Version) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitResponse_Version.Unmarshal(m, b) } func (m *CommitResponse_Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CommitResponse_Version.Marshal(b, m, deterministic) } func (dst *CommitResponse_Version) XXX_Merge(src proto.Message) { xxx_messageInfo_CommitResponse_Version.Merge(dst, src) } func (m *CommitResponse_Version) XXX_Size() int { return xxx_messageInfo_CommitResponse_Version.Size(m) } func (m *CommitResponse_Version) XXX_DiscardUnknown() { xxx_messageInfo_CommitResponse_Version.DiscardUnknown(m) } var xxx_messageInfo_CommitResponse_Version proto.InternalMessageInfo func (m *CommitResponse_Version) GetRootEntityKey() *Reference { if m != nil { return m.RootEntityKey } return nil } func (m *CommitResponse_Version) GetVersion() int64 { if m != nil && m.Version != nil { return *m.Version } return 0 } func init() { proto.RegisterType((*Action)(nil), "appengine.Action") proto.RegisterType((*PropertyValue)(nil), "appengine.PropertyValue") proto.RegisterType((*PropertyValue_PointValue)(nil), "appengine.PropertyValue.PointValue") proto.RegisterType((*PropertyValue_UserValue)(nil), "appengine.PropertyValue.UserValue") proto.RegisterType((*PropertyValue_ReferenceValue)(nil), "appengine.PropertyValue.ReferenceValue") proto.RegisterType((*PropertyValue_ReferenceValue_PathElement)(nil), "appengine.PropertyValue.ReferenceValue.PathElement") proto.RegisterType((*Property)(nil), "appengine.Property") proto.RegisterType((*Path)(nil), "appengine.Path") proto.RegisterType((*Path_Element)(nil), "appengine.Path.Element") proto.RegisterType((*Reference)(nil), "appengine.Reference") proto.RegisterType((*User)(nil), "appengine.User") proto.RegisterType((*EntityProto)(nil), "appengine.EntityProto") proto.RegisterType((*CompositeProperty)(nil), "appengine.CompositeProperty") proto.RegisterType((*Index)(nil), "appengine.Index") proto.RegisterType((*Index_Property)(nil), "appengine.Index.Property") proto.RegisterType((*CompositeIndex)(nil), "appengine.CompositeIndex") proto.RegisterType((*IndexPostfix)(nil), "appengine.IndexPostfix") proto.RegisterType((*IndexPostfix_IndexValue)(nil), "appengine.IndexPostfix.IndexValue") proto.RegisterType((*IndexPosition)(nil), "appengine.IndexPosition") proto.RegisterType((*Snapshot)(nil), "appengine.Snapshot") proto.RegisterType((*InternalHeader)(nil), "appengine.InternalHeader") proto.RegisterType((*Transaction)(nil), "appengine.Transaction") proto.RegisterType((*Query)(nil), "appengine.Query") proto.RegisterType((*Query_Filter)(nil), "appengine.Query.Filter") proto.RegisterType((*Query_Order)(nil), "appengine.Query.Order") proto.RegisterType((*CompiledQuery)(nil), "appengine.CompiledQuery") proto.RegisterType((*CompiledQuery_PrimaryScan)(nil), "appengine.CompiledQuery.PrimaryScan") proto.RegisterType((*CompiledQuery_MergeJoinScan)(nil), "appengine.CompiledQuery.MergeJoinScan") proto.RegisterType((*CompiledQuery_EntityFilter)(nil), "appengine.CompiledQuery.EntityFilter") proto.RegisterType((*CompiledCursor)(nil), "appengine.CompiledCursor") proto.RegisterType((*CompiledCursor_Position)(nil), "appengine.CompiledCursor.Position") proto.RegisterType((*CompiledCursor_Position_IndexValue)(nil), "appengine.CompiledCursor.Position.IndexValue") proto.RegisterType((*Cursor)(nil), "appengine.Cursor") proto.RegisterType((*Error)(nil), "appengine.Error") proto.RegisterType((*Cost)(nil), "appengine.Cost") proto.RegisterType((*Cost_CommitCost)(nil), "appengine.Cost.CommitCost") proto.RegisterType((*GetRequest)(nil), "appengine.GetRequest") proto.RegisterType((*GetResponse)(nil), "appengine.GetResponse") proto.RegisterType((*GetResponse_Entity)(nil), "appengine.GetResponse.Entity") proto.RegisterType((*PutRequest)(nil), "appengine.PutRequest") proto.RegisterType((*PutResponse)(nil), "appengine.PutResponse") proto.RegisterType((*TouchRequest)(nil), "appengine.TouchRequest") proto.RegisterType((*TouchResponse)(nil), "appengine.TouchResponse") proto.RegisterType((*DeleteRequest)(nil), "appengine.DeleteRequest") proto.RegisterType((*DeleteResponse)(nil), "appengine.DeleteResponse") proto.RegisterType((*NextRequest)(nil), "appengine.NextRequest") proto.RegisterType((*QueryResult)(nil), "appengine.QueryResult") proto.RegisterType((*AllocateIdsRequest)(nil), "appengine.AllocateIdsRequest") proto.RegisterType((*AllocateIdsResponse)(nil), "appengine.AllocateIdsResponse") proto.RegisterType((*CompositeIndices)(nil), "appengine.CompositeIndices") proto.RegisterType((*AddActionsRequest)(nil), "appengine.AddActionsRequest") proto.RegisterType((*AddActionsResponse)(nil), "appengine.AddActionsResponse") proto.RegisterType((*BeginTransactionRequest)(nil), "appengine.BeginTransactionRequest") proto.RegisterType((*CommitResponse)(nil), "appengine.CommitResponse") proto.RegisterType((*CommitResponse_Version)(nil), "appengine.CommitResponse.Version") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/datastore/datastore_v3.proto", fileDescriptor_datastore_v3_83b17b80c34f6179) } var fileDescriptor_datastore_v3_83b17b80c34f6179 = []byte{ // 4156 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x73, 0xe3, 0x46, 0x76, 0x37, 0xc1, 0xef, 0x47, 0x89, 0x82, 0x5a, 0xf3, 0xc1, 0xa1, 0x3f, 0x46, 0xc6, 0xac, 0x6d, 0xd9, 0x6b, 0x73, 0x6c, 0xf9, 0x23, 0x5b, 0x4a, 0x76, 0x1d, 0x4a, 0xc4, 0x68, 0x90, 0xa1, 0x48, 0xb9, 0x09, 0xd9, 0x9e, 0x5c, 0x50, 0x18, 0xa2, 0x29, 0x21, 0x43, 0x02, 0x30, 0x00, 0x6a, 0x46, 0x93, 0xe4, 0x90, 0x4b, 0x2a, 0x55, 0x5b, 0xa9, 0x1c, 0x92, 0x4a, 0x25, 0xf9, 0x07, 0x72, 0xc8, 0x39, 0x95, 0xaa, 0x54, 0xf6, 0x98, 0x5b, 0x0e, 0x7b, 0xc9, 0x31, 0x95, 0x73, 0xf2, 0x27, 0x24, 0x39, 0xa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00, }
xmpp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/xmpp/xmpp_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/xmpp/xmpp_service.proto package xmpp import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type XmppServiceError_ErrorCode int32 const ( XmppServiceError_UNSPECIFIED_ERROR XmppServiceError_ErrorCode = 1 XmppServiceError_INVALID_JID XmppServiceError_ErrorCode = 2 XmppServiceError_NO_BODY XmppServiceError_ErrorCode = 3 XmppServiceError_INVALID_XML XmppServiceError_ErrorCode = 4 XmppServiceError_INVALID_TYPE XmppServiceError_ErrorCode = 5 XmppServiceError_INVALID_SHOW XmppServiceError_ErrorCode = 6 XmppServiceError_EXCEEDED_MAX_SIZE XmppServiceError_ErrorCode = 7 XmppServiceError_APPID_ALIAS_REQUIRED XmppServiceError_ErrorCode = 8 XmppServiceError_NONDEFAULT_MODULE XmppServiceError_ErrorCode = 9 ) var XmppServiceError_ErrorCode_name = map[int32]string{ 1: "UNSPECIFIED_ERROR", 2: "INVALID_JID", 3: "NO_BODY", 4: "INVALID_XML", 5: "INVALID_TYPE", 6: "INVALID_SHOW", 7: "EXCEEDED_MAX_SIZE", 8: "APPID_ALIAS_REQUIRED", 9: "NONDEFAULT_MODULE", } var XmppServiceError_ErrorCode_value = map[string]int32{ "UNSPECIFIED_ERROR": 1, "INVALID_JID": 2, "NO_BODY": 3, "INVALID_XML": 4, "INVALID_TYPE": 5, "INVALID_SHOW": 6, "EXCEEDED_MAX_SIZE": 7, "APPID_ALIAS_REQUIRED": 8, "NONDEFAULT_MODULE": 9, } func (x XmppServiceError_ErrorCode) Enum() *XmppServiceError_ErrorCode { p := new(XmppServiceError_ErrorCode) *p = x return p } func (x XmppServiceError_ErrorCode) String() string { return proto.EnumName(XmppServiceError_ErrorCode_name, int32(x)) } func (x *XmppServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(XmppServiceError_ErrorCode_value, data, "XmppServiceError_ErrorCode") if err != nil { return err } *x = XmppServiceError_ErrorCode(value) return nil } func (XmppServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{0, 0} } type PresenceResponse_SHOW int32 const ( PresenceResponse_NORMAL PresenceResponse_SHOW = 0 PresenceResponse_AWAY PresenceResponse_SHOW = 1 PresenceResponse_DO_NOT_DISTURB PresenceResponse_SHOW = 2 PresenceResponse_CHAT PresenceResponse_SHOW = 3 PresenceResponse_EXTENDED_AWAY PresenceResponse_SHOW = 4 ) var PresenceResponse_SHOW_name = map[int32]string{ 0: "NORMAL", 1: "AWAY", 2: "DO_NOT_DISTURB", 3: "CHAT", 4: "EXTENDED_AWAY", } var PresenceResponse_SHOW_value = map[string]int32{ "NORMAL": 0, "AWAY": 1, "DO_NOT_DISTURB": 2, "CHAT": 3, "EXTENDED_AWAY": 4, } func (x PresenceResponse_SHOW) Enum() *PresenceResponse_SHOW { p := new(PresenceResponse_SHOW) *p = x return p } func (x PresenceResponse_SHOW) String() string { return proto.EnumName(PresenceResponse_SHOW_name, int32(x)) } func (x *PresenceResponse_SHOW) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(PresenceResponse_SHOW_value, data, "PresenceResponse_SHOW") if err != nil { return err } *x = PresenceResponse_SHOW(value) return nil } func (PresenceResponse_SHOW) EnumDescriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{2, 0} } type XmppMessageResponse_XmppMessageStatus int32 const ( XmppMessageResponse_NO_ERROR XmppMessageResponse_XmppMessageStatus = 0 XmppMessageResponse_INVALID_JID XmppMessageResponse_XmppMessageStatus = 1 XmppMessageResponse_OTHER_ERROR XmppMessageResponse_XmppMessageStatus = 2 ) var XmppMessageResponse_XmppMessageStatus_name = map[int32]string{ 0: "NO_ERROR", 1: "INVALID_JID", 2: "OTHER_ERROR", } var XmppMessageResponse_XmppMessageStatus_value = map[string]int32{ "NO_ERROR": 0, "INVALID_JID": 1, "OTHER_ERROR": 2, } func (x XmppMessageResponse_XmppMessageStatus) Enum() *XmppMessageResponse_XmppMessageStatus { p := new(XmppMessageResponse_XmppMessageStatus) *p = x return p } func (x XmppMessageResponse_XmppMessageStatus) String() string { return proto.EnumName(XmppMessageResponse_XmppMessageStatus_name, int32(x)) } func (x *XmppMessageResponse_XmppMessageStatus) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(XmppMessageResponse_XmppMessageStatus_value, data, "XmppMessageResponse_XmppMessageStatus") if err != nil { return err } *x = XmppMessageResponse_XmppMessageStatus(value) return nil } func (XmppMessageResponse_XmppMessageStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{6, 0} } type XmppServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *XmppServiceError) Reset() { *m = XmppServiceError{} } func (m *XmppServiceError) String() string { return proto.CompactTextString(m) } func (*XmppServiceError) ProtoMessage() {} func (*XmppServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{0} } func (m *XmppServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_XmppServiceError.Unmarshal(m, b) } func (m *XmppServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_XmppServiceError.Marshal(b, m, deterministic) } func (dst *XmppServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_XmppServiceError.Merge(dst, src) } func (m *XmppServiceError) XXX_Size() int { return xxx_messageInfo_XmppServiceError.Size(m) } func (m *XmppServiceError) XXX_DiscardUnknown() { xxx_messageInfo_XmppServiceError.DiscardUnknown(m) } var xxx_messageInfo_XmppServiceError proto.InternalMessageInfo type PresenceRequest struct { Jid *string `protobuf:"bytes,1,req,name=jid" json:"jid,omitempty"` FromJid *string `protobuf:"bytes,2,opt,name=from_jid,json=fromJid" json:"from_jid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PresenceRequest) Reset() { *m = PresenceRequest{} } func (m *PresenceRequest) String() string { return proto.CompactTextString(m) } func (*PresenceRequest) ProtoMessage() {} func (*PresenceRequest) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{1} } func (m *PresenceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PresenceRequest.Unmarshal(m, b) } func (m *PresenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PresenceRequest.Marshal(b, m, deterministic) } func (dst *PresenceRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_PresenceRequest.Merge(dst, src) } func (m *PresenceRequest) XXX_Size() int { return xxx_messageInfo_PresenceRequest.Size(m) } func (m *PresenceRequest) XXX_DiscardUnknown() { xxx_messageInfo_PresenceRequest.DiscardUnknown(m) } var xxx_messageInfo_PresenceRequest proto.InternalMessageInfo func (m *PresenceRequest) GetJid() string { if m != nil && m.Jid != nil { return *m.Jid } return "" } func (m *PresenceRequest) GetFromJid() string { if m != nil && m.FromJid != nil { return *m.FromJid } return "" } type PresenceResponse struct { IsAvailable *bool `protobuf:"varint,1,req,name=is_available,json=isAvailable" json:"is_available,omitempty"` Presence *PresenceResponse_SHOW `protobuf:"varint,2,opt,name=presence,enum=appengine.PresenceResponse_SHOW" json:"presence,omitempty"` Valid *bool `protobuf:"varint,3,opt,name=valid" json:"valid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PresenceResponse) Reset() { *m = PresenceResponse{} } func (m *PresenceResponse) String() string { return proto.CompactTextString(m) } func (*PresenceResponse) ProtoMessage() {} func (*PresenceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{2} } func (m *PresenceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PresenceResponse.Unmarshal(m, b) } func (m *PresenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PresenceResponse.Marshal(b, m, deterministic) } func (dst *PresenceResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_PresenceResponse.Merge(dst, src) } func (m *PresenceResponse) XXX_Size() int { return xxx_messageInfo_PresenceResponse.Size(m) } func (m *PresenceResponse) XXX_DiscardUnknown() { xxx_messageInfo_PresenceResponse.DiscardUnknown(m) } var xxx_messageInfo_PresenceResponse proto.InternalMessageInfo func (m *PresenceResponse) GetIsAvailable() bool { if m != nil && m.IsAvailable != nil { return *m.IsAvailable } return false } func (m *PresenceResponse) GetPresence() PresenceResponse_SHOW { if m != nil && m.Presence != nil { return *m.Presence } return PresenceResponse_NORMAL } func (m *PresenceResponse) GetValid() bool { if m != nil && m.Valid != nil { return *m.Valid } return false } type BulkPresenceRequest struct { Jid []string `protobuf:"bytes,1,rep,name=jid" json:"jid,omitempty"` FromJid *string `protobuf:"bytes,2,opt,name=from_jid,json=fromJid" json:"from_jid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BulkPresenceRequest) Reset() { *m = BulkPresenceRequest{} } func (m *BulkPresenceRequest) String() string { return proto.CompactTextString(m) } func (*BulkPresenceRequest) ProtoMessage() {} func (*BulkPresenceRequest) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{3} } func (m *BulkPresenceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BulkPresenceRequest.Unmarshal(m, b) } func (m *BulkPresenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BulkPresenceRequest.Marshal(b, m, deterministic) } func (dst *BulkPresenceRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_BulkPresenceRequest.Merge(dst, src) } func (m *BulkPresenceRequest) XXX_Size() int { return xxx_messageInfo_BulkPresenceRequest.Size(m) } func (m *BulkPresenceRequest) XXX_DiscardUnknown() { xxx_messageInfo_BulkPresenceRequest.DiscardUnknown(m) } var xxx_messageInfo_BulkPresenceRequest proto.InternalMessageInfo func (m *BulkPresenceRequest) GetJid() []string { if m != nil { return m.Jid } return nil } func (m *BulkPresenceRequest) GetFromJid() string { if m != nil && m.FromJid != nil { return *m.FromJid } return "" } type BulkPresenceResponse struct { PresenceResponse []*PresenceResponse `protobuf:"bytes,1,rep,name=presence_response,json=presenceResponse" json:"presence_response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BulkPresenceResponse) Reset() { *m = BulkPresenceResponse{} } func (m *BulkPresenceResponse) String() string { return proto.CompactTextString(m) } func (*BulkPresenceResponse) ProtoMessage() {} func (*BulkPresenceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{4} } func (m *BulkPresenceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BulkPresenceResponse.Unmarshal(m, b) } func (m *BulkPresenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BulkPresenceResponse.Marshal(b, m, deterministic) } func (dst *BulkPresenceResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_BulkPresenceResponse.Merge(dst, src) } func (m *BulkPresenceResponse) XXX_Size() int { return xxx_messageInfo_BulkPresenceResponse.Size(m) } func (m *BulkPresenceResponse) XXX_DiscardUnknown() { xxx_messageInfo_BulkPresenceResponse.DiscardUnknown(m) } var xxx_messageInfo_BulkPresenceResponse proto.InternalMessageInfo func (m *BulkPresenceResponse) GetPresenceResponse() []*PresenceResponse { if m != nil { return m.PresenceResponse } return nil } type XmppMessageRequest struct { Jid []string `protobuf:"bytes,1,rep,name=jid" json:"jid,omitempty"` Body *string `protobuf:"bytes,2,req,name=body" json:"body,omitempty"` RawXml *bool `protobuf:"varint,3,opt,name=raw_xml,json=rawXml,def=0" json:"raw_xml,omitempty"` Type *string `protobuf:"bytes,4,opt,name=type,def=chat" json:"type,omitempty"` FromJid *string `protobuf:"bytes,5,opt,name=from_jid,json=fromJid" json:"from_jid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *XmppMessageRequest) Reset() { *m = XmppMessageRequest{} } func (m *XmppMessageRequest) String() string { return proto.CompactTextString(m) } func (*XmppMessageRequest) ProtoMessage() {} func (*XmppMessageRequest) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{5} } func (m *XmppMessageRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_XmppMessageRequest.Unmarshal(m, b) } func (m *XmppMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_XmppMessageRequest.Marshal(b, m, deterministic) } func (dst *XmppMessageRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_XmppMessageRequest.Merge(dst, src) } func (m *XmppMessageRequest) XXX_Size() int { return xxx_messageInfo_XmppMessageRequest.Size(m) } func (m *XmppMessageRequest) XXX_DiscardUnknown() { xxx_messageInfo_XmppMessageRequest.DiscardUnknown(m) } var xxx_messageInfo_XmppMessageRequest proto.InternalMessageInfo const Default_XmppMessageRequest_RawXml bool = false const Default_XmppMessageRequest_Type string = "chat" func (m *XmppMessageRequest) GetJid() []string { if m != nil { return m.Jid } return nil } func (m *XmppMessageRequest) GetBody() string { if m != nil && m.Body != nil { return *m.Body } return "" } func (m *XmppMessageRequest) GetRawXml() bool { if m != nil && m.RawXml != nil { return *m.RawXml } return Default_XmppMessageRequest_RawXml } func (m *XmppMessageRequest) GetType() string { if m != nil && m.Type != nil { return *m.Type } return Default_XmppMessageRequest_Type } func (m *XmppMessageRequest) GetFromJid() string { if m != nil && m.FromJid != nil { return *m.FromJid } return "" } type XmppMessageResponse struct { Status []XmppMessageResponse_XmppMessageStatus `protobuf:"varint,1,rep,name=status,enum=appengine.XmppMessageResponse_XmppMessageStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *XmppMessageResponse) Reset() { *m = XmppMessageResponse{} } func (m *XmppMessageResponse) String() string { return proto.CompactTextString(m) } func (*XmppMessageResponse) ProtoMessage() {} func (*XmppMessageResponse) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{6} } func (m *XmppMessageResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_XmppMessageResponse.Unmarshal(m, b) } func (m *XmppMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_XmppMessageResponse.Marshal(b, m, deterministic) } func (dst *XmppMessageResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_XmppMessageResponse.Merge(dst, src) } func (m *XmppMessageResponse) XXX_Size() int { return xxx_messageInfo_XmppMessageResponse.Size(m) } func (m *XmppMessageResponse) XXX_DiscardUnknown() { xxx_messageInfo_XmppMessageResponse.DiscardUnknown(m) } var xxx_messageInfo_XmppMessageResponse proto.InternalMessageInfo func (m *XmppMessageResponse) GetStatus() []XmppMessageResponse_XmppMessageStatus { if m != nil { return m.Status } return nil } type XmppSendPresenceRequest struct { Jid *string `protobuf:"bytes,1,req,name=jid" json:"jid,omitempty"` Type *string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Show *string `protobuf:"bytes,3,opt,name=show" json:"show,omitempty"` Status *string `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"` FromJid *string `protobuf:"bytes,5,opt,name=from_jid,json=fromJid" json:"from_jid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *XmppSendPresenceRequest) Reset() { *m = XmppSendPresenceRequest{} } func (m *XmppSendPresenceRequest) String() string { return proto.CompactTextString(m) } func (*XmppSendPresenceRequest) ProtoMessage() {} func (*XmppSendPresenceRequest) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{7} } func (m *XmppSendPresenceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_XmppSendPresenceRequest.Unmarshal(m, b) } func (m *XmppSendPresenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_XmppSendPresenceRequest.Marshal(b, m, deterministic) } func (dst *XmppSendPresenceRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_XmppSendPresenceRequest.Merge(dst, src) } func (m *XmppSendPresenceRequest) XXX_Size() int { return xxx_messageInfo_XmppSendPresenceRequest.Size(m) } func (m *XmppSendPresenceRequest) XXX_DiscardUnknown() { xxx_messageInfo_XmppSendPresenceRequest.DiscardUnknown(m) } var xxx_messageInfo_XmppSendPresenceRequest proto.InternalMessageInfo func (m *XmppSendPresenceRequest) GetJid() string { if m != nil && m.Jid != nil { return *m.Jid } return "" } func (m *XmppSendPresenceRequest) GetType() string { if m != nil && m.Type != nil { return *m.Type } return "" } func (m *XmppSendPresenceRequest) GetShow() string { if m != nil && m.Show != nil { return *m.Show } return "" } func (m *XmppSendPresenceRequest) GetStatus() string { if m != nil && m.Status != nil { return *m.Status } return "" } func (m *XmppSendPresenceRequest) GetFromJid() string { if m != nil && m.FromJid != nil { return *m.FromJid } return "" } type XmppSendPresenceResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *XmppSendPresenceResponse) Reset() { *m = XmppSendPresenceResponse{} } func (m *XmppSendPresenceResponse) String() string { return proto.CompactTextString(m) } func (*XmppSendPresenceResponse) ProtoMessage() {} func (*XmppSendPresenceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{8} } func (m *XmppSendPresenceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_XmppSendPresenceResponse.Unmarshal(m, b) } func (m *XmppSendPresenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_XmppSendPresenceResponse.Marshal(b, m, deterministic) } func (dst *XmppSendPresenceResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_XmppSendPresenceResponse.Merge(dst, src) } func (m *XmppSendPresenceResponse) XXX_Size() int { return xxx_messageInfo_XmppSendPresenceResponse.Size(m) } func (m *XmppSendPresenceResponse) XXX_DiscardUnknown() { xxx_messageInfo_XmppSendPresenceResponse.DiscardUnknown(m) } var xxx_messageInfo_XmppSendPresenceResponse proto.InternalMessageInfo type XmppInviteRequest struct { Jid *string `protobuf:"bytes,1,req,name=jid" json:"jid,omitempty"` FromJid *string `protobuf:"bytes,2,opt,name=from_jid,json=fromJid" json:"from_jid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *XmppInviteRequest) Reset() { *m = XmppInviteRequest{} } func (m *XmppInviteRequest) String() string { return proto.CompactTextString(m) } func (*XmppInviteRequest) ProtoMessage() {} func (*XmppInviteRequest) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{9} } func (m *XmppInviteRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_XmppInviteRequest.Unmarshal(m, b) } func (m *XmppInviteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_XmppInviteRequest.Marshal(b, m, deterministic) } func (dst *XmppInviteRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_XmppInviteRequest.Merge(dst, src) } func (m *XmppInviteRequest) XXX_Size() int { return xxx_messageInfo_XmppInviteRequest.Size(m) } func (m *XmppInviteRequest) XXX_DiscardUnknown() { xxx_messageInfo_XmppInviteRequest.DiscardUnknown(m) } var xxx_messageInfo_XmppInviteRequest proto.InternalMessageInfo func (m *XmppInviteRequest) GetJid() string { if m != nil && m.Jid != nil { return *m.Jid } return "" } func (m *XmppInviteRequest) GetFromJid() string { if m != nil && m.FromJid != nil { return *m.FromJid } return "" } type XmppInviteResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *XmppInviteResponse) Reset() { *m = XmppInviteResponse{} } func (m *XmppInviteResponse) String() string { return proto.CompactTextString(m) } func (*XmppInviteResponse) ProtoMessage() {} func (*XmppInviteResponse) Descriptor() ([]byte, []int) { return fileDescriptor_xmpp_service_628da92437bed65f, []int{10} } func (m *XmppInviteResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_XmppInviteResponse.Unmarshal(m, b) } func (m *XmppInviteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_XmppInviteResponse.Marshal(b, m, deterministic) } func (dst *XmppInviteResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_XmppInviteResponse.Merge(dst, src) } func (m *XmppInviteResponse) XXX_Size() int { return xxx_messageInfo_XmppInviteResponse.Size(m) } func (m *XmppInviteResponse) XXX_DiscardUnknown() { xxx_messageInfo_XmppInviteResponse.DiscardUnknown(m) } var xxx_messageInfo_XmppInviteResponse proto.InternalMessageInfo func init() { proto.RegisterType((*XmppServiceError)(nil), "appengine.XmppServiceError") proto.RegisterType((*PresenceRequest)(nil), "appengine.PresenceRequest") proto.RegisterType((*PresenceResponse)(nil), "appengine.PresenceResponse") proto.RegisterType((*BulkPresenceRequest)(nil), "appengine.BulkPresenceRequest") proto.RegisterType((*BulkPresenceResponse)(nil), "appengine.BulkPresenceResponse") proto.RegisterType((*XmppMessageRequest)(nil), "appengine.XmppMessageRequest") proto.RegisterType((*XmppMessageResponse)(nil), "appengine.XmppMessageResponse") proto.RegisterType((*XmppSendPresenceRequest)(nil), "appengine.XmppSendPresenceRequest") proto.RegisterType((*XmppSendPresenceResponse)(nil), "appengine.XmppSendPresenceResponse") proto.RegisterType((*XmppInviteRequest)(nil), "appengine.XmppInviteRequest") proto.RegisterType((*XmppInviteResponse)(nil), "appengine.XmppInviteResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/xmpp/xmpp_service.proto", fileDescriptor_xmpp_service_628da92437bed65f) } var fileDescriptor_xmpp_service_628da92437bed65f = []byte{ // 681 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x72, 0xda, 0x48, 0x10, 0xb6, 0x40, 0xfc, 0x35, 0x5e, 0x7b, 0x18, 0xb3, 0xbb, 0xec, 0xa6, 0x2a, 0x45, 0x74, 0xf2, 0x09, 0xa7, 0x7c, 0x74, 0xb9, 0x52, 0x11, 0x68, 0x5c, 0xc8, 0x05, 0x12, 0x19, 0x20, 0xc6, 0xbe, 0x4c, 0x64, 0x33, 0x96, 0x95, 0x08, 0x49, 0x91, 0x64, 0x6c, 0xbf, 0x40, 0xae, 0x79, 0x89, 0xbc, 0x46, 0x5e, 0x22, 0xa7, 0x3c, 0x4e, 0x4a, 0x23, 0x41, 0xc0, 0x4e, 0x9c, 0x54, 0x2e, 0x54, 0xcf, 0x37, 0xdd, 0x1f, 0xfd, 0x7d, 0x3d, 0x2d, 0x38, 0xb4, 0x7d, 0xdf, 0x76, 0x79, 0xcb, 0xf6, 0x5d, 0xcb, 0xb3, 0x5b, 0x7e, 0x68, 0xef, 0x59, 0x41, 0xc0, 0x3d, 0xdb, 0xf1, 0xf8, 0x9e, 0xe3, 0xc5, 0x3c, 0xf4, 0x2c, 0x77, 0xef, 0x76, 0x16, 0x04, 0xe2, 0x87, 0x45, 0x3c, 0x9c, 0x3b, 0x17, 0xbc, 0x15, 0x84, 0x7e, 0xec, 0xe3, 0xca, 0x32, 0x57, 0xf9, 0x22, 0x01, 0x9a, 0xcc, 0x82, 0x60, 0x98, 0x26, 0x90, 0x30, 0xf4, 0x43, 0xe5, 0xb3, 0x04, 0x15, 0x11, 0x75, 0xfc, 0x29, 0xc7, 0x7f, 0x43, 0x6d, 0x6c, 0x0c, 0x07, 0xa4, 0xa3, 0x1f, 0xe9, 0x44, 0x63, 0x84, 0x52, 0x93, 0x22, 0x09, 0x6f, 0x43, 0x55, 0x37, 0x5e, 0xab, 0x3d, 0x5d, 0x63, 0xc7, 0xba, 0x86, 0x72, 0xb8, 0x0a, 0x25, 0xc3, 0x64, 0x6d, 0x53, 0x3b, 0x45, 0xf9, 0xd5, 0xdb, 0x49, 0xbf, 0x87, 0x64, 0x8c, 0x60, 0x73, 0x01, 0x8c, 0x4e, 0x07, 0x04, 0x15, 0x56, 0x91, 0x61, 0xd7, 0x3c, 0x41, 0xc5, 0xe4, 0x9f, 0xc8, 0xa4, 0x43, 0x88, 0x46, 0x34, 0xd6, 0x57, 0x27, 0x6c, 0xa8, 0x9f, 0x11, 0x54, 0xc2, 0x0d, 0xa8, 0xab, 0x83, 0x81, 0xae, 0x31, 0xb5, 0xa7, 0xab, 0x43, 0x46, 0xc9, 0xab, 0xb1, 0x4e, 0x89, 0x86, 0xca, 0x49, 0x81, 0x61, 0x1a, 0x1a, 0x39, 0x52, 0xc7, 0xbd, 0x11, 0xeb, 0x9b, 0xda, 0xb8, 0x47, 0x50, 0x45, 0x79, 0x01, 0xdb, 0x83, 0x90, 0x47, 0xdc, 0xbb, 0xe0, 0x94, 0xbf, 0xbf, 0xe6, 0x51, 0x8c, 0x11, 0xe4, 0xdf, 0x3a, 0xd3, 0x86, 0xd4, 0xcc, 0xed, 0x56, 0x68, 0x12, 0xe2, 0xff, 0xa0, 0x7c, 0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xff, 0xff, 0x4e, 0x58, 0x2e, 0xb1, 0x1d, 0x05, 0x00, 0x00, }
xmpp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/xmpp/xmpp_service.proto
syntax = "proto2"; option go_package = "xmpp"; package appengine; message XmppServiceError { enum ErrorCode { UNSPECIFIED_ERROR = 1; INVALID_JID = 2; NO_BODY = 3; INVALID_XML = 4; INVALID_TYPE = 5; INVALID_SHOW = 6; EXCEEDED_MAX_SIZE = 7; APPID_ALIAS_REQUIRED = 8; NONDEFAULT_MODULE = 9; } } message PresenceRequest { required string jid = 1; optional string from_jid = 2; } message PresenceResponse { enum SHOW { NORMAL = 0; AWAY = 1; DO_NOT_DISTURB = 2; CHAT = 3; EXTENDED_AWAY = 4; } required bool is_available = 1; optional SHOW presence = 2; optional bool valid = 3; } message BulkPresenceRequest { repeated string jid = 1; optional string from_jid = 2; } message BulkPresenceResponse { repeated PresenceResponse presence_response = 1; } message XmppMessageRequest { repeated string jid = 1; required string body = 2; optional bool raw_xml = 3 [ default = false ]; optional string type = 4 [ default = "chat" ]; optional string from_jid = 5; } message XmppMessageResponse { enum XmppMessageStatus { NO_ERROR = 0; INVALID_JID = 1; OTHER_ERROR = 2; } repeated XmppMessageStatus status = 1; } message XmppSendPresenceRequest { required string jid = 1; optional string type = 2; optional string show = 3; optional string status = 4; optional string from_jid = 5; } message XmppSendPresenceResponse { } message XmppInviteRequest { required string jid = 1; optional string from_jid = 2; } message XmppInviteResponse { }
socket
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/socket/socket_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/socket/socket_service.proto package socket import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type RemoteSocketServiceError_ErrorCode int32 const ( RemoteSocketServiceError_SYSTEM_ERROR RemoteSocketServiceError_ErrorCode = 1 RemoteSocketServiceError_GAI_ERROR RemoteSocketServiceError_ErrorCode = 2 RemoteSocketServiceError_FAILURE RemoteSocketServiceError_ErrorCode = 4 RemoteSocketServiceError_PERMISSION_DENIED RemoteSocketServiceError_ErrorCode = 5 RemoteSocketServiceError_INVALID_REQUEST RemoteSocketServiceError_ErrorCode = 6 RemoteSocketServiceError_SOCKET_CLOSED RemoteSocketServiceError_ErrorCode = 7 ) var RemoteSocketServiceError_ErrorCode_name = map[int32]string{ 1: "SYSTEM_ERROR", 2: "GAI_ERROR", 4: "FAILURE", 5: "PERMISSION_DENIED", 6: "INVALID_REQUEST", 7: "SOCKET_CLOSED", } var RemoteSocketServiceError_ErrorCode_value = map[string]int32{ "SYSTEM_ERROR": 1, "GAI_ERROR": 2, "FAILURE": 4, "PERMISSION_DENIED": 5, "INVALID_REQUEST": 6, "SOCKET_CLOSED": 7, } func (x RemoteSocketServiceError_ErrorCode) Enum() *RemoteSocketServiceError_ErrorCode { p := new(RemoteSocketServiceError_ErrorCode) *p = x return p } func (x RemoteSocketServiceError_ErrorCode) String() string { return proto.EnumName(RemoteSocketServiceError_ErrorCode_name, int32(x)) } func (x *RemoteSocketServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(RemoteSocketServiceError_ErrorCode_value, data, "RemoteSocketServiceError_ErrorCode") if err != nil { return err } *x = RemoteSocketServiceError_ErrorCode(value) return nil } func (RemoteSocketServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{0, 0} } type RemoteSocketServiceError_SystemError int32 const ( RemoteSocketServiceError_SYS_SUCCESS RemoteSocketServiceError_SystemError = 0 RemoteSocketServiceError_SYS_EPERM RemoteSocketServiceError_SystemError = 1 RemoteSocketServiceError_SYS_ENOENT RemoteSocketServiceError_SystemError = 2 RemoteSocketServiceError_SYS_ESRCH RemoteSocketServiceError_SystemError = 3 RemoteSocketServiceError_SYS_EINTR RemoteSocketServiceError_SystemError = 4 RemoteSocketServiceError_SYS_EIO RemoteSocketServiceError_SystemError = 5 RemoteSocketServiceError_SYS_ENXIO RemoteSocketServiceError_SystemError = 6 RemoteSocketServiceError_SYS_E2BIG RemoteSocketServiceError_SystemError = 7 RemoteSocketServiceError_SYS_ENOEXEC RemoteSocketServiceError_SystemError = 8 RemoteSocketServiceError_SYS_EBADF RemoteSocketServiceError_SystemError = 9 RemoteSocketServiceError_SYS_ECHILD RemoteSocketServiceError_SystemError = 10 RemoteSocketServiceError_SYS_EAGAIN RemoteSocketServiceError_SystemError = 11 RemoteSocketServiceError_SYS_EWOULDBLOCK RemoteSocketServiceError_SystemError = 11 RemoteSocketServiceError_SYS_ENOMEM RemoteSocketServiceError_SystemError = 12 RemoteSocketServiceError_SYS_EACCES RemoteSocketServiceError_SystemError = 13 RemoteSocketServiceError_SYS_EFAULT RemoteSocketServiceError_SystemError = 14 RemoteSocketServiceError_SYS_ENOTBLK RemoteSocketServiceError_SystemError = 15 RemoteSocketServiceError_SYS_EBUSY RemoteSocketServiceError_SystemError = 16 RemoteSocketServiceError_SYS_EEXIST RemoteSocketServiceError_SystemError = 17 RemoteSocketServiceError_SYS_EXDEV RemoteSocketServiceError_SystemError = 18 RemoteSocketServiceError_SYS_ENODEV RemoteSocketServiceError_SystemError = 19 RemoteSocketServiceError_SYS_ENOTDIR RemoteSocketServiceError_SystemError = 20 RemoteSocketServiceError_SYS_EISDIR RemoteSocketServiceError_SystemError = 21 RemoteSocketServiceError_SYS_EINVAL RemoteSocketServiceError_SystemError = 22 RemoteSocketServiceError_SYS_ENFILE RemoteSocketServiceError_SystemError = 23 RemoteSocketServiceError_SYS_EMFILE RemoteSocketServiceError_SystemError = 24 RemoteSocketServiceError_SYS_ENOTTY RemoteSocketServiceError_SystemError = 25 RemoteSocketServiceError_SYS_ETXTBSY RemoteSocketServiceError_SystemError = 26 RemoteSocketServiceError_SYS_EFBIG RemoteSocketServiceError_SystemError = 27 RemoteSocketServiceError_SYS_ENOSPC RemoteSocketServiceError_SystemError = 28 RemoteSocketServiceError_SYS_ESPIPE RemoteSocketServiceError_SystemError = 29 RemoteSocketServiceError_SYS_EROFS RemoteSocketServiceError_SystemError = 30 RemoteSocketServiceError_SYS_EMLINK RemoteSocketServiceError_SystemError = 31 RemoteSocketServiceError_SYS_EPIPE RemoteSocketServiceError_SystemError = 32 RemoteSocketServiceError_SYS_EDOM RemoteSocketServiceError_SystemError = 33 RemoteSocketServiceError_SYS_ERANGE RemoteSocketServiceError_SystemError = 34 RemoteSocketServiceError_SYS_EDEADLK RemoteSocketServiceError_SystemError = 35 RemoteSocketServiceError_SYS_EDEADLOCK RemoteSocketServiceError_SystemError = 35 RemoteSocketServiceError_SYS_ENAMETOOLONG RemoteSocketServiceError_SystemError = 36 RemoteSocketServiceError_SYS_ENOLCK RemoteSocketServiceError_SystemError = 37 RemoteSocketServiceError_SYS_ENOSYS RemoteSocketServiceError_SystemError = 38 RemoteSocketServiceError_SYS_ENOTEMPTY RemoteSocketServiceError_SystemError = 39 RemoteSocketServiceError_SYS_ELOOP RemoteSocketServiceError_SystemError = 40 RemoteSocketServiceError_SYS_ENOMSG RemoteSocketServiceError_SystemError = 42 RemoteSocketServiceError_SYS_EIDRM RemoteSocketServiceError_SystemError = 43 RemoteSocketServiceError_SYS_ECHRNG RemoteSocketServiceError_SystemError = 44 RemoteSocketServiceError_SYS_EL2NSYNC RemoteSocketServiceError_SystemError = 45 RemoteSocketServiceError_SYS_EL3HLT RemoteSocketServiceError_SystemError = 46 RemoteSocketServiceError_SYS_EL3RST RemoteSocketServiceError_SystemError = 47 RemoteSocketServiceError_SYS_ELNRNG RemoteSocketServiceError_SystemError = 48 RemoteSocketServiceError_SYS_EUNATCH RemoteSocketServiceError_SystemError = 49 RemoteSocketServiceError_SYS_ENOCSI RemoteSocketServiceError_SystemError = 50 RemoteSocketServiceError_SYS_EL2HLT RemoteSocketServiceError_SystemError = 51 RemoteSocketServiceError_SYS_EBADE RemoteSocketServiceError_SystemError = 52 RemoteSocketServiceError_SYS_EBADR RemoteSocketServiceError_SystemError = 53 RemoteSocketServiceError_SYS_EXFULL RemoteSocketServiceError_SystemError = 54 RemoteSocketServiceError_SYS_ENOANO RemoteSocketServiceError_SystemError = 55 RemoteSocketServiceError_SYS_EBADRQC RemoteSocketServiceError_SystemError = 56 RemoteSocketServiceError_SYS_EBADSLT RemoteSocketServiceError_SystemError = 57 RemoteSocketServiceError_SYS_EBFONT RemoteSocketServiceError_SystemError = 59 RemoteSocketServiceError_SYS_ENOSTR RemoteSocketServiceError_SystemError = 60 RemoteSocketServiceError_SYS_ENODATA RemoteSocketServiceError_SystemError = 61 RemoteSocketServiceError_SYS_ETIME RemoteSocketServiceError_SystemError = 62 RemoteSocketServiceError_SYS_ENOSR RemoteSocketServiceError_SystemError = 63 RemoteSocketServiceError_SYS_ENONET RemoteSocketServiceError_SystemError = 64 RemoteSocketServiceError_SYS_ENOPKG RemoteSocketServiceError_SystemError = 65 RemoteSocketServiceError_SYS_EREMOTE RemoteSocketServiceError_SystemError = 66 RemoteSocketServiceError_SYS_ENOLINK RemoteSocketServiceError_SystemError = 67 RemoteSocketServiceError_SYS_EADV RemoteSocketServiceError_SystemError = 68 RemoteSocketServiceError_SYS_ESRMNT RemoteSocketServiceError_SystemError = 69 RemoteSocketServiceError_SYS_ECOMM RemoteSocketServiceError_SystemError = 70 RemoteSocketServiceError_SYS_EPROTO RemoteSocketServiceError_SystemError = 71 RemoteSocketServiceError_SYS_EMULTIHOP RemoteSocketServiceError_SystemError = 72 RemoteSocketServiceError_SYS_EDOTDOT RemoteSocketServiceError_SystemError = 73 RemoteSocketServiceError_SYS_EBADMSG RemoteSocketServiceError_SystemError = 74 RemoteSocketServiceError_SYS_EOVERFLOW RemoteSocketServiceError_SystemError = 75 RemoteSocketServiceError_SYS_ENOTUNIQ RemoteSocketServiceError_SystemError = 76 RemoteSocketServiceError_SYS_EBADFD RemoteSocketServiceError_SystemError = 77 RemoteSocketServiceError_SYS_EREMCHG RemoteSocketServiceError_SystemError = 78 RemoteSocketServiceError_SYS_ELIBACC RemoteSocketServiceError_SystemError = 79 RemoteSocketServiceError_SYS_ELIBBAD RemoteSocketServiceError_SystemError = 80 RemoteSocketServiceError_SYS_ELIBSCN RemoteSocketServiceError_SystemError = 81 RemoteSocketServiceError_SYS_ELIBMAX RemoteSocketServiceError_SystemError = 82 RemoteSocketServiceError_SYS_ELIBEXEC RemoteSocketServiceError_SystemError = 83 RemoteSocketServiceError_SYS_EILSEQ RemoteSocketServiceError_SystemError = 84 RemoteSocketServiceError_SYS_ERESTART RemoteSocketServiceError_SystemError = 85 RemoteSocketServiceError_SYS_ESTRPIPE RemoteSocketServiceError_SystemError = 86 RemoteSocketServiceError_SYS_EUSERS RemoteSocketServiceError_SystemError = 87 RemoteSocketServiceError_SYS_ENOTSOCK RemoteSocketServiceError_SystemError = 88 RemoteSocketServiceError_SYS_EDESTADDRREQ RemoteSocketServiceError_SystemError = 89 RemoteSocketServiceError_SYS_EMSGSIZE RemoteSocketServiceError_SystemError = 90 RemoteSocketServiceError_SYS_EPROTOTYPE RemoteSocketServiceError_SystemError = 91 RemoteSocketServiceError_SYS_ENOPROTOOPT RemoteSocketServiceError_SystemError = 92 RemoteSocketServiceError_SYS_EPROTONOSUPPORT RemoteSocketServiceError_SystemError = 93 RemoteSocketServiceError_SYS_ESOCKTNOSUPPORT RemoteSocketServiceError_SystemError = 94 RemoteSocketServiceError_SYS_EOPNOTSUPP RemoteSocketServiceError_SystemError = 95 RemoteSocketServiceError_SYS_ENOTSUP RemoteSocketServiceError_SystemError = 95 RemoteSocketServiceError_SYS_EPFNOSUPPORT RemoteSocketServiceError_SystemError = 96 RemoteSocketServiceError_SYS_EAFNOSUPPORT RemoteSocketServiceError_SystemError = 97 RemoteSocketServiceError_SYS_EADDRINUSE RemoteSocketServiceError_SystemError = 98 RemoteSocketServiceError_SYS_EADDRNOTAVAIL RemoteSocketServiceError_SystemError = 99 RemoteSocketServiceError_SYS_ENETDOWN RemoteSocketServiceError_SystemError = 100 RemoteSocketServiceError_SYS_ENETUNREACH RemoteSocketServiceError_SystemError = 101 RemoteSocketServiceError_SYS_ENETRESET RemoteSocketServiceError_SystemError = 102 RemoteSocketServiceError_SYS_ECONNABORTED RemoteSocketServiceError_SystemError = 103 RemoteSocketServiceError_SYS_ECONNRESET RemoteSocketServiceError_SystemError = 104 RemoteSocketServiceError_SYS_ENOBUFS RemoteSocketServiceError_SystemError = 105 RemoteSocketServiceError_SYS_EISCONN RemoteSocketServiceError_SystemError = 106 RemoteSocketServiceError_SYS_ENOTCONN RemoteSocketServiceError_SystemError = 107 RemoteSocketServiceError_SYS_ESHUTDOWN RemoteSocketServiceError_SystemError = 108 RemoteSocketServiceError_SYS_ETOOMANYREFS RemoteSocketServiceError_SystemError = 109 RemoteSocketServiceError_SYS_ETIMEDOUT RemoteSocketServiceError_SystemError = 110 RemoteSocketServiceError_SYS_ECONNREFUSED RemoteSocketServiceError_SystemError = 111 RemoteSocketServiceError_SYS_EHOSTDOWN RemoteSocketServiceError_SystemError = 112 RemoteSocketServiceError_SYS_EHOSTUNREACH RemoteSocketServiceError_SystemError = 113 RemoteSocketServiceError_SYS_EALREADY RemoteSocketServiceError_SystemError = 114 RemoteSocketServiceError_SYS_EINPROGRESS RemoteSocketServiceError_SystemError = 115 RemoteSocketServiceError_SYS_ESTALE RemoteSocketServiceError_SystemError = 116 RemoteSocketServiceError_SYS_EUCLEAN RemoteSocketServiceError_SystemError = 117 RemoteSocketServiceError_SYS_ENOTNAM RemoteSocketServiceError_SystemError = 118 RemoteSocketServiceError_SYS_ENAVAIL RemoteSocketServiceError_SystemError = 119 RemoteSocketServiceError_SYS_EISNAM RemoteSocketServiceError_SystemError = 120 RemoteSocketServiceError_SYS_EREMOTEIO RemoteSocketServiceError_SystemError = 121 RemoteSocketServiceError_SYS_EDQUOT RemoteSocketServiceError_SystemError = 122 RemoteSocketServiceError_SYS_ENOMEDIUM RemoteSocketServiceError_SystemError = 123 RemoteSocketServiceError_SYS_EMEDIUMTYPE RemoteSocketServiceError_SystemError = 124 RemoteSocketServiceError_SYS_ECANCELED RemoteSocketServiceError_SystemError = 125 RemoteSocketServiceError_SYS_ENOKEY RemoteSocketServiceError_SystemError = 126 RemoteSocketServiceError_SYS_EKEYEXPIRED RemoteSocketServiceError_SystemError = 127 RemoteSocketServiceError_SYS_EKEYREVOKED RemoteSocketServiceError_SystemError = 128 RemoteSocketServiceError_SYS_EKEYREJECTED RemoteSocketServiceError_SystemError = 129 RemoteSocketServiceError_SYS_EOWNERDEAD RemoteSocketServiceError_SystemError = 130 RemoteSocketServiceError_SYS_ENOTRECOVERABLE RemoteSocketServiceError_SystemError = 131 RemoteSocketServiceError_SYS_ERFKILL RemoteSocketServiceError_SystemError = 132 ) var RemoteSocketServiceError_SystemError_name = map[int32]string{ 0: "SYS_SUCCESS", 1: "SYS_EPERM", 2: "SYS_ENOENT", 3: "SYS_ESRCH", 4: "SYS_EINTR", 5: "SYS_EIO", 6: "SYS_ENXIO", 7: "SYS_E2BIG", 8: "SYS_ENOEXEC", 9: "SYS_EBADF", 10: "SYS_ECHILD", 11: "SYS_EAGAIN", // Duplicate value: 11: "SYS_EWOULDBLOCK", 12: "SYS_ENOMEM", 13: "SYS_EACCES", 14: "SYS_EFAULT", 15: "SYS_ENOTBLK", 16: "SYS_EBUSY", 17: "SYS_EEXIST", 18: "SYS_EXDEV", 19: "SYS_ENODEV", 20: "SYS_ENOTDIR", 21: "SYS_EISDIR", 22: "SYS_EINVAL", 23: "SYS_ENFILE", 24: "SYS_EMFILE", 25: "SYS_ENOTTY", 26: "SYS_ETXTBSY", 27: "SYS_EFBIG", 28: "SYS_ENOSPC", 29: "SYS_ESPIPE", 30: "SYS_EROFS", 31: "SYS_EMLINK", 32: "SYS_EPIPE", 33: "SYS_EDOM", 34: "SYS_ERANGE", 35: "SYS_EDEADLK", // Duplicate value: 35: "SYS_EDEADLOCK", 36: "SYS_ENAMETOOLONG", 37: "SYS_ENOLCK", 38: "SYS_ENOSYS", 39: "SYS_ENOTEMPTY", 40: "SYS_ELOOP", 42: "SYS_ENOMSG", 43: "SYS_EIDRM", 44: "SYS_ECHRNG", 45: "SYS_EL2NSYNC", 46: "SYS_EL3HLT", 47: "SYS_EL3RST", 48: "SYS_ELNRNG", 49: "SYS_EUNATCH", 50: "SYS_ENOCSI", 51: "SYS_EL2HLT", 52: "SYS_EBADE", 53: "SYS_EBADR", 54: "SYS_EXFULL", 55: "SYS_ENOANO", 56: "SYS_EBADRQC", 57: "SYS_EBADSLT", 59: "SYS_EBFONT", 60: "SYS_ENOSTR", 61: "SYS_ENODATA", 62: "SYS_ETIME", 63: "SYS_ENOSR", 64: "SYS_ENONET", 65: "SYS_ENOPKG", 66: "SYS_EREMOTE", 67: "SYS_ENOLINK", 68: "SYS_EADV", 69: "SYS_ESRMNT", 70: "SYS_ECOMM", 71: "SYS_EPROTO", 72: "SYS_EMULTIHOP", 73: "SYS_EDOTDOT", 74: "SYS_EBADMSG", 75: "SYS_EOVERFLOW", 76: "SYS_ENOTUNIQ", 77: "SYS_EBADFD", 78: "SYS_EREMCHG", 79: "SYS_ELIBACC", 80: "SYS_ELIBBAD", 81: "SYS_ELIBSCN", 82: "SYS_ELIBMAX", 83: "SYS_ELIBEXEC", 84: "SYS_EILSEQ", 85: "SYS_ERESTART", 86: "SYS_ESTRPIPE", 87: "SYS_EUSERS", 88: "SYS_ENOTSOCK", 89: "SYS_EDESTADDRREQ", 90: "SYS_EMSGSIZE", 91: "SYS_EPROTOTYPE", 92: "SYS_ENOPROTOOPT", 93: "SYS_EPROTONOSUPPORT", 94: "SYS_ESOCKTNOSUPPORT", 95: "SYS_EOPNOTSUPP", // Duplicate value: 95: "SYS_ENOTSUP", 96: "SYS_EPFNOSUPPORT", 97: "SYS_EAFNOSUPPORT", 98: "SYS_EADDRINUSE", 99: "SYS_EADDRNOTAVAIL", 100: "SYS_ENETDOWN", 101: "SYS_ENETUNREACH", 102: "SYS_ENETRESET", 103: "SYS_ECONNABORTED", 104: "SYS_ECONNRESET", 105: "SYS_ENOBUFS", 106: "SYS_EISCONN", 107: "SYS_ENOTCONN", 108: "SYS_ESHUTDOWN", 109: "SYS_ETOOMANYREFS", 110: "SYS_ETIMEDOUT", 111: "SYS_ECONNREFUSED", 112: "SYS_EHOSTDOWN", 113: "SYS_EHOSTUNREACH", 114: "SYS_EALREADY", 115: "SYS_EINPROGRESS", 116: "SYS_ESTALE", 117: "SYS_EUCLEAN", 118: "SYS_ENOTNAM", 119: "SYS_ENAVAIL", 120: "SYS_EISNAM", 121: "SYS_EREMOTEIO", 122: "SYS_EDQUOT", 123: "SYS_ENOMEDIUM", 124: "SYS_EMEDIUMTYPE", 125: "SYS_ECANCELED", 126: "SYS_ENOKEY", 127: "SYS_EKEYEXPIRED", 128: "SYS_EKEYREVOKED", 129: "SYS_EKEYREJECTED", 130: "SYS_EOWNERDEAD", 131: "SYS_ENOTRECOVERABLE", 132: "SYS_ERFKILL", } var RemoteSocketServiceError_SystemError_value = map[string]int32{ "SYS_SUCCESS": 0, "SYS_EPERM": 1, "SYS_ENOENT": 2, "SYS_ESRCH": 3, "SYS_EINTR": 4, "SYS_EIO": 5, "SYS_ENXIO": 6, "SYS_E2BIG": 7, "SYS_ENOEXEC": 8, "SYS_EBADF": 9, "SYS_ECHILD": 10, "SYS_EAGAIN": 11, "SYS_EWOULDBLOCK": 11, "SYS_ENOMEM": 12, "SYS_EACCES": 13, "SYS_EFAULT": 14, "SYS_ENOTBLK": 15, "SYS_EBUSY": 16, "SYS_EEXIST": 17, "SYS_EXDEV": 18, "SYS_ENODEV": 19, "SYS_ENOTDIR": 20, "SYS_EISDIR": 21, "SYS_EINVAL": 22, "SYS_ENFILE": 23, "SYS_EMFILE": 24, "SYS_ENOTTY": 25, "SYS_ETXTBSY": 26, "SYS_EFBIG": 27, "SYS_ENOSPC": 28, "SYS_ESPIPE": 29, "SYS_EROFS": 30, "SYS_EMLINK": 31, "SYS_EPIPE": 32, "SYS_EDOM": 33, "SYS_ERANGE": 34, "SYS_EDEADLK": 35, "SYS_EDEADLOCK": 35, "SYS_ENAMETOOLONG": 36, "SYS_ENOLCK": 37, "SYS_ENOSYS": 38, "SYS_ENOTEMPTY": 39, "SYS_ELOOP": 40, "SYS_ENOMSG": 42, "SYS_EIDRM": 43, "SYS_ECHRNG": 44, "SYS_EL2NSYNC": 45, "SYS_EL3HLT": 46, "SYS_EL3RST": 47, "SYS_ELNRNG": 48, "SYS_EUNATCH": 49, "SYS_ENOCSI": 50, "SYS_EL2HLT": 51, "SYS_EBADE": 52, "SYS_EBADR": 53, "SYS_EXFULL": 54, "SYS_ENOANO": 55, "SYS_EBADRQC": 56, "SYS_EBADSLT": 57, "SYS_EBFONT": 59, "SYS_ENOSTR": 60, "SYS_ENODATA": 61, "SYS_ETIME": 62, "SYS_ENOSR": 63, "SYS_ENONET": 64, "SYS_ENOPKG": 65, "SYS_EREMOTE": 66, "SYS_ENOLINK": 67, "SYS_EADV": 68, "SYS_ESRMNT": 69, "SYS_ECOMM": 70, "SYS_EPROTO": 71, "SYS_EMULTIHOP": 72, "SYS_EDOTDOT": 73, "SYS_EBADMSG": 74, "SYS_EOVERFLOW": 75, "SYS_ENOTUNIQ": 76, "SYS_EBADFD": 77, "SYS_EREMCHG": 78, "SYS_ELIBACC": 79, "SYS_ELIBBAD": 80, "SYS_ELIBSCN": 81, "SYS_ELIBMAX": 82, "SYS_ELIBEXEC": 83, "SYS_EILSEQ": 84, "SYS_ERESTART": 85, "SYS_ESTRPIPE": 86, "SYS_EUSERS": 87, "SYS_ENOTSOCK": 88, "SYS_EDESTADDRREQ": 89, "SYS_EMSGSIZE": 90, "SYS_EPROTOTYPE": 91, "SYS_ENOPROTOOPT": 92, "SYS_EPROTONOSUPPORT": 93, "SYS_ESOCKTNOSUPPORT": 94, "SYS_EOPNOTSUPP": 95, "SYS_ENOTSUP": 95, "SYS_EPFNOSUPPORT": 96, "SYS_EAFNOSUPPORT": 97, "SYS_EADDRINUSE": 98, "SYS_EADDRNOTAVAIL": 99, "SYS_ENETDOWN": 100, "SYS_ENETUNREACH": 101, "SYS_ENETRESET": 102, "SYS_ECONNABORTED": 103, "SYS_ECONNRESET": 104, "SYS_ENOBUFS": 105, "SYS_EISCONN": 106, "SYS_ENOTCONN": 107, "SYS_ESHUTDOWN": 108, "SYS_ETOOMANYREFS": 109, "SYS_ETIMEDOUT": 110, "SYS_ECONNREFUSED": 111, "SYS_EHOSTDOWN": 112, "SYS_EHOSTUNREACH": 113, "SYS_EALREADY": 114, "SYS_EINPROGRESS": 115, "SYS_ESTALE": 116, "SYS_EUCLEAN": 117, "SYS_ENOTNAM": 118, "SYS_ENAVAIL": 119, "SYS_EISNAM": 120, "SYS_EREMOTEIO": 121, "SYS_EDQUOT": 122, "SYS_ENOMEDIUM": 123, "SYS_EMEDIUMTYPE": 124, "SYS_ECANCELED": 125, "SYS_ENOKEY": 126, "SYS_EKEYEXPIRED": 127, "SYS_EKEYREVOKED": 128, "SYS_EKEYREJECTED": 129, "SYS_EOWNERDEAD": 130, "SYS_ENOTRECOVERABLE": 131, "SYS_ERFKILL": 132, } func (x RemoteSocketServiceError_SystemError) Enum() *RemoteSocketServiceError_SystemError { p := new(RemoteSocketServiceError_SystemError) *p = x return p } func (x RemoteSocketServiceError_SystemError) String() string { return proto.EnumName(RemoteSocketServiceError_SystemError_name, int32(x)) } func (x *RemoteSocketServiceError_SystemError) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(RemoteSocketServiceError_SystemError_value, data, "RemoteSocketServiceError_SystemError") if err != nil { return err } *x = RemoteSocketServiceError_SystemError(value) return nil } func (RemoteSocketServiceError_SystemError) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{0, 1} } type CreateSocketRequest_SocketFamily int32 const ( CreateSocketRequest_IPv4 CreateSocketRequest_SocketFamily = 1 CreateSocketRequest_IPv6 CreateSocketRequest_SocketFamily = 2 ) var CreateSocketRequest_SocketFamily_name = map[int32]string{ 1: "IPv4", 2: "IPv6", } var CreateSocketRequest_SocketFamily_value = map[string]int32{ "IPv4": 1, "IPv6": 2, } func (x CreateSocketRequest_SocketFamily) Enum() *CreateSocketRequest_SocketFamily { p := new(CreateSocketRequest_SocketFamily) *p = x return p } func (x CreateSocketRequest_SocketFamily) String() string { return proto.EnumName(CreateSocketRequest_SocketFamily_name, int32(x)) } func (x *CreateSocketRequest_SocketFamily) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(CreateSocketRequest_SocketFamily_value, data, "CreateSocketRequest_SocketFamily") if err != nil { return err } *x = CreateSocketRequest_SocketFamily(value) return nil } func (CreateSocketRequest_SocketFamily) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{2, 0} } type CreateSocketRequest_SocketProtocol int32 const ( CreateSocketRequest_TCP CreateSocketRequest_SocketProtocol = 1 CreateSocketRequest_UDP CreateSocketRequest_SocketProtocol = 2 ) var CreateSocketRequest_SocketProtocol_name = map[int32]string{ 1: "TCP", 2: "UDP", } var CreateSocketRequest_SocketProtocol_value = map[string]int32{ "TCP": 1, "UDP": 2, } func (x CreateSocketRequest_SocketProtocol) Enum() *CreateSocketRequest_SocketProtocol { p := new(CreateSocketRequest_SocketProtocol) *p = x return p } func (x CreateSocketRequest_SocketProtocol) String() string { return proto.EnumName(CreateSocketRequest_SocketProtocol_name, int32(x)) } func (x *CreateSocketRequest_SocketProtocol) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(CreateSocketRequest_SocketProtocol_value, data, "CreateSocketRequest_SocketProtocol") if err != nil { return err } *x = CreateSocketRequest_SocketProtocol(value) return nil } func (CreateSocketRequest_SocketProtocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{2, 1} } type SocketOption_SocketOptionLevel int32 const ( SocketOption_SOCKET_SOL_IP SocketOption_SocketOptionLevel = 0 SocketOption_SOCKET_SOL_SOCKET SocketOption_SocketOptionLevel = 1 SocketOption_SOCKET_SOL_TCP SocketOption_SocketOptionLevel = 6 SocketOption_SOCKET_SOL_UDP SocketOption_SocketOptionLevel = 17 ) var SocketOption_SocketOptionLevel_name = map[int32]string{ 0: "SOCKET_SOL_IP", 1: "SOCKET_SOL_SOCKET", 6: "SOCKET_SOL_TCP", 17: "SOCKET_SOL_UDP", } var SocketOption_SocketOptionLevel_value = map[string]int32{ "SOCKET_SOL_IP": 0, "SOCKET_SOL_SOCKET": 1, "SOCKET_SOL_TCP": 6, "SOCKET_SOL_UDP": 17, } func (x SocketOption_SocketOptionLevel) Enum() *SocketOption_SocketOptionLevel { p := new(SocketOption_SocketOptionLevel) *p = x return p } func (x SocketOption_SocketOptionLevel) String() string { return proto.EnumName(SocketOption_SocketOptionLevel_name, int32(x)) } func (x *SocketOption_SocketOptionLevel) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(SocketOption_SocketOptionLevel_value, data, "SocketOption_SocketOptionLevel") if err != nil { return err } *x = SocketOption_SocketOptionLevel(value) return nil } func (SocketOption_SocketOptionLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{10, 0} } type SocketOption_SocketOptionName int32 const ( SocketOption_SOCKET_SO_DEBUG SocketOption_SocketOptionName = 1 SocketOption_SOCKET_SO_REUSEADDR SocketOption_SocketOptionName = 2 SocketOption_SOCKET_SO_TYPE SocketOption_SocketOptionName = 3 SocketOption_SOCKET_SO_ERROR SocketOption_SocketOptionName = 4 SocketOption_SOCKET_SO_DONTROUTE SocketOption_SocketOptionName = 5 SocketOption_SOCKET_SO_BROADCAST SocketOption_SocketOptionName = 6 SocketOption_SOCKET_SO_SNDBUF SocketOption_SocketOptionName = 7 SocketOption_SOCKET_SO_RCVBUF SocketOption_SocketOptionName = 8 SocketOption_SOCKET_SO_KEEPALIVE SocketOption_SocketOptionName = 9 SocketOption_SOCKET_SO_OOBINLINE SocketOption_SocketOptionName = 10 SocketOption_SOCKET_SO_LINGER SocketOption_SocketOptionName = 13 SocketOption_SOCKET_SO_RCVTIMEO SocketOption_SocketOptionName = 20 SocketOption_SOCKET_SO_SNDTIMEO SocketOption_SocketOptionName = 21 SocketOption_SOCKET_IP_TOS SocketOption_SocketOptionName = 1 SocketOption_SOCKET_IP_TTL SocketOption_SocketOptionName = 2 SocketOption_SOCKET_IP_HDRINCL SocketOption_SocketOptionName = 3 SocketOption_SOCKET_IP_OPTIONS SocketOption_SocketOptionName = 4 SocketOption_SOCKET_TCP_NODELAY SocketOption_SocketOptionName = 1 SocketOption_SOCKET_TCP_MAXSEG SocketOption_SocketOptionName = 2 SocketOption_SOCKET_TCP_CORK SocketOption_SocketOptionName = 3 SocketOption_SOCKET_TCP_KEEPIDLE SocketOption_SocketOptionName = 4 SocketOption_SOCKET_TCP_KEEPINTVL SocketOption_SocketOptionName = 5 SocketOption_SOCKET_TCP_KEEPCNT SocketOption_SocketOptionName = 6 SocketOption_SOCKET_TCP_SYNCNT SocketOption_SocketOptionName = 7 SocketOption_SOCKET_TCP_LINGER2 SocketOption_SocketOptionName = 8 SocketOption_SOCKET_TCP_DEFER_ACCEPT SocketOption_SocketOptionName = 9 SocketOption_SOCKET_TCP_WINDOW_CLAMP SocketOption_SocketOptionName = 10 SocketOption_SOCKET_TCP_INFO SocketOption_SocketOptionName = 11 SocketOption_SOCKET_TCP_QUICKACK SocketOption_SocketOptionName = 12 ) var SocketOption_SocketOptionName_name = map[int32]string{ 1: "SOCKET_SO_DEBUG", 2: "SOCKET_SO_REUSEADDR", 3: "SOCKET_SO_TYPE", 4: "SOCKET_SO_ERROR", 5: "SOCKET_SO_DONTROUTE", 6: "SOCKET_SO_BROADCAST", 7: "SOCKET_SO_SNDBUF", 8: "SOCKET_SO_RCVBUF", 9: "SOCKET_SO_KEEPALIVE", 10: "SOCKET_SO_OOBINLINE", 13: "SOCKET_SO_LINGER", 20: "SOCKET_SO_RCVTIMEO", 21: "SOCKET_SO_SNDTIMEO", // Duplicate value: 1: "SOCKET_IP_TOS", // Duplicate value: 2: "SOCKET_IP_TTL", // Duplicate value: 3: "SOCKET_IP_HDRINCL", // Duplicate value: 4: "SOCKET_IP_OPTIONS", // Duplicate value: 1: "SOCKET_TCP_NODELAY", // Duplicate value: 2: "SOCKET_TCP_MAXSEG", // Duplicate value: 3: "SOCKET_TCP_CORK", // Duplicate value: 4: "SOCKET_TCP_KEEPIDLE", // Duplicate value: 5: "SOCKET_TCP_KEEPINTVL", // Duplicate value: 6: "SOCKET_TCP_KEEPCNT", // Duplicate value: 7: "SOCKET_TCP_SYNCNT", // Duplicate value: 8: "SOCKET_TCP_LINGER2", // Duplicate value: 9: "SOCKET_TCP_DEFER_ACCEPT", // Duplicate value: 10: "SOCKET_TCP_WINDOW_CLAMP", 11: "SOCKET_TCP_INFO", 12: "SOCKET_TCP_QUICKACK", } var SocketOption_SocketOptionName_value = map[string]int32{ "SOCKET_SO_DEBUG": 1, "SOCKET_SO_REUSEADDR": 2, "SOCKET_SO_TYPE": 3, "SOCKET_SO_ERROR": 4, "SOCKET_SO_DONTROUTE": 5, "SOCKET_SO_BROADCAST": 6, "SOCKET_SO_SNDBUF": 7, "SOCKET_SO_RCVBUF": 8, "SOCKET_SO_KEEPALIVE": 9, "SOCKET_SO_OOBINLINE": 10, "SOCKET_SO_LINGER": 13, "SOCKET_SO_RCVTIMEO": 20, "SOCKET_SO_SNDTIMEO": 21, "SOCKET_IP_TOS": 1, "SOCKET_IP_TTL": 2, "SOCKET_IP_HDRINCL": 3, "SOCKET_IP_OPTIONS": 4, "SOCKET_TCP_NODELAY": 1, "SOCKET_TCP_MAXSEG": 2, "SOCKET_TCP_CORK": 3, "SOCKET_TCP_KEEPIDLE": 4, "SOCKET_TCP_KEEPINTVL": 5, "SOCKET_TCP_KEEPCNT": 6, "SOCKET_TCP_SYNCNT": 7, "SOCKET_TCP_LINGER2": 8, "SOCKET_TCP_DEFER_ACCEPT": 9, "SOCKET_TCP_WINDOW_CLAMP": 10, "SOCKET_TCP_INFO": 11, "SOCKET_TCP_QUICKACK": 12, } func (x SocketOption_SocketOptionName) Enum() *SocketOption_SocketOptionName { p := new(SocketOption_SocketOptionName) *p = x return p } func (x SocketOption_SocketOptionName) String() string { return proto.EnumName(SocketOption_SocketOptionName_name, int32(x)) } func (x *SocketOption_SocketOptionName) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(SocketOption_SocketOptionName_value, data, "SocketOption_SocketOptionName") if err != nil { return err } *x = SocketOption_SocketOptionName(value) return nil } func (SocketOption_SocketOptionName) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{10, 1} } type ShutDownRequest_How int32 const ( ShutDownRequest_SOCKET_SHUT_RD ShutDownRequest_How = 1 ShutDownRequest_SOCKET_SHUT_WR ShutDownRequest_How = 2 ShutDownRequest_SOCKET_SHUT_RDWR ShutDownRequest_How = 3 ) var ShutDownRequest_How_name = map[int32]string{ 1: "SOCKET_SHUT_RD", 2: "SOCKET_SHUT_WR", 3: "SOCKET_SHUT_RDWR", } var ShutDownRequest_How_value = map[string]int32{ "SOCKET_SHUT_RD": 1, "SOCKET_SHUT_WR": 2, "SOCKET_SHUT_RDWR": 3, } func (x ShutDownRequest_How) Enum() *ShutDownRequest_How { p := new(ShutDownRequest_How) *p = x return p } func (x ShutDownRequest_How) String() string { return proto.EnumName(ShutDownRequest_How_name, int32(x)) } func (x *ShutDownRequest_How) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ShutDownRequest_How_value, data, "ShutDownRequest_How") if err != nil { return err } *x = ShutDownRequest_How(value) return nil } func (ShutDownRequest_How) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{21, 0} } type ReceiveRequest_Flags int32 const ( ReceiveRequest_MSG_OOB ReceiveRequest_Flags = 1 ReceiveRequest_MSG_PEEK ReceiveRequest_Flags = 2 ) var ReceiveRequest_Flags_name = map[int32]string{ 1: "MSG_OOB", 2: "MSG_PEEK", } var ReceiveRequest_Flags_value = map[string]int32{ "MSG_OOB": 1, "MSG_PEEK": 2, } func (x ReceiveRequest_Flags) Enum() *ReceiveRequest_Flags { p := new(ReceiveRequest_Flags) *p = x return p } func (x ReceiveRequest_Flags) String() string { return proto.EnumName(ReceiveRequest_Flags_name, int32(x)) } func (x *ReceiveRequest_Flags) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ReceiveRequest_Flags_value, data, "ReceiveRequest_Flags") if err != nil { return err } *x = ReceiveRequest_Flags(value) return nil } func (ReceiveRequest_Flags) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{27, 0} } type PollEvent_PollEventFlag int32 const ( PollEvent_SOCKET_POLLNONE PollEvent_PollEventFlag = 0 PollEvent_SOCKET_POLLIN PollEvent_PollEventFlag = 1 PollEvent_SOCKET_POLLPRI PollEvent_PollEventFlag = 2 PollEvent_SOCKET_POLLOUT PollEvent_PollEventFlag = 4 PollEvent_SOCKET_POLLERR PollEvent_PollEventFlag = 8 PollEvent_SOCKET_POLLHUP PollEvent_PollEventFlag = 16 PollEvent_SOCKET_POLLNVAL PollEvent_PollEventFlag = 32 PollEvent_SOCKET_POLLRDNORM PollEvent_PollEventFlag = 64 PollEvent_SOCKET_POLLRDBAND PollEvent_PollEventFlag = 128 PollEvent_SOCKET_POLLWRNORM PollEvent_PollEventFlag = 256 PollEvent_SOCKET_POLLWRBAND PollEvent_PollEventFlag = 512 PollEvent_SOCKET_POLLMSG PollEvent_PollEventFlag = 1024 PollEvent_SOCKET_POLLREMOVE PollEvent_PollEventFlag = 4096 PollEvent_SOCKET_POLLRDHUP PollEvent_PollEventFlag = 8192 ) var PollEvent_PollEventFlag_name = map[int32]string{ 0: "SOCKET_POLLNONE", 1: "SOCKET_POLLIN", 2: "SOCKET_POLLPRI", 4: "SOCKET_POLLOUT", 8: "SOCKET_POLLERR", 16: "SOCKET_POLLHUP", 32: "SOCKET_POLLNVAL", 64: "SOCKET_POLLRDNORM", 128: "SOCKET_POLLRDBAND", 256: "SOCKET_POLLWRNORM", 512: "SOCKET_POLLWRBAND", 1024: "SOCKET_POLLMSG", 4096: "SOCKET_POLLREMOVE", 8192: "SOCKET_POLLRDHUP", } var PollEvent_PollEventFlag_value = map[string]int32{ "SOCKET_POLLNONE": 0, "SOCKET_POLLIN": 1, "SOCKET_POLLPRI": 2, "SOCKET_POLLOUT": 4, "SOCKET_POLLERR": 8, "SOCKET_POLLHUP": 16, "SOCKET_POLLNVAL": 32, "SOCKET_POLLRDNORM": 64, "SOCKET_POLLRDBAND": 128, "SOCKET_POLLWRNORM": 256, "SOCKET_POLLWRBAND": 512, "SOCKET_POLLMSG": 1024, "SOCKET_POLLREMOVE": 4096, "SOCKET_POLLRDHUP": 8192, } func (x PollEvent_PollEventFlag) Enum() *PollEvent_PollEventFlag { p := new(PollEvent_PollEventFlag) *p = x return p } func (x PollEvent_PollEventFlag) String() string { return proto.EnumName(PollEvent_PollEventFlag_name, int32(x)) } func (x *PollEvent_PollEventFlag) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(PollEvent_PollEventFlag_value, data, "PollEvent_PollEventFlag") if err != nil { return err } *x = PollEvent_PollEventFlag(value) return nil } func (PollEvent_PollEventFlag) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{29, 0} } type ResolveReply_ErrorCode int32 const ( ResolveReply_SOCKET_EAI_ADDRFAMILY ResolveReply_ErrorCode = 1 ResolveReply_SOCKET_EAI_AGAIN ResolveReply_ErrorCode = 2 ResolveReply_SOCKET_EAI_BADFLAGS ResolveReply_ErrorCode = 3 ResolveReply_SOCKET_EAI_FAIL ResolveReply_ErrorCode = 4 ResolveReply_SOCKET_EAI_FAMILY ResolveReply_ErrorCode = 5 ResolveReply_SOCKET_EAI_MEMORY ResolveReply_ErrorCode = 6 ResolveReply_SOCKET_EAI_NODATA ResolveReply_ErrorCode = 7 ResolveReply_SOCKET_EAI_NONAME ResolveReply_ErrorCode = 8 ResolveReply_SOCKET_EAI_SERVICE ResolveReply_ErrorCode = 9 ResolveReply_SOCKET_EAI_SOCKTYPE ResolveReply_ErrorCode = 10 ResolveReply_SOCKET_EAI_SYSTEM ResolveReply_ErrorCode = 11 ResolveReply_SOCKET_EAI_BADHINTS ResolveReply_ErrorCode = 12 ResolveReply_SOCKET_EAI_PROTOCOL ResolveReply_ErrorCode = 13 ResolveReply_SOCKET_EAI_OVERFLOW ResolveReply_ErrorCode = 14 ResolveReply_SOCKET_EAI_MAX ResolveReply_ErrorCode = 15 ) var ResolveReply_ErrorCode_name = map[int32]string{ 1: "SOCKET_EAI_ADDRFAMILY", 2: "SOCKET_EAI_AGAIN", 3: "SOCKET_EAI_BADFLAGS", 4: "SOCKET_EAI_FAIL", 5: "SOCKET_EAI_FAMILY", 6: "SOCKET_EAI_MEMORY", 7: "SOCKET_EAI_NODATA", 8: "SOCKET_EAI_NONAME", 9: "SOCKET_EAI_SERVICE", 10: "SOCKET_EAI_SOCKTYPE", 11: "SOCKET_EAI_SYSTEM", 12: "SOCKET_EAI_BADHINTS", 13: "SOCKET_EAI_PROTOCOL", 14: "SOCKET_EAI_OVERFLOW", 15: "SOCKET_EAI_MAX", } var ResolveReply_ErrorCode_value = map[string]int32{ "SOCKET_EAI_ADDRFAMILY": 1, "SOCKET_EAI_AGAIN": 2, "SOCKET_EAI_BADFLAGS": 3, "SOCKET_EAI_FAIL": 4, "SOCKET_EAI_FAMILY": 5, "SOCKET_EAI_MEMORY": 6, "SOCKET_EAI_NODATA": 7, "SOCKET_EAI_NONAME": 8, "SOCKET_EAI_SERVICE": 9, "SOCKET_EAI_SOCKTYPE": 10, "SOCKET_EAI_SYSTEM": 11, "SOCKET_EAI_BADHINTS": 12, "SOCKET_EAI_PROTOCOL": 13, "SOCKET_EAI_OVERFLOW": 14, "SOCKET_EAI_MAX": 15, } func (x ResolveReply_ErrorCode) Enum() *ResolveReply_ErrorCode { p := new(ResolveReply_ErrorCode) *p = x return p } func (x ResolveReply_ErrorCode) String() string { return proto.EnumName(ResolveReply_ErrorCode_name, int32(x)) } func (x *ResolveReply_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ResolveReply_ErrorCode_value, data, "ResolveReply_ErrorCode") if err != nil { return err } *x = ResolveReply_ErrorCode(value) return nil } func (ResolveReply_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{33, 0} } type RemoteSocketServiceError struct { SystemError *int32 `protobuf:"varint,1,opt,name=system_error,json=systemError,def=0" json:"system_error,omitempty"` ErrorDetail *string `protobuf:"bytes,2,opt,name=error_detail,json=errorDetail" json:"error_detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *RemoteSocketServiceError) Reset() { *m = RemoteSocketServiceError{} } func (m *RemoteSocketServiceError) String() string { return proto.CompactTextString(m) } func (*RemoteSocketServiceError) ProtoMessage() {} func (*RemoteSocketServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{0} } func (m *RemoteSocketServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoteSocketServiceError.Unmarshal(m, b) } func (m *RemoteSocketServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RemoteSocketServiceError.Marshal(b, m, deterministic) } func (dst *RemoteSocketServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_RemoteSocketServiceError.Merge(dst, src) } func (m *RemoteSocketServiceError) XXX_Size() int { return xxx_messageInfo_RemoteSocketServiceError.Size(m) } func (m *RemoteSocketServiceError) XXX_DiscardUnknown() { xxx_messageInfo_RemoteSocketServiceError.DiscardUnknown(m) } var xxx_messageInfo_RemoteSocketServiceError proto.InternalMessageInfo const Default_RemoteSocketServiceError_SystemError int32 = 0 func (m *RemoteSocketServiceError) GetSystemError() int32 { if m != nil && m.SystemError != nil { return *m.SystemError } return Default_RemoteSocketServiceError_SystemError } func (m *RemoteSocketServiceError) GetErrorDetail() string { if m != nil && m.ErrorDetail != nil { return *m.ErrorDetail } return "" } type AddressPort struct { Port *int32 `protobuf:"varint,1,req,name=port" json:"port,omitempty"` PackedAddress []byte `protobuf:"bytes,2,opt,name=packed_address,json=packedAddress" json:"packed_address,omitempty"` HostnameHint *string `protobuf:"bytes,3,opt,name=hostname_hint,json=hostnameHint" json:"hostname_hint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AddressPort) Reset() { *m = AddressPort{} } func (m *AddressPort) String() string { return proto.CompactTextString(m) } func (*AddressPort) ProtoMessage() {} func (*AddressPort) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{1} } func (m *AddressPort) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddressPort.Unmarshal(m, b) } func (m *AddressPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AddressPort.Marshal(b, m, deterministic) } func (dst *AddressPort) XXX_Merge(src proto.Message) { xxx_messageInfo_AddressPort.Merge(dst, src) } func (m *AddressPort) XXX_Size() int { return xxx_messageInfo_AddressPort.Size(m) } func (m *AddressPort) XXX_DiscardUnknown() { xxx_messageInfo_AddressPort.DiscardUnknown(m) } var xxx_messageInfo_AddressPort proto.InternalMessageInfo func (m *AddressPort) GetPort() int32 { if m != nil && m.Port != nil { return *m.Port } return 0 } func (m *AddressPort) GetPackedAddress() []byte { if m != nil { return m.PackedAddress } return nil } func (m *AddressPort) GetHostnameHint() string { if m != nil && m.HostnameHint != nil { return *m.HostnameHint } return "" } type CreateSocketRequest struct { Family *CreateSocketRequest_SocketFamily `protobuf:"varint,1,req,name=family,enum=appengine.CreateSocketRequest_SocketFamily" json:"family,omitempty"` Protocol *CreateSocketRequest_SocketProtocol `protobuf:"varint,2,req,name=protocol,enum=appengine.CreateSocketRequest_SocketProtocol" json:"protocol,omitempty"` SocketOptions []*SocketOption `protobuf:"bytes,3,rep,name=socket_options,json=socketOptions" json:"socket_options,omitempty"` ProxyExternalIp *AddressPort `protobuf:"bytes,4,opt,name=proxy_external_ip,json=proxyExternalIp" json:"proxy_external_ip,omitempty"` ListenBacklog *int32 `protobuf:"varint,5,opt,name=listen_backlog,json=listenBacklog,def=0" json:"listen_backlog,omitempty"` RemoteIp *AddressPort `protobuf:"bytes,6,opt,name=remote_ip,json=remoteIp" json:"remote_ip,omitempty"` AppId *string `protobuf:"bytes,9,opt,name=app_id,json=appId" json:"app_id,omitempty"` ProjectId *int64 `protobuf:"varint,10,opt,name=project_id,json=projectId" json:"project_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateSocketRequest) Reset() { *m = CreateSocketRequest{} } func (m *CreateSocketRequest) String() string { return proto.CompactTextString(m) } func (*CreateSocketRequest) ProtoMessage() {} func (*CreateSocketRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{2} } func (m *CreateSocketRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateSocketRequest.Unmarshal(m, b) } func (m *CreateSocketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateSocketRequest.Marshal(b, m, deterministic) } func (dst *CreateSocketRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateSocketRequest.Merge(dst, src) } func (m *CreateSocketRequest) XXX_Size() int { return xxx_messageInfo_CreateSocketRequest.Size(m) } func (m *CreateSocketRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateSocketRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateSocketRequest proto.InternalMessageInfo const Default_CreateSocketRequest_ListenBacklog int32 = 0 func (m *CreateSocketRequest) GetFamily() CreateSocketRequest_SocketFamily { if m != nil && m.Family != nil { return *m.Family } return CreateSocketRequest_IPv4 } func (m *CreateSocketRequest) GetProtocol() CreateSocketRequest_SocketProtocol { if m != nil && m.Protocol != nil { return *m.Protocol } return CreateSocketRequest_TCP } func (m *CreateSocketRequest) GetSocketOptions() []*SocketOption { if m != nil { return m.SocketOptions } return nil } func (m *CreateSocketRequest) GetProxyExternalIp() *AddressPort { if m != nil { return m.ProxyExternalIp } return nil } func (m *CreateSocketRequest) GetListenBacklog() int32 { if m != nil && m.ListenBacklog != nil { return *m.ListenBacklog } return Default_CreateSocketRequest_ListenBacklog } func (m *CreateSocketRequest) GetRemoteIp() *AddressPort { if m != nil { return m.RemoteIp } return nil } func (m *CreateSocketRequest) GetAppId() string { if m != nil && m.AppId != nil { return *m.AppId } return "" } func (m *CreateSocketRequest) GetProjectId() int64 { if m != nil && m.ProjectId != nil { return *m.ProjectId } return 0 } type CreateSocketReply struct { SocketDescriptor *string `protobuf:"bytes,1,opt,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` ServerAddress *AddressPort `protobuf:"bytes,3,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"` ProxyExternalIp *AddressPort `protobuf:"bytes,4,opt,name=proxy_external_ip,json=proxyExternalIp" json:"proxy_external_ip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateSocketReply) Reset() { *m = CreateSocketReply{} } func (m *CreateSocketReply) String() string { return proto.CompactTextString(m) } func (*CreateSocketReply) ProtoMessage() {} func (*CreateSocketReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{3} } var extRange_CreateSocketReply = []proto.ExtensionRange{ {Start: 1000, End: 536870911}, } func (*CreateSocketReply) ExtensionRangeArray() []proto.ExtensionRange { return extRange_CreateSocketReply } func (m *CreateSocketReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateSocketReply.Unmarshal(m, b) } func (m *CreateSocketReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateSocketReply.Marshal(b, m, deterministic) } func (dst *CreateSocketReply) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateSocketReply.Merge(dst, src) } func (m *CreateSocketReply) XXX_Size() int { return xxx_messageInfo_CreateSocketReply.Size(m) } func (m *CreateSocketReply) XXX_DiscardUnknown() { xxx_messageInfo_CreateSocketReply.DiscardUnknown(m) } var xxx_messageInfo_CreateSocketReply proto.InternalMessageInfo func (m *CreateSocketReply) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *CreateSocketReply) GetServerAddress() *AddressPort { if m != nil { return m.ServerAddress } return nil } func (m *CreateSocketReply) GetProxyExternalIp() *AddressPort { if m != nil { return m.ProxyExternalIp } return nil } type BindRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` ProxyExternalIp *AddressPort `protobuf:"bytes,2,req,name=proxy_external_ip,json=proxyExternalIp" json:"proxy_external_ip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BindRequest) Reset() { *m = BindRequest{} } func (m *BindRequest) String() string { return proto.CompactTextString(m) } func (*BindRequest) ProtoMessage() {} func (*BindRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{4} } func (m *BindRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BindRequest.Unmarshal(m, b) } func (m *BindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BindRequest.Marshal(b, m, deterministic) } func (dst *BindRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_BindRequest.Merge(dst, src) } func (m *BindRequest) XXX_Size() int { return xxx_messageInfo_BindRequest.Size(m) } func (m *BindRequest) XXX_DiscardUnknown() { xxx_messageInfo_BindRequest.DiscardUnknown(m) } var xxx_messageInfo_BindRequest proto.InternalMessageInfo func (m *BindRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *BindRequest) GetProxyExternalIp() *AddressPort { if m != nil { return m.ProxyExternalIp } return nil } type BindReply struct { ProxyExternalIp *AddressPort `protobuf:"bytes,1,opt,name=proxy_external_ip,json=proxyExternalIp" json:"proxy_external_ip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BindReply) Reset() { *m = BindReply{} } func (m *BindReply) String() string { return proto.CompactTextString(m) } func (*BindReply) ProtoMessage() {} func (*BindReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{5} } func (m *BindReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BindReply.Unmarshal(m, b) } func (m *BindReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BindReply.Marshal(b, m, deterministic) } func (dst *BindReply) XXX_Merge(src proto.Message) { xxx_messageInfo_BindReply.Merge(dst, src) } func (m *BindReply) XXX_Size() int { return xxx_messageInfo_BindReply.Size(m) } func (m *BindReply) XXX_DiscardUnknown() { xxx_messageInfo_BindReply.DiscardUnknown(m) } var xxx_messageInfo_BindReply proto.InternalMessageInfo func (m *BindReply) GetProxyExternalIp() *AddressPort { if m != nil { return m.ProxyExternalIp } return nil } type GetSocketNameRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetSocketNameRequest) Reset() { *m = GetSocketNameRequest{} } func (m *GetSocketNameRequest) String() string { return proto.CompactTextString(m) } func (*GetSocketNameRequest) ProtoMessage() {} func (*GetSocketNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{6} } func (m *GetSocketNameRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSocketNameRequest.Unmarshal(m, b) } func (m *GetSocketNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetSocketNameRequest.Marshal(b, m, deterministic) } func (dst *GetSocketNameRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetSocketNameRequest.Merge(dst, src) } func (m *GetSocketNameRequest) XXX_Size() int { return xxx_messageInfo_GetSocketNameRequest.Size(m) } func (m *GetSocketNameRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetSocketNameRequest.DiscardUnknown(m) } var xxx_messageInfo_GetSocketNameRequest proto.InternalMessageInfo func (m *GetSocketNameRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } type GetSocketNameReply struct { ProxyExternalIp *AddressPort `protobuf:"bytes,2,opt,name=proxy_external_ip,json=proxyExternalIp" json:"proxy_external_ip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetSocketNameReply) Reset() { *m = GetSocketNameReply{} } func (m *GetSocketNameReply) String() string { return proto.CompactTextString(m) } func (*GetSocketNameReply) ProtoMessage() {} func (*GetSocketNameReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{7} } func (m *GetSocketNameReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSocketNameReply.Unmarshal(m, b) } func (m *GetSocketNameReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetSocketNameReply.Marshal(b, m, deterministic) } func (dst *GetSocketNameReply) XXX_Merge(src proto.Message) { xxx_messageInfo_GetSocketNameReply.Merge(dst, src) } func (m *GetSocketNameReply) XXX_Size() int { return xxx_messageInfo_GetSocketNameReply.Size(m) } func (m *GetSocketNameReply) XXX_DiscardUnknown() { xxx_messageInfo_GetSocketNameReply.DiscardUnknown(m) } var xxx_messageInfo_GetSocketNameReply proto.InternalMessageInfo func (m *GetSocketNameReply) GetProxyExternalIp() *AddressPort { if m != nil { return m.ProxyExternalIp } return nil } type GetPeerNameRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetPeerNameRequest) Reset() { *m = GetPeerNameRequest{} } func (m *GetPeerNameRequest) String() string { return proto.CompactTextString(m) } func (*GetPeerNameRequest) ProtoMessage() {} func (*GetPeerNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{8} } func (m *GetPeerNameRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetPeerNameRequest.Unmarshal(m, b) } func (m *GetPeerNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetPeerNameRequest.Marshal(b, m, deterministic) } func (dst *GetPeerNameRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetPeerNameRequest.Merge(dst, src) } func (m *GetPeerNameRequest) XXX_Size() int { return xxx_messageInfo_GetPeerNameRequest.Size(m) } func (m *GetPeerNameRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetPeerNameRequest.DiscardUnknown(m) } var xxx_messageInfo_GetPeerNameRequest proto.InternalMessageInfo func (m *GetPeerNameRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } type GetPeerNameReply struct { PeerIp *AddressPort `protobuf:"bytes,2,opt,name=peer_ip,json=peerIp" json:"peer_ip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetPeerNameReply) Reset() { *m = GetPeerNameReply{} } func (m *GetPeerNameReply) String() string { return proto.CompactTextString(m) } func (*GetPeerNameReply) ProtoMessage() {} func (*GetPeerNameReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{9} } func (m *GetPeerNameReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetPeerNameReply.Unmarshal(m, b) } func (m *GetPeerNameReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetPeerNameReply.Marshal(b, m, deterministic) } func (dst *GetPeerNameReply) XXX_Merge(src proto.Message) { xxx_messageInfo_GetPeerNameReply.Merge(dst, src) } func (m *GetPeerNameReply) XXX_Size() int { return xxx_messageInfo_GetPeerNameReply.Size(m) } func (m *GetPeerNameReply) XXX_DiscardUnknown() { xxx_messageInfo_GetPeerNameReply.DiscardUnknown(m) } var xxx_messageInfo_GetPeerNameReply proto.InternalMessageInfo func (m *GetPeerNameReply) GetPeerIp() *AddressPort { if m != nil { return m.PeerIp } return nil } type SocketOption struct { Level *SocketOption_SocketOptionLevel `protobuf:"varint,1,req,name=level,enum=appengine.SocketOption_SocketOptionLevel" json:"level,omitempty"` Option *SocketOption_SocketOptionName `protobuf:"varint,2,req,name=option,enum=appengine.SocketOption_SocketOptionName" json:"option,omitempty"` Value []byte `protobuf:"bytes,3,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SocketOption) Reset() { *m = SocketOption{} } func (m *SocketOption) String() string { return proto.CompactTextString(m) } func (*SocketOption) ProtoMessage() {} func (*SocketOption) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{10} } func (m *SocketOption) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SocketOption.Unmarshal(m, b) } func (m *SocketOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SocketOption.Marshal(b, m, deterministic) } func (dst *SocketOption) XXX_Merge(src proto.Message) { xxx_messageInfo_SocketOption.Merge(dst, src) } func (m *SocketOption) XXX_Size() int { return xxx_messageInfo_SocketOption.Size(m) } func (m *SocketOption) XXX_DiscardUnknown() { xxx_messageInfo_SocketOption.DiscardUnknown(m) } var xxx_messageInfo_SocketOption proto.InternalMessageInfo func (m *SocketOption) GetLevel() SocketOption_SocketOptionLevel { if m != nil && m.Level != nil { return *m.Level } return SocketOption_SOCKET_SOL_IP } func (m *SocketOption) GetOption() SocketOption_SocketOptionName { if m != nil && m.Option != nil { return *m.Option } return SocketOption_SOCKET_SO_DEBUG } func (m *SocketOption) GetValue() []byte { if m != nil { return m.Value } return nil } type SetSocketOptionsRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` Options []*SocketOption `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SetSocketOptionsRequest) Reset() { *m = SetSocketOptionsRequest{} } func (m *SetSocketOptionsRequest) String() string { return proto.CompactTextString(m) } func (*SetSocketOptionsRequest) ProtoMessage() {} func (*SetSocketOptionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{11} } func (m *SetSocketOptionsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SetSocketOptionsRequest.Unmarshal(m, b) } func (m *SetSocketOptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SetSocketOptionsRequest.Marshal(b, m, deterministic) } func (dst *SetSocketOptionsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SetSocketOptionsRequest.Merge(dst, src) } func (m *SetSocketOptionsRequest) XXX_Size() int { return xxx_messageInfo_SetSocketOptionsRequest.Size(m) } func (m *SetSocketOptionsRequest) XXX_DiscardUnknown() { xxx_messageInfo_SetSocketOptionsRequest.DiscardUnknown(m) } var xxx_messageInfo_SetSocketOptionsRequest proto.InternalMessageInfo func (m *SetSocketOptionsRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *SetSocketOptionsRequest) GetOptions() []*SocketOption { if m != nil { return m.Options } return nil } type SetSocketOptionsReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SetSocketOptionsReply) Reset() { *m = SetSocketOptionsReply{} } func (m *SetSocketOptionsReply) String() string { return proto.CompactTextString(m) } func (*SetSocketOptionsReply) ProtoMessage() {} func (*SetSocketOptionsReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{12} } func (m *SetSocketOptionsReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SetSocketOptionsReply.Unmarshal(m, b) } func (m *SetSocketOptionsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SetSocketOptionsReply.Marshal(b, m, deterministic) } func (dst *SetSocketOptionsReply) XXX_Merge(src proto.Message) { xxx_messageInfo_SetSocketOptionsReply.Merge(dst, src) } func (m *SetSocketOptionsReply) XXX_Size() int { return xxx_messageInfo_SetSocketOptionsReply.Size(m) } func (m *SetSocketOptionsReply) XXX_DiscardUnknown() { xxx_messageInfo_SetSocketOptionsReply.DiscardUnknown(m) } var xxx_messageInfo_SetSocketOptionsReply proto.InternalMessageInfo type GetSocketOptionsRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` Options []*SocketOption `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetSocketOptionsRequest) Reset() { *m = GetSocketOptionsRequest{} } func (m *GetSocketOptionsRequest) String() string { return proto.CompactTextString(m) } func (*GetSocketOptionsRequest) ProtoMessage() {} func (*GetSocketOptionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{13} } func (m *GetSocketOptionsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSocketOptionsRequest.Unmarshal(m, b) } func (m *GetSocketOptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetSocketOptionsRequest.Marshal(b, m, deterministic) } func (dst *GetSocketOptionsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetSocketOptionsRequest.Merge(dst, src) } func (m *GetSocketOptionsRequest) XXX_Size() int { return xxx_messageInfo_GetSocketOptionsRequest.Size(m) } func (m *GetSocketOptionsRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetSocketOptionsRequest.DiscardUnknown(m) } var xxx_messageInfo_GetSocketOptionsRequest proto.InternalMessageInfo func (m *GetSocketOptionsRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *GetSocketOptionsRequest) GetOptions() []*SocketOption { if m != nil { return m.Options } return nil } type GetSocketOptionsReply struct { Options []*SocketOption `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetSocketOptionsReply) Reset() { *m = GetSocketOptionsReply{} } func (m *GetSocketOptionsReply) String() string { return proto.CompactTextString(m) } func (*GetSocketOptionsReply) ProtoMessage() {} func (*GetSocketOptionsReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{14} } func (m *GetSocketOptionsReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSocketOptionsReply.Unmarshal(m, b) } func (m *GetSocketOptionsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetSocketOptionsReply.Marshal(b, m, deterministic) } func (dst *GetSocketOptionsReply) XXX_Merge(src proto.Message) { xxx_messageInfo_GetSocketOptionsReply.Merge(dst, src) } func (m *GetSocketOptionsReply) XXX_Size() int { return xxx_messageInfo_GetSocketOptionsReply.Size(m) } func (m *GetSocketOptionsReply) XXX_DiscardUnknown() { xxx_messageInfo_GetSocketOptionsReply.DiscardUnknown(m) } var xxx_messageInfo_GetSocketOptionsReply proto.InternalMessageInfo func (m *GetSocketOptionsReply) GetOptions() []*SocketOption { if m != nil { return m.Options } return nil } type ConnectRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` RemoteIp *AddressPort `protobuf:"bytes,2,req,name=remote_ip,json=remoteIp" json:"remote_ip,omitempty"` TimeoutSeconds *float64 `protobuf:"fixed64,3,opt,name=timeout_seconds,json=timeoutSeconds,def=-1" json:"timeout_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ConnectRequest) Reset() { *m = ConnectRequest{} } func (m *ConnectRequest) String() string { return proto.CompactTextString(m) } func (*ConnectRequest) ProtoMessage() {} func (*ConnectRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{15} } func (m *ConnectRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ConnectRequest.Unmarshal(m, b) } func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConnectRequest.Marshal(b, m, deterministic) } func (dst *ConnectRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ConnectRequest.Merge(dst, src) } func (m *ConnectRequest) XXX_Size() int { return xxx_messageInfo_ConnectRequest.Size(m) } func (m *ConnectRequest) XXX_DiscardUnknown() { xxx_messageInfo_ConnectRequest.DiscardUnknown(m) } var xxx_messageInfo_ConnectRequest proto.InternalMessageInfo const Default_ConnectRequest_TimeoutSeconds float64 = -1 func (m *ConnectRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *ConnectRequest) GetRemoteIp() *AddressPort { if m != nil { return m.RemoteIp } return nil } func (m *ConnectRequest) GetTimeoutSeconds() float64 { if m != nil && m.TimeoutSeconds != nil { return *m.TimeoutSeconds } return Default_ConnectRequest_TimeoutSeconds } type ConnectReply struct { ProxyExternalIp *AddressPort `protobuf:"bytes,1,opt,name=proxy_external_ip,json=proxyExternalIp" json:"proxy_external_ip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ConnectReply) Reset() { *m = ConnectReply{} } func (m *ConnectReply) String() string { return proto.CompactTextString(m) } func (*ConnectReply) ProtoMessage() {} func (*ConnectReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{16} } var extRange_ConnectReply = []proto.ExtensionRange{ {Start: 1000, End: 536870911}, } func (*ConnectReply) ExtensionRangeArray() []proto.ExtensionRange { return extRange_ConnectReply } func (m *ConnectReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ConnectReply.Unmarshal(m, b) } func (m *ConnectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConnectReply.Marshal(b, m, deterministic) } func (dst *ConnectReply) XXX_Merge(src proto.Message) { xxx_messageInfo_ConnectReply.Merge(dst, src) } func (m *ConnectReply) XXX_Size() int { return xxx_messageInfo_ConnectReply.Size(m) } func (m *ConnectReply) XXX_DiscardUnknown() { xxx_messageInfo_ConnectReply.DiscardUnknown(m) } var xxx_messageInfo_ConnectReply proto.InternalMessageInfo func (m *ConnectReply) GetProxyExternalIp() *AddressPort { if m != nil { return m.ProxyExternalIp } return nil } type ListenRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` Backlog *int32 `protobuf:"varint,2,req,name=backlog" json:"backlog,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListenRequest) Reset() { *m = ListenRequest{} } func (m *ListenRequest) String() string { return proto.CompactTextString(m) } func (*ListenRequest) ProtoMessage() {} func (*ListenRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{17} } func (m *ListenRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListenRequest.Unmarshal(m, b) } func (m *ListenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListenRequest.Marshal(b, m, deterministic) } func (dst *ListenRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ListenRequest.Merge(dst, src) } func (m *ListenRequest) XXX_Size() int { return xxx_messageInfo_ListenRequest.Size(m) } func (m *ListenRequest) XXX_DiscardUnknown() { xxx_messageInfo_ListenRequest.DiscardUnknown(m) } var xxx_messageInfo_ListenRequest proto.InternalMessageInfo func (m *ListenRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *ListenRequest) GetBacklog() int32 { if m != nil && m.Backlog != nil { return *m.Backlog } return 0 } type ListenReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListenReply) Reset() { *m = ListenReply{} } func (m *ListenReply) String() string { return proto.CompactTextString(m) } func (*ListenReply) ProtoMessage() {} func (*ListenReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{18} } func (m *ListenReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListenReply.Unmarshal(m, b) } func (m *ListenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListenReply.Marshal(b, m, deterministic) } func (dst *ListenReply) XXX_Merge(src proto.Message) { xxx_messageInfo_ListenReply.Merge(dst, src) } func (m *ListenReply) XXX_Size() int { return xxx_messageInfo_ListenReply.Size(m) } func (m *ListenReply) XXX_DiscardUnknown() { xxx_messageInfo_ListenReply.DiscardUnknown(m) } var xxx_messageInfo_ListenReply proto.InternalMessageInfo type AcceptRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` TimeoutSeconds *float64 `protobuf:"fixed64,2,opt,name=timeout_seconds,json=timeoutSeconds,def=-1" json:"timeout_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AcceptRequest) Reset() { *m = AcceptRequest{} } func (m *AcceptRequest) String() string { return proto.CompactTextString(m) } func (*AcceptRequest) ProtoMessage() {} func (*AcceptRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{19} } func (m *AcceptRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AcceptRequest.Unmarshal(m, b) } func (m *AcceptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AcceptRequest.Marshal(b, m, deterministic) } func (dst *AcceptRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AcceptRequest.Merge(dst, src) } func (m *AcceptRequest) XXX_Size() int { return xxx_messageInfo_AcceptRequest.Size(m) } func (m *AcceptRequest) XXX_DiscardUnknown() { xxx_messageInfo_AcceptRequest.DiscardUnknown(m) } var xxx_messageInfo_AcceptRequest proto.InternalMessageInfo const Default_AcceptRequest_TimeoutSeconds float64 = -1 func (m *AcceptRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *AcceptRequest) GetTimeoutSeconds() float64 { if m != nil && m.TimeoutSeconds != nil { return *m.TimeoutSeconds } return Default_AcceptRequest_TimeoutSeconds } type AcceptReply struct { NewSocketDescriptor []byte `protobuf:"bytes,2,opt,name=new_socket_descriptor,json=newSocketDescriptor" json:"new_socket_descriptor,omitempty"` RemoteAddress *AddressPort `protobuf:"bytes,3,opt,name=remote_address,json=remoteAddress" json:"remote_address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AcceptReply) Reset() { *m = AcceptReply{} } func (m *AcceptReply) String() string { return proto.CompactTextString(m) } func (*AcceptReply) ProtoMessage() {} func (*AcceptReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{20} } func (m *AcceptReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AcceptReply.Unmarshal(m, b) } func (m *AcceptReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AcceptReply.Marshal(b, m, deterministic) } func (dst *AcceptReply) XXX_Merge(src proto.Message) { xxx_messageInfo_AcceptReply.Merge(dst, src) } func (m *AcceptReply) XXX_Size() int { return xxx_messageInfo_AcceptReply.Size(m) } func (m *AcceptReply) XXX_DiscardUnknown() { xxx_messageInfo_AcceptReply.DiscardUnknown(m) } var xxx_messageInfo_AcceptReply proto.InternalMessageInfo func (m *AcceptReply) GetNewSocketDescriptor() []byte { if m != nil { return m.NewSocketDescriptor } return nil } func (m *AcceptReply) GetRemoteAddress() *AddressPort { if m != nil { return m.RemoteAddress } return nil } type ShutDownRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` How *ShutDownRequest_How `protobuf:"varint,2,req,name=how,enum=appengine.ShutDownRequest_How" json:"how,omitempty"` SendOffset *int64 `protobuf:"varint,3,req,name=send_offset,json=sendOffset" json:"send_offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ShutDownRequest) Reset() { *m = ShutDownRequest{} } func (m *ShutDownRequest) String() string { return proto.CompactTextString(m) } func (*ShutDownRequest) ProtoMessage() {} func (*ShutDownRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{21} } func (m *ShutDownRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ShutDownRequest.Unmarshal(m, b) } func (m *ShutDownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ShutDownRequest.Marshal(b, m, deterministic) } func (dst *ShutDownRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ShutDownRequest.Merge(dst, src) } func (m *ShutDownRequest) XXX_Size() int { return xxx_messageInfo_ShutDownRequest.Size(m) } func (m *ShutDownRequest) XXX_DiscardUnknown() { xxx_messageInfo_ShutDownRequest.DiscardUnknown(m) } var xxx_messageInfo_ShutDownRequest proto.InternalMessageInfo func (m *ShutDownRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *ShutDownRequest) GetHow() ShutDownRequest_How { if m != nil && m.How != nil { return *m.How } return ShutDownRequest_SOCKET_SHUT_RD } func (m *ShutDownRequest) GetSendOffset() int64 { if m != nil && m.SendOffset != nil { return *m.SendOffset } return 0 } type ShutDownReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ShutDownReply) Reset() { *m = ShutDownReply{} } func (m *ShutDownReply) String() string { return proto.CompactTextString(m) } func (*ShutDownReply) ProtoMessage() {} func (*ShutDownReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{22} } func (m *ShutDownReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ShutDownReply.Unmarshal(m, b) } func (m *ShutDownReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ShutDownReply.Marshal(b, m, deterministic) } func (dst *ShutDownReply) XXX_Merge(src proto.Message) { xxx_messageInfo_ShutDownReply.Merge(dst, src) } func (m *ShutDownReply) XXX_Size() int { return xxx_messageInfo_ShutDownReply.Size(m) } func (m *ShutDownReply) XXX_DiscardUnknown() { xxx_messageInfo_ShutDownReply.DiscardUnknown(m) } var xxx_messageInfo_ShutDownReply proto.InternalMessageInfo type CloseRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` SendOffset *int64 `protobuf:"varint,2,opt,name=send_offset,json=sendOffset,def=-1" json:"send_offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CloseRequest) Reset() { *m = CloseRequest{} } func (m *CloseRequest) String() string { return proto.CompactTextString(m) } func (*CloseRequest) ProtoMessage() {} func (*CloseRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{23} } func (m *CloseRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CloseRequest.Unmarshal(m, b) } func (m *CloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CloseRequest.Marshal(b, m, deterministic) } func (dst *CloseRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CloseRequest.Merge(dst, src) } func (m *CloseRequest) XXX_Size() int { return xxx_messageInfo_CloseRequest.Size(m) } func (m *CloseRequest) XXX_DiscardUnknown() { xxx_messageInfo_CloseRequest.DiscardUnknown(m) } var xxx_messageInfo_CloseRequest proto.InternalMessageInfo const Default_CloseRequest_SendOffset int64 = -1 func (m *CloseRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *CloseRequest) GetSendOffset() int64 { if m != nil && m.SendOffset != nil { return *m.SendOffset } return Default_CloseRequest_SendOffset } type CloseReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CloseReply) Reset() { *m = CloseReply{} } func (m *CloseReply) String() string { return proto.CompactTextString(m) } func (*CloseReply) ProtoMessage() {} func (*CloseReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{24} } func (m *CloseReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CloseReply.Unmarshal(m, b) } func (m *CloseReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CloseReply.Marshal(b, m, deterministic) } func (dst *CloseReply) XXX_Merge(src proto.Message) { xxx_messageInfo_CloseReply.Merge(dst, src) } func (m *CloseReply) XXX_Size() int { return xxx_messageInfo_CloseReply.Size(m) } func (m *CloseReply) XXX_DiscardUnknown() { xxx_messageInfo_CloseReply.DiscardUnknown(m) } var xxx_messageInfo_CloseReply proto.InternalMessageInfo type SendRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"` StreamOffset *int64 `protobuf:"varint,3,req,name=stream_offset,json=streamOffset" json:"stream_offset,omitempty"` Flags *int32 `protobuf:"varint,4,opt,name=flags,def=0" json:"flags,omitempty"` SendTo *AddressPort `protobuf:"bytes,5,opt,name=send_to,json=sendTo" json:"send_to,omitempty"` TimeoutSeconds *float64 `protobuf:"fixed64,6,opt,name=timeout_seconds,json=timeoutSeconds,def=-1" json:"timeout_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SendRequest) Reset() { *m = SendRequest{} } func (m *SendRequest) String() string { return proto.CompactTextString(m) } func (*SendRequest) ProtoMessage() {} func (*SendRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{25} } func (m *SendRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SendRequest.Unmarshal(m, b) } func (m *SendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SendRequest.Marshal(b, m, deterministic) } func (dst *SendRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SendRequest.Merge(dst, src) } func (m *SendRequest) XXX_Size() int { return xxx_messageInfo_SendRequest.Size(m) } func (m *SendRequest) XXX_DiscardUnknown() { xxx_messageInfo_SendRequest.DiscardUnknown(m) } var xxx_messageInfo_SendRequest proto.InternalMessageInfo const Default_SendRequest_Flags int32 = 0 const Default_SendRequest_TimeoutSeconds float64 = -1 func (m *SendRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *SendRequest) GetData() []byte { if m != nil { return m.Data } return nil } func (m *SendRequest) GetStreamOffset() int64 { if m != nil && m.StreamOffset != nil { return *m.StreamOffset } return 0 } func (m *SendRequest) GetFlags() int32 { if m != nil && m.Flags != nil { return *m.Flags } return Default_SendRequest_Flags } func (m *SendRequest) GetSendTo() *AddressPort { if m != nil { return m.SendTo } return nil } func (m *SendRequest) GetTimeoutSeconds() float64 { if m != nil && m.TimeoutSeconds != nil { return *m.TimeoutSeconds } return Default_SendRequest_TimeoutSeconds } type SendReply struct { DataSent *int32 `protobuf:"varint,1,opt,name=data_sent,json=dataSent" json:"data_sent,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SendReply) Reset() { *m = SendReply{} } func (m *SendReply) String() string { return proto.CompactTextString(m) } func (*SendReply) ProtoMessage() {} func (*SendReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{26} } func (m *SendReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SendReply.Unmarshal(m, b) } func (m *SendReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SendReply.Marshal(b, m, deterministic) } func (dst *SendReply) XXX_Merge(src proto.Message) { xxx_messageInfo_SendReply.Merge(dst, src) } func (m *SendReply) XXX_Size() int { return xxx_messageInfo_SendReply.Size(m) } func (m *SendReply) XXX_DiscardUnknown() { xxx_messageInfo_SendReply.DiscardUnknown(m) } var xxx_messageInfo_SendReply proto.InternalMessageInfo func (m *SendReply) GetDataSent() int32 { if m != nil && m.DataSent != nil { return *m.DataSent } return 0 } type ReceiveRequest struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` DataSize *int32 `protobuf:"varint,2,req,name=data_size,json=dataSize" json:"data_size,omitempty"` Flags *int32 `protobuf:"varint,3,opt,name=flags,def=0" json:"flags,omitempty"` TimeoutSeconds *float64 `protobuf:"fixed64,5,opt,name=timeout_seconds,json=timeoutSeconds,def=-1" json:"timeout_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ReceiveRequest) Reset() { *m = ReceiveRequest{} } func (m *ReceiveRequest) String() string { return proto.CompactTextString(m) } func (*ReceiveRequest) ProtoMessage() {} func (*ReceiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{27} } func (m *ReceiveRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ReceiveRequest.Unmarshal(m, b) } func (m *ReceiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ReceiveRequest.Marshal(b, m, deterministic) } func (dst *ReceiveRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ReceiveRequest.Merge(dst, src) } func (m *ReceiveRequest) XXX_Size() int { return xxx_messageInfo_ReceiveRequest.Size(m) } func (m *ReceiveRequest) XXX_DiscardUnknown() { xxx_messageInfo_ReceiveRequest.DiscardUnknown(m) } var xxx_messageInfo_ReceiveRequest proto.InternalMessageInfo const Default_ReceiveRequest_Flags int32 = 0 const Default_ReceiveRequest_TimeoutSeconds float64 = -1 func (m *ReceiveRequest) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *ReceiveRequest) GetDataSize() int32 { if m != nil && m.DataSize != nil { return *m.DataSize } return 0 } func (m *ReceiveRequest) GetFlags() int32 { if m != nil && m.Flags != nil { return *m.Flags } return Default_ReceiveRequest_Flags } func (m *ReceiveRequest) GetTimeoutSeconds() float64 { if m != nil && m.TimeoutSeconds != nil { return *m.TimeoutSeconds } return Default_ReceiveRequest_TimeoutSeconds } type ReceiveReply struct { StreamOffset *int64 `protobuf:"varint,2,opt,name=stream_offset,json=streamOffset" json:"stream_offset,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"` ReceivedFrom *AddressPort `protobuf:"bytes,4,opt,name=received_from,json=receivedFrom" json:"received_from,omitempty"` BufferSize *int32 `protobuf:"varint,5,opt,name=buffer_size,json=bufferSize" json:"buffer_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ReceiveReply) Reset() { *m = ReceiveReply{} } func (m *ReceiveReply) String() string { return proto.CompactTextString(m) } func (*ReceiveReply) ProtoMessage() {} func (*ReceiveReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{28} } func (m *ReceiveReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ReceiveReply.Unmarshal(m, b) } func (m *ReceiveReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ReceiveReply.Marshal(b, m, deterministic) } func (dst *ReceiveReply) XXX_Merge(src proto.Message) { xxx_messageInfo_ReceiveReply.Merge(dst, src) } func (m *ReceiveReply) XXX_Size() int { return xxx_messageInfo_ReceiveReply.Size(m) } func (m *ReceiveReply) XXX_DiscardUnknown() { xxx_messageInfo_ReceiveReply.DiscardUnknown(m) } var xxx_messageInfo_ReceiveReply proto.InternalMessageInfo func (m *ReceiveReply) GetStreamOffset() int64 { if m != nil && m.StreamOffset != nil { return *m.StreamOffset } return 0 } func (m *ReceiveReply) GetData() []byte { if m != nil { return m.Data } return nil } func (m *ReceiveReply) GetReceivedFrom() *AddressPort { if m != nil { return m.ReceivedFrom } return nil } func (m *ReceiveReply) GetBufferSize() int32 { if m != nil && m.BufferSize != nil { return *m.BufferSize } return 0 } type PollEvent struct { SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor,json=socketDescriptor" json:"socket_descriptor,omitempty"` RequestedEvents *int32 `protobuf:"varint,2,req,name=requested_events,json=requestedEvents" json:"requested_events,omitempty"` ObservedEvents *int32 `protobuf:"varint,3,req,name=observed_events,json=observedEvents" json:"observed_events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PollEvent) Reset() { *m = PollEvent{} } func (m *PollEvent) String() string { return proto.CompactTextString(m) } func (*PollEvent) ProtoMessage() {} func (*PollEvent) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{29} } func (m *PollEvent) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PollEvent.Unmarshal(m, b) } func (m *PollEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PollEvent.Marshal(b, m, deterministic) } func (dst *PollEvent) XXX_Merge(src proto.Message) { xxx_messageInfo_PollEvent.Merge(dst, src) } func (m *PollEvent) XXX_Size() int { return xxx_messageInfo_PollEvent.Size(m) } func (m *PollEvent) XXX_DiscardUnknown() { xxx_messageInfo_PollEvent.DiscardUnknown(m) } var xxx_messageInfo_PollEvent proto.InternalMessageInfo func (m *PollEvent) GetSocketDescriptor() string { if m != nil && m.SocketDescriptor != nil { return *m.SocketDescriptor } return "" } func (m *PollEvent) GetRequestedEvents() int32 { if m != nil && m.RequestedEvents != nil { return *m.RequestedEvents } return 0 } func (m *PollEvent) GetObservedEvents() int32 { if m != nil && m.ObservedEvents != nil { return *m.ObservedEvents } return 0 } type PollRequest struct { Events []*PollEvent `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` TimeoutSeconds *float64 `protobuf:"fixed64,2,opt,name=timeout_seconds,json=timeoutSeconds,def=-1" json:"timeout_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PollRequest) Reset() { *m = PollRequest{} } func (m *PollRequest) String() string { return proto.CompactTextString(m) } func (*PollRequest) ProtoMessage() {} func (*PollRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{30} } func (m *PollRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PollRequest.Unmarshal(m, b) } func (m *PollRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PollRequest.Marshal(b, m, deterministic) } func (dst *PollRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_PollRequest.Merge(dst, src) } func (m *PollRequest) XXX_Size() int { return xxx_messageInfo_PollRequest.Size(m) } func (m *PollRequest) XXX_DiscardUnknown() { xxx_messageInfo_PollRequest.DiscardUnknown(m) } var xxx_messageInfo_PollRequest proto.InternalMessageInfo const Default_PollRequest_TimeoutSeconds float64 = -1 func (m *PollRequest) GetEvents() []*PollEvent { if m != nil { return m.Events } return nil } func (m *PollRequest) GetTimeoutSeconds() float64 { if m != nil && m.TimeoutSeconds != nil { return *m.TimeoutSeconds } return Default_PollRequest_TimeoutSeconds } type PollReply struct { Events []*PollEvent `protobuf:"bytes,2,rep,name=events" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PollReply) Reset() { *m = PollReply{} } func (m *PollReply) String() string { return proto.CompactTextString(m) } func (*PollReply) ProtoMessage() {} func (*PollReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{31} } func (m *PollReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PollReply.Unmarshal(m, b) } func (m *PollReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PollReply.Marshal(b, m, deterministic) } func (dst *PollReply) XXX_Merge(src proto.Message) { xxx_messageInfo_PollReply.Merge(dst, src) } func (m *PollReply) XXX_Size() int { return xxx_messageInfo_PollReply.Size(m) } func (m *PollReply) XXX_DiscardUnknown() { xxx_messageInfo_PollReply.DiscardUnknown(m) } var xxx_messageInfo_PollReply proto.InternalMessageInfo func (m *PollReply) GetEvents() []*PollEvent { if m != nil { return m.Events } return nil } type ResolveRequest struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` AddressFamilies []CreateSocketRequest_SocketFamily `protobuf:"varint,2,rep,name=address_families,json=addressFamilies,enum=appengine.CreateSocketRequest_SocketFamily" json:"address_families,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ResolveRequest) Reset() { *m = ResolveRequest{} } func (m *ResolveRequest) String() string { return proto.CompactTextString(m) } func (*ResolveRequest) ProtoMessage() {} func (*ResolveRequest) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{32} } func (m *ResolveRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ResolveRequest.Unmarshal(m, b) } func (m *ResolveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ResolveRequest.Marshal(b, m, deterministic) } func (dst *ResolveRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ResolveRequest.Merge(dst, src) } func (m *ResolveRequest) XXX_Size() int { return xxx_messageInfo_ResolveRequest.Size(m) } func (m *ResolveRequest) XXX_DiscardUnknown() { xxx_messageInfo_ResolveRequest.DiscardUnknown(m) } var xxx_messageInfo_ResolveRequest proto.InternalMessageInfo func (m *ResolveRequest) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *ResolveRequest) GetAddressFamilies() []CreateSocketRequest_SocketFamily { if m != nil { return m.AddressFamilies } return nil } type ResolveReply struct { PackedAddress [][]byte `protobuf:"bytes,2,rep,name=packed_address,json=packedAddress" json:"packed_address,omitempty"` CanonicalName *string `protobuf:"bytes,3,opt,name=canonical_name,json=canonicalName" json:"canonical_name,omitempty"` Aliases []string `protobuf:"bytes,4,rep,name=aliases" json:"aliases,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ResolveReply) Reset() { *m = ResolveReply{} } func (m *ResolveReply) String() string { return proto.CompactTextString(m) } func (*ResolveReply) ProtoMessage() {} func (*ResolveReply) Descriptor() ([]byte, []int) { return fileDescriptor_socket_service_b5f8f233dc327808, []int{33} } func (m *ResolveReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ResolveReply.Unmarshal(m, b) } func (m *ResolveReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ResolveReply.Marshal(b, m, deterministic) } func (dst *ResolveReply) XXX_Merge(src proto.Message) { xxx_messageInfo_ResolveReply.Merge(dst, src) } func (m *ResolveReply) XXX_Size() int { return xxx_messageInfo_ResolveReply.Size(m) } func (m *ResolveReply) XXX_DiscardUnknown() { xxx_messageInfo_ResolveReply.DiscardUnknown(m) } var xxx_messageInfo_ResolveReply proto.InternalMessageInfo func (m *ResolveReply) GetPackedAddress() [][]byte { if m != nil { return m.PackedAddress } return nil } func (m *ResolveReply) GetCanonicalName() string { if m != nil && m.CanonicalName != nil { return *m.CanonicalName } return "" } func (m *ResolveReply) GetAliases() []string { if m != nil { return m.Aliases } return nil } func init() { proto.RegisterType((*RemoteSocketServiceError)(nil), "appengine.RemoteSocketServiceError") proto.RegisterType((*AddressPort)(nil), "appengine.AddressPort") proto.RegisterType((*CreateSocketRequest)(nil), "appengine.CreateSocketRequest") proto.RegisterType((*CreateSocketReply)(nil), "appengine.CreateSocketReply") proto.RegisterType((*BindRequest)(nil), "appengine.BindRequest") proto.RegisterType((*BindReply)(nil), "appengine.BindReply") proto.RegisterType((*GetSocketNameRequest)(nil), "appengine.GetSocketNameRequest") proto.RegisterType((*GetSocketNameReply)(nil), "appengine.GetSocketNameReply") proto.RegisterType((*GetPeerNameRequest)(nil), "appengine.GetPeerNameRequest") proto.RegisterType((*GetPeerNameReply)(nil), "appengine.GetPeerNameReply") proto.RegisterType((*SocketOption)(nil), "appengine.SocketOption") proto.RegisterType((*SetSocketOptionsRequest)(nil), "appengine.SetSocketOptionsRequest") proto.RegisterType((*SetSocketOptionsReply)(nil), "appengine.SetSocketOptionsReply") proto.RegisterType((*GetSocketOptionsRequest)(nil), "appengine.GetSocketOptionsRequest") proto.RegisterType((*GetSocketOptionsReply)(nil), "appengine.GetSocketOptionsReply") proto.RegisterType((*ConnectRequest)(nil), "appengine.ConnectRequest") proto.RegisterType((*ConnectReply)(nil), "appengine.ConnectReply") proto.RegisterType((*ListenRequest)(nil), "appengine.ListenRequest") proto.RegisterType((*ListenReply)(nil), "appengine.ListenReply") proto.RegisterType((*AcceptRequest)(nil), "appengine.AcceptRequest") proto.RegisterType((*AcceptReply)(nil), "appengine.AcceptReply") proto.RegisterType((*ShutDownRequest)(nil), "appengine.ShutDownRequest") proto.RegisterType((*ShutDownReply)(nil), "appengine.ShutDownReply") proto.RegisterType((*CloseRequest)(nil), "appengine.CloseRequest") proto.RegisterType((*CloseReply)(nil), "appengine.CloseReply") proto.RegisterType((*SendRequest)(nil), "appengine.SendRequest") proto.RegisterType((*SendReply)(nil), "appengine.SendReply") proto.RegisterType((*ReceiveRequest)(nil), "appengine.ReceiveRequest") proto.RegisterType((*ReceiveReply)(nil), "appengine.ReceiveReply") proto.RegisterType((*PollEvent)(nil), "appengine.PollEvent") proto.RegisterType((*PollRequest)(nil), "appengine.PollRequest") proto.RegisterType((*PollReply)(nil), "appengine.PollReply") proto.RegisterType((*ResolveRequest)(nil), "appengine.ResolveRequest") proto.RegisterType((*ResolveReply)(nil), "appengine.ResolveReply") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/socket/socket_service.proto", fileDescriptor_socket_service_b5f8f233dc327808) } var fileDescriptor_socket_service_b5f8f233dc327808 = []byte{ // 3088 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0x5f, 0x77, 0xe3, 0xc6, 0x75, 0x37, 0x48, 0xfd, 0xe3, 0x90, 0x94, 0xee, 0x62, 0xa5, 0x5d, 0x25, 0x6e, 0x12, 0x05, 0x8e, 0x1b, 0x25, 0x8e, 0x77, 0x6d, 0x39, 0x4d, 0x9b, 0xa4, 0x49, 0x16, 0x04, 0x86, 0x24, 0x4c, 0x00, 0x03, 0xcd, 0x0c, 0x25, 0xd1, 0x6d, 0x8a, 0xd0, 0x22, 0xa4, 0x65, 0x4c, 0x11, 0x0c, 0xc9, 0xdd, 0xf5, 0xba, 0x69, 0xaa, 0xfe, 0x39, 0xfd, 0x12, 0x7d, 0xe8, 0x73, 0x3f, 0x43, 0x4f, 0x4f, 0x5f, 0xfa, 0xec, 0xc7, 0x7e, 0x84, 0x9e, 0xbe, 0xb4, 0x9f, 0xa1, 0x67, 0x06, 0xe0, 0x60, 0xc8, 0xd5, 0xae, 0x77, 0x75, 0x72, 0x4e, 0x9e, 0xa4, 0xfb, 0xbb, 0x77, 0xee, 0xff, 0x99, 0xb9, 0x03, 0xa2, 0x47, 0x97, 0x69, 0x7a, 0x39, 0x4a, 0x1e, 0x5c, 0xa6, 0xa3, 0xfe, 0xf8, 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0x6c, 0x7d, 0xb2, 0x91, 0x9d, 0x5a, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x31, 0x03, 0x4e, 0xbd, 0xfd, 0x1f, 0x00, 0x00, }
socket
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/socket/socket_service.proto
syntax = "proto2"; option go_package = "socket"; package appengine; message RemoteSocketServiceError { enum ErrorCode { SYSTEM_ERROR = 1; GAI_ERROR = 2; FAILURE = 4; PERMISSION_DENIED = 5; INVALID_REQUEST = 6; SOCKET_CLOSED = 7; } enum SystemError { option allow_alias = true; SYS_SUCCESS = 0; SYS_EPERM = 1; SYS_ENOENT = 2; SYS_ESRCH = 3; SYS_EINTR = 4; SYS_EIO = 5; SYS_ENXIO = 6; SYS_E2BIG = 7; SYS_ENOEXEC = 8; SYS_EBADF = 9; SYS_ECHILD = 10; SYS_EAGAIN = 11; SYS_EWOULDBLOCK = 11; SYS_ENOMEM = 12; SYS_EACCES = 13; SYS_EFAULT = 14; SYS_ENOTBLK = 15; SYS_EBUSY = 16; SYS_EEXIST = 17; SYS_EXDEV = 18; SYS_ENODEV = 19; SYS_ENOTDIR = 20; SYS_EISDIR = 21; SYS_EINVAL = 22; SYS_ENFILE = 23; SYS_EMFILE = 24; SYS_ENOTTY = 25; SYS_ETXTBSY = 26; SYS_EFBIG = 27; SYS_ENOSPC = 28; SYS_ESPIPE = 29; SYS_EROFS = 30; SYS_EMLINK = 31; SYS_EPIPE = 32; SYS_EDOM = 33; SYS_ERANGE = 34; SYS_EDEADLK = 35; SYS_EDEADLOCK = 35; SYS_ENAMETOOLONG = 36; SYS_ENOLCK = 37; SYS_ENOSYS = 38; SYS_ENOTEMPTY = 39; SYS_ELOOP = 40; SYS_ENOMSG = 42; SYS_EIDRM = 43; SYS_ECHRNG = 44; SYS_EL2NSYNC = 45; SYS_EL3HLT = 46; SYS_EL3RST = 47; SYS_ELNRNG = 48; SYS_EUNATCH = 49; SYS_ENOCSI = 50; SYS_EL2HLT = 51; SYS_EBADE = 52; SYS_EBADR = 53; SYS_EXFULL = 54; SYS_ENOANO = 55; SYS_EBADRQC = 56; SYS_EBADSLT = 57; SYS_EBFONT = 59; SYS_ENOSTR = 60; SYS_ENODATA = 61; SYS_ETIME = 62; SYS_ENOSR = 63; SYS_ENONET = 64; SYS_ENOPKG = 65; SYS_EREMOTE = 66; SYS_ENOLINK = 67; SYS_EADV = 68; SYS_ESRMNT = 69; SYS_ECOMM = 70; SYS_EPROTO = 71; SYS_EMULTIHOP = 72; SYS_EDOTDOT = 73; SYS_EBADMSG = 74; SYS_EOVERFLOW = 75; SYS_ENOTUNIQ = 76; SYS_EBADFD = 77; SYS_EREMCHG = 78; SYS_ELIBACC = 79; SYS_ELIBBAD = 80; SYS_ELIBSCN = 81; SYS_ELIBMAX = 82; SYS_ELIBEXEC = 83; SYS_EILSEQ = 84; SYS_ERESTART = 85; SYS_ESTRPIPE = 86; SYS_EUSERS = 87; SYS_ENOTSOCK = 88; SYS_EDESTADDRREQ = 89; SYS_EMSGSIZE = 90; SYS_EPROTOTYPE = 91; SYS_ENOPROTOOPT = 92; SYS_EPROTONOSUPPORT = 93; SYS_ESOCKTNOSUPPORT = 94; SYS_EOPNOTSUPP = 95; SYS_ENOTSUP = 95; SYS_EPFNOSUPPORT = 96; SYS_EAFNOSUPPORT = 97; SYS_EADDRINUSE = 98; SYS_EADDRNOTAVAIL = 99; SYS_ENETDOWN = 100; SYS_ENETUNREACH = 101; SYS_ENETRESET = 102; SYS_ECONNABORTED = 103; SYS_ECONNRESET = 104; SYS_ENOBUFS = 105; SYS_EISCONN = 106; SYS_ENOTCONN = 107; SYS_ESHUTDOWN = 108; SYS_ETOOMANYREFS = 109; SYS_ETIMEDOUT = 110; SYS_ECONNREFUSED = 111; SYS_EHOSTDOWN = 112; SYS_EHOSTUNREACH = 113; SYS_EALREADY = 114; SYS_EINPROGRESS = 115; SYS_ESTALE = 116; SYS_EUCLEAN = 117; SYS_ENOTNAM = 118; SYS_ENAVAIL = 119; SYS_EISNAM = 120; SYS_EREMOTEIO = 121; SYS_EDQUOT = 122; SYS_ENOMEDIUM = 123; SYS_EMEDIUMTYPE = 124; SYS_ECANCELED = 125; SYS_ENOKEY = 126; SYS_EKEYEXPIRED = 127; SYS_EKEYREVOKED = 128; SYS_EKEYREJECTED = 129; SYS_EOWNERDEAD = 130; SYS_ENOTRECOVERABLE = 131; SYS_ERFKILL = 132; } optional int32 system_error = 1 [default=0]; optional string error_detail = 2; } message AddressPort { required int32 port = 1; optional bytes packed_address = 2; optional string hostname_hint = 3; } message CreateSocketRequest { enum SocketFamily { IPv4 = 1; IPv6 = 2; } enum SocketProtocol { TCP = 1; UDP = 2; } required SocketFamily family = 1; required SocketProtocol protocol = 2; repeated SocketOption socket_options = 3; optional AddressPort proxy_external_ip = 4; optional int32 listen_backlog = 5 [default=0]; optional AddressPort remote_ip = 6; optional string app_id = 9; optional int64 project_id = 10; } message CreateSocketReply { optional string socket_descriptor = 1; optional AddressPort server_address = 3; optional AddressPort proxy_external_ip = 4; extensions 1000 to max; } message BindRequest { required string socket_descriptor = 1; required AddressPort proxy_external_ip = 2; } message BindReply { optional AddressPort proxy_external_ip = 1; } message GetSocketNameRequest { required string socket_descriptor = 1; } message GetSocketNameReply { optional AddressPort proxy_external_ip = 2; } message GetPeerNameRequest { required string socket_descriptor = 1; } message GetPeerNameReply { optional AddressPort peer_ip = 2; } message SocketOption { enum SocketOptionLevel { SOCKET_SOL_IP = 0; SOCKET_SOL_SOCKET = 1; SOCKET_SOL_TCP = 6; SOCKET_SOL_UDP = 17; } enum SocketOptionName { option allow_alias = true; SOCKET_SO_DEBUG = 1; SOCKET_SO_REUSEADDR = 2; SOCKET_SO_TYPE = 3; SOCKET_SO_ERROR = 4; SOCKET_SO_DONTROUTE = 5; SOCKET_SO_BROADCAST = 6; SOCKET_SO_SNDBUF = 7; SOCKET_SO_RCVBUF = 8; SOCKET_SO_KEEPALIVE = 9; SOCKET_SO_OOBINLINE = 10; SOCKET_SO_LINGER = 13; SOCKET_SO_RCVTIMEO = 20; SOCKET_SO_SNDTIMEO = 21; SOCKET_IP_TOS = 1; SOCKET_IP_TTL = 2; SOCKET_IP_HDRINCL = 3; SOCKET_IP_OPTIONS = 4; SOCKET_TCP_NODELAY = 1; SOCKET_TCP_MAXSEG = 2; SOCKET_TCP_CORK = 3; SOCKET_TCP_KEEPIDLE = 4; SOCKET_TCP_KEEPINTVL = 5; SOCKET_TCP_KEEPCNT = 6; SOCKET_TCP_SYNCNT = 7; SOCKET_TCP_LINGER2 = 8; SOCKET_TCP_DEFER_ACCEPT = 9; SOCKET_TCP_WINDOW_CLAMP = 10; SOCKET_TCP_INFO = 11; SOCKET_TCP_QUICKACK = 12; } required SocketOptionLevel level = 1; required SocketOptionName option = 2; required bytes value = 3; } message SetSocketOptionsRequest { required string socket_descriptor = 1; repeated SocketOption options = 2; } message SetSocketOptionsReply { } message GetSocketOptionsRequest { required string socket_descriptor = 1; repeated SocketOption options = 2; } message GetSocketOptionsReply { repeated SocketOption options = 2; } message ConnectRequest { required string socket_descriptor = 1; required AddressPort remote_ip = 2; optional double timeout_seconds = 3 [default=-1]; } message ConnectReply { optional AddressPort proxy_external_ip = 1; extensions 1000 to max; } message ListenRequest { required string socket_descriptor = 1; required int32 backlog = 2; } message ListenReply { } message AcceptRequest { required string socket_descriptor = 1; optional double timeout_seconds = 2 [default=-1]; } message AcceptReply { optional bytes new_socket_descriptor = 2; optional AddressPort remote_address = 3; } message ShutDownRequest { enum How { SOCKET_SHUT_RD = 1; SOCKET_SHUT_WR = 2; SOCKET_SHUT_RDWR = 3; } required string socket_descriptor = 1; required How how = 2; required int64 send_offset = 3; } message ShutDownReply { } message CloseRequest { required string socket_descriptor = 1; optional int64 send_offset = 2 [default=-1]; } message CloseReply { } message SendRequest { required string socket_descriptor = 1; required bytes data = 2 [ctype=CORD]; required int64 stream_offset = 3; optional int32 flags = 4 [default=0]; optional AddressPort send_to = 5; optional double timeout_seconds = 6 [default=-1]; } message SendReply { optional int32 data_sent = 1; } message ReceiveRequest { enum Flags { MSG_OOB = 1; MSG_PEEK = 2; } required string socket_descriptor = 1; required int32 data_size = 2; optional int32 flags = 3 [default=0]; optional double timeout_seconds = 5 [default=-1]; } message ReceiveReply { optional int64 stream_offset = 2; optional bytes data = 3 [ctype=CORD]; optional AddressPort received_from = 4; optional int32 buffer_size = 5; } message PollEvent { enum PollEventFlag { SOCKET_POLLNONE = 0; SOCKET_POLLIN = 1; SOCKET_POLLPRI = 2; SOCKET_POLLOUT = 4; SOCKET_POLLERR = 8; SOCKET_POLLHUP = 16; SOCKET_POLLNVAL = 32; SOCKET_POLLRDNORM = 64; SOCKET_POLLRDBAND = 128; SOCKET_POLLWRNORM = 256; SOCKET_POLLWRBAND = 512; SOCKET_POLLMSG = 1024; SOCKET_POLLREMOVE = 4096; SOCKET_POLLRDHUP = 8192; }; required string socket_descriptor = 1; required int32 requested_events = 2; required int32 observed_events = 3; } message PollRequest { repeated PollEvent events = 1; optional double timeout_seconds = 2 [default=-1]; } message PollReply { repeated PollEvent events = 2; } message ResolveRequest { required string name = 1; repeated CreateSocketRequest.SocketFamily address_families = 2; } message ResolveReply { enum ErrorCode { SOCKET_EAI_ADDRFAMILY = 1; SOCKET_EAI_AGAIN = 2; SOCKET_EAI_BADFLAGS = 3; SOCKET_EAI_FAIL = 4; SOCKET_EAI_FAMILY = 5; SOCKET_EAI_MEMORY = 6; SOCKET_EAI_NODATA = 7; SOCKET_EAI_NONAME = 8; SOCKET_EAI_SERVICE = 9; SOCKET_EAI_SOCKTYPE = 10; SOCKET_EAI_SYSTEM = 11; SOCKET_EAI_BADHINTS = 12; SOCKET_EAI_PROTOCOL = 13; SOCKET_EAI_OVERFLOW = 14; SOCKET_EAI_MAX = 15; }; repeated bytes packed_address = 2; optional string canonical_name = 3; repeated string aliases = 4; }
memcache
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/memcache/memcache_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 // protoc v3.21.8 // source: memcache_service.proto package memcache import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type MemcacheServiceError_ErrorCode int32 const ( MemcacheServiceError_OK MemcacheServiceError_ErrorCode = 0 MemcacheServiceError_UNSPECIFIED_ERROR MemcacheServiceError_ErrorCode = 1 MemcacheServiceError_NAMESPACE_NOT_SET MemcacheServiceError_ErrorCode = 2 MemcacheServiceError_PERMISSION_DENIED MemcacheServiceError_ErrorCode = 3 MemcacheServiceError_INVALID_VALUE MemcacheServiceError_ErrorCode = 6 ) // Enum value maps for MemcacheServiceError_ErrorCode. var ( MemcacheServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "UNSPECIFIED_ERROR", 2: "NAMESPACE_NOT_SET", 3: "PERMISSION_DENIED", 6: "INVALID_VALUE", } MemcacheServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "UNSPECIFIED_ERROR": 1, "NAMESPACE_NOT_SET": 2, "PERMISSION_DENIED": 3, "INVALID_VALUE": 6, } ) func (x MemcacheServiceError_ErrorCode) Enum() *MemcacheServiceError_ErrorCode { p := new(MemcacheServiceError_ErrorCode) *p = x return p } func (x MemcacheServiceError_ErrorCode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MemcacheServiceError_ErrorCode) Descriptor() protoreflect.EnumDescriptor { return file_memcache_service_proto_enumTypes[0].Descriptor() } func (MemcacheServiceError_ErrorCode) Type() protoreflect.EnumType { return &file_memcache_service_proto_enumTypes[0] } func (x MemcacheServiceError_ErrorCode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. func (x *MemcacheServiceError_ErrorCode) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } *x = MemcacheServiceError_ErrorCode(num) return nil } // Deprecated: Use MemcacheServiceError_ErrorCode.Descriptor instead. func (MemcacheServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{0, 0} } type MemcacheSetRequest_SetPolicy int32 const ( MemcacheSetRequest_SET MemcacheSetRequest_SetPolicy = 1 MemcacheSetRequest_ADD MemcacheSetRequest_SetPolicy = 2 MemcacheSetRequest_REPLACE MemcacheSetRequest_SetPolicy = 3 MemcacheSetRequest_CAS MemcacheSetRequest_SetPolicy = 4 ) // Enum value maps for MemcacheSetRequest_SetPolicy. var ( MemcacheSetRequest_SetPolicy_name = map[int32]string{ 1: "SET", 2: "ADD", 3: "REPLACE", 4: "CAS", } MemcacheSetRequest_SetPolicy_value = map[string]int32{ "SET": 1, "ADD": 2, "REPLACE": 3, "CAS": 4, } ) func (x MemcacheSetRequest_SetPolicy) Enum() *MemcacheSetRequest_SetPolicy { p := new(MemcacheSetRequest_SetPolicy) *p = x return p } func (x MemcacheSetRequest_SetPolicy) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MemcacheSetRequest_SetPolicy) Descriptor() protoreflect.EnumDescriptor { return file_memcache_service_proto_enumTypes[1].Descriptor() } func (MemcacheSetRequest_SetPolicy) Type() protoreflect.EnumType { return &file_memcache_service_proto_enumTypes[1] } func (x MemcacheSetRequest_SetPolicy) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. func (x *MemcacheSetRequest_SetPolicy) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } *x = MemcacheSetRequest_SetPolicy(num) return nil } // Deprecated: Use MemcacheSetRequest_SetPolicy.Descriptor instead. func (MemcacheSetRequest_SetPolicy) EnumDescriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{5, 0} } type MemcacheSetResponse_SetStatusCode int32 const ( MemcacheSetResponse_STORED MemcacheSetResponse_SetStatusCode = 1 MemcacheSetResponse_NOT_STORED MemcacheSetResponse_SetStatusCode = 2 MemcacheSetResponse_ERROR MemcacheSetResponse_SetStatusCode = 3 MemcacheSetResponse_EXISTS MemcacheSetResponse_SetStatusCode = 4 ) // Enum value maps for MemcacheSetResponse_SetStatusCode. var ( MemcacheSetResponse_SetStatusCode_name = map[int32]string{ 1: "STORED", 2: "NOT_STORED", 3: "ERROR", 4: "EXISTS", } MemcacheSetResponse_SetStatusCode_value = map[string]int32{ "STORED": 1, "NOT_STORED": 2, "ERROR": 3, "EXISTS": 4, } ) func (x MemcacheSetResponse_SetStatusCode) Enum() *MemcacheSetResponse_SetStatusCode { p := new(MemcacheSetResponse_SetStatusCode) *p = x return p } func (x MemcacheSetResponse_SetStatusCode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MemcacheSetResponse_SetStatusCode) Descriptor() protoreflect.EnumDescriptor { return file_memcache_service_proto_enumTypes[2].Descriptor() } func (MemcacheSetResponse_SetStatusCode) Type() protoreflect.EnumType { return &file_memcache_service_proto_enumTypes[2] } func (x MemcacheSetResponse_SetStatusCode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. func (x *MemcacheSetResponse_SetStatusCode) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } *x = MemcacheSetResponse_SetStatusCode(num) return nil } // Deprecated: Use MemcacheSetResponse_SetStatusCode.Descriptor instead. func (MemcacheSetResponse_SetStatusCode) EnumDescriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{6, 0} } type MemcacheDeleteResponse_DeleteStatusCode int32 const ( MemcacheDeleteResponse_DELETED MemcacheDeleteResponse_DeleteStatusCode = 1 MemcacheDeleteResponse_NOT_FOUND MemcacheDeleteResponse_DeleteStatusCode = 2 ) // Enum value maps for MemcacheDeleteResponse_DeleteStatusCode. var ( MemcacheDeleteResponse_DeleteStatusCode_name = map[int32]string{ 1: "DELETED", 2: "NOT_FOUND", } MemcacheDeleteResponse_DeleteStatusCode_value = map[string]int32{ "DELETED": 1, "NOT_FOUND": 2, } ) func (x MemcacheDeleteResponse_DeleteStatusCode) Enum() *MemcacheDeleteResponse_DeleteStatusCode { p := new(MemcacheDeleteResponse_DeleteStatusCode) *p = x return p } func (x MemcacheDeleteResponse_DeleteStatusCode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MemcacheDeleteResponse_DeleteStatusCode) Descriptor() protoreflect.EnumDescriptor { return file_memcache_service_proto_enumTypes[3].Descriptor() } func (MemcacheDeleteResponse_DeleteStatusCode) Type() protoreflect.EnumType { return &file_memcache_service_proto_enumTypes[3] } func (x MemcacheDeleteResponse_DeleteStatusCode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. func (x *MemcacheDeleteResponse_DeleteStatusCode) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } *x = MemcacheDeleteResponse_DeleteStatusCode(num) return nil } // Deprecated: Use MemcacheDeleteResponse_DeleteStatusCode.Descriptor instead. func (MemcacheDeleteResponse_DeleteStatusCode) EnumDescriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{8, 0} } type MemcacheIncrementRequest_Direction int32 const ( MemcacheIncrementRequest_INCREMENT MemcacheIncrementRequest_Direction = 1 MemcacheIncrementRequest_DECREMENT MemcacheIncrementRequest_Direction = 2 ) // Enum value maps for MemcacheIncrementRequest_Direction. var ( MemcacheIncrementRequest_Direction_name = map[int32]string{ 1: "INCREMENT", 2: "DECREMENT", } MemcacheIncrementRequest_Direction_value = map[string]int32{ "INCREMENT": 1, "DECREMENT": 2, } ) func (x MemcacheIncrementRequest_Direction) Enum() *MemcacheIncrementRequest_Direction { p := new(MemcacheIncrementRequest_Direction) *p = x return p } func (x MemcacheIncrementRequest_Direction) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MemcacheIncrementRequest_Direction) Descriptor() protoreflect.EnumDescriptor { return file_memcache_service_proto_enumTypes[4].Descriptor() } func (MemcacheIncrementRequest_Direction) Type() protoreflect.EnumType { return &file_memcache_service_proto_enumTypes[4] } func (x MemcacheIncrementRequest_Direction) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. func (x *MemcacheIncrementRequest_Direction) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } *x = MemcacheIncrementRequest_Direction(num) return nil } // Deprecated: Use MemcacheIncrementRequest_Direction.Descriptor instead. func (MemcacheIncrementRequest_Direction) EnumDescriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{9, 0} } type MemcacheIncrementResponse_IncrementStatusCode int32 const ( MemcacheIncrementResponse_OK MemcacheIncrementResponse_IncrementStatusCode = 1 MemcacheIncrementResponse_NOT_CHANGED MemcacheIncrementResponse_IncrementStatusCode = 2 MemcacheIncrementResponse_ERROR MemcacheIncrementResponse_IncrementStatusCode = 3 ) // Enum value maps for MemcacheIncrementResponse_IncrementStatusCode. var ( MemcacheIncrementResponse_IncrementStatusCode_name = map[int32]string{ 1: "OK", 2: "NOT_CHANGED", 3: "ERROR", } MemcacheIncrementResponse_IncrementStatusCode_value = map[string]int32{ "OK": 1, "NOT_CHANGED": 2, "ERROR": 3, } ) func (x MemcacheIncrementResponse_IncrementStatusCode) Enum() *MemcacheIncrementResponse_IncrementStatusCode { p := new(MemcacheIncrementResponse_IncrementStatusCode) *p = x return p } func (x MemcacheIncrementResponse_IncrementStatusCode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MemcacheIncrementResponse_IncrementStatusCode) Descriptor() protoreflect.EnumDescriptor { return file_memcache_service_proto_enumTypes[5].Descriptor() } func (MemcacheIncrementResponse_IncrementStatusCode) Type() protoreflect.EnumType { return &file_memcache_service_proto_enumTypes[5] } func (x MemcacheIncrementResponse_IncrementStatusCode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. func (x *MemcacheIncrementResponse_IncrementStatusCode) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } *x = MemcacheIncrementResponse_IncrementStatusCode(num) return nil } // Deprecated: Use MemcacheIncrementResponse_IncrementStatusCode.Descriptor instead. func (MemcacheIncrementResponse_IncrementStatusCode) EnumDescriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{10, 0} } type MemcacheServiceError struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *MemcacheServiceError) Reset() { *x = MemcacheServiceError{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheServiceError) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheServiceError) ProtoMessage() {} func (x *MemcacheServiceError) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheServiceError.ProtoReflect.Descriptor instead. func (*MemcacheServiceError) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{0} } type AppOverride struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields AppId *string `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` // Deprecated: Do not use. NumMemcachegBackends *int32 `protobuf:"varint,2,opt,name=num_memcacheg_backends,json=numMemcachegBackends" json:"num_memcacheg_backends,omitempty"` // Deprecated: Do not use. IgnoreShardlock *bool `protobuf:"varint,3,opt,name=ignore_shardlock,json=ignoreShardlock" json:"ignore_shardlock,omitempty"` // Deprecated: Do not use. MemcachePoolHint *string `protobuf:"bytes,4,opt,name=memcache_pool_hint,json=memcachePoolHint" json:"memcache_pool_hint,omitempty"` // Deprecated: Do not use. MemcacheShardingStrategy []byte `protobuf:"bytes,5,opt,name=memcache_sharding_strategy,json=memcacheShardingStrategy" json:"memcache_sharding_strategy,omitempty"` } func (x *AppOverride) Reset() { *x = AppOverride{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AppOverride) String() string { return protoimpl.X.MessageStringOf(x) } func (*AppOverride) ProtoMessage() {} func (x *AppOverride) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AppOverride.ProtoReflect.Descriptor instead. func (*AppOverride) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{1} } func (x *AppOverride) GetAppId() string { if x != nil && x.AppId != nil { return *x.AppId } return "" } // Deprecated: Do not use. func (x *AppOverride) GetNumMemcachegBackends() int32 { if x != nil && x.NumMemcachegBackends != nil { return *x.NumMemcachegBackends } return 0 } // Deprecated: Do not use. func (x *AppOverride) GetIgnoreShardlock() bool { if x != nil && x.IgnoreShardlock != nil { return *x.IgnoreShardlock } return false } // Deprecated: Do not use. func (x *AppOverride) GetMemcachePoolHint() string { if x != nil && x.MemcachePoolHint != nil { return *x.MemcachePoolHint } return "" } // Deprecated: Do not use. func (x *AppOverride) GetMemcacheShardingStrategy() []byte { if x != nil { return x.MemcacheShardingStrategy } return nil } type MemcacheGetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Key [][]byte `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"` NameSpace *string `protobuf:"bytes,2,opt,name=name_space,json=nameSpace,def=" json:"name_space,omitempty"` ForCas *bool `protobuf:"varint,4,opt,name=for_cas,json=forCas" json:"for_cas,omitempty"` Override *AppOverride `protobuf:"bytes,5,opt,name=override" json:"override,omitempty"` ForPeek *bool `protobuf:"varint,6,opt,name=for_peek,json=forPeek,def=0" json:"for_peek,omitempty"` } // Default values for MemcacheGetRequest fields. const ( Default_MemcacheGetRequest_NameSpace = string("") Default_MemcacheGetRequest_ForPeek = bool(false) ) func (x *MemcacheGetRequest) Reset() { *x = MemcacheGetRequest{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheGetRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheGetRequest) ProtoMessage() {} func (x *MemcacheGetRequest) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheGetRequest.ProtoReflect.Descriptor instead. func (*MemcacheGetRequest) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{2} } func (x *MemcacheGetRequest) GetKey() [][]byte { if x != nil { return x.Key } return nil } func (x *MemcacheGetRequest) GetNameSpace() string { if x != nil && x.NameSpace != nil { return *x.NameSpace } return Default_MemcacheGetRequest_NameSpace } func (x *MemcacheGetRequest) GetForCas() bool { if x != nil && x.ForCas != nil { return *x.ForCas } return false } func (x *MemcacheGetRequest) GetOverride() *AppOverride { if x != nil { return x.Override } return nil } func (x *MemcacheGetRequest) GetForPeek() bool { if x != nil && x.ForPeek != nil { return *x.ForPeek } return Default_MemcacheGetRequest_ForPeek } type ItemTimestamps struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ExpirationTimeSec *int64 `protobuf:"varint,1,opt,name=expiration_time_sec,json=expirationTimeSec" json:"expiration_time_sec,omitempty"` LastAccessTimeSec *int64 `protobuf:"varint,2,opt,name=last_access_time_sec,json=lastAccessTimeSec" json:"last_access_time_sec,omitempty"` DeleteLockTimeSec *int64 `protobuf:"varint,3,opt,name=delete_lock_time_sec,json=deleteLockTimeSec" json:"delete_lock_time_sec,omitempty"` } func (x *ItemTimestamps) Reset() { *x = ItemTimestamps{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ItemTimestamps) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemTimestamps) ProtoMessage() {} func (x *ItemTimestamps) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ItemTimestamps.ProtoReflect.Descriptor instead. func (*ItemTimestamps) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{3} } func (x *ItemTimestamps) GetExpirationTimeSec() int64 { if x != nil && x.ExpirationTimeSec != nil { return *x.ExpirationTimeSec } return 0 } func (x *ItemTimestamps) GetLastAccessTimeSec() int64 { if x != nil && x.LastAccessTimeSec != nil { return *x.LastAccessTimeSec } return 0 } func (x *ItemTimestamps) GetDeleteLockTimeSec() int64 { if x != nil && x.DeleteLockTimeSec != nil { return *x.DeleteLockTimeSec } return 0 } type MemcacheGetResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Item []*MemcacheGetResponse_Item `protobuf:"group,1,rep,name=Item,json=item" json:"item,omitempty"` } func (x *MemcacheGetResponse) Reset() { *x = MemcacheGetResponse{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheGetResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheGetResponse) ProtoMessage() {} func (x *MemcacheGetResponse) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheGetResponse.ProtoReflect.Descriptor instead. func (*MemcacheGetResponse) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{4} } func (x *MemcacheGetResponse) GetItem() []*MemcacheGetResponse_Item { if x != nil { return x.Item } return nil } type MemcacheSetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Item []*MemcacheSetRequest_Item `protobuf:"group,1,rep,name=Item,json=item" json:"item,omitempty"` NameSpace *string `protobuf:"bytes,7,opt,name=name_space,json=nameSpace,def=" json:"name_space,omitempty"` Override *AppOverride `protobuf:"bytes,10,opt,name=override" json:"override,omitempty"` } // Default values for MemcacheSetRequest fields. const ( Default_MemcacheSetRequest_NameSpace = string("") ) func (x *MemcacheSetRequest) Reset() { *x = MemcacheSetRequest{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheSetRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheSetRequest) ProtoMessage() {} func (x *MemcacheSetRequest) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheSetRequest.ProtoReflect.Descriptor instead. func (*MemcacheSetRequest) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{5} } func (x *MemcacheSetRequest) GetItem() []*MemcacheSetRequest_Item { if x != nil { return x.Item } return nil } func (x *MemcacheSetRequest) GetNameSpace() string { if x != nil && x.NameSpace != nil { return *x.NameSpace } return Default_MemcacheSetRequest_NameSpace } func (x *MemcacheSetRequest) GetOverride() *AppOverride { if x != nil { return x.Override } return nil } type MemcacheSetResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SetStatus []MemcacheSetResponse_SetStatusCode `protobuf:"varint,1,rep,name=set_status,json=setStatus,enum=appengine.MemcacheSetResponse_SetStatusCode" json:"set_status,omitempty"` } func (x *MemcacheSetResponse) Reset() { *x = MemcacheSetResponse{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheSetResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheSetResponse) ProtoMessage() {} func (x *MemcacheSetResponse) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheSetResponse.ProtoReflect.Descriptor instead. func (*MemcacheSetResponse) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{6} } func (x *MemcacheSetResponse) GetSetStatus() []MemcacheSetResponse_SetStatusCode { if x != nil { return x.SetStatus } return nil } type MemcacheDeleteRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Item []*MemcacheDeleteRequest_Item `protobuf:"group,1,rep,name=Item,json=item" json:"item,omitempty"` NameSpace *string `protobuf:"bytes,4,opt,name=name_space,json=nameSpace,def=" json:"name_space,omitempty"` Override *AppOverride `protobuf:"bytes,5,opt,name=override" json:"override,omitempty"` } // Default values for MemcacheDeleteRequest fields. const ( Default_MemcacheDeleteRequest_NameSpace = string("") ) func (x *MemcacheDeleteRequest) Reset() { *x = MemcacheDeleteRequest{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheDeleteRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheDeleteRequest) ProtoMessage() {} func (x *MemcacheDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheDeleteRequest.ProtoReflect.Descriptor instead. func (*MemcacheDeleteRequest) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{7} } func (x *MemcacheDeleteRequest) GetItem() []*MemcacheDeleteRequest_Item { if x != nil { return x.Item } return nil } func (x *MemcacheDeleteRequest) GetNameSpace() string { if x != nil && x.NameSpace != nil { return *x.NameSpace } return Default_MemcacheDeleteRequest_NameSpace } func (x *MemcacheDeleteRequest) GetOverride() *AppOverride { if x != nil { return x.Override } return nil } type MemcacheDeleteResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields DeleteStatus []MemcacheDeleteResponse_DeleteStatusCode `protobuf:"varint,1,rep,name=delete_status,json=deleteStatus,enum=appengine.MemcacheDeleteResponse_DeleteStatusCode" json:"delete_status,omitempty"` } func (x *MemcacheDeleteResponse) Reset() { *x = MemcacheDeleteResponse{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheDeleteResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheDeleteResponse) ProtoMessage() {} func (x *MemcacheDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheDeleteResponse.ProtoReflect.Descriptor instead. func (*MemcacheDeleteResponse) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{8} } func (x *MemcacheDeleteResponse) GetDeleteStatus() []MemcacheDeleteResponse_DeleteStatusCode { if x != nil { return x.DeleteStatus } return nil } type MemcacheIncrementRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Key []byte `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` NameSpace *string `protobuf:"bytes,4,opt,name=name_space,json=nameSpace,def=" json:"name_space,omitempty"` Delta *uint64 `protobuf:"varint,2,opt,name=delta,def=1" json:"delta,omitempty"` Direction *MemcacheIncrementRequest_Direction `protobuf:"varint,3,opt,name=direction,enum=appengine.MemcacheIncrementRequest_Direction,def=1" json:"direction,omitempty"` InitialValue *uint64 `protobuf:"varint,5,opt,name=initial_value,json=initialValue" json:"initial_value,omitempty"` InitialFlags *uint32 `protobuf:"fixed32,6,opt,name=initial_flags,json=initialFlags" json:"initial_flags,omitempty"` Override *AppOverride `protobuf:"bytes,7,opt,name=override" json:"override,omitempty"` } // Default values for MemcacheIncrementRequest fields. const ( Default_MemcacheIncrementRequest_NameSpace = string("") Default_MemcacheIncrementRequest_Delta = uint64(1) Default_MemcacheIncrementRequest_Direction = MemcacheIncrementRequest_INCREMENT ) func (x *MemcacheIncrementRequest) Reset() { *x = MemcacheIncrementRequest{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheIncrementRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheIncrementRequest) ProtoMessage() {} func (x *MemcacheIncrementRequest) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheIncrementRequest.ProtoReflect.Descriptor instead. func (*MemcacheIncrementRequest) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{9} } func (x *MemcacheIncrementRequest) GetKey() []byte { if x != nil { return x.Key } return nil } func (x *MemcacheIncrementRequest) GetNameSpace() string { if x != nil && x.NameSpace != nil { return *x.NameSpace } return Default_MemcacheIncrementRequest_NameSpace } func (x *MemcacheIncrementRequest) GetDelta() uint64 { if x != nil && x.Delta != nil { return *x.Delta } return Default_MemcacheIncrementRequest_Delta } func (x *MemcacheIncrementRequest) GetDirection() MemcacheIncrementRequest_Direction { if x != nil && x.Direction != nil { return *x.Direction } return Default_MemcacheIncrementRequest_Direction } func (x *MemcacheIncrementRequest) GetInitialValue() uint64 { if x != nil && x.InitialValue != nil { return *x.InitialValue } return 0 } func (x *MemcacheIncrementRequest) GetInitialFlags() uint32 { if x != nil && x.InitialFlags != nil { return *x.InitialFlags } return 0 } func (x *MemcacheIncrementRequest) GetOverride() *AppOverride { if x != nil { return x.Override } return nil } type MemcacheIncrementResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields NewValue *uint64 `protobuf:"varint,1,opt,name=new_value,json=newValue" json:"new_value,omitempty"` IncrementStatus *MemcacheIncrementResponse_IncrementStatusCode `protobuf:"varint,2,opt,name=increment_status,json=incrementStatus,enum=appengine.MemcacheIncrementResponse_IncrementStatusCode" json:"increment_status,omitempty"` } func (x *MemcacheIncrementResponse) Reset() { *x = MemcacheIncrementResponse{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheIncrementResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheIncrementResponse) ProtoMessage() {} func (x *MemcacheIncrementResponse) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheIncrementResponse.ProtoReflect.Descriptor instead. func (*MemcacheIncrementResponse) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{10} } func (x *MemcacheIncrementResponse) GetNewValue() uint64 { if x != nil && x.NewValue != nil { return *x.NewValue } return 0 } func (x *MemcacheIncrementResponse) GetIncrementStatus() MemcacheIncrementResponse_IncrementStatusCode { if x != nil && x.IncrementStatus != nil { return *x.IncrementStatus } return MemcacheIncrementResponse_OK } type MemcacheBatchIncrementRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields NameSpace *string `protobuf:"bytes,1,opt,name=name_space,json=nameSpace,def=" json:"name_space,omitempty"` Item []*MemcacheIncrementRequest `protobuf:"bytes,2,rep,name=item" json:"item,omitempty"` Override *AppOverride `protobuf:"bytes,3,opt,name=override" json:"override,omitempty"` } // Default values for MemcacheBatchIncrementRequest fields. const ( Default_MemcacheBatchIncrementRequest_NameSpace = string("") ) func (x *MemcacheBatchIncrementRequest) Reset() { *x = MemcacheBatchIncrementRequest{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheBatchIncrementRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheBatchIncrementRequest) ProtoMessage() {} func (x *MemcacheBatchIncrementRequest) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheBatchIncrementRequest.ProtoReflect.Descriptor instead. func (*MemcacheBatchIncrementRequest) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{11} } func (x *MemcacheBatchIncrementRequest) GetNameSpace() string { if x != nil && x.NameSpace != nil { return *x.NameSpace } return Default_MemcacheBatchIncrementRequest_NameSpace } func (x *MemcacheBatchIncrementRequest) GetItem() []*MemcacheIncrementRequest { if x != nil { return x.Item } return nil } func (x *MemcacheBatchIncrementRequest) GetOverride() *AppOverride { if x != nil { return x.Override } return nil } type MemcacheBatchIncrementResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Item []*MemcacheIncrementResponse `protobuf:"bytes,1,rep,name=item" json:"item,omitempty"` } func (x *MemcacheBatchIncrementResponse) Reset() { *x = MemcacheBatchIncrementResponse{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheBatchIncrementResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheBatchIncrementResponse) ProtoMessage() {} func (x *MemcacheBatchIncrementResponse) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheBatchIncrementResponse.ProtoReflect.Descriptor instead. func (*MemcacheBatchIncrementResponse) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{12} } func (x *MemcacheBatchIncrementResponse) GetItem() []*MemcacheIncrementResponse { if x != nil { return x.Item } return nil } type MemcacheFlushRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Override *AppOverride `protobuf:"bytes,1,opt,name=override" json:"override,omitempty"` } func (x *MemcacheFlushRequest) Reset() { *x = MemcacheFlushRequest{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheFlushRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheFlushRequest) ProtoMessage() {} func (x *MemcacheFlushRequest) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheFlushRequest.ProtoReflect.Descriptor instead. func (*MemcacheFlushRequest) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{13} } func (x *MemcacheFlushRequest) GetOverride() *AppOverride { if x != nil { return x.Override } return nil } type MemcacheFlushResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *MemcacheFlushResponse) Reset() { *x = MemcacheFlushResponse{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheFlushResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheFlushResponse) ProtoMessage() {} func (x *MemcacheFlushResponse) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheFlushResponse.ProtoReflect.Descriptor instead. func (*MemcacheFlushResponse) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{14} } type MemcacheStatsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Override *AppOverride `protobuf:"bytes,1,opt,name=override" json:"override,omitempty"` } func (x *MemcacheStatsRequest) Reset() { *x = MemcacheStatsRequest{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheStatsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheStatsRequest) ProtoMessage() {} func (x *MemcacheStatsRequest) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheStatsRequest.ProtoReflect.Descriptor instead. func (*MemcacheStatsRequest) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{15} } func (x *MemcacheStatsRequest) GetOverride() *AppOverride { if x != nil { return x.Override } return nil } type MergedNamespaceStats struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Hits *uint64 `protobuf:"varint,1,req,name=hits" json:"hits,omitempty"` Misses *uint64 `protobuf:"varint,2,req,name=misses" json:"misses,omitempty"` ByteHits *uint64 `protobuf:"varint,3,req,name=byte_hits,json=byteHits" json:"byte_hits,omitempty"` Items *uint64 `protobuf:"varint,4,req,name=items" json:"items,omitempty"` Bytes *uint64 `protobuf:"varint,5,req,name=bytes" json:"bytes,omitempty"` OldestItemAge *uint32 `protobuf:"fixed32,6,req,name=oldest_item_age,json=oldestItemAge" json:"oldest_item_age,omitempty"` } func (x *MergedNamespaceStats) Reset() { *x = MergedNamespaceStats{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MergedNamespaceStats) String() string { return protoimpl.X.MessageStringOf(x) } func (*MergedNamespaceStats) ProtoMessage() {} func (x *MergedNamespaceStats) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MergedNamespaceStats.ProtoReflect.Descriptor instead. func (*MergedNamespaceStats) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{16} } func (x *MergedNamespaceStats) GetHits() uint64 { if x != nil && x.Hits != nil { return *x.Hits } return 0 } func (x *MergedNamespaceStats) GetMisses() uint64 { if x != nil && x.Misses != nil { return *x.Misses } return 0 } func (x *MergedNamespaceStats) GetByteHits() uint64 { if x != nil && x.ByteHits != nil { return *x.ByteHits } return 0 } func (x *MergedNamespaceStats) GetItems() uint64 { if x != nil && x.Items != nil { return *x.Items } return 0 } func (x *MergedNamespaceStats) GetBytes() uint64 { if x != nil && x.Bytes != nil { return *x.Bytes } return 0 } func (x *MergedNamespaceStats) GetOldestItemAge() uint32 { if x != nil && x.OldestItemAge != nil { return *x.OldestItemAge } return 0 } type MemcacheStatsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Stats *MergedNamespaceStats `protobuf:"bytes,1,opt,name=stats" json:"stats,omitempty"` } func (x *MemcacheStatsResponse) Reset() { *x = MemcacheStatsResponse{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheStatsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheStatsResponse) ProtoMessage() {} func (x *MemcacheStatsResponse) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheStatsResponse.ProtoReflect.Descriptor instead. func (*MemcacheStatsResponse) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{17} } func (x *MemcacheStatsResponse) GetStats() *MergedNamespaceStats { if x != nil { return x.Stats } return nil } type MemcacheGrabTailRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ItemCount *int32 `protobuf:"varint,1,req,name=item_count,json=itemCount" json:"item_count,omitempty"` NameSpace *string `protobuf:"bytes,2,opt,name=name_space,json=nameSpace,def=" json:"name_space,omitempty"` Override *AppOverride `protobuf:"bytes,3,opt,name=override" json:"override,omitempty"` } // Default values for MemcacheGrabTailRequest fields. const ( Default_MemcacheGrabTailRequest_NameSpace = string("") ) func (x *MemcacheGrabTailRequest) Reset() { *x = MemcacheGrabTailRequest{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheGrabTailRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheGrabTailRequest) ProtoMessage() {} func (x *MemcacheGrabTailRequest) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheGrabTailRequest.ProtoReflect.Descriptor instead. func (*MemcacheGrabTailRequest) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{18} } func (x *MemcacheGrabTailRequest) GetItemCount() int32 { if x != nil && x.ItemCount != nil { return *x.ItemCount } return 0 } func (x *MemcacheGrabTailRequest) GetNameSpace() string { if x != nil && x.NameSpace != nil { return *x.NameSpace } return Default_MemcacheGrabTailRequest_NameSpace } func (x *MemcacheGrabTailRequest) GetOverride() *AppOverride { if x != nil { return x.Override } return nil } type MemcacheGrabTailResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Item []*MemcacheGrabTailResponse_Item `protobuf:"group,1,rep,name=Item,json=item" json:"item,omitempty"` } func (x *MemcacheGrabTailResponse) Reset() { *x = MemcacheGrabTailResponse{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheGrabTailResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheGrabTailResponse) ProtoMessage() {} func (x *MemcacheGrabTailResponse) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheGrabTailResponse.ProtoReflect.Descriptor instead. func (*MemcacheGrabTailResponse) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{19} } func (x *MemcacheGrabTailResponse) GetItem() []*MemcacheGrabTailResponse_Item { if x != nil { return x.Item } return nil } type MemcacheGetResponse_Item struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Key []byte `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,req,name=value" json:"value,omitempty"` Flags *uint32 `protobuf:"fixed32,4,opt,name=flags" json:"flags,omitempty"` CasId *uint64 `protobuf:"fixed64,5,opt,name=cas_id,json=casId" json:"cas_id,omitempty"` ExpiresInSeconds *int32 `protobuf:"varint,6,opt,name=expires_in_seconds,json=expiresInSeconds" json:"expires_in_seconds,omitempty"` Timestamps *ItemTimestamps `protobuf:"bytes,8,opt,name=timestamps" json:"timestamps,omitempty"` IsDeleteLocked *bool `protobuf:"varint,9,opt,name=is_delete_locked,json=isDeleteLocked" json:"is_delete_locked,omitempty"` } func (x *MemcacheGetResponse_Item) Reset() { *x = MemcacheGetResponse_Item{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheGetResponse_Item) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheGetResponse_Item) ProtoMessage() {} func (x *MemcacheGetResponse_Item) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheGetResponse_Item.ProtoReflect.Descriptor instead. func (*MemcacheGetResponse_Item) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{4, 0} } func (x *MemcacheGetResponse_Item) GetKey() []byte { if x != nil { return x.Key } return nil } func (x *MemcacheGetResponse_Item) GetValue() []byte { if x != nil { return x.Value } return nil } func (x *MemcacheGetResponse_Item) GetFlags() uint32 { if x != nil && x.Flags != nil { return *x.Flags } return 0 } func (x *MemcacheGetResponse_Item) GetCasId() uint64 { if x != nil && x.CasId != nil { return *x.CasId } return 0 } func (x *MemcacheGetResponse_Item) GetExpiresInSeconds() int32 { if x != nil && x.ExpiresInSeconds != nil { return *x.ExpiresInSeconds } return 0 } func (x *MemcacheGetResponse_Item) GetTimestamps() *ItemTimestamps { if x != nil { return x.Timestamps } return nil } func (x *MemcacheGetResponse_Item) GetIsDeleteLocked() bool { if x != nil && x.IsDeleteLocked != nil { return *x.IsDeleteLocked } return false } type MemcacheSetRequest_Item struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Key []byte `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,req,name=value" json:"value,omitempty"` Flags *uint32 `protobuf:"fixed32,4,opt,name=flags" json:"flags,omitempty"` SetPolicy *MemcacheSetRequest_SetPolicy `protobuf:"varint,5,opt,name=set_policy,json=setPolicy,enum=appengine.MemcacheSetRequest_SetPolicy,def=1" json:"set_policy,omitempty"` ExpirationTime *uint32 `protobuf:"fixed32,6,opt,name=expiration_time,json=expirationTime,def=0" json:"expiration_time,omitempty"` CasId *uint64 `protobuf:"fixed64,8,opt,name=cas_id,json=casId" json:"cas_id,omitempty"` ForCas *bool `protobuf:"varint,9,opt,name=for_cas,json=forCas" json:"for_cas,omitempty"` } // Default values for MemcacheSetRequest_Item fields. const ( Default_MemcacheSetRequest_Item_SetPolicy = MemcacheSetRequest_SET Default_MemcacheSetRequest_Item_ExpirationTime = uint32(0) ) func (x *MemcacheSetRequest_Item) Reset() { *x = MemcacheSetRequest_Item{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheSetRequest_Item) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheSetRequest_Item) ProtoMessage() {} func (x *MemcacheSetRequest_Item) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheSetRequest_Item.ProtoReflect.Descriptor instead. func (*MemcacheSetRequest_Item) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{5, 0} } func (x *MemcacheSetRequest_Item) GetKey() []byte { if x != nil { return x.Key } return nil } func (x *MemcacheSetRequest_Item) GetValue() []byte { if x != nil { return x.Value } return nil } func (x *MemcacheSetRequest_Item) GetFlags() uint32 { if x != nil && x.Flags != nil { return *x.Flags } return 0 } func (x *MemcacheSetRequest_Item) GetSetPolicy() MemcacheSetRequest_SetPolicy { if x != nil && x.SetPolicy != nil { return *x.SetPolicy } return Default_MemcacheSetRequest_Item_SetPolicy } func (x *MemcacheSetRequest_Item) GetExpirationTime() uint32 { if x != nil && x.ExpirationTime != nil { return *x.ExpirationTime } return Default_MemcacheSetRequest_Item_ExpirationTime } func (x *MemcacheSetRequest_Item) GetCasId() uint64 { if x != nil && x.CasId != nil { return *x.CasId } return 0 } func (x *MemcacheSetRequest_Item) GetForCas() bool { if x != nil && x.ForCas != nil { return *x.ForCas } return false } type MemcacheDeleteRequest_Item struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Key []byte `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` DeleteTime *uint32 `protobuf:"fixed32,3,opt,name=delete_time,json=deleteTime,def=0" json:"delete_time,omitempty"` } // Default values for MemcacheDeleteRequest_Item fields. const ( Default_MemcacheDeleteRequest_Item_DeleteTime = uint32(0) ) func (x *MemcacheDeleteRequest_Item) Reset() { *x = MemcacheDeleteRequest_Item{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheDeleteRequest_Item) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheDeleteRequest_Item) ProtoMessage() {} func (x *MemcacheDeleteRequest_Item) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheDeleteRequest_Item.ProtoReflect.Descriptor instead. func (*MemcacheDeleteRequest_Item) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{7, 0} } func (x *MemcacheDeleteRequest_Item) GetKey() []byte { if x != nil { return x.Key } return nil } func (x *MemcacheDeleteRequest_Item) GetDeleteTime() uint32 { if x != nil && x.DeleteTime != nil { return *x.DeleteTime } return Default_MemcacheDeleteRequest_Item_DeleteTime } type MemcacheGrabTailResponse_Item struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Value []byte `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` Flags *uint32 `protobuf:"fixed32,3,opt,name=flags" json:"flags,omitempty"` } func (x *MemcacheGrabTailResponse_Item) Reset() { *x = MemcacheGrabTailResponse_Item{} if protoimpl.UnsafeEnabled { mi := &file_memcache_service_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MemcacheGrabTailResponse_Item) String() string { return protoimpl.X.MessageStringOf(x) } func (*MemcacheGrabTailResponse_Item) ProtoMessage() {} func (x *MemcacheGrabTailResponse_Item) ProtoReflect() protoreflect.Message { mi := &file_memcache_service_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MemcacheGrabTailResponse_Item.ProtoReflect.Descriptor instead. func (*MemcacheGrabTailResponse_Item) Descriptor() ([]byte, []int) { return file_memcache_service_proto_rawDescGZIP(), []int{19, 0} } func (x *MemcacheGrabTailResponse_Item) GetValue() []byte { if x != nil { return x.Value } return nil } func (x *MemcacheGrabTailResponse_Item) GetFlags() uint32 { if x != nil && x.Flags != nil { return *x.Flags } return 0 } var File_memcache_service_proto protoreflect.FileDescriptor var file_memcache_service_proto_rawDesc = []byte{ 0x0a, 0x16, 0x6d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x14, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x6b, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x06, 0x22, 0x81, 0x02, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x16, 0x6e, 0x75, 0x6d, 0x5f, 0x6d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x67, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01, 0x52, 0x14, 0x6e, 0x75, 0x6d, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x67, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x30, 0x0a, 0x12, 0x6d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x10, 0x6d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x1a, 0x6d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x18, 0x6d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0xb6, 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x00, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x6f, 0x72, 0x5f, 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x43, 0x61, 0x73, 0x12, 0x32, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x08, 0x66, 0x6f, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x07, 0x66, 0x6f, 0x72, 0x50, 0x65, 0x65, 0x6b, 0x22, 0xa2, 0x01, 0x0a, 0x0e, 0x49, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x12, 0x2f, 0x0a, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x12, 0x2f, 0x0a, 0x14, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x22, 0xbf, 0x02, 0x0a, 0x13, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0a, 0x32, 0x23, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x1a, 0xee, 0x01, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x07, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x61, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x63, 0x61, 0x73, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x22, 0xc6, 0x03, 0x0a, 0x12, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0a, 0x32, 0x22, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x1f, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x00, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x1a, 0xed, 0x01, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x07, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x4b, 0x0a, 0x0a, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x03, 0x53, 0x45, 0x54, 0x52, 0x09, 0x73, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2a, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x01, 0x30, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x61, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x63, 0x61, 0x73, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x6f, 0x72, 0x5f, 0x63, 0x61, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x43, 0x61, 0x73, 0x22, 0x33, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x44, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x43, 0x41, 0x53, 0x10, 0x04, 0x22, 0xa6, 0x01, 0x0a, 0x13, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0a, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x42, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x4f, 0x52, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54, 0x4f, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x04, 0x22, 0xe5, 0x01, 0x0a, 0x15, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0a, 0x32, 0x25, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x1f, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x00, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x1a, 0x3c, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x01, 0x30, 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x16, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2e, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x02, 0x22, 0xe7, 0x02, 0x0a, 0x18, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x00, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x01, 0x31, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x56, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x09, 0x49, 0x4e, 0x43, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x07, 0x52, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x32, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x22, 0x29, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x43, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x45, 0x43, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x22, 0xd8, 0x01, 0x0a, 0x19, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x63, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x39, 0x0a, 0x13, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x22, 0xad, 0x01, 0x0a, 0x1d, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x00, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x32, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x22, 0x5a, 0x0a, 0x1e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x22, 0x4a, 0x0a, 0x14, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x14, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x22, 0xb3, 0x01, 0x0a, 0x14, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x02, 0x28, 0x04, 0x52, 0x04, 0x68, 0x69, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x69, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x02, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x69, 0x73, 0x73, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x68, 0x69, 0x74, 0x73, 0x18, 0x03, 0x20, 0x02, 0x28, 0x04, 0x52, 0x08, 0x62, 0x79, 0x74, 0x65, 0x48, 0x69, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x02, 0x28, 0x04, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x02, 0x28, 0x04, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6f, 0x6c, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x02, 0x28, 0x07, 0x52, 0x0d, 0x6f, 0x6c, 0x64, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x41, 0x67, 0x65, 0x22, 0x4e, 0x0a, 0x15, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x17, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x47, 0x72, 0x61, 0x62, 0x54, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x05, 0x52, 0x09, 0x69, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x00, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x18, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x47, 0x72, 0x61, 0x62, 0x54, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0a, 0x32, 0x28, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x47, 0x72, 0x61, 0x62, 0x54, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x1a, 0x32, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x07, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6d, 0x65, 0x6d, 0x63, 0x61, 0x63, 0x68, 0x65, } var ( file_memcache_service_proto_rawDescOnce sync.Once file_memcache_service_proto_rawDescData = file_memcache_service_proto_rawDesc ) func file_memcache_service_proto_rawDescGZIP() []byte { file_memcache_service_proto_rawDescOnce.Do(func() { file_memcache_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_memcache_service_proto_rawDescData) }) return file_memcache_service_proto_rawDescData } var file_memcache_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6) var file_memcache_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_memcache_service_proto_goTypes = []interface{}{ (MemcacheServiceError_ErrorCode)(0), // 0: appengine.MemcacheServiceError.ErrorCode (MemcacheSetRequest_SetPolicy)(0), // 1: appengine.MemcacheSetRequest.SetPolicy (MemcacheSetResponse_SetStatusCode)(0), // 2: appengine.MemcacheSetResponse.SetStatusCode (MemcacheDeleteResponse_DeleteStatusCode)(0), // 3: appengine.MemcacheDeleteResponse.DeleteStatusCode (MemcacheIncrementRequest_Direction)(0), // 4: appengine.MemcacheIncrementRequest.Direction (MemcacheIncrementResponse_IncrementStatusCode)(0), // 5: appengine.MemcacheIncrementResponse.IncrementStatusCode (*MemcacheServiceError)(nil), // 6: appengine.MemcacheServiceError (*AppOverride)(nil), // 7: appengine.AppOverride (*MemcacheGetRequest)(nil), // 8: appengine.MemcacheGetRequest (*ItemTimestamps)(nil), // 9: appengine.ItemTimestamps (*MemcacheGetResponse)(nil), // 10: appengine.MemcacheGetResponse (*MemcacheSetRequest)(nil), // 11: appengine.MemcacheSetRequest (*MemcacheSetResponse)(nil), // 12: appengine.MemcacheSetResponse (*MemcacheDeleteRequest)(nil), // 13: appengine.MemcacheDeleteRequest (*MemcacheDeleteResponse)(nil), // 14: appengine.MemcacheDeleteResponse (*MemcacheIncrementRequest)(nil), // 15: appengine.MemcacheIncrementRequest (*MemcacheIncrementResponse)(nil), // 16: appengine.MemcacheIncrementResponse (*MemcacheBatchIncrementRequest)(nil), // 17: appengine.MemcacheBatchIncrementRequest (*MemcacheBatchIncrementResponse)(nil), // 18: appengine.MemcacheBatchIncrementResponse (*MemcacheFlushRequest)(nil), // 19: appengine.MemcacheFlushRequest (*MemcacheFlushResponse)(nil), // 20: appengine.MemcacheFlushResponse (*MemcacheStatsRequest)(nil), // 21: appengine.MemcacheStatsRequest (*MergedNamespaceStats)(nil), // 22: appengine.MergedNamespaceStats (*MemcacheStatsResponse)(nil), // 23: appengine.MemcacheStatsResponse (*MemcacheGrabTailRequest)(nil), // 24: appengine.MemcacheGrabTailRequest (*MemcacheGrabTailResponse)(nil), // 25: appengine.MemcacheGrabTailResponse (*MemcacheGetResponse_Item)(nil), // 26: appengine.MemcacheGetResponse.Item (*MemcacheSetRequest_Item)(nil), // 27: appengine.MemcacheSetRequest.Item (*MemcacheDeleteRequest_Item)(nil), // 28: appengine.MemcacheDeleteRequest.Item (*MemcacheGrabTailResponse_Item)(nil), // 29: appengine.MemcacheGrabTailResponse.Item } var file_memcache_service_proto_depIdxs = []int32{ 7, // 0: appengine.MemcacheGetRequest.override:type_name -> appengine.AppOverride 26, // 1: appengine.MemcacheGetResponse.item:type_name -> appengine.MemcacheGetResponse.Item 27, // 2: appengine.MemcacheSetRequest.item:type_name -> appengine.MemcacheSetRequest.Item 7, // 3: appengine.MemcacheSetRequest.override:type_name -> appengine.AppOverride 2, // 4: appengine.MemcacheSetResponse.set_status:type_name -> appengine.MemcacheSetResponse.SetStatusCode 28, // 5: appengine.MemcacheDeleteRequest.item:type_name -> appengine.MemcacheDeleteRequest.Item 7, // 6: appengine.MemcacheDeleteRequest.override:type_name -> appengine.AppOverride 3, // 7: appengine.MemcacheDeleteResponse.delete_status:type_name -> appengine.MemcacheDeleteResponse.DeleteStatusCode 4, // 8: appengine.MemcacheIncrementRequest.direction:type_name -> appengine.MemcacheIncrementRequest.Direction 7, // 9: appengine.MemcacheIncrementRequest.override:type_name -> appengine.AppOverride 5, // 10: appengine.MemcacheIncrementResponse.increment_status:type_name -> appengine.MemcacheIncrementResponse.IncrementStatusCode 15, // 11: appengine.MemcacheBatchIncrementRequest.item:type_name -> appengine.MemcacheIncrementRequest 7, // 12: appengine.MemcacheBatchIncrementRequest.override:type_name -> appengine.AppOverride 16, // 13: appengine.MemcacheBatchIncrementResponse.item:type_name -> appengine.MemcacheIncrementResponse 7, // 14: appengine.MemcacheFlushRequest.override:type_name -> appengine.AppOverride 7, // 15: appengine.MemcacheStatsRequest.override:type_name -> appengine.AppOverride 22, // 16: appengine.MemcacheStatsResponse.stats:type_name -> appengine.MergedNamespaceStats 7, // 17: appengine.MemcacheGrabTailRequest.override:type_name -> appengine.AppOverride 29, // 18: appengine.MemcacheGrabTailResponse.item:type_name -> appengine.MemcacheGrabTailResponse.Item 9, // 19: appengine.MemcacheGetResponse.Item.timestamps:type_name -> appengine.ItemTimestamps 1, // 20: appengine.MemcacheSetRequest.Item.set_policy:type_name -> appengine.MemcacheSetRequest.SetPolicy 21, // [21:21] is the sub-list for method output_type 21, // [21:21] is the sub-list for method input_type 21, // [21:21] is the sub-list for extension type_name 21, // [21:21] is the sub-list for extension extendee 0, // [0:21] is the sub-list for field type_name } func init() { file_memcache_service_proto_init() } func file_memcache_service_proto_init() { if File_memcache_service_proto != nil { return } if !protoimpl.UnsafeEnabled { file_memcache_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheServiceError); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AppOverride); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheGetRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ItemTimestamps); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheGetResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheSetRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheSetResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheDeleteRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheDeleteResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheIncrementRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheIncrementResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheBatchIncrementRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheBatchIncrementResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheFlushRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheFlushResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheStatsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MergedNamespaceStats); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheStatsResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheGrabTailRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheGrabTailResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheGetResponse_Item); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheSetRequest_Item); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheDeleteRequest_Item); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_memcache_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MemcacheGrabTailResponse_Item); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_memcache_service_proto_rawDesc, NumEnums: 6, NumMessages: 24, NumExtensions: 0, NumServices: 0, }, GoTypes: file_memcache_service_proto_goTypes, DependencyIndexes: file_memcache_service_proto_depIdxs, EnumInfos: file_memcache_service_proto_enumTypes, MessageInfos: file_memcache_service_proto_msgTypes, }.Build() File_memcache_service_proto = out.File file_memcache_service_proto_rawDesc = nil file_memcache_service_proto_goTypes = nil file_memcache_service_proto_depIdxs = nil }
memcache
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/memcache/memcache_service.proto
syntax = "proto2"; option go_package = "memcache"; package appengine; message MemcacheServiceError { enum ErrorCode { OK = 0; UNSPECIFIED_ERROR = 1; NAMESPACE_NOT_SET = 2; PERMISSION_DENIED = 3; INVALID_VALUE = 6; } } message AppOverride { required string app_id = 1; optional int32 num_memcacheg_backends = 2 [deprecated=true]; optional bool ignore_shardlock = 3 [deprecated=true]; optional string memcache_pool_hint = 4 [deprecated=true]; optional bytes memcache_sharding_strategy = 5 [deprecated=true]; } message MemcacheGetRequest { repeated bytes key = 1; optional string name_space = 2 [default = ""]; optional bool for_cas = 4; optional AppOverride override = 5; optional bool for_peek = 6 [default = false]; } message ItemTimestamps { optional int64 expiration_time_sec = 1; optional int64 last_access_time_sec = 2; optional int64 delete_lock_time_sec = 3; } message MemcacheGetResponse { repeated group Item = 1 { required bytes key = 2; required bytes value = 3; optional fixed32 flags = 4; optional fixed64 cas_id = 5; optional int32 expires_in_seconds = 6; optional ItemTimestamps timestamps = 8; optional bool is_delete_locked = 9; } } message MemcacheSetRequest { enum SetPolicy { SET = 1; ADD = 2; REPLACE = 3; CAS = 4; } repeated group Item = 1 { required bytes key = 2; required bytes value = 3; optional fixed32 flags = 4; optional SetPolicy set_policy = 5 [default = SET]; optional fixed32 expiration_time = 6 [default = 0]; optional fixed64 cas_id = 8; optional bool for_cas = 9; } optional string name_space = 7 [default = ""]; optional AppOverride override = 10; } message MemcacheSetResponse { enum SetStatusCode { STORED = 1; NOT_STORED = 2; ERROR = 3; EXISTS = 4; } repeated SetStatusCode set_status = 1; } message MemcacheDeleteRequest { repeated group Item = 1 { required bytes key = 2; optional fixed32 delete_time = 3 [default = 0]; } optional string name_space = 4 [default = ""]; optional AppOverride override = 5; } message MemcacheDeleteResponse { enum DeleteStatusCode { DELETED = 1; NOT_FOUND = 2; } repeated DeleteStatusCode delete_status = 1; } message MemcacheIncrementRequest { enum Direction { INCREMENT = 1; DECREMENT = 2; } required bytes key = 1; optional string name_space = 4 [default = ""]; optional uint64 delta = 2 [default = 1]; optional Direction direction = 3 [default = INCREMENT]; optional uint64 initial_value = 5; optional fixed32 initial_flags = 6; optional AppOverride override = 7; } message MemcacheIncrementResponse { enum IncrementStatusCode { OK = 1; NOT_CHANGED = 2; ERROR = 3; } optional uint64 new_value = 1; optional IncrementStatusCode increment_status = 2; } message MemcacheBatchIncrementRequest { optional string name_space = 1 [default = ""]; repeated MemcacheIncrementRequest item = 2; optional AppOverride override = 3; } message MemcacheBatchIncrementResponse { repeated MemcacheIncrementResponse item = 1; } message MemcacheFlushRequest { optional AppOverride override = 1; } message MemcacheFlushResponse { } message MemcacheStatsRequest { optional AppOverride override = 1; } message MergedNamespaceStats { required uint64 hits = 1; required uint64 misses = 2; required uint64 byte_hits = 3; required uint64 items = 4; required uint64 bytes = 5; required fixed32 oldest_item_age = 6; } message MemcacheStatsResponse { optional MergedNamespaceStats stats = 1; } message MemcacheGrabTailRequest { required int32 item_count = 1; optional string name_space = 2 [default = ""]; optional AppOverride override = 3; } message MemcacheGrabTailResponse { repeated group Item = 1 { required bytes value = 2; optional fixed32 flags = 3; } }
urlfetch
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/urlfetch/urlfetch_service.proto
syntax = "proto2"; option go_package = "urlfetch"; package appengine; message URLFetchServiceError { enum ErrorCode { OK = 0; INVALID_URL = 1; FETCH_ERROR = 2; UNSPECIFIED_ERROR = 3; RESPONSE_TOO_LARGE = 4; DEADLINE_EXCEEDED = 5; SSL_CERTIFICATE_ERROR = 6; DNS_ERROR = 7; CLOSED = 8; INTERNAL_TRANSIENT_ERROR = 9; TOO_MANY_REDIRECTS = 10; MALFORMED_REPLY = 11; CONNECTION_ERROR = 12; } } message URLFetchRequest { enum RequestMethod { GET = 1; POST = 2; HEAD = 3; PUT = 4; DELETE = 5; PATCH = 6; } required RequestMethod Method = 1; required string Url = 2; repeated group Header = 3 { required string Key = 4; required string Value = 5; } optional bytes Payload = 6 [ctype=CORD]; optional bool FollowRedirects = 7 [default=true]; optional double Deadline = 8; optional bool MustValidateServerCertificate = 9 [default=true]; } message URLFetchResponse { optional bytes Content = 1; required int32 StatusCode = 2; repeated group Header = 3 { required string Key = 4; required string Value = 5; } optional bool ContentWasTruncated = 6 [default=false]; optional int64 ExternalBytesSent = 7; optional int64 ExternalBytesReceived = 8; optional string FinalUrl = 9; optional int64 ApiCpuMilliseconds = 10 [default=0]; optional int64 ApiBytesSent = 11 [default=0]; optional int64 ApiBytesReceived = 12 [default=0]; }
urlfetch
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/urlfetch/urlfetch_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto package urlfetch import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type URLFetchServiceError_ErrorCode int32 const ( URLFetchServiceError_OK URLFetchServiceError_ErrorCode = 0 URLFetchServiceError_INVALID_URL URLFetchServiceError_ErrorCode = 1 URLFetchServiceError_FETCH_ERROR URLFetchServiceError_ErrorCode = 2 URLFetchServiceError_UNSPECIFIED_ERROR URLFetchServiceError_ErrorCode = 3 URLFetchServiceError_RESPONSE_TOO_LARGE URLFetchServiceError_ErrorCode = 4 URLFetchServiceError_DEADLINE_EXCEEDED URLFetchServiceError_ErrorCode = 5 URLFetchServiceError_SSL_CERTIFICATE_ERROR URLFetchServiceError_ErrorCode = 6 URLFetchServiceError_DNS_ERROR URLFetchServiceError_ErrorCode = 7 URLFetchServiceError_CLOSED URLFetchServiceError_ErrorCode = 8 URLFetchServiceError_INTERNAL_TRANSIENT_ERROR URLFetchServiceError_ErrorCode = 9 URLFetchServiceError_TOO_MANY_REDIRECTS URLFetchServiceError_ErrorCode = 10 URLFetchServiceError_MALFORMED_REPLY URLFetchServiceError_ErrorCode = 11 URLFetchServiceError_CONNECTION_ERROR URLFetchServiceError_ErrorCode = 12 ) var URLFetchServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INVALID_URL", 2: "FETCH_ERROR", 3: "UNSPECIFIED_ERROR", 4: "RESPONSE_TOO_LARGE", 5: "DEADLINE_EXCEEDED", 6: "SSL_CERTIFICATE_ERROR", 7: "DNS_ERROR", 8: "CLOSED", 9: "INTERNAL_TRANSIENT_ERROR", 10: "TOO_MANY_REDIRECTS", 11: "MALFORMED_REPLY", 12: "CONNECTION_ERROR", } var URLFetchServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INVALID_URL": 1, "FETCH_ERROR": 2, "UNSPECIFIED_ERROR": 3, "RESPONSE_TOO_LARGE": 4, "DEADLINE_EXCEEDED": 5, "SSL_CERTIFICATE_ERROR": 6, "DNS_ERROR": 7, "CLOSED": 8, "INTERNAL_TRANSIENT_ERROR": 9, "TOO_MANY_REDIRECTS": 10, "MALFORMED_REPLY": 11, "CONNECTION_ERROR": 12, } func (x URLFetchServiceError_ErrorCode) Enum() *URLFetchServiceError_ErrorCode { p := new(URLFetchServiceError_ErrorCode) *p = x return p } func (x URLFetchServiceError_ErrorCode) String() string { return proto.EnumName(URLFetchServiceError_ErrorCode_name, int32(x)) } func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(URLFetchServiceError_ErrorCode_value, data, "URLFetchServiceError_ErrorCode") if err != nil { return err } *x = URLFetchServiceError_ErrorCode(value) return nil } func (URLFetchServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{0, 0} } type URLFetchRequest_RequestMethod int32 const ( URLFetchRequest_GET URLFetchRequest_RequestMethod = 1 URLFetchRequest_POST URLFetchRequest_RequestMethod = 2 URLFetchRequest_HEAD URLFetchRequest_RequestMethod = 3 URLFetchRequest_PUT URLFetchRequest_RequestMethod = 4 URLFetchRequest_DELETE URLFetchRequest_RequestMethod = 5 URLFetchRequest_PATCH URLFetchRequest_RequestMethod = 6 ) var URLFetchRequest_RequestMethod_name = map[int32]string{ 1: "GET", 2: "POST", 3: "HEAD", 4: "PUT", 5: "DELETE", 6: "PATCH", } var URLFetchRequest_RequestMethod_value = map[string]int32{ "GET": 1, "POST": 2, "HEAD": 3, "PUT": 4, "DELETE": 5, "PATCH": 6, } func (x URLFetchRequest_RequestMethod) Enum() *URLFetchRequest_RequestMethod { p := new(URLFetchRequest_RequestMethod) *p = x return p } func (x URLFetchRequest_RequestMethod) String() string { return proto.EnumName(URLFetchRequest_RequestMethod_name, int32(x)) } func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(URLFetchRequest_RequestMethod_value, data, "URLFetchRequest_RequestMethod") if err != nil { return err } *x = URLFetchRequest_RequestMethod(value) return nil } func (URLFetchRequest_RequestMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1, 0} } type URLFetchServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *URLFetchServiceError) Reset() { *m = URLFetchServiceError{} } func (m *URLFetchServiceError) String() string { return proto.CompactTextString(m) } func (*URLFetchServiceError) ProtoMessage() {} func (*URLFetchServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{0} } func (m *URLFetchServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_URLFetchServiceError.Unmarshal(m, b) } func (m *URLFetchServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_URLFetchServiceError.Marshal(b, m, deterministic) } func (dst *URLFetchServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_URLFetchServiceError.Merge(dst, src) } func (m *URLFetchServiceError) XXX_Size() int { return xxx_messageInfo_URLFetchServiceError.Size(m) } func (m *URLFetchServiceError) XXX_DiscardUnknown() { xxx_messageInfo_URLFetchServiceError.DiscardUnknown(m) } var xxx_messageInfo_URLFetchServiceError proto.InternalMessageInfo type URLFetchRequest struct { Method *URLFetchRequest_RequestMethod `protobuf:"varint,1,req,name=Method,enum=appengine.URLFetchRequest_RequestMethod" json:"Method,omitempty"` Url *string `protobuf:"bytes,2,req,name=Url" json:"Url,omitempty"` Header []*URLFetchRequest_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"` Payload []byte `protobuf:"bytes,6,opt,name=Payload" json:"Payload,omitempty"` FollowRedirects *bool `protobuf:"varint,7,opt,name=FollowRedirects,def=1" json:"FollowRedirects,omitempty"` Deadline *float64 `protobuf:"fixed64,8,opt,name=Deadline" json:"Deadline,omitempty"` MustValidateServerCertificate *bool `protobuf:"varint,9,opt,name=MustValidateServerCertificate,def=1" json:"MustValidateServerCertificate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *URLFetchRequest) Reset() { *m = URLFetchRequest{} } func (m *URLFetchRequest) String() string { return proto.CompactTextString(m) } func (*URLFetchRequest) ProtoMessage() {} func (*URLFetchRequest) Descriptor() ([]byte, []int) { return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1} } func (m *URLFetchRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_URLFetchRequest.Unmarshal(m, b) } func (m *URLFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_URLFetchRequest.Marshal(b, m, deterministic) } func (dst *URLFetchRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_URLFetchRequest.Merge(dst, src) } func (m *URLFetchRequest) XXX_Size() int { return xxx_messageInfo_URLFetchRequest.Size(m) } func (m *URLFetchRequest) XXX_DiscardUnknown() { xxx_messageInfo_URLFetchRequest.DiscardUnknown(m) } var xxx_messageInfo_URLFetchRequest proto.InternalMessageInfo const Default_URLFetchRequest_FollowRedirects bool = true const Default_URLFetchRequest_MustValidateServerCertificate bool = true func (m *URLFetchRequest) GetMethod() URLFetchRequest_RequestMethod { if m != nil && m.Method != nil { return *m.Method } return URLFetchRequest_GET } func (m *URLFetchRequest) GetUrl() string { if m != nil && m.Url != nil { return *m.Url } return "" } func (m *URLFetchRequest) GetHeader() []*URLFetchRequest_Header { if m != nil { return m.Header } return nil } func (m *URLFetchRequest) GetPayload() []byte { if m != nil { return m.Payload } return nil } func (m *URLFetchRequest) GetFollowRedirects() bool { if m != nil && m.FollowRedirects != nil { return *m.FollowRedirects } return Default_URLFetchRequest_FollowRedirects } func (m *URLFetchRequest) GetDeadline() float64 { if m != nil && m.Deadline != nil { return *m.Deadline } return 0 } func (m *URLFetchRequest) GetMustValidateServerCertificate() bool { if m != nil && m.MustValidateServerCertificate != nil { return *m.MustValidateServerCertificate } return Default_URLFetchRequest_MustValidateServerCertificate } type URLFetchRequest_Header struct { Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *URLFetchRequest_Header) Reset() { *m = URLFetchRequest_Header{} } func (m *URLFetchRequest_Header) String() string { return proto.CompactTextString(m) } func (*URLFetchRequest_Header) ProtoMessage() {} func (*URLFetchRequest_Header) Descriptor() ([]byte, []int) { return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1, 0} } func (m *URLFetchRequest_Header) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_URLFetchRequest_Header.Unmarshal(m, b) } func (m *URLFetchRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_URLFetchRequest_Header.Marshal(b, m, deterministic) } func (dst *URLFetchRequest_Header) XXX_Merge(src proto.Message) { xxx_messageInfo_URLFetchRequest_Header.Merge(dst, src) } func (m *URLFetchRequest_Header) XXX_Size() int { return xxx_messageInfo_URLFetchRequest_Header.Size(m) } func (m *URLFetchRequest_Header) XXX_DiscardUnknown() { xxx_messageInfo_URLFetchRequest_Header.DiscardUnknown(m) } var xxx_messageInfo_URLFetchRequest_Header proto.InternalMessageInfo func (m *URLFetchRequest_Header) GetKey() string { if m != nil && m.Key != nil { return *m.Key } return "" } func (m *URLFetchRequest_Header) GetValue() string { if m != nil && m.Value != nil { return *m.Value } return "" } type URLFetchResponse struct { Content []byte `protobuf:"bytes,1,opt,name=Content" json:"Content,omitempty"` StatusCode *int32 `protobuf:"varint,2,req,name=StatusCode" json:"StatusCode,omitempty"` Header []*URLFetchResponse_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"` ContentWasTruncated *bool `protobuf:"varint,6,opt,name=ContentWasTruncated,def=0" json:"ContentWasTruncated,omitempty"` ExternalBytesSent *int64 `protobuf:"varint,7,opt,name=ExternalBytesSent" json:"ExternalBytesSent,omitempty"` ExternalBytesReceived *int64 `protobuf:"varint,8,opt,name=ExternalBytesReceived" json:"ExternalBytesReceived,omitempty"` FinalUrl *string `protobuf:"bytes,9,opt,name=FinalUrl" json:"FinalUrl,omitempty"` ApiCpuMilliseconds *int64 `protobuf:"varint,10,opt,name=ApiCpuMilliseconds,def=0" json:"ApiCpuMilliseconds,omitempty"` ApiBytesSent *int64 `protobuf:"varint,11,opt,name=ApiBytesSent,def=0" json:"ApiBytesSent,omitempty"` ApiBytesReceived *int64 `protobuf:"varint,12,opt,name=ApiBytesReceived,def=0" json:"ApiBytesReceived,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *URLFetchResponse) Reset() { *m = URLFetchResponse{} } func (m *URLFetchResponse) String() string { return proto.CompactTextString(m) } func (*URLFetchResponse) ProtoMessage() {} func (*URLFetchResponse) Descriptor() ([]byte, []int) { return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{2} } func (m *URLFetchResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_URLFetchResponse.Unmarshal(m, b) } func (m *URLFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_URLFetchResponse.Marshal(b, m, deterministic) } func (dst *URLFetchResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_URLFetchResponse.Merge(dst, src) } func (m *URLFetchResponse) XXX_Size() int { return xxx_messageInfo_URLFetchResponse.Size(m) } func (m *URLFetchResponse) XXX_DiscardUnknown() { xxx_messageInfo_URLFetchResponse.DiscardUnknown(m) } var xxx_messageInfo_URLFetchResponse proto.InternalMessageInfo const Default_URLFetchResponse_ContentWasTruncated bool = false const Default_URLFetchResponse_ApiCpuMilliseconds int64 = 0 const Default_URLFetchResponse_ApiBytesSent int64 = 0 const Default_URLFetchResponse_ApiBytesReceived int64 = 0 func (m *URLFetchResponse) GetContent() []byte { if m != nil { return m.Content } return nil } func (m *URLFetchResponse) GetStatusCode() int32 { if m != nil && m.StatusCode != nil { return *m.StatusCode } return 0 } func (m *URLFetchResponse) GetHeader() []*URLFetchResponse_Header { if m != nil { return m.Header } return nil } func (m *URLFetchResponse) GetContentWasTruncated() bool { if m != nil && m.ContentWasTruncated != nil { return *m.ContentWasTruncated } return Default_URLFetchResponse_ContentWasTruncated } func (m *URLFetchResponse) GetExternalBytesSent() int64 { if m != nil && m.ExternalBytesSent != nil { return *m.ExternalBytesSent } return 0 } func (m *URLFetchResponse) GetExternalBytesReceived() int64 { if m != nil && m.ExternalBytesReceived != nil { return *m.ExternalBytesReceived } return 0 } func (m *URLFetchResponse) GetFinalUrl() string { if m != nil && m.FinalUrl != nil { return *m.FinalUrl } return "" } func (m *URLFetchResponse) GetApiCpuMilliseconds() int64 { if m != nil && m.ApiCpuMilliseconds != nil { return *m.ApiCpuMilliseconds } return Default_URLFetchResponse_ApiCpuMilliseconds } func (m *URLFetchResponse) GetApiBytesSent() int64 { if m != nil && m.ApiBytesSent != nil { return *m.ApiBytesSent } return Default_URLFetchResponse_ApiBytesSent } func (m *URLFetchResponse) GetApiBytesReceived() int64 { if m != nil && m.ApiBytesReceived != nil { return *m.ApiBytesReceived } return Default_URLFetchResponse_ApiBytesReceived } type URLFetchResponse_Header struct { Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *URLFetchResponse_Header) Reset() { *m = URLFetchResponse_Header{} } func (m *URLFetchResponse_Header) String() string { return proto.CompactTextString(m) } func (*URLFetchResponse_Header) ProtoMessage() {} func (*URLFetchResponse_Header) Descriptor() ([]byte, []int) { return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{2, 0} } func (m *URLFetchResponse_Header) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_URLFetchResponse_Header.Unmarshal(m, b) } func (m *URLFetchResponse_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_URLFetchResponse_Header.Marshal(b, m, deterministic) } func (dst *URLFetchResponse_Header) XXX_Merge(src proto.Message) { xxx_messageInfo_URLFetchResponse_Header.Merge(dst, src) } func (m *URLFetchResponse_Header) XXX_Size() int { return xxx_messageInfo_URLFetchResponse_Header.Size(m) } func (m *URLFetchResponse_Header) XXX_DiscardUnknown() { xxx_messageInfo_URLFetchResponse_Header.DiscardUnknown(m) } var xxx_messageInfo_URLFetchResponse_Header proto.InternalMessageInfo func (m *URLFetchResponse_Header) GetKey() string { if m != nil && m.Key != nil { return *m.Key } return "" } func (m *URLFetchResponse_Header) GetValue() string { if m != nil && m.Value != nil { return *m.Value } return "" } func init() { proto.RegisterType((*URLFetchServiceError)(nil), "appengine.URLFetchServiceError") proto.RegisterType((*URLFetchRequest)(nil), "appengine.URLFetchRequest") proto.RegisterType((*URLFetchRequest_Header)(nil), "appengine.URLFetchRequest.Header") proto.RegisterType((*URLFetchResponse)(nil), "appengine.URLFetchResponse") proto.RegisterType((*URLFetchResponse_Header)(nil), "appengine.URLFetchResponse.Header") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto", fileDescriptor_urlfetch_service_b245a7065f33bced) } var fileDescriptor_urlfetch_service_b245a7065f33bced = []byte{ // 770 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xdd, 0x6e, 0xe3, 0x54, 0x10, 0xc6, 0x76, 0x7e, 0xa7, 0x5d, 0x7a, 0x76, 0xb6, 0x45, 0x66, 0xb5, 0xa0, 0x10, 0x09, 0x29, 0x17, 0x90, 0x2e, 0x2b, 0x24, 0x44, 0xaf, 0x70, 0xed, 0x93, 0xad, 0xa9, 0x63, 0x47, 0xc7, 0x4e, 0x61, 0xb9, 0xb1, 0xac, 0x78, 0x9a, 0x5a, 0xb2, 0xec, 0x60, 0x9f, 0x2c, 0xf4, 0x35, 0x78, 0x0d, 0xde, 0x87, 0xa7, 0xe1, 0x02, 0x9d, 0xc4, 0xc9, 0x6e, 0xbb, 0xd1, 0x4a, 0x5c, 0x65, 0xe6, 0x9b, 0xef, 0xcc, 0x99, 0x7c, 0xdf, 0xf8, 0x80, 0xb3, 0x2c, 0xcb, 0x65, 0x4e, 0xe3, 0x65, 0x99, 0x27, 0xc5, 0x72, 0x5c, 0x56, 0xcb, 0xf3, 0x64, 0xb5, 0xa2, 0x62,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0xde, 0x4b, 0xaa, 0x43, 0x35, 0xb8, 0x72, 0xd7, 0x10, 0x1f, 0x16, 0xf0, 0x7b, 0x38, 0x7b, 0x00, 0x0a, 0x5a, 0x50, 0xf6, 0x96, 0xd2, 0x8d, 0xcd, 0x86, 0x38, 0x5c, 0x54, 0xfb, 0x30, 0xc9, 0x8a, 0x24, 0x57, 0xfb, 0xaa, 0xec, 0xed, 0x8b, 0x7d, 0x8e, 0xdf, 0x01, 0x5a, 0xab, 0xcc, 0x5e, 0xad, 0xa7, 0x59, 0x9e, 0x67, 0x35, 0x2d, 0xca, 0x22, 0xad, 0x4d, 0x50, 0xed, 0x2e, 0xb4, 0x97, 0xe2, 0x40, 0x11, 0xbf, 0x86, 0x63, 0x6b, 0x95, 0xbd, 0x9b, 0xf6, 0x68, 0x47, 0x7e, 0x00, 0xe3, 0xb7, 0xc0, 0x76, 0xf9, 0x7e, 0xcc, 0xe3, 0x1d, 0xf5, 0x83, 0xd2, 0xff, 0x5f, 0xa6, 0x4b, 0xf8, 0xad, 0xb7, 0x7b, 0x2a, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x9f, 0x6d, 0x24, 0x63, 0x05, 0x00, 0x00, }
image
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/image/images_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/image/images_service.proto package image import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ImagesServiceError_ErrorCode int32 const ( ImagesServiceError_UNSPECIFIED_ERROR ImagesServiceError_ErrorCode = 1 ImagesServiceError_BAD_TRANSFORM_DATA ImagesServiceError_ErrorCode = 2 ImagesServiceError_NOT_IMAGE ImagesServiceError_ErrorCode = 3 ImagesServiceError_BAD_IMAGE_DATA ImagesServiceError_ErrorCode = 4 ImagesServiceError_IMAGE_TOO_LARGE ImagesServiceError_ErrorCode = 5 ImagesServiceError_INVALID_BLOB_KEY ImagesServiceError_ErrorCode = 6 ImagesServiceError_ACCESS_DENIED ImagesServiceError_ErrorCode = 7 ImagesServiceError_OBJECT_NOT_FOUND ImagesServiceError_ErrorCode = 8 ) var ImagesServiceError_ErrorCode_name = map[int32]string{ 1: "UNSPECIFIED_ERROR", 2: "BAD_TRANSFORM_DATA", 3: "NOT_IMAGE", 4: "BAD_IMAGE_DATA", 5: "IMAGE_TOO_LARGE", 6: "INVALID_BLOB_KEY", 7: "ACCESS_DENIED", 8: "OBJECT_NOT_FOUND", } var ImagesServiceError_ErrorCode_value = map[string]int32{ "UNSPECIFIED_ERROR": 1, "BAD_TRANSFORM_DATA": 2, "NOT_IMAGE": 3, "BAD_IMAGE_DATA": 4, "IMAGE_TOO_LARGE": 5, "INVALID_BLOB_KEY": 6, "ACCESS_DENIED": 7, "OBJECT_NOT_FOUND": 8, } func (x ImagesServiceError_ErrorCode) Enum() *ImagesServiceError_ErrorCode { p := new(ImagesServiceError_ErrorCode) *p = x return p } func (x ImagesServiceError_ErrorCode) String() string { return proto.EnumName(ImagesServiceError_ErrorCode_name, int32(x)) } func (x *ImagesServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ImagesServiceError_ErrorCode_value, data, "ImagesServiceError_ErrorCode") if err != nil { return err } *x = ImagesServiceError_ErrorCode(value) return nil } func (ImagesServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{0, 0} } type ImagesServiceTransform_Type int32 const ( ImagesServiceTransform_RESIZE ImagesServiceTransform_Type = 1 ImagesServiceTransform_ROTATE ImagesServiceTransform_Type = 2 ImagesServiceTransform_HORIZONTAL_FLIP ImagesServiceTransform_Type = 3 ImagesServiceTransform_VERTICAL_FLIP ImagesServiceTransform_Type = 4 ImagesServiceTransform_CROP ImagesServiceTransform_Type = 5 ImagesServiceTransform_IM_FEELING_LUCKY ImagesServiceTransform_Type = 6 ) var ImagesServiceTransform_Type_name = map[int32]string{ 1: "RESIZE", 2: "ROTATE", 3: "HORIZONTAL_FLIP", 4: "VERTICAL_FLIP", 5: "CROP", 6: "IM_FEELING_LUCKY", } var ImagesServiceTransform_Type_value = map[string]int32{ "RESIZE": 1, "ROTATE": 2, "HORIZONTAL_FLIP": 3, "VERTICAL_FLIP": 4, "CROP": 5, "IM_FEELING_LUCKY": 6, } func (x ImagesServiceTransform_Type) Enum() *ImagesServiceTransform_Type { p := new(ImagesServiceTransform_Type) *p = x return p } func (x ImagesServiceTransform_Type) String() string { return proto.EnumName(ImagesServiceTransform_Type_name, int32(x)) } func (x *ImagesServiceTransform_Type) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ImagesServiceTransform_Type_value, data, "ImagesServiceTransform_Type") if err != nil { return err } *x = ImagesServiceTransform_Type(value) return nil } func (ImagesServiceTransform_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{1, 0} } type InputSettings_ORIENTATION_CORRECTION_TYPE int32 const ( InputSettings_UNCHANGED_ORIENTATION InputSettings_ORIENTATION_CORRECTION_TYPE = 0 InputSettings_CORRECT_ORIENTATION InputSettings_ORIENTATION_CORRECTION_TYPE = 1 ) var InputSettings_ORIENTATION_CORRECTION_TYPE_name = map[int32]string{ 0: "UNCHANGED_ORIENTATION", 1: "CORRECT_ORIENTATION", } var InputSettings_ORIENTATION_CORRECTION_TYPE_value = map[string]int32{ "UNCHANGED_ORIENTATION": 0, "CORRECT_ORIENTATION": 1, } func (x InputSettings_ORIENTATION_CORRECTION_TYPE) Enum() *InputSettings_ORIENTATION_CORRECTION_TYPE { p := new(InputSettings_ORIENTATION_CORRECTION_TYPE) *p = x return p } func (x InputSettings_ORIENTATION_CORRECTION_TYPE) String() string { return proto.EnumName(InputSettings_ORIENTATION_CORRECTION_TYPE_name, int32(x)) } func (x *InputSettings_ORIENTATION_CORRECTION_TYPE) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(InputSettings_ORIENTATION_CORRECTION_TYPE_value, data, "InputSettings_ORIENTATION_CORRECTION_TYPE") if err != nil { return err } *x = InputSettings_ORIENTATION_CORRECTION_TYPE(value) return nil } func (InputSettings_ORIENTATION_CORRECTION_TYPE) EnumDescriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{4, 0} } type OutputSettings_MIME_TYPE int32 const ( OutputSettings_PNG OutputSettings_MIME_TYPE = 0 OutputSettings_JPEG OutputSettings_MIME_TYPE = 1 OutputSettings_WEBP OutputSettings_MIME_TYPE = 2 ) var OutputSettings_MIME_TYPE_name = map[int32]string{ 0: "PNG", 1: "JPEG", 2: "WEBP", } var OutputSettings_MIME_TYPE_value = map[string]int32{ "PNG": 0, "JPEG": 1, "WEBP": 2, } func (x OutputSettings_MIME_TYPE) Enum() *OutputSettings_MIME_TYPE { p := new(OutputSettings_MIME_TYPE) *p = x return p } func (x OutputSettings_MIME_TYPE) String() string { return proto.EnumName(OutputSettings_MIME_TYPE_name, int32(x)) } func (x *OutputSettings_MIME_TYPE) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(OutputSettings_MIME_TYPE_value, data, "OutputSettings_MIME_TYPE") if err != nil { return err } *x = OutputSettings_MIME_TYPE(value) return nil } func (OutputSettings_MIME_TYPE) EnumDescriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{5, 0} } type CompositeImageOptions_ANCHOR int32 const ( CompositeImageOptions_TOP_LEFT CompositeImageOptions_ANCHOR = 0 CompositeImageOptions_TOP CompositeImageOptions_ANCHOR = 1 CompositeImageOptions_TOP_RIGHT CompositeImageOptions_ANCHOR = 2 CompositeImageOptions_LEFT CompositeImageOptions_ANCHOR = 3 CompositeImageOptions_CENTER CompositeImageOptions_ANCHOR = 4 CompositeImageOptions_RIGHT CompositeImageOptions_ANCHOR = 5 CompositeImageOptions_BOTTOM_LEFT CompositeImageOptions_ANCHOR = 6 CompositeImageOptions_BOTTOM CompositeImageOptions_ANCHOR = 7 CompositeImageOptions_BOTTOM_RIGHT CompositeImageOptions_ANCHOR = 8 ) var CompositeImageOptions_ANCHOR_name = map[int32]string{ 0: "TOP_LEFT", 1: "TOP", 2: "TOP_RIGHT", 3: "LEFT", 4: "CENTER", 5: "RIGHT", 6: "BOTTOM_LEFT", 7: "BOTTOM", 8: "BOTTOM_RIGHT", } var CompositeImageOptions_ANCHOR_value = map[string]int32{ "TOP_LEFT": 0, "TOP": 1, "TOP_RIGHT": 2, "LEFT": 3, "CENTER": 4, "RIGHT": 5, "BOTTOM_LEFT": 6, "BOTTOM": 7, "BOTTOM_RIGHT": 8, } func (x CompositeImageOptions_ANCHOR) Enum() *CompositeImageOptions_ANCHOR { p := new(CompositeImageOptions_ANCHOR) *p = x return p } func (x CompositeImageOptions_ANCHOR) String() string { return proto.EnumName(CompositeImageOptions_ANCHOR_name, int32(x)) } func (x *CompositeImageOptions_ANCHOR) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(CompositeImageOptions_ANCHOR_value, data, "CompositeImageOptions_ANCHOR") if err != nil { return err } *x = CompositeImageOptions_ANCHOR(value) return nil } func (CompositeImageOptions_ANCHOR) EnumDescriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{8, 0} } type ImagesServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesServiceError) Reset() { *m = ImagesServiceError{} } func (m *ImagesServiceError) String() string { return proto.CompactTextString(m) } func (*ImagesServiceError) ProtoMessage() {} func (*ImagesServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{0} } func (m *ImagesServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesServiceError.Unmarshal(m, b) } func (m *ImagesServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesServiceError.Marshal(b, m, deterministic) } func (dst *ImagesServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesServiceError.Merge(dst, src) } func (m *ImagesServiceError) XXX_Size() int { return xxx_messageInfo_ImagesServiceError.Size(m) } func (m *ImagesServiceError) XXX_DiscardUnknown() { xxx_messageInfo_ImagesServiceError.DiscardUnknown(m) } var xxx_messageInfo_ImagesServiceError proto.InternalMessageInfo type ImagesServiceTransform struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesServiceTransform) Reset() { *m = ImagesServiceTransform{} } func (m *ImagesServiceTransform) String() string { return proto.CompactTextString(m) } func (*ImagesServiceTransform) ProtoMessage() {} func (*ImagesServiceTransform) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{1} } func (m *ImagesServiceTransform) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesServiceTransform.Unmarshal(m, b) } func (m *ImagesServiceTransform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesServiceTransform.Marshal(b, m, deterministic) } func (dst *ImagesServiceTransform) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesServiceTransform.Merge(dst, src) } func (m *ImagesServiceTransform) XXX_Size() int { return xxx_messageInfo_ImagesServiceTransform.Size(m) } func (m *ImagesServiceTransform) XXX_DiscardUnknown() { xxx_messageInfo_ImagesServiceTransform.DiscardUnknown(m) } var xxx_messageInfo_ImagesServiceTransform proto.InternalMessageInfo type Transform struct { Width *int32 `protobuf:"varint,1,opt,name=width" json:"width,omitempty"` Height *int32 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"` CropToFit *bool `protobuf:"varint,11,opt,name=crop_to_fit,json=cropToFit,def=0" json:"crop_to_fit,omitempty"` CropOffsetX *float32 `protobuf:"fixed32,12,opt,name=crop_offset_x,json=cropOffsetX,def=0.5" json:"crop_offset_x,omitempty"` CropOffsetY *float32 `protobuf:"fixed32,13,opt,name=crop_offset_y,json=cropOffsetY,def=0.5" json:"crop_offset_y,omitempty"` Rotate *int32 `protobuf:"varint,3,opt,name=rotate,def=0" json:"rotate,omitempty"` HorizontalFlip *bool `protobuf:"varint,4,opt,name=horizontal_flip,json=horizontalFlip,def=0" json:"horizontal_flip,omitempty"` VerticalFlip *bool `protobuf:"varint,5,opt,name=vertical_flip,json=verticalFlip,def=0" json:"vertical_flip,omitempty"` CropLeftX *float32 `protobuf:"fixed32,6,opt,name=crop_left_x,json=cropLeftX,def=0" json:"crop_left_x,omitempty"` CropTopY *float32 `protobuf:"fixed32,7,opt,name=crop_top_y,json=cropTopY,def=0" json:"crop_top_y,omitempty"` CropRightX *float32 `protobuf:"fixed32,8,opt,name=crop_right_x,json=cropRightX,def=1" json:"crop_right_x,omitempty"` CropBottomY *float32 `protobuf:"fixed32,9,opt,name=crop_bottom_y,json=cropBottomY,def=1" json:"crop_bottom_y,omitempty"` Autolevels *bool `protobuf:"varint,10,opt,name=autolevels,def=0" json:"autolevels,omitempty"` AllowStretch *bool `protobuf:"varint,14,opt,name=allow_stretch,json=allowStretch,def=0" json:"allow_stretch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Transform) Reset() { *m = Transform{} } func (m *Transform) String() string { return proto.CompactTextString(m) } func (*Transform) ProtoMessage() {} func (*Transform) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{2} } func (m *Transform) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Transform.Unmarshal(m, b) } func (m *Transform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Transform.Marshal(b, m, deterministic) } func (dst *Transform) XXX_Merge(src proto.Message) { xxx_messageInfo_Transform.Merge(dst, src) } func (m *Transform) XXX_Size() int { return xxx_messageInfo_Transform.Size(m) } func (m *Transform) XXX_DiscardUnknown() { xxx_messageInfo_Transform.DiscardUnknown(m) } var xxx_messageInfo_Transform proto.InternalMessageInfo const Default_Transform_CropToFit bool = false const Default_Transform_CropOffsetX float32 = 0.5 const Default_Transform_CropOffsetY float32 = 0.5 const Default_Transform_Rotate int32 = 0 const Default_Transform_HorizontalFlip bool = false const Default_Transform_VerticalFlip bool = false const Default_Transform_CropLeftX float32 = 0 const Default_Transform_CropTopY float32 = 0 const Default_Transform_CropRightX float32 = 1 const Default_Transform_CropBottomY float32 = 1 const Default_Transform_Autolevels bool = false const Default_Transform_AllowStretch bool = false func (m *Transform) GetWidth() int32 { if m != nil && m.Width != nil { return *m.Width } return 0 } func (m *Transform) GetHeight() int32 { if m != nil && m.Height != nil { return *m.Height } return 0 } func (m *Transform) GetCropToFit() bool { if m != nil && m.CropToFit != nil { return *m.CropToFit } return Default_Transform_CropToFit } func (m *Transform) GetCropOffsetX() float32 { if m != nil && m.CropOffsetX != nil { return *m.CropOffsetX } return Default_Transform_CropOffsetX } func (m *Transform) GetCropOffsetY() float32 { if m != nil && m.CropOffsetY != nil { return *m.CropOffsetY } return Default_Transform_CropOffsetY } func (m *Transform) GetRotate() int32 { if m != nil && m.Rotate != nil { return *m.Rotate } return Default_Transform_Rotate } func (m *Transform) GetHorizontalFlip() bool { if m != nil && m.HorizontalFlip != nil { return *m.HorizontalFlip } return Default_Transform_HorizontalFlip } func (m *Transform) GetVerticalFlip() bool { if m != nil && m.VerticalFlip != nil { return *m.VerticalFlip } return Default_Transform_VerticalFlip } func (m *Transform) GetCropLeftX() float32 { if m != nil && m.CropLeftX != nil { return *m.CropLeftX } return Default_Transform_CropLeftX } func (m *Transform) GetCropTopY() float32 { if m != nil && m.CropTopY != nil { return *m.CropTopY } return Default_Transform_CropTopY } func (m *Transform) GetCropRightX() float32 { if m != nil && m.CropRightX != nil { return *m.CropRightX } return Default_Transform_CropRightX } func (m *Transform) GetCropBottomY() float32 { if m != nil && m.CropBottomY != nil { return *m.CropBottomY } return Default_Transform_CropBottomY } func (m *Transform) GetAutolevels() bool { if m != nil && m.Autolevels != nil { return *m.Autolevels } return Default_Transform_Autolevels } func (m *Transform) GetAllowStretch() bool { if m != nil && m.AllowStretch != nil { return *m.AllowStretch } return Default_Transform_AllowStretch } type ImageData struct { Content []byte `protobuf:"bytes,1,req,name=content" json:"content,omitempty"` BlobKey *string `protobuf:"bytes,2,opt,name=blob_key,json=blobKey" json:"blob_key,omitempty"` Width *int32 `protobuf:"varint,3,opt,name=width" json:"width,omitempty"` Height *int32 `protobuf:"varint,4,opt,name=height" json:"height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImageData) Reset() { *m = ImageData{} } func (m *ImageData) String() string { return proto.CompactTextString(m) } func (*ImageData) ProtoMessage() {} func (*ImageData) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{3} } func (m *ImageData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImageData.Unmarshal(m, b) } func (m *ImageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImageData.Marshal(b, m, deterministic) } func (dst *ImageData) XXX_Merge(src proto.Message) { xxx_messageInfo_ImageData.Merge(dst, src) } func (m *ImageData) XXX_Size() int { return xxx_messageInfo_ImageData.Size(m) } func (m *ImageData) XXX_DiscardUnknown() { xxx_messageInfo_ImageData.DiscardUnknown(m) } var xxx_messageInfo_ImageData proto.InternalMessageInfo func (m *ImageData) GetContent() []byte { if m != nil { return m.Content } return nil } func (m *ImageData) GetBlobKey() string { if m != nil && m.BlobKey != nil { return *m.BlobKey } return "" } func (m *ImageData) GetWidth() int32 { if m != nil && m.Width != nil { return *m.Width } return 0 } func (m *ImageData) GetHeight() int32 { if m != nil && m.Height != nil { return *m.Height } return 0 } type InputSettings struct { CorrectExifOrientation *InputSettings_ORIENTATION_CORRECTION_TYPE `protobuf:"varint,1,opt,name=correct_exif_orientation,json=correctExifOrientation,enum=appengine.InputSettings_ORIENTATION_CORRECTION_TYPE,def=0" json:"correct_exif_orientation,omitempty"` ParseMetadata *bool `protobuf:"varint,2,opt,name=parse_metadata,json=parseMetadata,def=0" json:"parse_metadata,omitempty"` TransparentSubstitutionRgb *int32 `protobuf:"varint,3,opt,name=transparent_substitution_rgb,json=transparentSubstitutionRgb" json:"transparent_substitution_rgb,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *InputSettings) Reset() { *m = InputSettings{} } func (m *InputSettings) String() string { return proto.CompactTextString(m) } func (*InputSettings) ProtoMessage() {} func (*InputSettings) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{4} } func (m *InputSettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InputSettings.Unmarshal(m, b) } func (m *InputSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InputSettings.Marshal(b, m, deterministic) } func (dst *InputSettings) XXX_Merge(src proto.Message) { xxx_messageInfo_InputSettings.Merge(dst, src) } func (m *InputSettings) XXX_Size() int { return xxx_messageInfo_InputSettings.Size(m) } func (m *InputSettings) XXX_DiscardUnknown() { xxx_messageInfo_InputSettings.DiscardUnknown(m) } var xxx_messageInfo_InputSettings proto.InternalMessageInfo const Default_InputSettings_CorrectExifOrientation InputSettings_ORIENTATION_CORRECTION_TYPE = InputSettings_UNCHANGED_ORIENTATION const Default_InputSettings_ParseMetadata bool = false func (m *InputSettings) GetCorrectExifOrientation() InputSettings_ORIENTATION_CORRECTION_TYPE { if m != nil && m.CorrectExifOrientation != nil { return *m.CorrectExifOrientation } return Default_InputSettings_CorrectExifOrientation } func (m *InputSettings) GetParseMetadata() bool { if m != nil && m.ParseMetadata != nil { return *m.ParseMetadata } return Default_InputSettings_ParseMetadata } func (m *InputSettings) GetTransparentSubstitutionRgb() int32 { if m != nil && m.TransparentSubstitutionRgb != nil { return *m.TransparentSubstitutionRgb } return 0 } type OutputSettings struct { MimeType *OutputSettings_MIME_TYPE `protobuf:"varint,1,opt,name=mime_type,json=mimeType,enum=appengine.OutputSettings_MIME_TYPE,def=0" json:"mime_type,omitempty"` Quality *int32 `protobuf:"varint,2,opt,name=quality" json:"quality,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *OutputSettings) Reset() { *m = OutputSettings{} } func (m *OutputSettings) String() string { return proto.CompactTextString(m) } func (*OutputSettings) ProtoMessage() {} func (*OutputSettings) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{5} } func (m *OutputSettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_OutputSettings.Unmarshal(m, b) } func (m *OutputSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_OutputSettings.Marshal(b, m, deterministic) } func (dst *OutputSettings) XXX_Merge(src proto.Message) { xxx_messageInfo_OutputSettings.Merge(dst, src) } func (m *OutputSettings) XXX_Size() int { return xxx_messageInfo_OutputSettings.Size(m) } func (m *OutputSettings) XXX_DiscardUnknown() { xxx_messageInfo_OutputSettings.DiscardUnknown(m) } var xxx_messageInfo_OutputSettings proto.InternalMessageInfo const Default_OutputSettings_MimeType OutputSettings_MIME_TYPE = OutputSettings_PNG func (m *OutputSettings) GetMimeType() OutputSettings_MIME_TYPE { if m != nil && m.MimeType != nil { return *m.MimeType } return Default_OutputSettings_MimeType } func (m *OutputSettings) GetQuality() int32 { if m != nil && m.Quality != nil { return *m.Quality } return 0 } type ImagesTransformRequest struct { Image *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"` Transform []*Transform `protobuf:"bytes,2,rep,name=transform" json:"transform,omitempty"` Output *OutputSettings `protobuf:"bytes,3,req,name=output" json:"output,omitempty"` Input *InputSettings `protobuf:"bytes,4,opt,name=input" json:"input,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesTransformRequest) Reset() { *m = ImagesTransformRequest{} } func (m *ImagesTransformRequest) String() string { return proto.CompactTextString(m) } func (*ImagesTransformRequest) ProtoMessage() {} func (*ImagesTransformRequest) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{6} } func (m *ImagesTransformRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesTransformRequest.Unmarshal(m, b) } func (m *ImagesTransformRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesTransformRequest.Marshal(b, m, deterministic) } func (dst *ImagesTransformRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesTransformRequest.Merge(dst, src) } func (m *ImagesTransformRequest) XXX_Size() int { return xxx_messageInfo_ImagesTransformRequest.Size(m) } func (m *ImagesTransformRequest) XXX_DiscardUnknown() { xxx_messageInfo_ImagesTransformRequest.DiscardUnknown(m) } var xxx_messageInfo_ImagesTransformRequest proto.InternalMessageInfo func (m *ImagesTransformRequest) GetImage() *ImageData { if m != nil { return m.Image } return nil } func (m *ImagesTransformRequest) GetTransform() []*Transform { if m != nil { return m.Transform } return nil } func (m *ImagesTransformRequest) GetOutput() *OutputSettings { if m != nil { return m.Output } return nil } func (m *ImagesTransformRequest) GetInput() *InputSettings { if m != nil { return m.Input } return nil } type ImagesTransformResponse struct { Image *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"` SourceMetadata *string `protobuf:"bytes,2,opt,name=source_metadata,json=sourceMetadata" json:"source_metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesTransformResponse) Reset() { *m = ImagesTransformResponse{} } func (m *ImagesTransformResponse) String() string { return proto.CompactTextString(m) } func (*ImagesTransformResponse) ProtoMessage() {} func (*ImagesTransformResponse) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{7} } func (m *ImagesTransformResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesTransformResponse.Unmarshal(m, b) } func (m *ImagesTransformResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesTransformResponse.Marshal(b, m, deterministic) } func (dst *ImagesTransformResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesTransformResponse.Merge(dst, src) } func (m *ImagesTransformResponse) XXX_Size() int { return xxx_messageInfo_ImagesTransformResponse.Size(m) } func (m *ImagesTransformResponse) XXX_DiscardUnknown() { xxx_messageInfo_ImagesTransformResponse.DiscardUnknown(m) } var xxx_messageInfo_ImagesTransformResponse proto.InternalMessageInfo func (m *ImagesTransformResponse) GetImage() *ImageData { if m != nil { return m.Image } return nil } func (m *ImagesTransformResponse) GetSourceMetadata() string { if m != nil && m.SourceMetadata != nil { return *m.SourceMetadata } return "" } type CompositeImageOptions struct { SourceIndex *int32 `protobuf:"varint,1,req,name=source_index,json=sourceIndex" json:"source_index,omitempty"` XOffset *int32 `protobuf:"varint,2,req,name=x_offset,json=xOffset" json:"x_offset,omitempty"` YOffset *int32 `protobuf:"varint,3,req,name=y_offset,json=yOffset" json:"y_offset,omitempty"` Opacity *float32 `protobuf:"fixed32,4,req,name=opacity" json:"opacity,omitempty"` Anchor *CompositeImageOptions_ANCHOR `protobuf:"varint,5,req,name=anchor,enum=appengine.CompositeImageOptions_ANCHOR" json:"anchor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CompositeImageOptions) Reset() { *m = CompositeImageOptions{} } func (m *CompositeImageOptions) String() string { return proto.CompactTextString(m) } func (*CompositeImageOptions) ProtoMessage() {} func (*CompositeImageOptions) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{8} } func (m *CompositeImageOptions) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompositeImageOptions.Unmarshal(m, b) } func (m *CompositeImageOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompositeImageOptions.Marshal(b, m, deterministic) } func (dst *CompositeImageOptions) XXX_Merge(src proto.Message) { xxx_messageInfo_CompositeImageOptions.Merge(dst, src) } func (m *CompositeImageOptions) XXX_Size() int { return xxx_messageInfo_CompositeImageOptions.Size(m) } func (m *CompositeImageOptions) XXX_DiscardUnknown() { xxx_messageInfo_CompositeImageOptions.DiscardUnknown(m) } var xxx_messageInfo_CompositeImageOptions proto.InternalMessageInfo func (m *CompositeImageOptions) GetSourceIndex() int32 { if m != nil && m.SourceIndex != nil { return *m.SourceIndex } return 0 } func (m *CompositeImageOptions) GetXOffset() int32 { if m != nil && m.XOffset != nil { return *m.XOffset } return 0 } func (m *CompositeImageOptions) GetYOffset() int32 { if m != nil && m.YOffset != nil { return *m.YOffset } return 0 } func (m *CompositeImageOptions) GetOpacity() float32 { if m != nil && m.Opacity != nil { return *m.Opacity } return 0 } func (m *CompositeImageOptions) GetAnchor() CompositeImageOptions_ANCHOR { if m != nil && m.Anchor != nil { return *m.Anchor } return CompositeImageOptions_TOP_LEFT } type ImagesCanvas struct { Width *int32 `protobuf:"varint,1,req,name=width" json:"width,omitempty"` Height *int32 `protobuf:"varint,2,req,name=height" json:"height,omitempty"` Output *OutputSettings `protobuf:"bytes,3,req,name=output" json:"output,omitempty"` Color *int32 `protobuf:"varint,4,opt,name=color,def=-1" json:"color,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesCanvas) Reset() { *m = ImagesCanvas{} } func (m *ImagesCanvas) String() string { return proto.CompactTextString(m) } func (*ImagesCanvas) ProtoMessage() {} func (*ImagesCanvas) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{9} } func (m *ImagesCanvas) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesCanvas.Unmarshal(m, b) } func (m *ImagesCanvas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesCanvas.Marshal(b, m, deterministic) } func (dst *ImagesCanvas) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesCanvas.Merge(dst, src) } func (m *ImagesCanvas) XXX_Size() int { return xxx_messageInfo_ImagesCanvas.Size(m) } func (m *ImagesCanvas) XXX_DiscardUnknown() { xxx_messageInfo_ImagesCanvas.DiscardUnknown(m) } var xxx_messageInfo_ImagesCanvas proto.InternalMessageInfo const Default_ImagesCanvas_Color int32 = -1 func (m *ImagesCanvas) GetWidth() int32 { if m != nil && m.Width != nil { return *m.Width } return 0 } func (m *ImagesCanvas) GetHeight() int32 { if m != nil && m.Height != nil { return *m.Height } return 0 } func (m *ImagesCanvas) GetOutput() *OutputSettings { if m != nil { return m.Output } return nil } func (m *ImagesCanvas) GetColor() int32 { if m != nil && m.Color != nil { return *m.Color } return Default_ImagesCanvas_Color } type ImagesCompositeRequest struct { Image []*ImageData `protobuf:"bytes,1,rep,name=image" json:"image,omitempty"` Options []*CompositeImageOptions `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"` Canvas *ImagesCanvas `protobuf:"bytes,3,req,name=canvas" json:"canvas,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesCompositeRequest) Reset() { *m = ImagesCompositeRequest{} } func (m *ImagesCompositeRequest) String() string { return proto.CompactTextString(m) } func (*ImagesCompositeRequest) ProtoMessage() {} func (*ImagesCompositeRequest) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{10} } func (m *ImagesCompositeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesCompositeRequest.Unmarshal(m, b) } func (m *ImagesCompositeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesCompositeRequest.Marshal(b, m, deterministic) } func (dst *ImagesCompositeRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesCompositeRequest.Merge(dst, src) } func (m *ImagesCompositeRequest) XXX_Size() int { return xxx_messageInfo_ImagesCompositeRequest.Size(m) } func (m *ImagesCompositeRequest) XXX_DiscardUnknown() { xxx_messageInfo_ImagesCompositeRequest.DiscardUnknown(m) } var xxx_messageInfo_ImagesCompositeRequest proto.InternalMessageInfo func (m *ImagesCompositeRequest) GetImage() []*ImageData { if m != nil { return m.Image } return nil } func (m *ImagesCompositeRequest) GetOptions() []*CompositeImageOptions { if m != nil { return m.Options } return nil } func (m *ImagesCompositeRequest) GetCanvas() *ImagesCanvas { if m != nil { return m.Canvas } return nil } type ImagesCompositeResponse struct { Image *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesCompositeResponse) Reset() { *m = ImagesCompositeResponse{} } func (m *ImagesCompositeResponse) String() string { return proto.CompactTextString(m) } func (*ImagesCompositeResponse) ProtoMessage() {} func (*ImagesCompositeResponse) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{11} } func (m *ImagesCompositeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesCompositeResponse.Unmarshal(m, b) } func (m *ImagesCompositeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesCompositeResponse.Marshal(b, m, deterministic) } func (dst *ImagesCompositeResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesCompositeResponse.Merge(dst, src) } func (m *ImagesCompositeResponse) XXX_Size() int { return xxx_messageInfo_ImagesCompositeResponse.Size(m) } func (m *ImagesCompositeResponse) XXX_DiscardUnknown() { xxx_messageInfo_ImagesCompositeResponse.DiscardUnknown(m) } var xxx_messageInfo_ImagesCompositeResponse proto.InternalMessageInfo func (m *ImagesCompositeResponse) GetImage() *ImageData { if m != nil { return m.Image } return nil } type ImagesHistogramRequest struct { Image *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesHistogramRequest) Reset() { *m = ImagesHistogramRequest{} } func (m *ImagesHistogramRequest) String() string { return proto.CompactTextString(m) } func (*ImagesHistogramRequest) ProtoMessage() {} func (*ImagesHistogramRequest) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{12} } func (m *ImagesHistogramRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesHistogramRequest.Unmarshal(m, b) } func (m *ImagesHistogramRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesHistogramRequest.Marshal(b, m, deterministic) } func (dst *ImagesHistogramRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesHistogramRequest.Merge(dst, src) } func (m *ImagesHistogramRequest) XXX_Size() int { return xxx_messageInfo_ImagesHistogramRequest.Size(m) } func (m *ImagesHistogramRequest) XXX_DiscardUnknown() { xxx_messageInfo_ImagesHistogramRequest.DiscardUnknown(m) } var xxx_messageInfo_ImagesHistogramRequest proto.InternalMessageInfo func (m *ImagesHistogramRequest) GetImage() *ImageData { if m != nil { return m.Image } return nil } type ImagesHistogram struct { Red []int32 `protobuf:"varint,1,rep,name=red" json:"red,omitempty"` Green []int32 `protobuf:"varint,2,rep,name=green" json:"green,omitempty"` Blue []int32 `protobuf:"varint,3,rep,name=blue" json:"blue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesHistogram) Reset() { *m = ImagesHistogram{} } func (m *ImagesHistogram) String() string { return proto.CompactTextString(m) } func (*ImagesHistogram) ProtoMessage() {} func (*ImagesHistogram) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{13} } func (m *ImagesHistogram) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesHistogram.Unmarshal(m, b) } func (m *ImagesHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesHistogram.Marshal(b, m, deterministic) } func (dst *ImagesHistogram) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesHistogram.Merge(dst, src) } func (m *ImagesHistogram) XXX_Size() int { return xxx_messageInfo_ImagesHistogram.Size(m) } func (m *ImagesHistogram) XXX_DiscardUnknown() { xxx_messageInfo_ImagesHistogram.DiscardUnknown(m) } var xxx_messageInfo_ImagesHistogram proto.InternalMessageInfo func (m *ImagesHistogram) GetRed() []int32 { if m != nil { return m.Red } return nil } func (m *ImagesHistogram) GetGreen() []int32 { if m != nil { return m.Green } return nil } func (m *ImagesHistogram) GetBlue() []int32 { if m != nil { return m.Blue } return nil } type ImagesHistogramResponse struct { Histogram *ImagesHistogram `protobuf:"bytes,1,req,name=histogram" json:"histogram,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesHistogramResponse) Reset() { *m = ImagesHistogramResponse{} } func (m *ImagesHistogramResponse) String() string { return proto.CompactTextString(m) } func (*ImagesHistogramResponse) ProtoMessage() {} func (*ImagesHistogramResponse) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{14} } func (m *ImagesHistogramResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesHistogramResponse.Unmarshal(m, b) } func (m *ImagesHistogramResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesHistogramResponse.Marshal(b, m, deterministic) } func (dst *ImagesHistogramResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesHistogramResponse.Merge(dst, src) } func (m *ImagesHistogramResponse) XXX_Size() int { return xxx_messageInfo_ImagesHistogramResponse.Size(m) } func (m *ImagesHistogramResponse) XXX_DiscardUnknown() { xxx_messageInfo_ImagesHistogramResponse.DiscardUnknown(m) } var xxx_messageInfo_ImagesHistogramResponse proto.InternalMessageInfo func (m *ImagesHistogramResponse) GetHistogram() *ImagesHistogram { if m != nil { return m.Histogram } return nil } type ImagesGetUrlBaseRequest struct { BlobKey *string `protobuf:"bytes,1,req,name=blob_key,json=blobKey" json:"blob_key,omitempty"` CreateSecureUrl *bool `protobuf:"varint,2,opt,name=create_secure_url,json=createSecureUrl,def=0" json:"create_secure_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesGetUrlBaseRequest) Reset() { *m = ImagesGetUrlBaseRequest{} } func (m *ImagesGetUrlBaseRequest) String() string { return proto.CompactTextString(m) } func (*ImagesGetUrlBaseRequest) ProtoMessage() {} func (*ImagesGetUrlBaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{15} } func (m *ImagesGetUrlBaseRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesGetUrlBaseRequest.Unmarshal(m, b) } func (m *ImagesGetUrlBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesGetUrlBaseRequest.Marshal(b, m, deterministic) } func (dst *ImagesGetUrlBaseRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesGetUrlBaseRequest.Merge(dst, src) } func (m *ImagesGetUrlBaseRequest) XXX_Size() int { return xxx_messageInfo_ImagesGetUrlBaseRequest.Size(m) } func (m *ImagesGetUrlBaseRequest) XXX_DiscardUnknown() { xxx_messageInfo_ImagesGetUrlBaseRequest.DiscardUnknown(m) } var xxx_messageInfo_ImagesGetUrlBaseRequest proto.InternalMessageInfo const Default_ImagesGetUrlBaseRequest_CreateSecureUrl bool = false func (m *ImagesGetUrlBaseRequest) GetBlobKey() string { if m != nil && m.BlobKey != nil { return *m.BlobKey } return "" } func (m *ImagesGetUrlBaseRequest) GetCreateSecureUrl() bool { if m != nil && m.CreateSecureUrl != nil { return *m.CreateSecureUrl } return Default_ImagesGetUrlBaseRequest_CreateSecureUrl } type ImagesGetUrlBaseResponse struct { Url *string `protobuf:"bytes,1,req,name=url" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesGetUrlBaseResponse) Reset() { *m = ImagesGetUrlBaseResponse{} } func (m *ImagesGetUrlBaseResponse) String() string { return proto.CompactTextString(m) } func (*ImagesGetUrlBaseResponse) ProtoMessage() {} func (*ImagesGetUrlBaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{16} } func (m *ImagesGetUrlBaseResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesGetUrlBaseResponse.Unmarshal(m, b) } func (m *ImagesGetUrlBaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesGetUrlBaseResponse.Marshal(b, m, deterministic) } func (dst *ImagesGetUrlBaseResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesGetUrlBaseResponse.Merge(dst, src) } func (m *ImagesGetUrlBaseResponse) XXX_Size() int { return xxx_messageInfo_ImagesGetUrlBaseResponse.Size(m) } func (m *ImagesGetUrlBaseResponse) XXX_DiscardUnknown() { xxx_messageInfo_ImagesGetUrlBaseResponse.DiscardUnknown(m) } var xxx_messageInfo_ImagesGetUrlBaseResponse proto.InternalMessageInfo func (m *ImagesGetUrlBaseResponse) GetUrl() string { if m != nil && m.Url != nil { return *m.Url } return "" } type ImagesDeleteUrlBaseRequest struct { BlobKey *string `protobuf:"bytes,1,req,name=blob_key,json=blobKey" json:"blob_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesDeleteUrlBaseRequest) Reset() { *m = ImagesDeleteUrlBaseRequest{} } func (m *ImagesDeleteUrlBaseRequest) String() string { return proto.CompactTextString(m) } func (*ImagesDeleteUrlBaseRequest) ProtoMessage() {} func (*ImagesDeleteUrlBaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{17} } func (m *ImagesDeleteUrlBaseRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesDeleteUrlBaseRequest.Unmarshal(m, b) } func (m *ImagesDeleteUrlBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesDeleteUrlBaseRequest.Marshal(b, m, deterministic) } func (dst *ImagesDeleteUrlBaseRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesDeleteUrlBaseRequest.Merge(dst, src) } func (m *ImagesDeleteUrlBaseRequest) XXX_Size() int { return xxx_messageInfo_ImagesDeleteUrlBaseRequest.Size(m) } func (m *ImagesDeleteUrlBaseRequest) XXX_DiscardUnknown() { xxx_messageInfo_ImagesDeleteUrlBaseRequest.DiscardUnknown(m) } var xxx_messageInfo_ImagesDeleteUrlBaseRequest proto.InternalMessageInfo func (m *ImagesDeleteUrlBaseRequest) GetBlobKey() string { if m != nil && m.BlobKey != nil { return *m.BlobKey } return "" } type ImagesDeleteUrlBaseResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ImagesDeleteUrlBaseResponse) Reset() { *m = ImagesDeleteUrlBaseResponse{} } func (m *ImagesDeleteUrlBaseResponse) String() string { return proto.CompactTextString(m) } func (*ImagesDeleteUrlBaseResponse) ProtoMessage() {} func (*ImagesDeleteUrlBaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor_images_service_42a9d451721edce4, []int{18} } func (m *ImagesDeleteUrlBaseResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImagesDeleteUrlBaseResponse.Unmarshal(m, b) } func (m *ImagesDeleteUrlBaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ImagesDeleteUrlBaseResponse.Marshal(b, m, deterministic) } func (dst *ImagesDeleteUrlBaseResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ImagesDeleteUrlBaseResponse.Merge(dst, src) } func (m *ImagesDeleteUrlBaseResponse) XXX_Size() int { return xxx_messageInfo_ImagesDeleteUrlBaseResponse.Size(m) } func (m *ImagesDeleteUrlBaseResponse) XXX_DiscardUnknown() { xxx_messageInfo_ImagesDeleteUrlBaseResponse.DiscardUnknown(m) } var xxx_messageInfo_ImagesDeleteUrlBaseResponse proto.InternalMessageInfo func init() { proto.RegisterType((*ImagesServiceError)(nil), "appengine.ImagesServiceError") proto.RegisterType((*ImagesServiceTransform)(nil), "appengine.ImagesServiceTransform") proto.RegisterType((*Transform)(nil), "appengine.Transform") proto.RegisterType((*ImageData)(nil), "appengine.ImageData") proto.RegisterType((*InputSettings)(nil), "appengine.InputSettings") proto.RegisterType((*OutputSettings)(nil), "appengine.OutputSettings") proto.RegisterType((*ImagesTransformRequest)(nil), "appengine.ImagesTransformRequest") proto.RegisterType((*ImagesTransformResponse)(nil), "appengine.ImagesTransformResponse") proto.RegisterType((*CompositeImageOptions)(nil), "appengine.CompositeImageOptions") proto.RegisterType((*ImagesCanvas)(nil), "appengine.ImagesCanvas") proto.RegisterType((*ImagesCompositeRequest)(nil), "appengine.ImagesCompositeRequest") proto.RegisterType((*ImagesCompositeResponse)(nil), "appengine.ImagesCompositeResponse") proto.RegisterType((*ImagesHistogramRequest)(nil), "appengine.ImagesHistogramRequest") proto.RegisterType((*ImagesHistogram)(nil), "appengine.ImagesHistogram") proto.RegisterType((*ImagesHistogramResponse)(nil), "appengine.ImagesHistogramResponse") proto.RegisterType((*ImagesGetUrlBaseRequest)(nil), "appengine.ImagesGetUrlBaseRequest") proto.RegisterType((*ImagesGetUrlBaseResponse)(nil), "appengine.ImagesGetUrlBaseResponse") proto.RegisterType((*ImagesDeleteUrlBaseRequest)(nil), "appengine.ImagesDeleteUrlBaseRequest") proto.RegisterType((*ImagesDeleteUrlBaseResponse)(nil), "appengine.ImagesDeleteUrlBaseResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/image/images_service.proto", fileDescriptor_images_service_42a9d451721edce4) } var fileDescriptor_images_service_42a9d451721edce4 = []byte{ // 1460 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x6e, 0xe3, 0xc6, 0x15, 0x5e, 0x52, 0xff, 0xc7, 0xb2, 0xcc, 0x9d, 0xec, 0x0f, 0x77, 0x93, 0xa2, 0x0a, 0x83, 0xc5, 0x1a, 0x41, 0x2a, 0xaf, 0x8d, 0x16, 0x2d, 0x7c, 0x93, 0xea, 0x87, 0x92, 0x99, 0x95, 0x44, 0x75, 0x44, 0xa7, 0xeb, 0xbd, 0x19, 0xd0, 0xf2, 0x48, 0x26, 0x4a, 0x73, 0x98, 0xe1, 0xc8, 0xb1, 0x7a, 0x51, 0xf4, 0xa6, 0x17, 0x05, 0xfa, 0x06, 0x7d, 0x8a, 0xbe, 0x45, 0x81, 0xbe, 0x41, 0xfb, 0x32, 0xc5, 0x0c, 0x49, 0x99, 0xf6, 0x3a, 0x4d, 0xb3, 0x37, 0xc2, 0xcc, 0x39, 0xdf, 0xf9, 0x9d, 0x8f, 0xe7, 0x08, 0xbe, 0x5e, 0x31, 0xb6, 0x0a, 0x69, 0x67, 0xc5, 0x42, 0x3f, 0x5a, 0x75, 0x18, 0x5f, 0x1d, 0xf8, 0x71, 0x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0xd5, 0xcf, 0x95, 0xfa, 0x94, 0x87, 0xd6, 0x57, 0x60, 0x7e, 0x18, 0x28, 0x4b, 0xdf, 0x80, 0x92, 0x74, 0x90, 0x06, 0x91, 0x47, 0xeb, 0xd7, 0xf0, 0x32, 0x45, 0x0f, 0x68, 0x48, 0x05, 0xfd, 0xbf, 0x33, 0xb3, 0x7e, 0x06, 0x9f, 0x3e, 0x68, 0x98, 0x46, 0xea, 0xd5, 0xde, 0xa7, 0x6f, 0xf3, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x74, 0x30, 0x89, 0x1d, 0x0c, 0x00, 0x00, }
image
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/image/images_service.proto
syntax = "proto2"; option go_package = "image"; package appengine; message ImagesServiceError { enum ErrorCode { UNSPECIFIED_ERROR = 1; BAD_TRANSFORM_DATA = 2; NOT_IMAGE = 3; BAD_IMAGE_DATA = 4; IMAGE_TOO_LARGE = 5; INVALID_BLOB_KEY = 6; ACCESS_DENIED = 7; OBJECT_NOT_FOUND = 8; } } message ImagesServiceTransform { enum Type { RESIZE = 1; ROTATE = 2; HORIZONTAL_FLIP = 3; VERTICAL_FLIP = 4; CROP = 5; IM_FEELING_LUCKY = 6; } } message Transform { optional int32 width = 1; optional int32 height = 2; optional bool crop_to_fit = 11 [default = false]; optional float crop_offset_x = 12 [default = 0.5]; optional float crop_offset_y = 13 [default = 0.5]; optional int32 rotate = 3 [default = 0]; optional bool horizontal_flip = 4 [default = false]; optional bool vertical_flip = 5 [default = false]; optional float crop_left_x = 6 [default = 0.0]; optional float crop_top_y = 7 [default = 0.0]; optional float crop_right_x = 8 [default = 1.0]; optional float crop_bottom_y = 9 [default = 1.0]; optional bool autolevels = 10 [default = false]; optional bool allow_stretch = 14 [default = false]; } message ImageData { required bytes content = 1 [ctype=CORD]; optional string blob_key = 2; optional int32 width = 3; optional int32 height = 4; } message InputSettings { enum ORIENTATION_CORRECTION_TYPE { UNCHANGED_ORIENTATION = 0; CORRECT_ORIENTATION = 1; } optional ORIENTATION_CORRECTION_TYPE correct_exif_orientation = 1 [default=UNCHANGED_ORIENTATION]; optional bool parse_metadata = 2 [default=false]; optional int32 transparent_substitution_rgb = 3; } message OutputSettings { enum MIME_TYPE { PNG = 0; JPEG = 1; WEBP = 2; } optional MIME_TYPE mime_type = 1 [default=PNG]; optional int32 quality = 2; } message ImagesTransformRequest { required ImageData image = 1; repeated Transform transform = 2; required OutputSettings output = 3; optional InputSettings input = 4; } message ImagesTransformResponse { required ImageData image = 1; optional string source_metadata = 2; } message CompositeImageOptions { required int32 source_index = 1; required int32 x_offset = 2; required int32 y_offset = 3; required float opacity = 4; enum ANCHOR { TOP_LEFT = 0; TOP = 1; TOP_RIGHT = 2; LEFT = 3; CENTER = 4; RIGHT = 5; BOTTOM_LEFT = 6; BOTTOM = 7; BOTTOM_RIGHT = 8; } required ANCHOR anchor = 5; } message ImagesCanvas { required int32 width = 1; required int32 height = 2; required OutputSettings output = 3; optional int32 color = 4 [default=-1]; } message ImagesCompositeRequest { repeated ImageData image = 1; repeated CompositeImageOptions options = 2; required ImagesCanvas canvas = 3; } message ImagesCompositeResponse { required ImageData image = 1; } message ImagesHistogramRequest { required ImageData image = 1; } message ImagesHistogram { repeated int32 red = 1; repeated int32 green = 2; repeated int32 blue = 3; } message ImagesHistogramResponse { required ImagesHistogram histogram = 1; } message ImagesGetUrlBaseRequest { required string blob_key = 1; optional bool create_secure_url = 2 [default = false]; } message ImagesGetUrlBaseResponse { required string url = 1; } message ImagesDeleteUrlBaseRequest { required string blob_key = 1; } message ImagesDeleteUrlBaseResponse { }
search
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/search/search.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/search/search.proto package search import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type Scope_Type int32 const ( Scope_USER_BY_CANONICAL_ID Scope_Type = 1 Scope_USER_BY_EMAIL Scope_Type = 2 Scope_GROUP_BY_CANONICAL_ID Scope_Type = 3 Scope_GROUP_BY_EMAIL Scope_Type = 4 Scope_GROUP_BY_DOMAIN Scope_Type = 5 Scope_ALL_USERS Scope_Type = 6 Scope_ALL_AUTHENTICATED_USERS Scope_Type = 7 ) var Scope_Type_name = map[int32]string{ 1: "USER_BY_CANONICAL_ID", 2: "USER_BY_EMAIL", 3: "GROUP_BY_CANONICAL_ID", 4: "GROUP_BY_EMAIL", 5: "GROUP_BY_DOMAIN", 6: "ALL_USERS", 7: "ALL_AUTHENTICATED_USERS", } var Scope_Type_value = map[string]int32{ "USER_BY_CANONICAL_ID": 1, "USER_BY_EMAIL": 2, "GROUP_BY_CANONICAL_ID": 3, "GROUP_BY_EMAIL": 4, "GROUP_BY_DOMAIN": 5, "ALL_USERS": 6, "ALL_AUTHENTICATED_USERS": 7, } func (x Scope_Type) Enum() *Scope_Type { p := new(Scope_Type) *p = x return p } func (x Scope_Type) String() string { return proto.EnumName(Scope_Type_name, int32(x)) } func (x *Scope_Type) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Scope_Type_value, data, "Scope_Type") if err != nil { return err } *x = Scope_Type(value) return nil } func (Scope_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{0, 0} } type Entry_Permission int32 const ( Entry_READ Entry_Permission = 1 Entry_WRITE Entry_Permission = 2 Entry_FULL_CONTROL Entry_Permission = 3 ) var Entry_Permission_name = map[int32]string{ 1: "READ", 2: "WRITE", 3: "FULL_CONTROL", } var Entry_Permission_value = map[string]int32{ "READ": 1, "WRITE": 2, "FULL_CONTROL": 3, } func (x Entry_Permission) Enum() *Entry_Permission { p := new(Entry_Permission) *p = x return p } func (x Entry_Permission) String() string { return proto.EnumName(Entry_Permission_name, int32(x)) } func (x *Entry_Permission) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Entry_Permission_value, data, "Entry_Permission") if err != nil { return err } *x = Entry_Permission(value) return nil } func (Entry_Permission) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{1, 0} } type FieldValue_ContentType int32 const ( FieldValue_TEXT FieldValue_ContentType = 0 FieldValue_HTML FieldValue_ContentType = 1 FieldValue_ATOM FieldValue_ContentType = 2 FieldValue_DATE FieldValue_ContentType = 3 FieldValue_NUMBER FieldValue_ContentType = 4 FieldValue_GEO FieldValue_ContentType = 5 ) var FieldValue_ContentType_name = map[int32]string{ 0: "TEXT", 1: "HTML", 2: "ATOM", 3: "DATE", 4: "NUMBER", 5: "GEO", } var FieldValue_ContentType_value = map[string]int32{ "TEXT": 0, "HTML": 1, "ATOM": 2, "DATE": 3, "NUMBER": 4, "GEO": 5, } func (x FieldValue_ContentType) Enum() *FieldValue_ContentType { p := new(FieldValue_ContentType) *p = x return p } func (x FieldValue_ContentType) String() string { return proto.EnumName(FieldValue_ContentType_name, int32(x)) } func (x *FieldValue_ContentType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(FieldValue_ContentType_value, data, "FieldValue_ContentType") if err != nil { return err } *x = FieldValue_ContentType(value) return nil } func (FieldValue_ContentType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{3, 0} } type FacetValue_ContentType int32 const ( FacetValue_ATOM FacetValue_ContentType = 2 FacetValue_NUMBER FacetValue_ContentType = 4 ) var FacetValue_ContentType_name = map[int32]string{ 2: "ATOM", 4: "NUMBER", } var FacetValue_ContentType_value = map[string]int32{ "ATOM": 2, "NUMBER": 4, } func (x FacetValue_ContentType) Enum() *FacetValue_ContentType { p := new(FacetValue_ContentType) *p = x return p } func (x FacetValue_ContentType) String() string { return proto.EnumName(FacetValue_ContentType_name, int32(x)) } func (x *FacetValue_ContentType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(FacetValue_ContentType_value, data, "FacetValue_ContentType") if err != nil { return err } *x = FacetValue_ContentType(value) return nil } func (FacetValue_ContentType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{7, 0} } type Document_OrderIdSource int32 const ( Document_DEFAULTED Document_OrderIdSource = 0 Document_SUPPLIED Document_OrderIdSource = 1 ) var Document_OrderIdSource_name = map[int32]string{ 0: "DEFAULTED", 1: "SUPPLIED", } var Document_OrderIdSource_value = map[string]int32{ "DEFAULTED": 0, "SUPPLIED": 1, } func (x Document_OrderIdSource) Enum() *Document_OrderIdSource { p := new(Document_OrderIdSource) *p = x return p } func (x Document_OrderIdSource) String() string { return proto.EnumName(Document_OrderIdSource_name, int32(x)) } func (x *Document_OrderIdSource) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Document_OrderIdSource_value, data, "Document_OrderIdSource") if err != nil { return err } *x = Document_OrderIdSource(value) return nil } func (Document_OrderIdSource) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{10, 0} } type Document_Storage int32 const ( Document_DISK Document_Storage = 0 ) var Document_Storage_name = map[int32]string{ 0: "DISK", } var Document_Storage_value = map[string]int32{ "DISK": 0, } func (x Document_Storage) Enum() *Document_Storage { p := new(Document_Storage) *p = x return p } func (x Document_Storage) String() string { return proto.EnumName(Document_Storage_name, int32(x)) } func (x *Document_Storage) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Document_Storage_value, data, "Document_Storage") if err != nil { return err } *x = Document_Storage(value) return nil } func (Document_Storage) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{10, 1} } type SearchServiceError_ErrorCode int32 const ( SearchServiceError_OK SearchServiceError_ErrorCode = 0 SearchServiceError_INVALID_REQUEST SearchServiceError_ErrorCode = 1 SearchServiceError_TRANSIENT_ERROR SearchServiceError_ErrorCode = 2 SearchServiceError_INTERNAL_ERROR SearchServiceError_ErrorCode = 3 SearchServiceError_PERMISSION_DENIED SearchServiceError_ErrorCode = 4 SearchServiceError_TIMEOUT SearchServiceError_ErrorCode = 5 SearchServiceError_CONCURRENT_TRANSACTION SearchServiceError_ErrorCode = 6 ) var SearchServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INVALID_REQUEST", 2: "TRANSIENT_ERROR", 3: "INTERNAL_ERROR", 4: "PERMISSION_DENIED", 5: "TIMEOUT", 6: "CONCURRENT_TRANSACTION", } var SearchServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INVALID_REQUEST": 1, "TRANSIENT_ERROR": 2, "INTERNAL_ERROR": 3, "PERMISSION_DENIED": 4, "TIMEOUT": 5, "CONCURRENT_TRANSACTION": 6, } func (x SearchServiceError_ErrorCode) Enum() *SearchServiceError_ErrorCode { p := new(SearchServiceError_ErrorCode) *p = x return p } func (x SearchServiceError_ErrorCode) String() string { return proto.EnumName(SearchServiceError_ErrorCode_name, int32(x)) } func (x *SearchServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(SearchServiceError_ErrorCode_value, data, "SearchServiceError_ErrorCode") if err != nil { return err } *x = SearchServiceError_ErrorCode(value) return nil } func (SearchServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{11, 0} } type IndexSpec_Consistency int32 const ( IndexSpec_GLOBAL IndexSpec_Consistency = 0 IndexSpec_PER_DOCUMENT IndexSpec_Consistency = 1 ) var IndexSpec_Consistency_name = map[int32]string{ 0: "GLOBAL", 1: "PER_DOCUMENT", } var IndexSpec_Consistency_value = map[string]int32{ "GLOBAL": 0, "PER_DOCUMENT": 1, } func (x IndexSpec_Consistency) Enum() *IndexSpec_Consistency { p := new(IndexSpec_Consistency) *p = x return p } func (x IndexSpec_Consistency) String() string { return proto.EnumName(IndexSpec_Consistency_name, int32(x)) } func (x *IndexSpec_Consistency) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(IndexSpec_Consistency_value, data, "IndexSpec_Consistency") if err != nil { return err } *x = IndexSpec_Consistency(value) return nil } func (IndexSpec_Consistency) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{13, 0} } type IndexSpec_Source int32 const ( IndexSpec_SEARCH IndexSpec_Source = 0 IndexSpec_DATASTORE IndexSpec_Source = 1 IndexSpec_CLOUD_STORAGE IndexSpec_Source = 2 ) var IndexSpec_Source_name = map[int32]string{ 0: "SEARCH", 1: "DATASTORE", 2: "CLOUD_STORAGE", } var IndexSpec_Source_value = map[string]int32{ "SEARCH": 0, "DATASTORE": 1, "CLOUD_STORAGE": 2, } func (x IndexSpec_Source) Enum() *IndexSpec_Source { p := new(IndexSpec_Source) *p = x return p } func (x IndexSpec_Source) String() string { return proto.EnumName(IndexSpec_Source_name, int32(x)) } func (x *IndexSpec_Source) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(IndexSpec_Source_value, data, "IndexSpec_Source") if err != nil { return err } *x = IndexSpec_Source(value) return nil } func (IndexSpec_Source) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{13, 1} } type IndexSpec_Mode int32 const ( IndexSpec_PRIORITY IndexSpec_Mode = 0 IndexSpec_BACKGROUND IndexSpec_Mode = 1 ) var IndexSpec_Mode_name = map[int32]string{ 0: "PRIORITY", 1: "BACKGROUND", } var IndexSpec_Mode_value = map[string]int32{ "PRIORITY": 0, "BACKGROUND": 1, } func (x IndexSpec_Mode) Enum() *IndexSpec_Mode { p := new(IndexSpec_Mode) *p = x return p } func (x IndexSpec_Mode) String() string { return proto.EnumName(IndexSpec_Mode_name, int32(x)) } func (x *IndexSpec_Mode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(IndexSpec_Mode_value, data, "IndexSpec_Mode") if err != nil { return err } *x = IndexSpec_Mode(value) return nil } func (IndexSpec_Mode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{13, 2} } type IndexDocumentParams_Freshness int32 const ( IndexDocumentParams_SYNCHRONOUSLY IndexDocumentParams_Freshness = 0 IndexDocumentParams_WHEN_CONVENIENT IndexDocumentParams_Freshness = 1 ) var IndexDocumentParams_Freshness_name = map[int32]string{ 0: "SYNCHRONOUSLY", 1: "WHEN_CONVENIENT", } var IndexDocumentParams_Freshness_value = map[string]int32{ "SYNCHRONOUSLY": 0, "WHEN_CONVENIENT": 1, } func (x IndexDocumentParams_Freshness) Enum() *IndexDocumentParams_Freshness { p := new(IndexDocumentParams_Freshness) *p = x return p } func (x IndexDocumentParams_Freshness) String() string { return proto.EnumName(IndexDocumentParams_Freshness_name, int32(x)) } func (x *IndexDocumentParams_Freshness) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(IndexDocumentParams_Freshness_value, data, "IndexDocumentParams_Freshness") if err != nil { return err } *x = IndexDocumentParams_Freshness(value) return nil } func (IndexDocumentParams_Freshness) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{15, 0} } type ScorerSpec_Scorer int32 const ( ScorerSpec_RESCORING_MATCH_SCORER ScorerSpec_Scorer = 0 ScorerSpec_MATCH_SCORER ScorerSpec_Scorer = 2 ) var ScorerSpec_Scorer_name = map[int32]string{ 0: "RESCORING_MATCH_SCORER", 2: "MATCH_SCORER", } var ScorerSpec_Scorer_value = map[string]int32{ "RESCORING_MATCH_SCORER": 0, "MATCH_SCORER": 2, } func (x ScorerSpec_Scorer) Enum() *ScorerSpec_Scorer { p := new(ScorerSpec_Scorer) *p = x return p } func (x ScorerSpec_Scorer) String() string { return proto.EnumName(ScorerSpec_Scorer_name, int32(x)) } func (x *ScorerSpec_Scorer) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ScorerSpec_Scorer_value, data, "ScorerSpec_Scorer") if err != nil { return err } *x = ScorerSpec_Scorer(value) return nil } func (ScorerSpec_Scorer) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{31, 0} } type SearchParams_CursorType int32 const ( SearchParams_NONE SearchParams_CursorType = 0 SearchParams_SINGLE SearchParams_CursorType = 1 SearchParams_PER_RESULT SearchParams_CursorType = 2 ) var SearchParams_CursorType_name = map[int32]string{ 0: "NONE", 1: "SINGLE", 2: "PER_RESULT", } var SearchParams_CursorType_value = map[string]int32{ "NONE": 0, "SINGLE": 1, "PER_RESULT": 2, } func (x SearchParams_CursorType) Enum() *SearchParams_CursorType { p := new(SearchParams_CursorType) *p = x return p } func (x SearchParams_CursorType) String() string { return proto.EnumName(SearchParams_CursorType_name, int32(x)) } func (x *SearchParams_CursorType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(SearchParams_CursorType_value, data, "SearchParams_CursorType") if err != nil { return err } *x = SearchParams_CursorType(value) return nil } func (SearchParams_CursorType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{38, 0} } type SearchParams_ParsingMode int32 const ( SearchParams_STRICT SearchParams_ParsingMode = 0 SearchParams_RELAXED SearchParams_ParsingMode = 1 ) var SearchParams_ParsingMode_name = map[int32]string{ 0: "STRICT", 1: "RELAXED", } var SearchParams_ParsingMode_value = map[string]int32{ "STRICT": 0, "RELAXED": 1, } func (x SearchParams_ParsingMode) Enum() *SearchParams_ParsingMode { p := new(SearchParams_ParsingMode) *p = x return p } func (x SearchParams_ParsingMode) String() string { return proto.EnumName(SearchParams_ParsingMode_name, int32(x)) } func (x *SearchParams_ParsingMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(SearchParams_ParsingMode_value, data, "SearchParams_ParsingMode") if err != nil { return err } *x = SearchParams_ParsingMode(value) return nil } func (SearchParams_ParsingMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{38, 1} } type Scope struct { Type *Scope_Type `protobuf:"varint,1,opt,name=type,enum=search.Scope_Type" json:"type,omitempty"` Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Scope) Reset() { *m = Scope{} } func (m *Scope) String() string { return proto.CompactTextString(m) } func (*Scope) ProtoMessage() {} func (*Scope) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{0} } func (m *Scope) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Scope.Unmarshal(m, b) } func (m *Scope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Scope.Marshal(b, m, deterministic) } func (dst *Scope) XXX_Merge(src proto.Message) { xxx_messageInfo_Scope.Merge(dst, src) } func (m *Scope) XXX_Size() int { return xxx_messageInfo_Scope.Size(m) } func (m *Scope) XXX_DiscardUnknown() { xxx_messageInfo_Scope.DiscardUnknown(m) } var xxx_messageInfo_Scope proto.InternalMessageInfo func (m *Scope) GetType() Scope_Type { if m != nil && m.Type != nil { return *m.Type } return Scope_USER_BY_CANONICAL_ID } func (m *Scope) GetValue() string { if m != nil && m.Value != nil { return *m.Value } return "" } type Entry struct { Scope *Scope `protobuf:"bytes,1,opt,name=scope" json:"scope,omitempty"` Permission *Entry_Permission `protobuf:"varint,2,opt,name=permission,enum=search.Entry_Permission" json:"permission,omitempty"` DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Entry) Reset() { *m = Entry{} } func (m *Entry) String() string { return proto.CompactTextString(m) } func (*Entry) ProtoMessage() {} func (*Entry) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{1} } func (m *Entry) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Entry.Unmarshal(m, b) } func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Entry.Marshal(b, m, deterministic) } func (dst *Entry) XXX_Merge(src proto.Message) { xxx_messageInfo_Entry.Merge(dst, src) } func (m *Entry) XXX_Size() int { return xxx_messageInfo_Entry.Size(m) } func (m *Entry) XXX_DiscardUnknown() { xxx_messageInfo_Entry.DiscardUnknown(m) } var xxx_messageInfo_Entry proto.InternalMessageInfo func (m *Entry) GetScope() *Scope { if m != nil { return m.Scope } return nil } func (m *Entry) GetPermission() Entry_Permission { if m != nil && m.Permission != nil { return *m.Permission } return Entry_READ } func (m *Entry) GetDisplayName() string { if m != nil && m.DisplayName != nil { return *m.DisplayName } return "" } type AccessControlList struct { Owner *string `protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"` Entries []*Entry `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AccessControlList) Reset() { *m = AccessControlList{} } func (m *AccessControlList) String() string { return proto.CompactTextString(m) } func (*AccessControlList) ProtoMessage() {} func (*AccessControlList) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{2} } func (m *AccessControlList) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AccessControlList.Unmarshal(m, b) } func (m *AccessControlList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AccessControlList.Marshal(b, m, deterministic) } func (dst *AccessControlList) XXX_Merge(src proto.Message) { xxx_messageInfo_AccessControlList.Merge(dst, src) } func (m *AccessControlList) XXX_Size() int { return xxx_messageInfo_AccessControlList.Size(m) } func (m *AccessControlList) XXX_DiscardUnknown() { xxx_messageInfo_AccessControlList.DiscardUnknown(m) } var xxx_messageInfo_AccessControlList proto.InternalMessageInfo func (m *AccessControlList) GetOwner() string { if m != nil && m.Owner != nil { return *m.Owner } return "" } func (m *AccessControlList) GetEntries() []*Entry { if m != nil { return m.Entries } return nil } type FieldValue struct { Type *FieldValue_ContentType `protobuf:"varint,1,opt,name=type,enum=search.FieldValue_ContentType,def=0" json:"type,omitempty"` Language *string `protobuf:"bytes,2,opt,name=language,def=en" json:"language,omitempty"` StringValue *string `protobuf:"bytes,3,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` Geo *FieldValue_Geo `protobuf:"group,4,opt,name=Geo,json=geo" json:"geo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FieldValue) Reset() { *m = FieldValue{} } func (m *FieldValue) String() string { return proto.CompactTextString(m) } func (*FieldValue) ProtoMessage() {} func (*FieldValue) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{3} } func (m *FieldValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldValue.Unmarshal(m, b) } func (m *FieldValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FieldValue.Marshal(b, m, deterministic) } func (dst *FieldValue) XXX_Merge(src proto.Message) { xxx_messageInfo_FieldValue.Merge(dst, src) } func (m *FieldValue) XXX_Size() int { return xxx_messageInfo_FieldValue.Size(m) } func (m *FieldValue) XXX_DiscardUnknown() { xxx_messageInfo_FieldValue.DiscardUnknown(m) } var xxx_messageInfo_FieldValue proto.InternalMessageInfo const Default_FieldValue_Type FieldValue_ContentType = FieldValue_TEXT const Default_FieldValue_Language string = "en" func (m *FieldValue) GetType() FieldValue_ContentType { if m != nil && m.Type != nil { return *m.Type } return Default_FieldValue_Type } func (m *FieldValue) GetLanguage() string { if m != nil && m.Language != nil { return *m.Language } return Default_FieldValue_Language } func (m *FieldValue) GetStringValue() string { if m != nil && m.StringValue != nil { return *m.StringValue } return "" } func (m *FieldValue) GetGeo() *FieldValue_Geo { if m != nil { return m.Geo } return nil } type FieldValue_Geo struct { Lat *float64 `protobuf:"fixed64,5,req,name=lat" json:"lat,omitempty"` Lng *float64 `protobuf:"fixed64,6,req,name=lng" json:"lng,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FieldValue_Geo) Reset() { *m = FieldValue_Geo{} } func (m *FieldValue_Geo) String() string { return proto.CompactTextString(m) } func (*FieldValue_Geo) ProtoMessage() {} func (*FieldValue_Geo) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{3, 0} } func (m *FieldValue_Geo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldValue_Geo.Unmarshal(m, b) } func (m *FieldValue_Geo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FieldValue_Geo.Marshal(b, m, deterministic) } func (dst *FieldValue_Geo) XXX_Merge(src proto.Message) { xxx_messageInfo_FieldValue_Geo.Merge(dst, src) } func (m *FieldValue_Geo) XXX_Size() int { return xxx_messageInfo_FieldValue_Geo.Size(m) } func (m *FieldValue_Geo) XXX_DiscardUnknown() { xxx_messageInfo_FieldValue_Geo.DiscardUnknown(m) } var xxx_messageInfo_FieldValue_Geo proto.InternalMessageInfo func (m *FieldValue_Geo) GetLat() float64 { if m != nil && m.Lat != nil { return *m.Lat } return 0 } func (m *FieldValue_Geo) GetLng() float64 { if m != nil && m.Lng != nil { return *m.Lng } return 0 } type Field struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Value *FieldValue `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Field) Reset() { *m = Field{} } func (m *Field) String() string { return proto.CompactTextString(m) } func (*Field) ProtoMessage() {} func (*Field) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{4} } func (m *Field) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Field.Unmarshal(m, b) } func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Field.Marshal(b, m, deterministic) } func (dst *Field) XXX_Merge(src proto.Message) { xxx_messageInfo_Field.Merge(dst, src) } func (m *Field) XXX_Size() int { return xxx_messageInfo_Field.Size(m) } func (m *Field) XXX_DiscardUnknown() { xxx_messageInfo_Field.DiscardUnknown(m) } var xxx_messageInfo_Field proto.InternalMessageInfo func (m *Field) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *Field) GetValue() *FieldValue { if m != nil { return m.Value } return nil } type FieldTypes struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Type []FieldValue_ContentType `protobuf:"varint,2,rep,name=type,enum=search.FieldValue_ContentType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FieldTypes) Reset() { *m = FieldTypes{} } func (m *FieldTypes) String() string { return proto.CompactTextString(m) } func (*FieldTypes) ProtoMessage() {} func (*FieldTypes) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{5} } func (m *FieldTypes) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldTypes.Unmarshal(m, b) } func (m *FieldTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FieldTypes.Marshal(b, m, deterministic) } func (dst *FieldTypes) XXX_Merge(src proto.Message) { xxx_messageInfo_FieldTypes.Merge(dst, src) } func (m *FieldTypes) XXX_Size() int { return xxx_messageInfo_FieldTypes.Size(m) } func (m *FieldTypes) XXX_DiscardUnknown() { xxx_messageInfo_FieldTypes.DiscardUnknown(m) } var xxx_messageInfo_FieldTypes proto.InternalMessageInfo func (m *FieldTypes) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *FieldTypes) GetType() []FieldValue_ContentType { if m != nil { return m.Type } return nil } type IndexShardSettings struct { PrevNumShards []int32 `protobuf:"varint,1,rep,name=prev_num_shards,json=prevNumShards" json:"prev_num_shards,omitempty"` NumShards *int32 `protobuf:"varint,2,req,name=num_shards,json=numShards,def=1" json:"num_shards,omitempty"` PrevNumShardsSearchFalse []int32 `protobuf:"varint,3,rep,name=prev_num_shards_search_false,json=prevNumShardsSearchFalse" json:"prev_num_shards_search_false,omitempty"` LocalReplica *string `protobuf:"bytes,4,opt,name=local_replica,json=localReplica,def=" json:"local_replica,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexShardSettings) Reset() { *m = IndexShardSettings{} } func (m *IndexShardSettings) String() string { return proto.CompactTextString(m) } func (*IndexShardSettings) ProtoMessage() {} func (*IndexShardSettings) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{6} } func (m *IndexShardSettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexShardSettings.Unmarshal(m, b) } func (m *IndexShardSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexShardSettings.Marshal(b, m, deterministic) } func (dst *IndexShardSettings) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexShardSettings.Merge(dst, src) } func (m *IndexShardSettings) XXX_Size() int { return xxx_messageInfo_IndexShardSettings.Size(m) } func (m *IndexShardSettings) XXX_DiscardUnknown() { xxx_messageInfo_IndexShardSettings.DiscardUnknown(m) } var xxx_messageInfo_IndexShardSettings proto.InternalMessageInfo const Default_IndexShardSettings_NumShards int32 = 1 func (m *IndexShardSettings) GetPrevNumShards() []int32 { if m != nil { return m.PrevNumShards } return nil } func (m *IndexShardSettings) GetNumShards() int32 { if m != nil && m.NumShards != nil { return *m.NumShards } return Default_IndexShardSettings_NumShards } func (m *IndexShardSettings) GetPrevNumShardsSearchFalse() []int32 { if m != nil { return m.PrevNumShardsSearchFalse } return nil } func (m *IndexShardSettings) GetLocalReplica() string { if m != nil && m.LocalReplica != nil { return *m.LocalReplica } return "" } type FacetValue struct { Type *FacetValue_ContentType `protobuf:"varint,1,opt,name=type,enum=search.FacetValue_ContentType,def=2" json:"type,omitempty"` StringValue *string `protobuf:"bytes,3,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetValue) Reset() { *m = FacetValue{} } func (m *FacetValue) String() string { return proto.CompactTextString(m) } func (*FacetValue) ProtoMessage() {} func (*FacetValue) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{7} } func (m *FacetValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetValue.Unmarshal(m, b) } func (m *FacetValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetValue.Marshal(b, m, deterministic) } func (dst *FacetValue) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetValue.Merge(dst, src) } func (m *FacetValue) XXX_Size() int { return xxx_messageInfo_FacetValue.Size(m) } func (m *FacetValue) XXX_DiscardUnknown() { xxx_messageInfo_FacetValue.DiscardUnknown(m) } var xxx_messageInfo_FacetValue proto.InternalMessageInfo const Default_FacetValue_Type FacetValue_ContentType = FacetValue_ATOM func (m *FacetValue) GetType() FacetValue_ContentType { if m != nil && m.Type != nil { return *m.Type } return Default_FacetValue_Type } func (m *FacetValue) GetStringValue() string { if m != nil && m.StringValue != nil { return *m.StringValue } return "" } type Facet struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Value *FacetValue `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Facet) Reset() { *m = Facet{} } func (m *Facet) String() string { return proto.CompactTextString(m) } func (*Facet) ProtoMessage() {} func (*Facet) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{8} } func (m *Facet) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Facet.Unmarshal(m, b) } func (m *Facet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Facet.Marshal(b, m, deterministic) } func (dst *Facet) XXX_Merge(src proto.Message) { xxx_messageInfo_Facet.Merge(dst, src) } func (m *Facet) XXX_Size() int { return xxx_messageInfo_Facet.Size(m) } func (m *Facet) XXX_DiscardUnknown() { xxx_messageInfo_Facet.DiscardUnknown(m) } var xxx_messageInfo_Facet proto.InternalMessageInfo func (m *Facet) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *Facet) GetValue() *FacetValue { if m != nil { return m.Value } return nil } type DocumentMetadata struct { Version *int64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` CommittedStVersion *int64 `protobuf:"varint,2,opt,name=committed_st_version,json=committedStVersion" json:"committed_st_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DocumentMetadata) Reset() { *m = DocumentMetadata{} } func (m *DocumentMetadata) String() string { return proto.CompactTextString(m) } func (*DocumentMetadata) ProtoMessage() {} func (*DocumentMetadata) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{9} } func (m *DocumentMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DocumentMetadata.Unmarshal(m, b) } func (m *DocumentMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DocumentMetadata.Marshal(b, m, deterministic) } func (dst *DocumentMetadata) XXX_Merge(src proto.Message) { xxx_messageInfo_DocumentMetadata.Merge(dst, src) } func (m *DocumentMetadata) XXX_Size() int { return xxx_messageInfo_DocumentMetadata.Size(m) } func (m *DocumentMetadata) XXX_DiscardUnknown() { xxx_messageInfo_DocumentMetadata.DiscardUnknown(m) } var xxx_messageInfo_DocumentMetadata proto.InternalMessageInfo func (m *DocumentMetadata) GetVersion() int64 { if m != nil && m.Version != nil { return *m.Version } return 0 } func (m *DocumentMetadata) GetCommittedStVersion() int64 { if m != nil && m.CommittedStVersion != nil { return *m.CommittedStVersion } return 0 } type Document struct { Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Language *string `protobuf:"bytes,2,opt,name=language,def=en" json:"language,omitempty"` Field []*Field `protobuf:"bytes,3,rep,name=field" json:"field,omitempty"` OrderId *int32 `protobuf:"varint,4,opt,name=order_id,json=orderId" json:"order_id,omitempty"` OrderIdSource *Document_OrderIdSource `protobuf:"varint,6,opt,name=order_id_source,json=orderIdSource,enum=search.Document_OrderIdSource,def=1" json:"order_id_source,omitempty"` Storage *Document_Storage `protobuf:"varint,5,opt,name=storage,enum=search.Document_Storage,def=0" json:"storage,omitempty"` Facet []*Facet `protobuf:"bytes,8,rep,name=facet" json:"facet,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Document) Reset() { *m = Document{} } func (m *Document) String() string { return proto.CompactTextString(m) } func (*Document) ProtoMessage() {} func (*Document) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{10} } func (m *Document) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Document.Unmarshal(m, b) } func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Document.Marshal(b, m, deterministic) } func (dst *Document) XXX_Merge(src proto.Message) { xxx_messageInfo_Document.Merge(dst, src) } func (m *Document) XXX_Size() int { return xxx_messageInfo_Document.Size(m) } func (m *Document) XXX_DiscardUnknown() { xxx_messageInfo_Document.DiscardUnknown(m) } var xxx_messageInfo_Document proto.InternalMessageInfo const Default_Document_Language string = "en" const Default_Document_OrderIdSource Document_OrderIdSource = Document_SUPPLIED const Default_Document_Storage Document_Storage = Document_DISK func (m *Document) GetId() string { if m != nil && m.Id != nil { return *m.Id } return "" } func (m *Document) GetLanguage() string { if m != nil && m.Language != nil { return *m.Language } return Default_Document_Language } func (m *Document) GetField() []*Field { if m != nil { return m.Field } return nil } func (m *Document) GetOrderId() int32 { if m != nil && m.OrderId != nil { return *m.OrderId } return 0 } func (m *Document) GetOrderIdSource() Document_OrderIdSource { if m != nil && m.OrderIdSource != nil { return *m.OrderIdSource } return Default_Document_OrderIdSource } func (m *Document) GetStorage() Document_Storage { if m != nil && m.Storage != nil { return *m.Storage } return Default_Document_Storage } func (m *Document) GetFacet() []*Facet { if m != nil { return m.Facet } return nil } type SearchServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SearchServiceError) Reset() { *m = SearchServiceError{} } func (m *SearchServiceError) String() string { return proto.CompactTextString(m) } func (*SearchServiceError) ProtoMessage() {} func (*SearchServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{11} } func (m *SearchServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchServiceError.Unmarshal(m, b) } func (m *SearchServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchServiceError.Marshal(b, m, deterministic) } func (dst *SearchServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_SearchServiceError.Merge(dst, src) } func (m *SearchServiceError) XXX_Size() int { return xxx_messageInfo_SearchServiceError.Size(m) } func (m *SearchServiceError) XXX_DiscardUnknown() { xxx_messageInfo_SearchServiceError.DiscardUnknown(m) } var xxx_messageInfo_SearchServiceError proto.InternalMessageInfo type RequestStatus struct { Code *SearchServiceError_ErrorCode `protobuf:"varint,1,req,name=code,enum=search.SearchServiceError_ErrorCode" json:"code,omitempty"` ErrorDetail *string `protobuf:"bytes,2,opt,name=error_detail,json=errorDetail" json:"error_detail,omitempty"` CanonicalCode *int32 `protobuf:"varint,3,opt,name=canonical_code,json=canonicalCode" json:"canonical_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *RequestStatus) Reset() { *m = RequestStatus{} } func (m *RequestStatus) String() string { return proto.CompactTextString(m) } func (*RequestStatus) ProtoMessage() {} func (*RequestStatus) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{12} } func (m *RequestStatus) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RequestStatus.Unmarshal(m, b) } func (m *RequestStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RequestStatus.Marshal(b, m, deterministic) } func (dst *RequestStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_RequestStatus.Merge(dst, src) } func (m *RequestStatus) XXX_Size() int { return xxx_messageInfo_RequestStatus.Size(m) } func (m *RequestStatus) XXX_DiscardUnknown() { xxx_messageInfo_RequestStatus.DiscardUnknown(m) } var xxx_messageInfo_RequestStatus proto.InternalMessageInfo func (m *RequestStatus) GetCode() SearchServiceError_ErrorCode { if m != nil && m.Code != nil { return *m.Code } return SearchServiceError_OK } func (m *RequestStatus) GetErrorDetail() string { if m != nil && m.ErrorDetail != nil { return *m.ErrorDetail } return "" } func (m *RequestStatus) GetCanonicalCode() int32 { if m != nil && m.CanonicalCode != nil { return *m.CanonicalCode } return 0 } type IndexSpec struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Consistency *IndexSpec_Consistency `protobuf:"varint,2,opt,name=consistency,enum=search.IndexSpec_Consistency,def=1" json:"consistency,omitempty"` Namespace *string `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"` Version *int32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"` Source *IndexSpec_Source `protobuf:"varint,5,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"` Mode *IndexSpec_Mode `protobuf:"varint,6,opt,name=mode,enum=search.IndexSpec_Mode,def=0" json:"mode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexSpec) Reset() { *m = IndexSpec{} } func (m *IndexSpec) String() string { return proto.CompactTextString(m) } func (*IndexSpec) ProtoMessage() {} func (*IndexSpec) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{13} } func (m *IndexSpec) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexSpec.Unmarshal(m, b) } func (m *IndexSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexSpec.Marshal(b, m, deterministic) } func (dst *IndexSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexSpec.Merge(dst, src) } func (m *IndexSpec) XXX_Size() int { return xxx_messageInfo_IndexSpec.Size(m) } func (m *IndexSpec) XXX_DiscardUnknown() { xxx_messageInfo_IndexSpec.DiscardUnknown(m) } var xxx_messageInfo_IndexSpec proto.InternalMessageInfo const Default_IndexSpec_Consistency IndexSpec_Consistency = IndexSpec_PER_DOCUMENT const Default_IndexSpec_Source IndexSpec_Source = IndexSpec_SEARCH const Default_IndexSpec_Mode IndexSpec_Mode = IndexSpec_PRIORITY func (m *IndexSpec) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *IndexSpec) GetConsistency() IndexSpec_Consistency { if m != nil && m.Consistency != nil { return *m.Consistency } return Default_IndexSpec_Consistency } func (m *IndexSpec) GetNamespace() string { if m != nil && m.Namespace != nil { return *m.Namespace } return "" } func (m *IndexSpec) GetVersion() int32 { if m != nil && m.Version != nil { return *m.Version } return 0 } func (m *IndexSpec) GetSource() IndexSpec_Source { if m != nil && m.Source != nil { return *m.Source } return Default_IndexSpec_Source } func (m *IndexSpec) GetMode() IndexSpec_Mode { if m != nil && m.Mode != nil { return *m.Mode } return Default_IndexSpec_Mode } type IndexMetadata struct { IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` Field []*FieldTypes `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"` Storage *IndexMetadata_Storage `protobuf:"bytes,3,opt,name=storage" json:"storage,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexMetadata) Reset() { *m = IndexMetadata{} } func (m *IndexMetadata) String() string { return proto.CompactTextString(m) } func (*IndexMetadata) ProtoMessage() {} func (*IndexMetadata) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{14} } func (m *IndexMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexMetadata.Unmarshal(m, b) } func (m *IndexMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexMetadata.Marshal(b, m, deterministic) } func (dst *IndexMetadata) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexMetadata.Merge(dst, src) } func (m *IndexMetadata) XXX_Size() int { return xxx_messageInfo_IndexMetadata.Size(m) } func (m *IndexMetadata) XXX_DiscardUnknown() { xxx_messageInfo_IndexMetadata.DiscardUnknown(m) } var xxx_messageInfo_IndexMetadata proto.InternalMessageInfo func (m *IndexMetadata) GetIndexSpec() *IndexSpec { if m != nil { return m.IndexSpec } return nil } func (m *IndexMetadata) GetField() []*FieldTypes { if m != nil { return m.Field } return nil } func (m *IndexMetadata) GetStorage() *IndexMetadata_Storage { if m != nil { return m.Storage } return nil } type IndexMetadata_Storage struct { AmountUsed *int64 `protobuf:"varint,1,opt,name=amount_used,json=amountUsed" json:"amount_used,omitempty"` Limit *int64 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexMetadata_Storage) Reset() { *m = IndexMetadata_Storage{} } func (m *IndexMetadata_Storage) String() string { return proto.CompactTextString(m) } func (*IndexMetadata_Storage) ProtoMessage() {} func (*IndexMetadata_Storage) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{14, 0} } func (m *IndexMetadata_Storage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexMetadata_Storage.Unmarshal(m, b) } func (m *IndexMetadata_Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexMetadata_Storage.Marshal(b, m, deterministic) } func (dst *IndexMetadata_Storage) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexMetadata_Storage.Merge(dst, src) } func (m *IndexMetadata_Storage) XXX_Size() int { return xxx_messageInfo_IndexMetadata_Storage.Size(m) } func (m *IndexMetadata_Storage) XXX_DiscardUnknown() { xxx_messageInfo_IndexMetadata_Storage.DiscardUnknown(m) } var xxx_messageInfo_IndexMetadata_Storage proto.InternalMessageInfo func (m *IndexMetadata_Storage) GetAmountUsed() int64 { if m != nil && m.AmountUsed != nil { return *m.AmountUsed } return 0 } func (m *IndexMetadata_Storage) GetLimit() int64 { if m != nil && m.Limit != nil { return *m.Limit } return 0 } type IndexDocumentParams struct { Document []*Document `protobuf:"bytes,1,rep,name=document" json:"document,omitempty"` Freshness *IndexDocumentParams_Freshness `protobuf:"varint,2,opt,name=freshness,enum=search.IndexDocumentParams_Freshness,def=0" json:"freshness,omitempty"` // Deprecated: Do not use. IndexSpec *IndexSpec `protobuf:"bytes,3,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexDocumentParams) Reset() { *m = IndexDocumentParams{} } func (m *IndexDocumentParams) String() string { return proto.CompactTextString(m) } func (*IndexDocumentParams) ProtoMessage() {} func (*IndexDocumentParams) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{15} } func (m *IndexDocumentParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexDocumentParams.Unmarshal(m, b) } func (m *IndexDocumentParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexDocumentParams.Marshal(b, m, deterministic) } func (dst *IndexDocumentParams) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexDocumentParams.Merge(dst, src) } func (m *IndexDocumentParams) XXX_Size() int { return xxx_messageInfo_IndexDocumentParams.Size(m) } func (m *IndexDocumentParams) XXX_DiscardUnknown() { xxx_messageInfo_IndexDocumentParams.DiscardUnknown(m) } var xxx_messageInfo_IndexDocumentParams proto.InternalMessageInfo const Default_IndexDocumentParams_Freshness IndexDocumentParams_Freshness = IndexDocumentParams_SYNCHRONOUSLY func (m *IndexDocumentParams) GetDocument() []*Document { if m != nil { return m.Document } return nil } // Deprecated: Do not use. func (m *IndexDocumentParams) GetFreshness() IndexDocumentParams_Freshness { if m != nil && m.Freshness != nil { return *m.Freshness } return Default_IndexDocumentParams_Freshness } func (m *IndexDocumentParams) GetIndexSpec() *IndexSpec { if m != nil { return m.IndexSpec } return nil } type IndexDocumentRequest struct { Params *IndexDocumentParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexDocumentRequest) Reset() { *m = IndexDocumentRequest{} } func (m *IndexDocumentRequest) String() string { return proto.CompactTextString(m) } func (*IndexDocumentRequest) ProtoMessage() {} func (*IndexDocumentRequest) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{16} } func (m *IndexDocumentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexDocumentRequest.Unmarshal(m, b) } func (m *IndexDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexDocumentRequest.Marshal(b, m, deterministic) } func (dst *IndexDocumentRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexDocumentRequest.Merge(dst, src) } func (m *IndexDocumentRequest) XXX_Size() int { return xxx_messageInfo_IndexDocumentRequest.Size(m) } func (m *IndexDocumentRequest) XXX_DiscardUnknown() { xxx_messageInfo_IndexDocumentRequest.DiscardUnknown(m) } var xxx_messageInfo_IndexDocumentRequest proto.InternalMessageInfo func (m *IndexDocumentRequest) GetParams() *IndexDocumentParams { if m != nil { return m.Params } return nil } func (m *IndexDocumentRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } type IndexDocumentResponse struct { Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"` DocId []string `protobuf:"bytes,2,rep,name=doc_id,json=docId" json:"doc_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IndexDocumentResponse) Reset() { *m = IndexDocumentResponse{} } func (m *IndexDocumentResponse) String() string { return proto.CompactTextString(m) } func (*IndexDocumentResponse) ProtoMessage() {} func (*IndexDocumentResponse) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{17} } func (m *IndexDocumentResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IndexDocumentResponse.Unmarshal(m, b) } func (m *IndexDocumentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IndexDocumentResponse.Marshal(b, m, deterministic) } func (dst *IndexDocumentResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexDocumentResponse.Merge(dst, src) } func (m *IndexDocumentResponse) XXX_Size() int { return xxx_messageInfo_IndexDocumentResponse.Size(m) } func (m *IndexDocumentResponse) XXX_DiscardUnknown() { xxx_messageInfo_IndexDocumentResponse.DiscardUnknown(m) } var xxx_messageInfo_IndexDocumentResponse proto.InternalMessageInfo func (m *IndexDocumentResponse) GetStatus() []*RequestStatus { if m != nil { return m.Status } return nil } func (m *IndexDocumentResponse) GetDocId() []string { if m != nil { return m.DocId } return nil } type DeleteDocumentParams struct { DocId []string `protobuf:"bytes,1,rep,name=doc_id,json=docId" json:"doc_id,omitempty"` IndexSpec *IndexSpec `protobuf:"bytes,2,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteDocumentParams) Reset() { *m = DeleteDocumentParams{} } func (m *DeleteDocumentParams) String() string { return proto.CompactTextString(m) } func (*DeleteDocumentParams) ProtoMessage() {} func (*DeleteDocumentParams) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{18} } func (m *DeleteDocumentParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteDocumentParams.Unmarshal(m, b) } func (m *DeleteDocumentParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteDocumentParams.Marshal(b, m, deterministic) } func (dst *DeleteDocumentParams) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteDocumentParams.Merge(dst, src) } func (m *DeleteDocumentParams) XXX_Size() int { return xxx_messageInfo_DeleteDocumentParams.Size(m) } func (m *DeleteDocumentParams) XXX_DiscardUnknown() { xxx_messageInfo_DeleteDocumentParams.DiscardUnknown(m) } var xxx_messageInfo_DeleteDocumentParams proto.InternalMessageInfo func (m *DeleteDocumentParams) GetDocId() []string { if m != nil { return m.DocId } return nil } func (m *DeleteDocumentParams) GetIndexSpec() *IndexSpec { if m != nil { return m.IndexSpec } return nil } type DeleteDocumentRequest struct { Params *DeleteDocumentParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} } func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) } func (*DeleteDocumentRequest) ProtoMessage() {} func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{19} } func (m *DeleteDocumentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteDocumentRequest.Unmarshal(m, b) } func (m *DeleteDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteDocumentRequest.Marshal(b, m, deterministic) } func (dst *DeleteDocumentRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteDocumentRequest.Merge(dst, src) } func (m *DeleteDocumentRequest) XXX_Size() int { return xxx_messageInfo_DeleteDocumentRequest.Size(m) } func (m *DeleteDocumentRequest) XXX_DiscardUnknown() { xxx_messageInfo_DeleteDocumentRequest.DiscardUnknown(m) } var xxx_messageInfo_DeleteDocumentRequest proto.InternalMessageInfo func (m *DeleteDocumentRequest) GetParams() *DeleteDocumentParams { if m != nil { return m.Params } return nil } func (m *DeleteDocumentRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } type DeleteDocumentResponse struct { Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteDocumentResponse) Reset() { *m = DeleteDocumentResponse{} } func (m *DeleteDocumentResponse) String() string { return proto.CompactTextString(m) } func (*DeleteDocumentResponse) ProtoMessage() {} func (*DeleteDocumentResponse) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{20} } func (m *DeleteDocumentResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteDocumentResponse.Unmarshal(m, b) } func (m *DeleteDocumentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteDocumentResponse.Marshal(b, m, deterministic) } func (dst *DeleteDocumentResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteDocumentResponse.Merge(dst, src) } func (m *DeleteDocumentResponse) XXX_Size() int { return xxx_messageInfo_DeleteDocumentResponse.Size(m) } func (m *DeleteDocumentResponse) XXX_DiscardUnknown() { xxx_messageInfo_DeleteDocumentResponse.DiscardUnknown(m) } var xxx_messageInfo_DeleteDocumentResponse proto.InternalMessageInfo func (m *DeleteDocumentResponse) GetStatus() []*RequestStatus { if m != nil { return m.Status } return nil } type ListDocumentsParams struct { IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` StartDocId *string `protobuf:"bytes,2,opt,name=start_doc_id,json=startDocId" json:"start_doc_id,omitempty"` IncludeStartDoc *bool `protobuf:"varint,3,opt,name=include_start_doc,json=includeStartDoc,def=1" json:"include_start_doc,omitempty"` Limit *int32 `protobuf:"varint,4,opt,name=limit,def=100" json:"limit,omitempty"` KeysOnly *bool `protobuf:"varint,5,opt,name=keys_only,json=keysOnly" json:"keys_only,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListDocumentsParams) Reset() { *m = ListDocumentsParams{} } func (m *ListDocumentsParams) String() string { return proto.CompactTextString(m) } func (*ListDocumentsParams) ProtoMessage() {} func (*ListDocumentsParams) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{21} } func (m *ListDocumentsParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListDocumentsParams.Unmarshal(m, b) } func (m *ListDocumentsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListDocumentsParams.Marshal(b, m, deterministic) } func (dst *ListDocumentsParams) XXX_Merge(src proto.Message) { xxx_messageInfo_ListDocumentsParams.Merge(dst, src) } func (m *ListDocumentsParams) XXX_Size() int { return xxx_messageInfo_ListDocumentsParams.Size(m) } func (m *ListDocumentsParams) XXX_DiscardUnknown() { xxx_messageInfo_ListDocumentsParams.DiscardUnknown(m) } var xxx_messageInfo_ListDocumentsParams proto.InternalMessageInfo const Default_ListDocumentsParams_IncludeStartDoc bool = true const Default_ListDocumentsParams_Limit int32 = 100 func (m *ListDocumentsParams) GetIndexSpec() *IndexSpec { if m != nil { return m.IndexSpec } return nil } func (m *ListDocumentsParams) GetStartDocId() string { if m != nil && m.StartDocId != nil { return *m.StartDocId } return "" } func (m *ListDocumentsParams) GetIncludeStartDoc() bool { if m != nil && m.IncludeStartDoc != nil { return *m.IncludeStartDoc } return Default_ListDocumentsParams_IncludeStartDoc } func (m *ListDocumentsParams) GetLimit() int32 { if m != nil && m.Limit != nil { return *m.Limit } return Default_ListDocumentsParams_Limit } func (m *ListDocumentsParams) GetKeysOnly() bool { if m != nil && m.KeysOnly != nil { return *m.KeysOnly } return false } type ListDocumentsRequest struct { Params *ListDocumentsParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` AppId []byte `protobuf:"bytes,2,opt,name=app_id,json=appId" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListDocumentsRequest) Reset() { *m = ListDocumentsRequest{} } func (m *ListDocumentsRequest) String() string { return proto.CompactTextString(m) } func (*ListDocumentsRequest) ProtoMessage() {} func (*ListDocumentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{22} } func (m *ListDocumentsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListDocumentsRequest.Unmarshal(m, b) } func (m *ListDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListDocumentsRequest.Marshal(b, m, deterministic) } func (dst *ListDocumentsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ListDocumentsRequest.Merge(dst, src) } func (m *ListDocumentsRequest) XXX_Size() int { return xxx_messageInfo_ListDocumentsRequest.Size(m) } func (m *ListDocumentsRequest) XXX_DiscardUnknown() { xxx_messageInfo_ListDocumentsRequest.DiscardUnknown(m) } var xxx_messageInfo_ListDocumentsRequest proto.InternalMessageInfo func (m *ListDocumentsRequest) GetParams() *ListDocumentsParams { if m != nil { return m.Params } return nil } func (m *ListDocumentsRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } type ListDocumentsResponse struct { Status *RequestStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` Document []*Document `protobuf:"bytes,2,rep,name=document" json:"document,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListDocumentsResponse) Reset() { *m = ListDocumentsResponse{} } func (m *ListDocumentsResponse) String() string { return proto.CompactTextString(m) } func (*ListDocumentsResponse) ProtoMessage() {} func (*ListDocumentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{23} } func (m *ListDocumentsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListDocumentsResponse.Unmarshal(m, b) } func (m *ListDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListDocumentsResponse.Marshal(b, m, deterministic) } func (dst *ListDocumentsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ListDocumentsResponse.Merge(dst, src) } func (m *ListDocumentsResponse) XXX_Size() int { return xxx_messageInfo_ListDocumentsResponse.Size(m) } func (m *ListDocumentsResponse) XXX_DiscardUnknown() { xxx_messageInfo_ListDocumentsResponse.DiscardUnknown(m) } var xxx_messageInfo_ListDocumentsResponse proto.InternalMessageInfo func (m *ListDocumentsResponse) GetStatus() *RequestStatus { if m != nil { return m.Status } return nil } func (m *ListDocumentsResponse) GetDocument() []*Document { if m != nil { return m.Document } return nil } type ListIndexesParams struct { FetchSchema *bool `protobuf:"varint,1,opt,name=fetch_schema,json=fetchSchema" json:"fetch_schema,omitempty"` Limit *int32 `protobuf:"varint,2,opt,name=limit,def=20" json:"limit,omitempty"` Namespace *string `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"` StartIndexName *string `protobuf:"bytes,4,opt,name=start_index_name,json=startIndexName" json:"start_index_name,omitempty"` IncludeStartIndex *bool `protobuf:"varint,5,opt,name=include_start_index,json=includeStartIndex,def=1" json:"include_start_index,omitempty"` IndexNamePrefix *string `protobuf:"bytes,6,opt,name=index_name_prefix,json=indexNamePrefix" json:"index_name_prefix,omitempty"` Offset *int32 `protobuf:"varint,7,opt,name=offset" json:"offset,omitempty"` Source *IndexSpec_Source `protobuf:"varint,8,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListIndexesParams) Reset() { *m = ListIndexesParams{} } func (m *ListIndexesParams) String() string { return proto.CompactTextString(m) } func (*ListIndexesParams) ProtoMessage() {} func (*ListIndexesParams) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{24} } func (m *ListIndexesParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListIndexesParams.Unmarshal(m, b) } func (m *ListIndexesParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListIndexesParams.Marshal(b, m, deterministic) } func (dst *ListIndexesParams) XXX_Merge(src proto.Message) { xxx_messageInfo_ListIndexesParams.Merge(dst, src) } func (m *ListIndexesParams) XXX_Size() int { return xxx_messageInfo_ListIndexesParams.Size(m) } func (m *ListIndexesParams) XXX_DiscardUnknown() { xxx_messageInfo_ListIndexesParams.DiscardUnknown(m) } var xxx_messageInfo_ListIndexesParams proto.InternalMessageInfo const Default_ListIndexesParams_Limit int32 = 20 const Default_ListIndexesParams_IncludeStartIndex bool = true const Default_ListIndexesParams_Source IndexSpec_Source = IndexSpec_SEARCH func (m *ListIndexesParams) GetFetchSchema() bool { if m != nil && m.FetchSchema != nil { return *m.FetchSchema } return false } func (m *ListIndexesParams) GetLimit() int32 { if m != nil && m.Limit != nil { return *m.Limit } return Default_ListIndexesParams_Limit } func (m *ListIndexesParams) GetNamespace() string { if m != nil && m.Namespace != nil { return *m.Namespace } return "" } func (m *ListIndexesParams) GetStartIndexName() string { if m != nil && m.StartIndexName != nil { return *m.StartIndexName } return "" } func (m *ListIndexesParams) GetIncludeStartIndex() bool { if m != nil && m.IncludeStartIndex != nil { return *m.IncludeStartIndex } return Default_ListIndexesParams_IncludeStartIndex } func (m *ListIndexesParams) GetIndexNamePrefix() string { if m != nil && m.IndexNamePrefix != nil { return *m.IndexNamePrefix } return "" } func (m *ListIndexesParams) GetOffset() int32 { if m != nil && m.Offset != nil { return *m.Offset } return 0 } func (m *ListIndexesParams) GetSource() IndexSpec_Source { if m != nil && m.Source != nil { return *m.Source } return Default_ListIndexesParams_Source } type ListIndexesRequest struct { Params *ListIndexesParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListIndexesRequest) Reset() { *m = ListIndexesRequest{} } func (m *ListIndexesRequest) String() string { return proto.CompactTextString(m) } func (*ListIndexesRequest) ProtoMessage() {} func (*ListIndexesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{25} } func (m *ListIndexesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListIndexesRequest.Unmarshal(m, b) } func (m *ListIndexesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListIndexesRequest.Marshal(b, m, deterministic) } func (dst *ListIndexesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ListIndexesRequest.Merge(dst, src) } func (m *ListIndexesRequest) XXX_Size() int { return xxx_messageInfo_ListIndexesRequest.Size(m) } func (m *ListIndexesRequest) XXX_DiscardUnknown() { xxx_messageInfo_ListIndexesRequest.DiscardUnknown(m) } var xxx_messageInfo_ListIndexesRequest proto.InternalMessageInfo func (m *ListIndexesRequest) GetParams() *ListIndexesParams { if m != nil { return m.Params } return nil } func (m *ListIndexesRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } type ListIndexesResponse struct { Status *RequestStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` IndexMetadata []*IndexMetadata `protobuf:"bytes,2,rep,name=index_metadata,json=indexMetadata" json:"index_metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListIndexesResponse) Reset() { *m = ListIndexesResponse{} } func (m *ListIndexesResponse) String() string { return proto.CompactTextString(m) } func (*ListIndexesResponse) ProtoMessage() {} func (*ListIndexesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{26} } func (m *ListIndexesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListIndexesResponse.Unmarshal(m, b) } func (m *ListIndexesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListIndexesResponse.Marshal(b, m, deterministic) } func (dst *ListIndexesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ListIndexesResponse.Merge(dst, src) } func (m *ListIndexesResponse) XXX_Size() int { return xxx_messageInfo_ListIndexesResponse.Size(m) } func (m *ListIndexesResponse) XXX_DiscardUnknown() { xxx_messageInfo_ListIndexesResponse.DiscardUnknown(m) } var xxx_messageInfo_ListIndexesResponse proto.InternalMessageInfo func (m *ListIndexesResponse) GetStatus() *RequestStatus { if m != nil { return m.Status } return nil } func (m *ListIndexesResponse) GetIndexMetadata() []*IndexMetadata { if m != nil { return m.IndexMetadata } return nil } type DeleteSchemaParams struct { Source *IndexSpec_Source `protobuf:"varint,1,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"` IndexSpec []*IndexSpec `protobuf:"bytes,2,rep,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteSchemaParams) Reset() { *m = DeleteSchemaParams{} } func (m *DeleteSchemaParams) String() string { return proto.CompactTextString(m) } func (*DeleteSchemaParams) ProtoMessage() {} func (*DeleteSchemaParams) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{27} } func (m *DeleteSchemaParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteSchemaParams.Unmarshal(m, b) } func (m *DeleteSchemaParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteSchemaParams.Marshal(b, m, deterministic) } func (dst *DeleteSchemaParams) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteSchemaParams.Merge(dst, src) } func (m *DeleteSchemaParams) XXX_Size() int { return xxx_messageInfo_DeleteSchemaParams.Size(m) } func (m *DeleteSchemaParams) XXX_DiscardUnknown() { xxx_messageInfo_DeleteSchemaParams.DiscardUnknown(m) } var xxx_messageInfo_DeleteSchemaParams proto.InternalMessageInfo const Default_DeleteSchemaParams_Source IndexSpec_Source = IndexSpec_SEARCH func (m *DeleteSchemaParams) GetSource() IndexSpec_Source { if m != nil && m.Source != nil { return *m.Source } return Default_DeleteSchemaParams_Source } func (m *DeleteSchemaParams) GetIndexSpec() []*IndexSpec { if m != nil { return m.IndexSpec } return nil } type DeleteSchemaRequest struct { Params *DeleteSchemaParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteSchemaRequest) Reset() { *m = DeleteSchemaRequest{} } func (m *DeleteSchemaRequest) String() string { return proto.CompactTextString(m) } func (*DeleteSchemaRequest) ProtoMessage() {} func (*DeleteSchemaRequest) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{28} } func (m *DeleteSchemaRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteSchemaRequest.Unmarshal(m, b) } func (m *DeleteSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteSchemaRequest.Marshal(b, m, deterministic) } func (dst *DeleteSchemaRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteSchemaRequest.Merge(dst, src) } func (m *DeleteSchemaRequest) XXX_Size() int { return xxx_messageInfo_DeleteSchemaRequest.Size(m) } func (m *DeleteSchemaRequest) XXX_DiscardUnknown() { xxx_messageInfo_DeleteSchemaRequest.DiscardUnknown(m) } var xxx_messageInfo_DeleteSchemaRequest proto.InternalMessageInfo func (m *DeleteSchemaRequest) GetParams() *DeleteSchemaParams { if m != nil { return m.Params } return nil } func (m *DeleteSchemaRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } type DeleteSchemaResponse struct { Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeleteSchemaResponse) Reset() { *m = DeleteSchemaResponse{} } func (m *DeleteSchemaResponse) String() string { return proto.CompactTextString(m) } func (*DeleteSchemaResponse) ProtoMessage() {} func (*DeleteSchemaResponse) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{29} } func (m *DeleteSchemaResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteSchemaResponse.Unmarshal(m, b) } func (m *DeleteSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteSchemaResponse.Marshal(b, m, deterministic) } func (dst *DeleteSchemaResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteSchemaResponse.Merge(dst, src) } func (m *DeleteSchemaResponse) XXX_Size() int { return xxx_messageInfo_DeleteSchemaResponse.Size(m) } func (m *DeleteSchemaResponse) XXX_DiscardUnknown() { xxx_messageInfo_DeleteSchemaResponse.DiscardUnknown(m) } var xxx_messageInfo_DeleteSchemaResponse proto.InternalMessageInfo func (m *DeleteSchemaResponse) GetStatus() []*RequestStatus { if m != nil { return m.Status } return nil } type SortSpec struct { SortExpression *string `protobuf:"bytes,1,req,name=sort_expression,json=sortExpression" json:"sort_expression,omitempty"` SortDescending *bool `protobuf:"varint,2,opt,name=sort_descending,json=sortDescending,def=1" json:"sort_descending,omitempty"` DefaultValueText *string `protobuf:"bytes,4,opt,name=default_value_text,json=defaultValueText" json:"default_value_text,omitempty"` DefaultValueNumeric *float64 `protobuf:"fixed64,5,opt,name=default_value_numeric,json=defaultValueNumeric" json:"default_value_numeric,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SortSpec) Reset() { *m = SortSpec{} } func (m *SortSpec) String() string { return proto.CompactTextString(m) } func (*SortSpec) ProtoMessage() {} func (*SortSpec) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{30} } func (m *SortSpec) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SortSpec.Unmarshal(m, b) } func (m *SortSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SortSpec.Marshal(b, m, deterministic) } func (dst *SortSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_SortSpec.Merge(dst, src) } func (m *SortSpec) XXX_Size() int { return xxx_messageInfo_SortSpec.Size(m) } func (m *SortSpec) XXX_DiscardUnknown() { xxx_messageInfo_SortSpec.DiscardUnknown(m) } var xxx_messageInfo_SortSpec proto.InternalMessageInfo const Default_SortSpec_SortDescending bool = true func (m *SortSpec) GetSortExpression() string { if m != nil && m.SortExpression != nil { return *m.SortExpression } return "" } func (m *SortSpec) GetSortDescending() bool { if m != nil && m.SortDescending != nil { return *m.SortDescending } return Default_SortSpec_SortDescending } func (m *SortSpec) GetDefaultValueText() string { if m != nil && m.DefaultValueText != nil { return *m.DefaultValueText } return "" } func (m *SortSpec) GetDefaultValueNumeric() float64 { if m != nil && m.DefaultValueNumeric != nil { return *m.DefaultValueNumeric } return 0 } type ScorerSpec struct { Scorer *ScorerSpec_Scorer `protobuf:"varint,1,opt,name=scorer,enum=search.ScorerSpec_Scorer,def=2" json:"scorer,omitempty"` Limit *int32 `protobuf:"varint,2,opt,name=limit,def=1000" json:"limit,omitempty"` MatchScorerParameters *string `protobuf:"bytes,9,opt,name=match_scorer_parameters,json=matchScorerParameters" json:"match_scorer_parameters,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ScorerSpec) Reset() { *m = ScorerSpec{} } func (m *ScorerSpec) String() string { return proto.CompactTextString(m) } func (*ScorerSpec) ProtoMessage() {} func (*ScorerSpec) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{31} } func (m *ScorerSpec) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ScorerSpec.Unmarshal(m, b) } func (m *ScorerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ScorerSpec.Marshal(b, m, deterministic) } func (dst *ScorerSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_ScorerSpec.Merge(dst, src) } func (m *ScorerSpec) XXX_Size() int { return xxx_messageInfo_ScorerSpec.Size(m) } func (m *ScorerSpec) XXX_DiscardUnknown() { xxx_messageInfo_ScorerSpec.DiscardUnknown(m) } var xxx_messageInfo_ScorerSpec proto.InternalMessageInfo const Default_ScorerSpec_Scorer ScorerSpec_Scorer = ScorerSpec_MATCH_SCORER const Default_ScorerSpec_Limit int32 = 1000 func (m *ScorerSpec) GetScorer() ScorerSpec_Scorer { if m != nil && m.Scorer != nil { return *m.Scorer } return Default_ScorerSpec_Scorer } func (m *ScorerSpec) GetLimit() int32 { if m != nil && m.Limit != nil { return *m.Limit } return Default_ScorerSpec_Limit } func (m *ScorerSpec) GetMatchScorerParameters() string { if m != nil && m.MatchScorerParameters != nil { return *m.MatchScorerParameters } return "" } type FieldSpec struct { Name []string `protobuf:"bytes,1,rep,name=name" json:"name,omitempty"` Expression []*FieldSpec_Expression `protobuf:"group,2,rep,name=Expression,json=expression" json:"expression,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FieldSpec) Reset() { *m = FieldSpec{} } func (m *FieldSpec) String() string { return proto.CompactTextString(m) } func (*FieldSpec) ProtoMessage() {} func (*FieldSpec) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{32} } func (m *FieldSpec) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldSpec.Unmarshal(m, b) } func (m *FieldSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FieldSpec.Marshal(b, m, deterministic) } func (dst *FieldSpec) XXX_Merge(src proto.Message) { xxx_messageInfo_FieldSpec.Merge(dst, src) } func (m *FieldSpec) XXX_Size() int { return xxx_messageInfo_FieldSpec.Size(m) } func (m *FieldSpec) XXX_DiscardUnknown() { xxx_messageInfo_FieldSpec.DiscardUnknown(m) } var xxx_messageInfo_FieldSpec proto.InternalMessageInfo func (m *FieldSpec) GetName() []string { if m != nil { return m.Name } return nil } func (m *FieldSpec) GetExpression() []*FieldSpec_Expression { if m != nil { return m.Expression } return nil } type FieldSpec_Expression struct { Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"` Expression *string `protobuf:"bytes,4,req,name=expression" json:"expression,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FieldSpec_Expression) Reset() { *m = FieldSpec_Expression{} } func (m *FieldSpec_Expression) String() string { return proto.CompactTextString(m) } func (*FieldSpec_Expression) ProtoMessage() {} func (*FieldSpec_Expression) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{32, 0} } func (m *FieldSpec_Expression) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldSpec_Expression.Unmarshal(m, b) } func (m *FieldSpec_Expression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FieldSpec_Expression.Marshal(b, m, deterministic) } func (dst *FieldSpec_Expression) XXX_Merge(src proto.Message) { xxx_messageInfo_FieldSpec_Expression.Merge(dst, src) } func (m *FieldSpec_Expression) XXX_Size() int { return xxx_messageInfo_FieldSpec_Expression.Size(m) } func (m *FieldSpec_Expression) XXX_DiscardUnknown() { xxx_messageInfo_FieldSpec_Expression.DiscardUnknown(m) } var xxx_messageInfo_FieldSpec_Expression proto.InternalMessageInfo func (m *FieldSpec_Expression) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *FieldSpec_Expression) GetExpression() string { if m != nil && m.Expression != nil { return *m.Expression } return "" } type FacetRange struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Start *string `protobuf:"bytes,2,opt,name=start" json:"start,omitempty"` End *string `protobuf:"bytes,3,opt,name=end" json:"end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetRange) Reset() { *m = FacetRange{} } func (m *FacetRange) String() string { return proto.CompactTextString(m) } func (*FacetRange) ProtoMessage() {} func (*FacetRange) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{33} } func (m *FacetRange) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetRange.Unmarshal(m, b) } func (m *FacetRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetRange.Marshal(b, m, deterministic) } func (dst *FacetRange) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetRange.Merge(dst, src) } func (m *FacetRange) XXX_Size() int { return xxx_messageInfo_FacetRange.Size(m) } func (m *FacetRange) XXX_DiscardUnknown() { xxx_messageInfo_FacetRange.DiscardUnknown(m) } var xxx_messageInfo_FacetRange proto.InternalMessageInfo func (m *FacetRange) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *FacetRange) GetStart() string { if m != nil && m.Start != nil { return *m.Start } return "" } func (m *FacetRange) GetEnd() string { if m != nil && m.End != nil { return *m.End } return "" } type FacetRequestParam struct { ValueLimit *int32 `protobuf:"varint,1,opt,name=value_limit,json=valueLimit" json:"value_limit,omitempty"` Range []*FacetRange `protobuf:"bytes,2,rep,name=range" json:"range,omitempty"` ValueConstraint []string `protobuf:"bytes,3,rep,name=value_constraint,json=valueConstraint" json:"value_constraint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetRequestParam) Reset() { *m = FacetRequestParam{} } func (m *FacetRequestParam) String() string { return proto.CompactTextString(m) } func (*FacetRequestParam) ProtoMessage() {} func (*FacetRequestParam) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{34} } func (m *FacetRequestParam) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetRequestParam.Unmarshal(m, b) } func (m *FacetRequestParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetRequestParam.Marshal(b, m, deterministic) } func (dst *FacetRequestParam) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetRequestParam.Merge(dst, src) } func (m *FacetRequestParam) XXX_Size() int { return xxx_messageInfo_FacetRequestParam.Size(m) } func (m *FacetRequestParam) XXX_DiscardUnknown() { xxx_messageInfo_FacetRequestParam.DiscardUnknown(m) } var xxx_messageInfo_FacetRequestParam proto.InternalMessageInfo func (m *FacetRequestParam) GetValueLimit() int32 { if m != nil && m.ValueLimit != nil { return *m.ValueLimit } return 0 } func (m *FacetRequestParam) GetRange() []*FacetRange { if m != nil { return m.Range } return nil } func (m *FacetRequestParam) GetValueConstraint() []string { if m != nil { return m.ValueConstraint } return nil } type FacetAutoDetectParam struct { ValueLimit *int32 `protobuf:"varint,1,opt,name=value_limit,json=valueLimit,def=10" json:"value_limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetAutoDetectParam) Reset() { *m = FacetAutoDetectParam{} } func (m *FacetAutoDetectParam) String() string { return proto.CompactTextString(m) } func (*FacetAutoDetectParam) ProtoMessage() {} func (*FacetAutoDetectParam) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{35} } func (m *FacetAutoDetectParam) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetAutoDetectParam.Unmarshal(m, b) } func (m *FacetAutoDetectParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetAutoDetectParam.Marshal(b, m, deterministic) } func (dst *FacetAutoDetectParam) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetAutoDetectParam.Merge(dst, src) } func (m *FacetAutoDetectParam) XXX_Size() int { return xxx_messageInfo_FacetAutoDetectParam.Size(m) } func (m *FacetAutoDetectParam) XXX_DiscardUnknown() { xxx_messageInfo_FacetAutoDetectParam.DiscardUnknown(m) } var xxx_messageInfo_FacetAutoDetectParam proto.InternalMessageInfo const Default_FacetAutoDetectParam_ValueLimit int32 = 10 func (m *FacetAutoDetectParam) GetValueLimit() int32 { if m != nil && m.ValueLimit != nil { return *m.ValueLimit } return Default_FacetAutoDetectParam_ValueLimit } type FacetRequest struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Params *FacetRequestParam `protobuf:"bytes,2,opt,name=params" json:"params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetRequest) Reset() { *m = FacetRequest{} } func (m *FacetRequest) String() string { return proto.CompactTextString(m) } func (*FacetRequest) ProtoMessage() {} func (*FacetRequest) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{36} } func (m *FacetRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetRequest.Unmarshal(m, b) } func (m *FacetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetRequest.Marshal(b, m, deterministic) } func (dst *FacetRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetRequest.Merge(dst, src) } func (m *FacetRequest) XXX_Size() int { return xxx_messageInfo_FacetRequest.Size(m) } func (m *FacetRequest) XXX_DiscardUnknown() { xxx_messageInfo_FacetRequest.DiscardUnknown(m) } var xxx_messageInfo_FacetRequest proto.InternalMessageInfo func (m *FacetRequest) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *FacetRequest) GetParams() *FacetRequestParam { if m != nil { return m.Params } return nil } type FacetRefinement struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` Range *FacetRefinement_Range `protobuf:"bytes,3,opt,name=range" json:"range,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetRefinement) Reset() { *m = FacetRefinement{} } func (m *FacetRefinement) String() string { return proto.CompactTextString(m) } func (*FacetRefinement) ProtoMessage() {} func (*FacetRefinement) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{37} } func (m *FacetRefinement) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetRefinement.Unmarshal(m, b) } func (m *FacetRefinement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetRefinement.Marshal(b, m, deterministic) } func (dst *FacetRefinement) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetRefinement.Merge(dst, src) } func (m *FacetRefinement) XXX_Size() int { return xxx_messageInfo_FacetRefinement.Size(m) } func (m *FacetRefinement) XXX_DiscardUnknown() { xxx_messageInfo_FacetRefinement.DiscardUnknown(m) } var xxx_messageInfo_FacetRefinement proto.InternalMessageInfo func (m *FacetRefinement) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *FacetRefinement) GetValue() string { if m != nil && m.Value != nil { return *m.Value } return "" } func (m *FacetRefinement) GetRange() *FacetRefinement_Range { if m != nil { return m.Range } return nil } type FacetRefinement_Range struct { Start *string `protobuf:"bytes,1,opt,name=start" json:"start,omitempty"` End *string `protobuf:"bytes,2,opt,name=end" json:"end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetRefinement_Range) Reset() { *m = FacetRefinement_Range{} } func (m *FacetRefinement_Range) String() string { return proto.CompactTextString(m) } func (*FacetRefinement_Range) ProtoMessage() {} func (*FacetRefinement_Range) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{37, 0} } func (m *FacetRefinement_Range) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetRefinement_Range.Unmarshal(m, b) } func (m *FacetRefinement_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetRefinement_Range.Marshal(b, m, deterministic) } func (dst *FacetRefinement_Range) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetRefinement_Range.Merge(dst, src) } func (m *FacetRefinement_Range) XXX_Size() int { return xxx_messageInfo_FacetRefinement_Range.Size(m) } func (m *FacetRefinement_Range) XXX_DiscardUnknown() { xxx_messageInfo_FacetRefinement_Range.DiscardUnknown(m) } var xxx_messageInfo_FacetRefinement_Range proto.InternalMessageInfo func (m *FacetRefinement_Range) GetStart() string { if m != nil && m.Start != nil { return *m.Start } return "" } func (m *FacetRefinement_Range) GetEnd() string { if m != nil && m.End != nil { return *m.End } return "" } type SearchParams struct { IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` Query *string `protobuf:"bytes,2,req,name=query" json:"query,omitempty"` Cursor *string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"` Offset *int32 `protobuf:"varint,11,opt,name=offset" json:"offset,omitempty"` CursorType *SearchParams_CursorType `protobuf:"varint,5,opt,name=cursor_type,json=cursorType,enum=search.SearchParams_CursorType,def=0" json:"cursor_type,omitempty"` Limit *int32 `protobuf:"varint,6,opt,name=limit,def=20" json:"limit,omitempty"` MatchedCountAccuracy *int32 `protobuf:"varint,7,opt,name=matched_count_accuracy,json=matchedCountAccuracy" json:"matched_count_accuracy,omitempty"` SortSpec []*SortSpec `protobuf:"bytes,8,rep,name=sort_spec,json=sortSpec" json:"sort_spec,omitempty"` ScorerSpec *ScorerSpec `protobuf:"bytes,9,opt,name=scorer_spec,json=scorerSpec" json:"scorer_spec,omitempty"` FieldSpec *FieldSpec `protobuf:"bytes,10,opt,name=field_spec,json=fieldSpec" json:"field_spec,omitempty"` KeysOnly *bool `protobuf:"varint,12,opt,name=keys_only,json=keysOnly" json:"keys_only,omitempty"` ParsingMode *SearchParams_ParsingMode `protobuf:"varint,13,opt,name=parsing_mode,json=parsingMode,enum=search.SearchParams_ParsingMode,def=0" json:"parsing_mode,omitempty"` AutoDiscoverFacetCount *int32 `protobuf:"varint,15,opt,name=auto_discover_facet_count,json=autoDiscoverFacetCount,def=0" json:"auto_discover_facet_count,omitempty"` IncludeFacet []*FacetRequest `protobuf:"bytes,16,rep,name=include_facet,json=includeFacet" json:"include_facet,omitempty"` FacetRefinement []*FacetRefinement `protobuf:"bytes,17,rep,name=facet_refinement,json=facetRefinement" json:"facet_refinement,omitempty"` FacetAutoDetectParam *FacetAutoDetectParam `protobuf:"bytes,18,opt,name=facet_auto_detect_param,json=facetAutoDetectParam" json:"facet_auto_detect_param,omitempty"` FacetDepth *int32 `protobuf:"varint,19,opt,name=facet_depth,json=facetDepth,def=1000" json:"facet_depth,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SearchParams) Reset() { *m = SearchParams{} } func (m *SearchParams) String() string { return proto.CompactTextString(m) } func (*SearchParams) ProtoMessage() {} func (*SearchParams) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{38} } func (m *SearchParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchParams.Unmarshal(m, b) } func (m *SearchParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchParams.Marshal(b, m, deterministic) } func (dst *SearchParams) XXX_Merge(src proto.Message) { xxx_messageInfo_SearchParams.Merge(dst, src) } func (m *SearchParams) XXX_Size() int { return xxx_messageInfo_SearchParams.Size(m) } func (m *SearchParams) XXX_DiscardUnknown() { xxx_messageInfo_SearchParams.DiscardUnknown(m) } var xxx_messageInfo_SearchParams proto.InternalMessageInfo const Default_SearchParams_CursorType SearchParams_CursorType = SearchParams_NONE const Default_SearchParams_Limit int32 = 20 const Default_SearchParams_ParsingMode SearchParams_ParsingMode = SearchParams_STRICT const Default_SearchParams_AutoDiscoverFacetCount int32 = 0 const Default_SearchParams_FacetDepth int32 = 1000 func (m *SearchParams) GetIndexSpec() *IndexSpec { if m != nil { return m.IndexSpec } return nil } func (m *SearchParams) GetQuery() string { if m != nil && m.Query != nil { return *m.Query } return "" } func (m *SearchParams) GetCursor() string { if m != nil && m.Cursor != nil { return *m.Cursor } return "" } func (m *SearchParams) GetOffset() int32 { if m != nil && m.Offset != nil { return *m.Offset } return 0 } func (m *SearchParams) GetCursorType() SearchParams_CursorType { if m != nil && m.CursorType != nil { return *m.CursorType } return Default_SearchParams_CursorType } func (m *SearchParams) GetLimit() int32 { if m != nil && m.Limit != nil { return *m.Limit } return Default_SearchParams_Limit } func (m *SearchParams) GetMatchedCountAccuracy() int32 { if m != nil && m.MatchedCountAccuracy != nil { return *m.MatchedCountAccuracy } return 0 } func (m *SearchParams) GetSortSpec() []*SortSpec { if m != nil { return m.SortSpec } return nil } func (m *SearchParams) GetScorerSpec() *ScorerSpec { if m != nil { return m.ScorerSpec } return nil } func (m *SearchParams) GetFieldSpec() *FieldSpec { if m != nil { return m.FieldSpec } return nil } func (m *SearchParams) GetKeysOnly() bool { if m != nil && m.KeysOnly != nil { return *m.KeysOnly } return false } func (m *SearchParams) GetParsingMode() SearchParams_ParsingMode { if m != nil && m.ParsingMode != nil { return *m.ParsingMode } return Default_SearchParams_ParsingMode } func (m *SearchParams) GetAutoDiscoverFacetCount() int32 { if m != nil && m.AutoDiscoverFacetCount != nil { return *m.AutoDiscoverFacetCount } return Default_SearchParams_AutoDiscoverFacetCount } func (m *SearchParams) GetIncludeFacet() []*FacetRequest { if m != nil { return m.IncludeFacet } return nil } func (m *SearchParams) GetFacetRefinement() []*FacetRefinement { if m != nil { return m.FacetRefinement } return nil } func (m *SearchParams) GetFacetAutoDetectParam() *FacetAutoDetectParam { if m != nil { return m.FacetAutoDetectParam } return nil } func (m *SearchParams) GetFacetDepth() int32 { if m != nil && m.FacetDepth != nil { return *m.FacetDepth } return Default_SearchParams_FacetDepth } type SearchRequest struct { Params *SearchParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SearchRequest) Reset() { *m = SearchRequest{} } func (m *SearchRequest) String() string { return proto.CompactTextString(m) } func (*SearchRequest) ProtoMessage() {} func (*SearchRequest) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{39} } func (m *SearchRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchRequest.Unmarshal(m, b) } func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchRequest.Marshal(b, m, deterministic) } func (dst *SearchRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SearchRequest.Merge(dst, src) } func (m *SearchRequest) XXX_Size() int { return xxx_messageInfo_SearchRequest.Size(m) } func (m *SearchRequest) XXX_DiscardUnknown() { xxx_messageInfo_SearchRequest.DiscardUnknown(m) } var xxx_messageInfo_SearchRequest proto.InternalMessageInfo func (m *SearchRequest) GetParams() *SearchParams { if m != nil { return m.Params } return nil } func (m *SearchRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } type FacetResultValue struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Count *int32 `protobuf:"varint,2,req,name=count" json:"count,omitempty"` Refinement *FacetRefinement `protobuf:"bytes,3,req,name=refinement" json:"refinement,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetResultValue) Reset() { *m = FacetResultValue{} } func (m *FacetResultValue) String() string { return proto.CompactTextString(m) } func (*FacetResultValue) ProtoMessage() {} func (*FacetResultValue) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{40} } func (m *FacetResultValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetResultValue.Unmarshal(m, b) } func (m *FacetResultValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetResultValue.Marshal(b, m, deterministic) } func (dst *FacetResultValue) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetResultValue.Merge(dst, src) } func (m *FacetResultValue) XXX_Size() int { return xxx_messageInfo_FacetResultValue.Size(m) } func (m *FacetResultValue) XXX_DiscardUnknown() { xxx_messageInfo_FacetResultValue.DiscardUnknown(m) } var xxx_messageInfo_FacetResultValue proto.InternalMessageInfo func (m *FacetResultValue) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *FacetResultValue) GetCount() int32 { if m != nil && m.Count != nil { return *m.Count } return 0 } func (m *FacetResultValue) GetRefinement() *FacetRefinement { if m != nil { return m.Refinement } return nil } type FacetResult struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Value []*FacetResultValue `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FacetResult) Reset() { *m = FacetResult{} } func (m *FacetResult) String() string { return proto.CompactTextString(m) } func (*FacetResult) ProtoMessage() {} func (*FacetResult) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{41} } func (m *FacetResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FacetResult.Unmarshal(m, b) } func (m *FacetResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FacetResult.Marshal(b, m, deterministic) } func (dst *FacetResult) XXX_Merge(src proto.Message) { xxx_messageInfo_FacetResult.Merge(dst, src) } func (m *FacetResult) XXX_Size() int { return xxx_messageInfo_FacetResult.Size(m) } func (m *FacetResult) XXX_DiscardUnknown() { xxx_messageInfo_FacetResult.DiscardUnknown(m) } var xxx_messageInfo_FacetResult proto.InternalMessageInfo func (m *FacetResult) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *FacetResult) GetValue() []*FacetResultValue { if m != nil { return m.Value } return nil } type SearchResult struct { Document *Document `protobuf:"bytes,1,req,name=document" json:"document,omitempty"` Expression []*Field `protobuf:"bytes,4,rep,name=expression" json:"expression,omitempty"` Score []float64 `protobuf:"fixed64,2,rep,name=score" json:"score,omitempty"` Cursor *string `protobuf:"bytes,3,opt,name=cursor" json:"cursor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SearchResult) Reset() { *m = SearchResult{} } func (m *SearchResult) String() string { return proto.CompactTextString(m) } func (*SearchResult) ProtoMessage() {} func (*SearchResult) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{42} } func (m *SearchResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchResult.Unmarshal(m, b) } func (m *SearchResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchResult.Marshal(b, m, deterministic) } func (dst *SearchResult) XXX_Merge(src proto.Message) { xxx_messageInfo_SearchResult.Merge(dst, src) } func (m *SearchResult) XXX_Size() int { return xxx_messageInfo_SearchResult.Size(m) } func (m *SearchResult) XXX_DiscardUnknown() { xxx_messageInfo_SearchResult.DiscardUnknown(m) } var xxx_messageInfo_SearchResult proto.InternalMessageInfo func (m *SearchResult) GetDocument() *Document { if m != nil { return m.Document } return nil } func (m *SearchResult) GetExpression() []*Field { if m != nil { return m.Expression } return nil } func (m *SearchResult) GetScore() []float64 { if m != nil { return m.Score } return nil } func (m *SearchResult) GetCursor() string { if m != nil && m.Cursor != nil { return *m.Cursor } return "" } type SearchResponse struct { Result []*SearchResult `protobuf:"bytes,1,rep,name=result" json:"result,omitempty"` MatchedCount *int64 `protobuf:"varint,2,req,name=matched_count,json=matchedCount" json:"matched_count,omitempty"` Status *RequestStatus `protobuf:"bytes,3,req,name=status" json:"status,omitempty"` Cursor *string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"` FacetResult []*FacetResult `protobuf:"bytes,5,rep,name=facet_result,json=facetResult" json:"facet_result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SearchResponse) Reset() { *m = SearchResponse{} } func (m *SearchResponse) String() string { return proto.CompactTextString(m) } func (*SearchResponse) ProtoMessage() {} func (*SearchResponse) Descriptor() ([]byte, []int) { return fileDescriptor_search_78ae5a87590ff3d8, []int{43} } var extRange_SearchResponse = []proto.ExtensionRange{ {Start: 1000, End: 9999}, } func (*SearchResponse) ExtensionRangeArray() []proto.ExtensionRange { return extRange_SearchResponse } func (m *SearchResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchResponse.Unmarshal(m, b) } func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchResponse.Marshal(b, m, deterministic) } func (dst *SearchResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_SearchResponse.Merge(dst, src) } func (m *SearchResponse) XXX_Size() int { return xxx_messageInfo_SearchResponse.Size(m) } func (m *SearchResponse) XXX_DiscardUnknown() { xxx_messageInfo_SearchResponse.DiscardUnknown(m) } var xxx_messageInfo_SearchResponse proto.InternalMessageInfo func (m *SearchResponse) GetResult() []*SearchResult { if m != nil { return m.Result } return nil } func (m *SearchResponse) GetMatchedCount() int64 { if m != nil && m.MatchedCount != nil { return *m.MatchedCount } return 0 } func (m *SearchResponse) GetStatus() *RequestStatus { if m != nil { return m.Status } return nil } func (m *SearchResponse) GetCursor() string { if m != nil && m.Cursor != nil { return *m.Cursor } return "" } func (m *SearchResponse) GetFacetResult() []*FacetResult { if m != nil { return m.FacetResult } return nil } func init() { proto.RegisterType((*Scope)(nil), "search.Scope") proto.RegisterType((*Entry)(nil), "search.Entry") proto.RegisterType((*AccessControlList)(nil), "search.AccessControlList") proto.RegisterType((*FieldValue)(nil), "search.FieldValue") proto.RegisterType((*FieldValue_Geo)(nil), "search.FieldValue.Geo") proto.RegisterType((*Field)(nil), "search.Field") proto.RegisterType((*FieldTypes)(nil), "search.FieldTypes") proto.RegisterType((*IndexShardSettings)(nil), "search.IndexShardSettings") proto.RegisterType((*FacetValue)(nil), "search.FacetValue") proto.RegisterType((*Facet)(nil), "search.Facet") proto.RegisterType((*DocumentMetadata)(nil), "search.DocumentMetadata") proto.RegisterType((*Document)(nil), "search.Document") proto.RegisterType((*SearchServiceError)(nil), "search.SearchServiceError") proto.RegisterType((*RequestStatus)(nil), "search.RequestStatus") proto.RegisterType((*IndexSpec)(nil), "search.IndexSpec") proto.RegisterType((*IndexMetadata)(nil), "search.IndexMetadata") proto.RegisterType((*IndexMetadata_Storage)(nil), "search.IndexMetadata.Storage") proto.RegisterType((*IndexDocumentParams)(nil), "search.IndexDocumentParams") proto.RegisterType((*IndexDocumentRequest)(nil), "search.IndexDocumentRequest") proto.RegisterType((*IndexDocumentResponse)(nil), "search.IndexDocumentResponse") proto.RegisterType((*DeleteDocumentParams)(nil), "search.DeleteDocumentParams") proto.RegisterType((*DeleteDocumentRequest)(nil), "search.DeleteDocumentRequest") proto.RegisterType((*DeleteDocumentResponse)(nil), "search.DeleteDocumentResponse") proto.RegisterType((*ListDocumentsParams)(nil), "search.ListDocumentsParams") proto.RegisterType((*ListDocumentsRequest)(nil), "search.ListDocumentsRequest") proto.RegisterType((*ListDocumentsResponse)(nil), "search.ListDocumentsResponse") proto.RegisterType((*ListIndexesParams)(nil), "search.ListIndexesParams") proto.RegisterType((*ListIndexesRequest)(nil), "search.ListIndexesRequest") proto.RegisterType((*ListIndexesResponse)(nil), "search.ListIndexesResponse") proto.RegisterType((*DeleteSchemaParams)(nil), "search.DeleteSchemaParams") proto.RegisterType((*DeleteSchemaRequest)(nil), "search.DeleteSchemaRequest") proto.RegisterType((*DeleteSchemaResponse)(nil), "search.DeleteSchemaResponse") proto.RegisterType((*SortSpec)(nil), "search.SortSpec") proto.RegisterType((*ScorerSpec)(nil), "search.ScorerSpec") proto.RegisterType((*FieldSpec)(nil), "search.FieldSpec") proto.RegisterType((*FieldSpec_Expression)(nil), "search.FieldSpec.Expression") proto.RegisterType((*FacetRange)(nil), "search.FacetRange") proto.RegisterType((*FacetRequestParam)(nil), "search.FacetRequestParam") proto.RegisterType((*FacetAutoDetectParam)(nil), "search.FacetAutoDetectParam") proto.RegisterType((*FacetRequest)(nil), "search.FacetRequest") proto.RegisterType((*FacetRefinement)(nil), "search.FacetRefinement") proto.RegisterType((*FacetRefinement_Range)(nil), "search.FacetRefinement.Range") proto.RegisterType((*SearchParams)(nil), "search.SearchParams") proto.RegisterType((*SearchRequest)(nil), "search.SearchRequest") proto.RegisterType((*FacetResultValue)(nil), "search.FacetResultValue") proto.RegisterType((*FacetResult)(nil), "search.FacetResult") proto.RegisterType((*SearchResult)(nil), "search.SearchResult") proto.RegisterType((*SearchResponse)(nil), "search.SearchResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/search/search.proto", fileDescriptor_search_78ae5a87590ff3d8) } var fileDescriptor_search_78ae5a87590ff3d8 = []byte{ // 2994 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x59, 0x4f, 0x73, 0x1b, 0xc7, 0x95, 0xe7, 0x0c, 0x08, 0x10, 0x78, 0x20, 0xc8, 0x61, 0xf3, 0x8f, 0x20, 0x59, 0x6b, 0xd3, 0x23, 0xcb, 0xa6, 0xbd, 0x12, 0x45, 0x51, 0x2a, 0x5b, 0xcb, 0x75, 0xed, 0x1a, 0x02, 0x46, 0x14, 0x56, 0x20, 0x40, 0x37, 0x06, 0xb2, 0xb5, 0x55, 0xeb, 0xd9, 0xc9, 0x4c, 0x13, 0x9a, 0x0a, 0x30, 0x03, 0xcf, 0x0c, 0x14, 0xf1, 0x96, 0xf2, 0x2d, 0x97, 0x54, 0x52, 0x39, 0xe5, 0x94, 0x72, 0xe5, 0x92, 0xca, 0x35, 0xf7, 0x9c, 0x92, 0x5b, 0x6e, 0x39, 0xe5, 0x0b, 0xa4, 0x52, 0x49, 0x55, 0x3e, 0x43, 0xaa, 0x5f, 0xf7, 0x0c, 0x66, 0x40, 0xc8, 0xb4, 0x74, 0x22,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12, 0x56, 0x93, 0x46, 0xf3, 0x2f, 0x21, 0xea, 0x25, 0x2f, 0x21, 0xb7, 0xe7, 0x8e, 0xd0, 0x05, 0xcf, 0xca, 0x19, 0x05, 0xe4, 0x5a, 0x5e, 0xcc, 0xe8, 0x9d, 0x42, 0xc5, 0x47, 0x86, 0x00, 0x0b, 0x59, 0x02, 0xd4, 0xff, 0xae, 0xc0, 0x5a, 0xea, 0x9b, 0x68, 0x03, 0x6f, 0x41, 0x29, 0x44, 0x3f, 0x65, 0x1b, 0x38, 0x87, 0x9e, 0xd8, 0x03, 0x95, 0x3a, 0xe4, 0x06, 0xd4, 0x72, 0x3c, 0x86, 0x30, 0x14, 0xe8, 0x6a, 0x96, 0xbe, 0x32, 0x9d, 0x65, 0xe1, 0xfb, 0xf4, 0xf0, 0xaf, 0x62, 0xeb, 0x8f, 0x61, 0x35, 0x29, 0x42, 0xf4, 0xaf, 0x88, 0xfe, 0x6d, 0x2e, 0x88, 0x3f, 0xad, 0x9e, 0xcd, 0x3e, 0x3e, 0x2a, 0x95, 0xff, 0xb6, 0xa2, 0xfd, 0xac, 0xfb, 0xb0, 0xfc, 0xbf, 0xf2, 0xff, 0xb5, 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x09, 0x6f, 0x4d, 0x63, 0xf2, 0x1d, 0x00, 0x00, }
search
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/search/search.proto
syntax = "proto2"; option go_package = "search"; package search; message Scope { enum Type { USER_BY_CANONICAL_ID = 1; USER_BY_EMAIL = 2; GROUP_BY_CANONICAL_ID = 3; GROUP_BY_EMAIL = 4; GROUP_BY_DOMAIN = 5; ALL_USERS = 6; ALL_AUTHENTICATED_USERS = 7; } optional Type type = 1; optional string value = 2; } message Entry { enum Permission { READ = 1; WRITE = 2; FULL_CONTROL = 3; } optional Scope scope = 1; optional Permission permission = 2; optional string display_name = 3; } message AccessControlList { optional string owner = 1; repeated Entry entries = 2; } message FieldValue { enum ContentType { TEXT = 0; HTML = 1; ATOM = 2; DATE = 3; NUMBER = 4; GEO = 5; } optional ContentType type = 1 [default = TEXT]; optional string language = 2 [default = "en"]; optional string string_value = 3; optional group Geo = 4 { required double lat = 5; required double lng = 6; } } message Field { required string name = 1; required FieldValue value = 2; } message FieldTypes { required string name = 1; repeated FieldValue.ContentType type = 2; } message IndexShardSettings { repeated int32 prev_num_shards = 1; required int32 num_shards = 2 [default=1]; repeated int32 prev_num_shards_search_false = 3; optional string local_replica = 4 [default = ""]; } message FacetValue { enum ContentType { ATOM = 2; NUMBER = 4; } optional ContentType type = 1 [default = ATOM]; optional string string_value = 3; } message Facet { required string name = 1; required FacetValue value = 2; } message DocumentMetadata { optional int64 version = 1; optional int64 committed_st_version = 2; } message Document { optional string id = 1; optional string language = 2 [default = "en"]; repeated Field field = 3; optional int32 order_id = 4; optional OrderIdSource order_id_source = 6 [default = SUPPLIED]; enum OrderIdSource { DEFAULTED = 0; SUPPLIED = 1; } enum Storage { DISK = 0; } optional Storage storage = 5 [default = DISK]; repeated Facet facet = 8; } message SearchServiceError { enum ErrorCode { OK = 0; INVALID_REQUEST = 1; TRANSIENT_ERROR = 2; INTERNAL_ERROR = 3; PERMISSION_DENIED = 4; TIMEOUT = 5; CONCURRENT_TRANSACTION = 6; } } message RequestStatus { required SearchServiceError.ErrorCode code = 1; optional string error_detail = 2; optional int32 canonical_code = 3; } message IndexSpec { required string name = 1; enum Consistency { GLOBAL = 0; PER_DOCUMENT = 1; } optional Consistency consistency = 2 [default = PER_DOCUMENT]; optional string namespace = 3; optional int32 version = 4; enum Source { SEARCH = 0; DATASTORE = 1; CLOUD_STORAGE = 2; } optional Source source = 5 [default = SEARCH]; enum Mode { PRIORITY = 0; BACKGROUND = 1; } optional Mode mode = 6 [default = PRIORITY]; } message IndexMetadata { required IndexSpec index_spec = 1; repeated FieldTypes field = 2; message Storage { optional int64 amount_used = 1; optional int64 limit = 2; } optional Storage storage = 3; } message IndexDocumentParams { repeated Document document = 1; enum Freshness { SYNCHRONOUSLY = 0; WHEN_CONVENIENT = 1; } optional Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated=true]; required IndexSpec index_spec = 3; } message IndexDocumentRequest { required IndexDocumentParams params = 1; optional bytes app_id = 3; } message IndexDocumentResponse { repeated RequestStatus status = 1; repeated string doc_id = 2; } message DeleteDocumentParams { repeated string doc_id = 1; required IndexSpec index_spec = 2; } message DeleteDocumentRequest { required DeleteDocumentParams params = 1; optional bytes app_id = 3; } message DeleteDocumentResponse { repeated RequestStatus status = 1; } message ListDocumentsParams { required IndexSpec index_spec = 1; optional string start_doc_id = 2; optional bool include_start_doc = 3 [default = true]; optional int32 limit = 4 [default = 100]; optional bool keys_only = 5; } message ListDocumentsRequest { required ListDocumentsParams params = 1; optional bytes app_id = 2; } message ListDocumentsResponse { required RequestStatus status = 1; repeated Document document = 2; } message ListIndexesParams { optional bool fetch_schema = 1; optional int32 limit = 2 [default = 20]; optional string namespace = 3; optional string start_index_name = 4; optional bool include_start_index = 5 [default = true]; optional string index_name_prefix = 6; optional int32 offset = 7; optional IndexSpec.Source source = 8 [default = SEARCH]; } message ListIndexesRequest { required ListIndexesParams params = 1; optional bytes app_id = 3; } message ListIndexesResponse { required RequestStatus status = 1; repeated IndexMetadata index_metadata = 2; } message DeleteSchemaParams { optional IndexSpec.Source source = 1 [default = SEARCH]; repeated IndexSpec index_spec = 2; } message DeleteSchemaRequest { required DeleteSchemaParams params = 1; optional bytes app_id = 3; } message DeleteSchemaResponse { repeated RequestStatus status = 1; } message SortSpec { required string sort_expression = 1; optional bool sort_descending = 2 [default = true]; optional string default_value_text = 4; optional double default_value_numeric = 5; } message ScorerSpec { enum Scorer { RESCORING_MATCH_SCORER = 0; MATCH_SCORER = 2; } optional Scorer scorer = 1 [default = MATCH_SCORER]; optional int32 limit = 2 [default = 1000]; optional string match_scorer_parameters = 9; } message FieldSpec { repeated string name = 1; repeated group Expression = 2 { required string name = 3; required string expression = 4; } } message FacetRange { optional string name = 1; optional string start = 2; optional string end = 3; } message FacetRequestParam { optional int32 value_limit = 1; repeated FacetRange range = 2; repeated string value_constraint = 3; } message FacetAutoDetectParam { optional int32 value_limit = 1 [default = 10]; } message FacetRequest { required string name = 1; optional FacetRequestParam params = 2; } message FacetRefinement { required string name = 1; optional string value = 2; message Range { optional string start = 1; optional string end = 2; } optional Range range = 3; } message SearchParams { required IndexSpec index_spec = 1; required string query = 2; optional string cursor = 4; optional int32 offset = 11; enum CursorType { NONE = 0; SINGLE = 1; PER_RESULT = 2; } optional CursorType cursor_type = 5 [default = NONE]; optional int32 limit = 6 [default = 20]; optional int32 matched_count_accuracy = 7; repeated SortSpec sort_spec = 8; optional ScorerSpec scorer_spec = 9; optional FieldSpec field_spec = 10; optional bool keys_only = 12; enum ParsingMode { STRICT = 0; RELAXED = 1; } optional ParsingMode parsing_mode = 13 [default = STRICT]; optional int32 auto_discover_facet_count = 15 [default = 0]; repeated FacetRequest include_facet = 16; repeated FacetRefinement facet_refinement = 17; optional FacetAutoDetectParam facet_auto_detect_param = 18; optional int32 facet_depth = 19 [default=1000]; } message SearchRequest { required SearchParams params = 1; optional bytes app_id = 3; } message FacetResultValue { required string name = 1; required int32 count = 2; required FacetRefinement refinement = 3; } message FacetResult { required string name = 1; repeated FacetResultValue value = 2; } message SearchResult { required Document document = 1; repeated Field expression = 4; repeated double score = 2; optional string cursor = 3; } message SearchResponse { repeated SearchResult result = 1; required int64 matched_count = 2; required RequestStatus status = 3; optional string cursor = 4; repeated FacetResult facet_result = 5; extensions 1000 to 9999; }
capability
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/capability/capability_service.proto
syntax = "proto2"; option go_package = "capability"; package appengine; message IsEnabledRequest { required string package = 1; repeated string capability = 2; repeated string call = 3; } message IsEnabledResponse { enum SummaryStatus { DEFAULT = 0; ENABLED = 1; SCHEDULED_FUTURE = 2; SCHEDULED_NOW = 3; DISABLED = 4; UNKNOWN = 5; } optional SummaryStatus summary_status = 1; optional int64 time_until_scheduled = 2; } service CapabilityService { rpc IsEnabled(IsEnabledRequest) returns (IsEnabledResponse) {}; }
capability
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/capability/capability_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/capability/capability_service.proto package capability import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type IsEnabledResponse_SummaryStatus int32 const ( IsEnabledResponse_DEFAULT IsEnabledResponse_SummaryStatus = 0 IsEnabledResponse_ENABLED IsEnabledResponse_SummaryStatus = 1 IsEnabledResponse_SCHEDULED_FUTURE IsEnabledResponse_SummaryStatus = 2 IsEnabledResponse_SCHEDULED_NOW IsEnabledResponse_SummaryStatus = 3 IsEnabledResponse_DISABLED IsEnabledResponse_SummaryStatus = 4 IsEnabledResponse_UNKNOWN IsEnabledResponse_SummaryStatus = 5 ) var IsEnabledResponse_SummaryStatus_name = map[int32]string{ 0: "DEFAULT", 1: "ENABLED", 2: "SCHEDULED_FUTURE", 3: "SCHEDULED_NOW", 4: "DISABLED", 5: "UNKNOWN", } var IsEnabledResponse_SummaryStatus_value = map[string]int32{ "DEFAULT": 0, "ENABLED": 1, "SCHEDULED_FUTURE": 2, "SCHEDULED_NOW": 3, "DISABLED": 4, "UNKNOWN": 5, } func (x IsEnabledResponse_SummaryStatus) Enum() *IsEnabledResponse_SummaryStatus { p := new(IsEnabledResponse_SummaryStatus) *p = x return p } func (x IsEnabledResponse_SummaryStatus) String() string { return proto.EnumName(IsEnabledResponse_SummaryStatus_name, int32(x)) } func (x *IsEnabledResponse_SummaryStatus) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(IsEnabledResponse_SummaryStatus_value, data, "IsEnabledResponse_SummaryStatus") if err != nil { return err } *x = IsEnabledResponse_SummaryStatus(value) return nil } func (IsEnabledResponse_SummaryStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor_capability_service_030277ff00db7e72, []int{1, 0} } type IsEnabledRequest struct { Package *string `protobuf:"bytes,1,req,name=package" json:"package,omitempty"` Capability []string `protobuf:"bytes,2,rep,name=capability" json:"capability,omitempty"` Call []string `protobuf:"bytes,3,rep,name=call" json:"call,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IsEnabledRequest) Reset() { *m = IsEnabledRequest{} } func (m *IsEnabledRequest) String() string { return proto.CompactTextString(m) } func (*IsEnabledRequest) ProtoMessage() {} func (*IsEnabledRequest) Descriptor() ([]byte, []int) { return fileDescriptor_capability_service_030277ff00db7e72, []int{0} } func (m *IsEnabledRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IsEnabledRequest.Unmarshal(m, b) } func (m *IsEnabledRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IsEnabledRequest.Marshal(b, m, deterministic) } func (dst *IsEnabledRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_IsEnabledRequest.Merge(dst, src) } func (m *IsEnabledRequest) XXX_Size() int { return xxx_messageInfo_IsEnabledRequest.Size(m) } func (m *IsEnabledRequest) XXX_DiscardUnknown() { xxx_messageInfo_IsEnabledRequest.DiscardUnknown(m) } var xxx_messageInfo_IsEnabledRequest proto.InternalMessageInfo func (m *IsEnabledRequest) GetPackage() string { if m != nil && m.Package != nil { return *m.Package } return "" } func (m *IsEnabledRequest) GetCapability() []string { if m != nil { return m.Capability } return nil } func (m *IsEnabledRequest) GetCall() []string { if m != nil { return m.Call } return nil } type IsEnabledResponse struct { SummaryStatus *IsEnabledResponse_SummaryStatus `protobuf:"varint,1,opt,name=summary_status,json=summaryStatus,enum=appengine.IsEnabledResponse_SummaryStatus" json:"summary_status,omitempty"` TimeUntilScheduled *int64 `protobuf:"varint,2,opt,name=time_until_scheduled,json=timeUntilScheduled" json:"time_until_scheduled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IsEnabledResponse) Reset() { *m = IsEnabledResponse{} } func (m *IsEnabledResponse) String() string { return proto.CompactTextString(m) } func (*IsEnabledResponse) ProtoMessage() {} func (*IsEnabledResponse) Descriptor() ([]byte, []int) { return fileDescriptor_capability_service_030277ff00db7e72, []int{1} } func (m *IsEnabledResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IsEnabledResponse.Unmarshal(m, b) } func (m *IsEnabledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IsEnabledResponse.Marshal(b, m, deterministic) } func (dst *IsEnabledResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_IsEnabledResponse.Merge(dst, src) } func (m *IsEnabledResponse) XXX_Size() int { return xxx_messageInfo_IsEnabledResponse.Size(m) } func (m *IsEnabledResponse) XXX_DiscardUnknown() { xxx_messageInfo_IsEnabledResponse.DiscardUnknown(m) } var xxx_messageInfo_IsEnabledResponse proto.InternalMessageInfo func (m *IsEnabledResponse) GetSummaryStatus() IsEnabledResponse_SummaryStatus { if m != nil && m.SummaryStatus != nil { return *m.SummaryStatus } return IsEnabledResponse_DEFAULT } func (m *IsEnabledResponse) GetTimeUntilScheduled() int64 { if m != nil && m.TimeUntilScheduled != nil { return *m.TimeUntilScheduled } return 0 } func init() { proto.RegisterType((*IsEnabledRequest)(nil), "appengine.IsEnabledRequest") proto.RegisterType((*IsEnabledResponse)(nil), "appengine.IsEnabledResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/capability/capability_service.proto", fileDescriptor_capability_service_030277ff00db7e72) } var fileDescriptor_capability_service_030277ff00db7e72 = []byte{ // 359 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xd1, 0x8a, 0x9b, 0x40, 0x14, 0x86, 0xa3, 0xa6, 0xa4, 0x9e, 0x26, 0xc1, 0x0c, 0xb9, 0x90, 0xb6, 0x14, 0xf1, 0x4a, 0x7a, 0x61, 0x4a, 0xde, 0x20, 0x89, 0x86, 0x84, 0x06, 0x43, 0x35, 0x12, 0x28, 0x14, 0x3b, 0x31, 0x83, 0x95, 0x8e, 0xa3, 0xeb, 0x8c, 0x0b, 0x79, 0x82, 0x7d, 0xed, 0x45, 0x43, 0x8c, 0xcb, 0x2e, 0x7b, 0x77, 0xce, 0xf9, 0xf9, 0xfe, 0x99, 0x73, 0x7e, 0xd8, 0x24, 0x79, 0x9e, 0x50, 0x62, 0x27, 0x39, 0xc5, 0x2c, 0xb1, 0xf3, 0x32, 0x99, 0xe1, 0xa2, 0x20, 0x2c, 0x49, 0x19, 0x99, 0xa5, 0x4c, 0x90, 0x92, 0x61, 0x3a, 0x8b, 0x71, 0x81, 0x4f, 0x29, 0x4d, 0xc5, 0xa5, 0x53, 0x46, 0x9c, 0x94, 0x8f, 0x69, 0x4c, 0xec, 0xa2, 0xcc, 0x45, 0x8e, 0xd4, 0x96, 0x33, 0xff, 0x82, 0xb6, 0xe5, 0x2e, 0xc3, 0x27, 0x4a, 0xce, 0x3e, 0x79, 0xa8, 0x08, 0x17, 0x48, 0x87, 0x41, 0x81, 0xe3, 0xff, 0x38, 0x21, 0xba, 0x64, 0xc8, 0x96, 0xea, 0xdf, 0x5a, 0xf4, 0x0d, 0xe0, 0x6e, 0xaa, 0xcb, 0x86, 0x62, 0xa9, 0x7e, 0x67, 0x82, 0x10, 0xf4, 0x63, 0x4c, 0xa9, 0xae, 0x34, 0x4a, 0x53, 0x9b, 0x4f, 0x32, 0x4c, 0x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user
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/user/user_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/user/user_service.proto package user import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type UserServiceError_ErrorCode int32 const ( UserServiceError_OK UserServiceError_ErrorCode = 0 UserServiceError_REDIRECT_URL_TOO_LONG UserServiceError_ErrorCode = 1 UserServiceError_NOT_ALLOWED UserServiceError_ErrorCode = 2 UserServiceError_OAUTH_INVALID_TOKEN UserServiceError_ErrorCode = 3 UserServiceError_OAUTH_INVALID_REQUEST UserServiceError_ErrorCode = 4 UserServiceError_OAUTH_ERROR UserServiceError_ErrorCode = 5 ) var UserServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "REDIRECT_URL_TOO_LONG", 2: "NOT_ALLOWED", 3: "OAUTH_INVALID_TOKEN", 4: "OAUTH_INVALID_REQUEST", 5: "OAUTH_ERROR", } var UserServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "REDIRECT_URL_TOO_LONG": 1, "NOT_ALLOWED": 2, "OAUTH_INVALID_TOKEN": 3, "OAUTH_INVALID_REQUEST": 4, "OAUTH_ERROR": 5, } func (x UserServiceError_ErrorCode) Enum() *UserServiceError_ErrorCode { p := new(UserServiceError_ErrorCode) *p = x return p } func (x UserServiceError_ErrorCode) String() string { return proto.EnumName(UserServiceError_ErrorCode_name, int32(x)) } func (x *UserServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(UserServiceError_ErrorCode_value, data, "UserServiceError_ErrorCode") if err != nil { return err } *x = UserServiceError_ErrorCode(value) return nil } func (UserServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{0, 0} } type UserServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *UserServiceError) Reset() { *m = UserServiceError{} } func (m *UserServiceError) String() string { return proto.CompactTextString(m) } func (*UserServiceError) ProtoMessage() {} func (*UserServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{0} } func (m *UserServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UserServiceError.Unmarshal(m, b) } func (m *UserServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UserServiceError.Marshal(b, m, deterministic) } func (dst *UserServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_UserServiceError.Merge(dst, src) } func (m *UserServiceError) XXX_Size() int { return xxx_messageInfo_UserServiceError.Size(m) } func (m *UserServiceError) XXX_DiscardUnknown() { xxx_messageInfo_UserServiceError.DiscardUnknown(m) } var xxx_messageInfo_UserServiceError proto.InternalMessageInfo type CreateLoginURLRequest struct { DestinationUrl *string `protobuf:"bytes,1,req,name=destination_url,json=destinationUrl" json:"destination_url,omitempty"` AuthDomain *string `protobuf:"bytes,2,opt,name=auth_domain,json=authDomain" json:"auth_domain,omitempty"` FederatedIdentity *string `protobuf:"bytes,3,opt,name=federated_identity,json=federatedIdentity,def=" json:"federated_identity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateLoginURLRequest) Reset() { *m = CreateLoginURLRequest{} } func (m *CreateLoginURLRequest) String() string { return proto.CompactTextString(m) } func (*CreateLoginURLRequest) ProtoMessage() {} func (*CreateLoginURLRequest) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{1} } func (m *CreateLoginURLRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateLoginURLRequest.Unmarshal(m, b) } func (m *CreateLoginURLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateLoginURLRequest.Marshal(b, m, deterministic) } func (dst *CreateLoginURLRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateLoginURLRequest.Merge(dst, src) } func (m *CreateLoginURLRequest) XXX_Size() int { return xxx_messageInfo_CreateLoginURLRequest.Size(m) } func (m *CreateLoginURLRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateLoginURLRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateLoginURLRequest proto.InternalMessageInfo func (m *CreateLoginURLRequest) GetDestinationUrl() string { if m != nil && m.DestinationUrl != nil { return *m.DestinationUrl } return "" } func (m *CreateLoginURLRequest) GetAuthDomain() string { if m != nil && m.AuthDomain != nil { return *m.AuthDomain } return "" } func (m *CreateLoginURLRequest) GetFederatedIdentity() string { if m != nil && m.FederatedIdentity != nil { return *m.FederatedIdentity } return "" } type CreateLoginURLResponse struct { LoginUrl *string `protobuf:"bytes,1,req,name=login_url,json=loginUrl" json:"login_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateLoginURLResponse) Reset() { *m = CreateLoginURLResponse{} } func (m *CreateLoginURLResponse) String() string { return proto.CompactTextString(m) } func (*CreateLoginURLResponse) ProtoMessage() {} func (*CreateLoginURLResponse) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{2} } func (m *CreateLoginURLResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateLoginURLResponse.Unmarshal(m, b) } func (m *CreateLoginURLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateLoginURLResponse.Marshal(b, m, deterministic) } func (dst *CreateLoginURLResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateLoginURLResponse.Merge(dst, src) } func (m *CreateLoginURLResponse) XXX_Size() int { return xxx_messageInfo_CreateLoginURLResponse.Size(m) } func (m *CreateLoginURLResponse) XXX_DiscardUnknown() { xxx_messageInfo_CreateLoginURLResponse.DiscardUnknown(m) } var xxx_messageInfo_CreateLoginURLResponse proto.InternalMessageInfo func (m *CreateLoginURLResponse) GetLoginUrl() string { if m != nil && m.LoginUrl != nil { return *m.LoginUrl } return "" } type CreateLogoutURLRequest struct { DestinationUrl *string `protobuf:"bytes,1,req,name=destination_url,json=destinationUrl" json:"destination_url,omitempty"` AuthDomain *string `protobuf:"bytes,2,opt,name=auth_domain,json=authDomain" json:"auth_domain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateLogoutURLRequest) Reset() { *m = CreateLogoutURLRequest{} } func (m *CreateLogoutURLRequest) String() string { return proto.CompactTextString(m) } func (*CreateLogoutURLRequest) ProtoMessage() {} func (*CreateLogoutURLRequest) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{3} } func (m *CreateLogoutURLRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateLogoutURLRequest.Unmarshal(m, b) } func (m *CreateLogoutURLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateLogoutURLRequest.Marshal(b, m, deterministic) } func (dst *CreateLogoutURLRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateLogoutURLRequest.Merge(dst, src) } func (m *CreateLogoutURLRequest) XXX_Size() int { return xxx_messageInfo_CreateLogoutURLRequest.Size(m) } func (m *CreateLogoutURLRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateLogoutURLRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateLogoutURLRequest proto.InternalMessageInfo func (m *CreateLogoutURLRequest) GetDestinationUrl() string { if m != nil && m.DestinationUrl != nil { return *m.DestinationUrl } return "" } func (m *CreateLogoutURLRequest) GetAuthDomain() string { if m != nil && m.AuthDomain != nil { return *m.AuthDomain } return "" } type CreateLogoutURLResponse struct { LogoutUrl *string `protobuf:"bytes,1,req,name=logout_url,json=logoutUrl" json:"logout_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateLogoutURLResponse) Reset() { *m = CreateLogoutURLResponse{} } func (m *CreateLogoutURLResponse) String() string { return proto.CompactTextString(m) } func (*CreateLogoutURLResponse) ProtoMessage() {} func (*CreateLogoutURLResponse) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{4} } func (m *CreateLogoutURLResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateLogoutURLResponse.Unmarshal(m, b) } func (m *CreateLogoutURLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateLogoutURLResponse.Marshal(b, m, deterministic) } func (dst *CreateLogoutURLResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateLogoutURLResponse.Merge(dst, src) } func (m *CreateLogoutURLResponse) XXX_Size() int { return xxx_messageInfo_CreateLogoutURLResponse.Size(m) } func (m *CreateLogoutURLResponse) XXX_DiscardUnknown() { xxx_messageInfo_CreateLogoutURLResponse.DiscardUnknown(m) } var xxx_messageInfo_CreateLogoutURLResponse proto.InternalMessageInfo func (m *CreateLogoutURLResponse) GetLogoutUrl() string { if m != nil && m.LogoutUrl != nil { return *m.LogoutUrl } return "" } type GetOAuthUserRequest struct { Scope *string `protobuf:"bytes,1,opt,name=scope" json:"scope,omitempty"` Scopes []string `protobuf:"bytes,2,rep,name=scopes" json:"scopes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetOAuthUserRequest) Reset() { *m = GetOAuthUserRequest{} } func (m *GetOAuthUserRequest) String() string { return proto.CompactTextString(m) } func (*GetOAuthUserRequest) ProtoMessage() {} func (*GetOAuthUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{5} } func (m *GetOAuthUserRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetOAuthUserRequest.Unmarshal(m, b) } func (m *GetOAuthUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetOAuthUserRequest.Marshal(b, m, deterministic) } func (dst *GetOAuthUserRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_GetOAuthUserRequest.Merge(dst, src) } func (m *GetOAuthUserRequest) XXX_Size() int { return xxx_messageInfo_GetOAuthUserRequest.Size(m) } func (m *GetOAuthUserRequest) XXX_DiscardUnknown() { xxx_messageInfo_GetOAuthUserRequest.DiscardUnknown(m) } var xxx_messageInfo_GetOAuthUserRequest proto.InternalMessageInfo func (m *GetOAuthUserRequest) GetScope() string { if m != nil && m.Scope != nil { return *m.Scope } return "" } func (m *GetOAuthUserRequest) GetScopes() []string { if m != nil { return m.Scopes } return nil } type GetOAuthUserResponse struct { Email *string `protobuf:"bytes,1,req,name=email" json:"email,omitempty"` UserId *string `protobuf:"bytes,2,req,name=user_id,json=userId" json:"user_id,omitempty"` AuthDomain *string `protobuf:"bytes,3,req,name=auth_domain,json=authDomain" json:"auth_domain,omitempty"` UserOrganization *string `protobuf:"bytes,4,opt,name=user_organization,json=userOrganization,def=" json:"user_organization,omitempty"` IsAdmin *bool `protobuf:"varint,5,opt,name=is_admin,json=isAdmin,def=0" json:"is_admin,omitempty"` ClientId *string `protobuf:"bytes,6,opt,name=client_id,json=clientId,def=" json:"client_id,omitempty"` Scopes []string `protobuf:"bytes,7,rep,name=scopes" json:"scopes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GetOAuthUserResponse) Reset() { *m = GetOAuthUserResponse{} } func (m *GetOAuthUserResponse) String() string { return proto.CompactTextString(m) } func (*GetOAuthUserResponse) ProtoMessage() {} func (*GetOAuthUserResponse) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{6} } func (m *GetOAuthUserResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetOAuthUserResponse.Unmarshal(m, b) } func (m *GetOAuthUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetOAuthUserResponse.Marshal(b, m, deterministic) } func (dst *GetOAuthUserResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_GetOAuthUserResponse.Merge(dst, src) } func (m *GetOAuthUserResponse) XXX_Size() int { return xxx_messageInfo_GetOAuthUserResponse.Size(m) } func (m *GetOAuthUserResponse) XXX_DiscardUnknown() { xxx_messageInfo_GetOAuthUserResponse.DiscardUnknown(m) } var xxx_messageInfo_GetOAuthUserResponse proto.InternalMessageInfo const Default_GetOAuthUserResponse_IsAdmin bool = false func (m *GetOAuthUserResponse) GetEmail() string { if m != nil && m.Email != nil { return *m.Email } return "" } func (m *GetOAuthUserResponse) GetUserId() string { if m != nil && m.UserId != nil { return *m.UserId } return "" } func (m *GetOAuthUserResponse) GetAuthDomain() string { if m != nil && m.AuthDomain != nil { return *m.AuthDomain } return "" } func (m *GetOAuthUserResponse) GetUserOrganization() string { if m != nil && m.UserOrganization != nil { return *m.UserOrganization } return "" } func (m *GetOAuthUserResponse) GetIsAdmin() bool { if m != nil && m.IsAdmin != nil { return *m.IsAdmin } return Default_GetOAuthUserResponse_IsAdmin } func (m *GetOAuthUserResponse) GetClientId() string { if m != nil && m.ClientId != nil { return *m.ClientId } return "" } func (m *GetOAuthUserResponse) GetScopes() []string { if m != nil { return m.Scopes } return nil } type CheckOAuthSignatureRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CheckOAuthSignatureRequest) Reset() { *m = CheckOAuthSignatureRequest{} } func (m *CheckOAuthSignatureRequest) String() string { return proto.CompactTextString(m) } func (*CheckOAuthSignatureRequest) ProtoMessage() {} func (*CheckOAuthSignatureRequest) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{7} } func (m *CheckOAuthSignatureRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CheckOAuthSignatureRequest.Unmarshal(m, b) } func (m *CheckOAuthSignatureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CheckOAuthSignatureRequest.Marshal(b, m, deterministic) } func (dst *CheckOAuthSignatureRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CheckOAuthSignatureRequest.Merge(dst, src) } func (m *CheckOAuthSignatureRequest) XXX_Size() int { return xxx_messageInfo_CheckOAuthSignatureRequest.Size(m) } func (m *CheckOAuthSignatureRequest) XXX_DiscardUnknown() { xxx_messageInfo_CheckOAuthSignatureRequest.DiscardUnknown(m) } var xxx_messageInfo_CheckOAuthSignatureRequest proto.InternalMessageInfo type CheckOAuthSignatureResponse struct { OauthConsumerKey *string `protobuf:"bytes,1,req,name=oauth_consumer_key,json=oauthConsumerKey" json:"oauth_consumer_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CheckOAuthSignatureResponse) Reset() { *m = CheckOAuthSignatureResponse{} } func (m *CheckOAuthSignatureResponse) String() string { return proto.CompactTextString(m) } func (*CheckOAuthSignatureResponse) ProtoMessage() {} func (*CheckOAuthSignatureResponse) Descriptor() ([]byte, []int) { return fileDescriptor_user_service_faa685423dd20b0a, []int{8} } func (m *CheckOAuthSignatureResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CheckOAuthSignatureResponse.Unmarshal(m, b) } func (m *CheckOAuthSignatureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CheckOAuthSignatureResponse.Marshal(b, m, deterministic) } func (dst *CheckOAuthSignatureResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CheckOAuthSignatureResponse.Merge(dst, src) } func (m *CheckOAuthSignatureResponse) XXX_Size() int { return xxx_messageInfo_CheckOAuthSignatureResponse.Size(m) } func (m *CheckOAuthSignatureResponse) XXX_DiscardUnknown() { xxx_messageInfo_CheckOAuthSignatureResponse.DiscardUnknown(m) } var xxx_messageInfo_CheckOAuthSignatureResponse proto.InternalMessageInfo func (m *CheckOAuthSignatureResponse) GetOauthConsumerKey() string { if m != nil && m.OauthConsumerKey != nil { return *m.OauthConsumerKey } return "" } func init() { proto.RegisterType((*UserServiceError)(nil), "appengine.UserServiceError") proto.RegisterType((*CreateLoginURLRequest)(nil), "appengine.CreateLoginURLRequest") proto.RegisterType((*CreateLoginURLResponse)(nil), "appengine.CreateLoginURLResponse") proto.RegisterType((*CreateLogoutURLRequest)(nil), "appengine.CreateLogoutURLRequest") proto.RegisterType((*CreateLogoutURLResponse)(nil), "appengine.CreateLogoutURLResponse") proto.RegisterType((*GetOAuthUserRequest)(nil), "appengine.GetOAuthUserRequest") proto.RegisterType((*GetOAuthUserResponse)(nil), "appengine.GetOAuthUserResponse") proto.RegisterType((*CheckOAuthSignatureRequest)(nil), "appengine.CheckOAuthSignatureRequest") proto.RegisterType((*CheckOAuthSignatureResponse)(nil), "appengine.CheckOAuthSignatureResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/user/user_service.proto", fileDescriptor_user_service_faa685423dd20b0a) } var fileDescriptor_user_service_faa685423dd20b0a = []byte{ // 573 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x52, 0x4d, 0x6f, 0xdb, 0x38, 0x10, 0x8d, 0xec, 0xd8, 0xb1, 0x26, 0xc0, 0x46, 0x61, 0xbe, 0xb4, 0x9b, 0x0d, 0xd6, 0xd0, 0x65, 0x7d, 0x68, 0xe3, 0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, 0x7e, 0x38, 0x70, 0xf8, 0x58, 0xa5, 0x1e, 0x7e, 0x08, 0x1d, 0x5c, 0x31, 0x7e, 0x3f, 0x77, 0x53, 0x90, 0x13, 0xd8, 0xb1, 0x4f, 0x93, 0x67, 0x7e, 0xcb, 0xe2, 0xdd, 0xaa, 0x9c, 0x66, 0x4f, 0x73, 0xb6, 0x2d, 0xd9, 0xbc, 0xb3, 0xe7, 0xb0, 0x6f, 0x4f, 0x4a, 0x95, 0x33, 0xc1, 0xbf, 0xd8, 0x05, 0xf9, 0xdb, 0xf5, 0x95, 0x79, 0x15, 0x15, 0x37, 0x18, 0xd2, 0x87, 0x1e, 0xd7, 0x29, 0xcb, 0x56, 0x5c, 0xf8, 0x9d, 0xbe, 0x33, 0xe8, 0x5d, 0x74, 0xae, 0x59, 0xa1, 0x91, 0xee, 0x70, 0x3d, 0xaa, 0x50, 0x72, 0x06, 0xee, 0xb2, 0xe0, 0x28, 0x4c, 0x65, 0xa6, 0x5b, 0x0b, 0xf5, 0x36, 0xd0, 0x34, 0x6b, 0x04, 0xde, 0x79, 0x14, 0xf8, 0x5f, 0xf8, 0x67, 0x7c, 0x83, 0xcb, 0x5b, 0x9b, 0xf8, 0x8a, 0xe7, 0x82, 0x99, 0x52, 0x61, 0xbd, 0xbc, 0x60, 0x06, 0xa7, 0xbf, 0x65, 0xeb, 0xa5, 0x3c, 0x03, 0x22, 0x6d, 0xcc, 0xa5, 0x14, 0xba, 0x5c, 0xa1, 0x4a, 0x6f, 0xf1, 0xae, 0xde, 0x90, 0x67, 0x99, 0x71, 0x4d, 0xcc, 0xf0, 0xee, 0x75, 0xf7, 0xc3, 0x76, 0x95, 0xeb, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x58, 0x04, 0x53, 0xcc, 0xf8, 0x03, 0x00, 0x00, }
user
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/user/user_service.proto
syntax = "proto2"; option go_package = "user"; package appengine; message UserServiceError { enum ErrorCode { OK = 0; REDIRECT_URL_TOO_LONG = 1; NOT_ALLOWED = 2; OAUTH_INVALID_TOKEN = 3; OAUTH_INVALID_REQUEST = 4; OAUTH_ERROR = 5; } } message CreateLoginURLRequest { required string destination_url = 1; optional string auth_domain = 2; optional string federated_identity = 3 [default = ""]; } message CreateLoginURLResponse { required string login_url = 1; } message CreateLogoutURLRequest { required string destination_url = 1; optional string auth_domain = 2; } message CreateLogoutURLResponse { required string logout_url = 1; } message GetOAuthUserRequest { optional string scope = 1; repeated string scopes = 2; } message GetOAuthUserResponse { required string email = 1; required string user_id = 2; required string auth_domain = 3; optional string user_organization = 4 [default = ""]; optional bool is_admin = 5 [default = false]; optional string client_id = 6 [default = ""]; repeated string scopes = 7; } message CheckOAuthSignatureRequest { } message CheckOAuthSignatureResponse { required string oauth_consumer_key = 1; }
taskqueue
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/taskqueue/taskqueue_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/taskqueue/taskqueue_service.proto package taskqueue import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import datastore "google.golang.org/appengine/internal/datastore" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type TaskQueueServiceError_ErrorCode int32 const ( TaskQueueServiceError_OK TaskQueueServiceError_ErrorCode = 0 TaskQueueServiceError_UNKNOWN_QUEUE TaskQueueServiceError_ErrorCode = 1 TaskQueueServiceError_TRANSIENT_ERROR TaskQueueServiceError_ErrorCode = 2 TaskQueueServiceError_INTERNAL_ERROR TaskQueueServiceError_ErrorCode = 3 TaskQueueServiceError_TASK_TOO_LARGE TaskQueueServiceError_ErrorCode = 4 TaskQueueServiceError_INVALID_TASK_NAME TaskQueueServiceError_ErrorCode = 5 TaskQueueServiceError_INVALID_QUEUE_NAME TaskQueueServiceError_ErrorCode = 6 TaskQueueServiceError_INVALID_URL TaskQueueServiceError_ErrorCode = 7 TaskQueueServiceError_INVALID_QUEUE_RATE TaskQueueServiceError_ErrorCode = 8 TaskQueueServiceError_PERMISSION_DENIED TaskQueueServiceError_ErrorCode = 9 TaskQueueServiceError_TASK_ALREADY_EXISTS TaskQueueServiceError_ErrorCode = 10 TaskQueueServiceError_TOMBSTONED_TASK TaskQueueServiceError_ErrorCode = 11 TaskQueueServiceError_INVALID_ETA TaskQueueServiceError_ErrorCode = 12 TaskQueueServiceError_INVALID_REQUEST TaskQueueServiceError_ErrorCode = 13 TaskQueueServiceError_UNKNOWN_TASK TaskQueueServiceError_ErrorCode = 14 TaskQueueServiceError_TOMBSTONED_QUEUE TaskQueueServiceError_ErrorCode = 15 TaskQueueServiceError_DUPLICATE_TASK_NAME TaskQueueServiceError_ErrorCode = 16 TaskQueueServiceError_SKIPPED TaskQueueServiceError_ErrorCode = 17 TaskQueueServiceError_TOO_MANY_TASKS TaskQueueServiceError_ErrorCode = 18 TaskQueueServiceError_INVALID_PAYLOAD TaskQueueServiceError_ErrorCode = 19 TaskQueueServiceError_INVALID_RETRY_PARAMETERS TaskQueueServiceError_ErrorCode = 20 TaskQueueServiceError_INVALID_QUEUE_MODE TaskQueueServiceError_ErrorCode = 21 TaskQueueServiceError_ACL_LOOKUP_ERROR TaskQueueServiceError_ErrorCode = 22 TaskQueueServiceError_TRANSACTIONAL_REQUEST_TOO_LARGE TaskQueueServiceError_ErrorCode = 23 TaskQueueServiceError_INCORRECT_CREATOR_NAME TaskQueueServiceError_ErrorCode = 24 TaskQueueServiceError_TASK_LEASE_EXPIRED TaskQueueServiceError_ErrorCode = 25 TaskQueueServiceError_QUEUE_PAUSED TaskQueueServiceError_ErrorCode = 26 TaskQueueServiceError_INVALID_TAG TaskQueueServiceError_ErrorCode = 27 // Reserved range for the Datastore error codes. // Original Datastore error code is shifted by DATASTORE_ERROR offset. TaskQueueServiceError_DATASTORE_ERROR TaskQueueServiceError_ErrorCode = 10000 ) var TaskQueueServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "UNKNOWN_QUEUE", 2: "TRANSIENT_ERROR", 3: "INTERNAL_ERROR", 4: "TASK_TOO_LARGE", 5: "INVALID_TASK_NAME", 6: "INVALID_QUEUE_NAME", 7: "INVALID_URL", 8: "INVALID_QUEUE_RATE", 9: "PERMISSION_DENIED", 10: "TASK_ALREADY_EXISTS", 11: "TOMBSTONED_TASK", 12: "INVALID_ETA", 13: "INVALID_REQUEST", 14: "UNKNOWN_TASK", 15: "TOMBSTONED_QUEUE", 16: "DUPLICATE_TASK_NAME", 17: "SKIPPED", 18: "TOO_MANY_TASKS", 19: "INVALID_PAYLOAD", 20: "INVALID_RETRY_PARAMETERS", 21: "INVALID_QUEUE_MODE", 22: "ACL_LOOKUP_ERROR", 23: "TRANSACTIONAL_REQUEST_TOO_LARGE", 24: "INCORRECT_CREATOR_NAME", 25: "TASK_LEASE_EXPIRED", 26: "QUEUE_PAUSED", 27: "INVALID_TAG", 10000: "DATASTORE_ERROR", } var TaskQueueServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "UNKNOWN_QUEUE": 1, "TRANSIENT_ERROR": 2, "INTERNAL_ERROR": 3, "TASK_TOO_LARGE": 4, "INVALID_TASK_NAME": 5, "INVALID_QUEUE_NAME": 6, "INVALID_URL": 7, "INVALID_QUEUE_RATE": 8, "PERMISSION_DENIED": 9, "TASK_ALREADY_EXISTS": 10, "TOMBSTONED_TASK": 11, "INVALID_ETA": 12, "INVALID_REQUEST": 13, "UNKNOWN_TASK": 14, "TOMBSTONED_QUEUE": 15, "DUPLICATE_TASK_NAME": 16, "SKIPPED": 17, "TOO_MANY_TASKS": 18, "INVALID_PAYLOAD": 19, "INVALID_RETRY_PARAMETERS": 20, "INVALID_QUEUE_MODE": 21, "ACL_LOOKUP_ERROR": 22, "TRANSACTIONAL_REQUEST_TOO_LARGE": 23, "INCORRECT_CREATOR_NAME": 24, "TASK_LEASE_EXPIRED": 25, "QUEUE_PAUSED": 26, "INVALID_TAG": 27, "DATASTORE_ERROR": 10000, } func (x TaskQueueServiceError_ErrorCode) Enum() *TaskQueueServiceError_ErrorCode { p := new(TaskQueueServiceError_ErrorCode) *p = x return p } func (x TaskQueueServiceError_ErrorCode) String() string { return proto.EnumName(TaskQueueServiceError_ErrorCode_name, int32(x)) } func (x *TaskQueueServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(TaskQueueServiceError_ErrorCode_value, data, "TaskQueueServiceError_ErrorCode") if err != nil { return err } *x = TaskQueueServiceError_ErrorCode(value) return nil } func (TaskQueueServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{0, 0} } type TaskQueueMode_Mode int32 const ( TaskQueueMode_PUSH TaskQueueMode_Mode = 0 TaskQueueMode_PULL TaskQueueMode_Mode = 1 ) var TaskQueueMode_Mode_name = map[int32]string{ 0: "PUSH", 1: "PULL", } var TaskQueueMode_Mode_value = map[string]int32{ "PUSH": 0, "PULL": 1, } func (x TaskQueueMode_Mode) Enum() *TaskQueueMode_Mode { p := new(TaskQueueMode_Mode) *p = x return p } func (x TaskQueueMode_Mode) String() string { return proto.EnumName(TaskQueueMode_Mode_name, int32(x)) } func (x *TaskQueueMode_Mode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(TaskQueueMode_Mode_value, data, "TaskQueueMode_Mode") if err != nil { return err } *x = TaskQueueMode_Mode(value) return nil } func (TaskQueueMode_Mode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{5, 0} } type TaskQueueAddRequest_RequestMethod int32 const ( TaskQueueAddRequest_GET TaskQueueAddRequest_RequestMethod = 1 TaskQueueAddRequest_POST TaskQueueAddRequest_RequestMethod = 2 TaskQueueAddRequest_HEAD TaskQueueAddRequest_RequestMethod = 3 TaskQueueAddRequest_PUT TaskQueueAddRequest_RequestMethod = 4 TaskQueueAddRequest_DELETE TaskQueueAddRequest_RequestMethod = 5 ) var TaskQueueAddRequest_RequestMethod_name = map[int32]string{ 1: "GET", 2: "POST", 3: "HEAD", 4: "PUT", 5: "DELETE", } var TaskQueueAddRequest_RequestMethod_value = map[string]int32{ "GET": 1, "POST": 2, "HEAD": 3, "PUT": 4, "DELETE": 5, } func (x TaskQueueAddRequest_RequestMethod) Enum() *TaskQueueAddRequest_RequestMethod { p := new(TaskQueueAddRequest_RequestMethod) *p = x return p } func (x TaskQueueAddRequest_RequestMethod) String() string { return proto.EnumName(TaskQueueAddRequest_RequestMethod_name, int32(x)) } func (x *TaskQueueAddRequest_RequestMethod) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(TaskQueueAddRequest_RequestMethod_value, data, "TaskQueueAddRequest_RequestMethod") if err != nil { return err } *x = TaskQueueAddRequest_RequestMethod(value) return nil } func (TaskQueueAddRequest_RequestMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{6, 0} } type TaskQueueQueryTasksResponse_Task_RequestMethod int32 const ( TaskQueueQueryTasksResponse_Task_GET TaskQueueQueryTasksResponse_Task_RequestMethod = 1 TaskQueueQueryTasksResponse_Task_POST TaskQueueQueryTasksResponse_Task_RequestMethod = 2 TaskQueueQueryTasksResponse_Task_HEAD TaskQueueQueryTasksResponse_Task_RequestMethod = 3 TaskQueueQueryTasksResponse_Task_PUT TaskQueueQueryTasksResponse_Task_RequestMethod = 4 TaskQueueQueryTasksResponse_Task_DELETE TaskQueueQueryTasksResponse_Task_RequestMethod = 5 ) var TaskQueueQueryTasksResponse_Task_RequestMethod_name = map[int32]string{ 1: "GET", 2: "POST", 3: "HEAD", 4: "PUT", 5: "DELETE", } var TaskQueueQueryTasksResponse_Task_RequestMethod_value = map[string]int32{ "GET": 1, "POST": 2, "HEAD": 3, "PUT": 4, "DELETE": 5, } func (x TaskQueueQueryTasksResponse_Task_RequestMethod) Enum() *TaskQueueQueryTasksResponse_Task_RequestMethod { p := new(TaskQueueQueryTasksResponse_Task_RequestMethod) *p = x return p } func (x TaskQueueQueryTasksResponse_Task_RequestMethod) String() string { return proto.EnumName(TaskQueueQueryTasksResponse_Task_RequestMethod_name, int32(x)) } func (x *TaskQueueQueryTasksResponse_Task_RequestMethod) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(TaskQueueQueryTasksResponse_Task_RequestMethod_value, data, "TaskQueueQueryTasksResponse_Task_RequestMethod") if err != nil { return err } *x = TaskQueueQueryTasksResponse_Task_RequestMethod(value) return nil } func (TaskQueueQueryTasksResponse_Task_RequestMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{30, 0, 0} } type TaskQueueServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueServiceError) Reset() { *m = TaskQueueServiceError{} } func (m *TaskQueueServiceError) String() string { return proto.CompactTextString(m) } func (*TaskQueueServiceError) ProtoMessage() {} func (*TaskQueueServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{0} } func (m *TaskQueueServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueServiceError.Unmarshal(m, b) } func (m *TaskQueueServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueServiceError.Marshal(b, m, deterministic) } func (dst *TaskQueueServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueServiceError.Merge(dst, src) } func (m *TaskQueueServiceError) XXX_Size() int { return xxx_messageInfo_TaskQueueServiceError.Size(m) } func (m *TaskQueueServiceError) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueServiceError.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueServiceError proto.InternalMessageInfo type TaskPayload struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `protobuf_messageset:"1" json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskPayload) Reset() { *m = TaskPayload{} } func (m *TaskPayload) String() string { return proto.CompactTextString(m) } func (*TaskPayload) ProtoMessage() {} func (*TaskPayload) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{1} } func (m *TaskPayload) MarshalJSON() ([]byte, error) { return proto.MarshalMessageSetJSON(&m.XXX_InternalExtensions) } func (m *TaskPayload) UnmarshalJSON(buf []byte) error { return proto.UnmarshalMessageSetJSON(buf, &m.XXX_InternalExtensions) } var extRange_TaskPayload = []proto.ExtensionRange{ {Start: 10, End: 2147483646}, } func (*TaskPayload) ExtensionRangeArray() []proto.ExtensionRange { return extRange_TaskPayload } func (m *TaskPayload) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskPayload.Unmarshal(m, b) } func (m *TaskPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskPayload.Marshal(b, m, deterministic) } func (dst *TaskPayload) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskPayload.Merge(dst, src) } func (m *TaskPayload) XXX_Size() int { return xxx_messageInfo_TaskPayload.Size(m) } func (m *TaskPayload) XXX_DiscardUnknown() { xxx_messageInfo_TaskPayload.DiscardUnknown(m) } var xxx_messageInfo_TaskPayload proto.InternalMessageInfo type TaskQueueRetryParameters struct { RetryLimit *int32 `protobuf:"varint,1,opt,name=retry_limit,json=retryLimit" json:"retry_limit,omitempty"` AgeLimitSec *int64 `protobuf:"varint,2,opt,name=age_limit_sec,json=ageLimitSec" json:"age_limit_sec,omitempty"` MinBackoffSec *float64 `protobuf:"fixed64,3,opt,name=min_backoff_sec,json=minBackoffSec,def=0.1" json:"min_backoff_sec,omitempty"` MaxBackoffSec *float64 `protobuf:"fixed64,4,opt,name=max_backoff_sec,json=maxBackoffSec,def=3600" json:"max_backoff_sec,omitempty"` MaxDoublings *int32 `protobuf:"varint,5,opt,name=max_doublings,json=maxDoublings,def=16" json:"max_doublings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueRetryParameters) Reset() { *m = TaskQueueRetryParameters{} } func (m *TaskQueueRetryParameters) String() string { return proto.CompactTextString(m) } func (*TaskQueueRetryParameters) ProtoMessage() {} func (*TaskQueueRetryParameters) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{2} } func (m *TaskQueueRetryParameters) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueRetryParameters.Unmarshal(m, b) } func (m *TaskQueueRetryParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueRetryParameters.Marshal(b, m, deterministic) } func (dst *TaskQueueRetryParameters) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueRetryParameters.Merge(dst, src) } func (m *TaskQueueRetryParameters) XXX_Size() int { return xxx_messageInfo_TaskQueueRetryParameters.Size(m) } func (m *TaskQueueRetryParameters) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueRetryParameters.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueRetryParameters proto.InternalMessageInfo const Default_TaskQueueRetryParameters_MinBackoffSec float64 = 0.1 const Default_TaskQueueRetryParameters_MaxBackoffSec float64 = 3600 const Default_TaskQueueRetryParameters_MaxDoublings int32 = 16 func (m *TaskQueueRetryParameters) GetRetryLimit() int32 { if m != nil && m.RetryLimit != nil { return *m.RetryLimit } return 0 } func (m *TaskQueueRetryParameters) GetAgeLimitSec() int64 { if m != nil && m.AgeLimitSec != nil { return *m.AgeLimitSec } return 0 } func (m *TaskQueueRetryParameters) GetMinBackoffSec() float64 { if m != nil && m.MinBackoffSec != nil { return *m.MinBackoffSec } return Default_TaskQueueRetryParameters_MinBackoffSec } func (m *TaskQueueRetryParameters) GetMaxBackoffSec() float64 { if m != nil && m.MaxBackoffSec != nil { return *m.MaxBackoffSec } return Default_TaskQueueRetryParameters_MaxBackoffSec } func (m *TaskQueueRetryParameters) GetMaxDoublings() int32 { if m != nil && m.MaxDoublings != nil { return *m.MaxDoublings } return Default_TaskQueueRetryParameters_MaxDoublings } type TaskQueueAcl struct { UserEmail [][]byte `protobuf:"bytes,1,rep,name=user_email,json=userEmail" json:"user_email,omitempty"` WriterEmail [][]byte `protobuf:"bytes,2,rep,name=writer_email,json=writerEmail" json:"writer_email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueAcl) Reset() { *m = TaskQueueAcl{} } func (m *TaskQueueAcl) String() string { return proto.CompactTextString(m) } func (*TaskQueueAcl) ProtoMessage() {} func (*TaskQueueAcl) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{3} } func (m *TaskQueueAcl) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueAcl.Unmarshal(m, b) } func (m *TaskQueueAcl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueAcl.Marshal(b, m, deterministic) } func (dst *TaskQueueAcl) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueAcl.Merge(dst, src) } func (m *TaskQueueAcl) XXX_Size() int { return xxx_messageInfo_TaskQueueAcl.Size(m) } func (m *TaskQueueAcl) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueAcl.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueAcl proto.InternalMessageInfo func (m *TaskQueueAcl) GetUserEmail() [][]byte { if m != nil { return m.UserEmail } return nil } func (m *TaskQueueAcl) GetWriterEmail() [][]byte { if m != nil { return m.WriterEmail } return nil } type TaskQueueHttpHeader struct { Key []byte `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueHttpHeader) Reset() { *m = TaskQueueHttpHeader{} } func (m *TaskQueueHttpHeader) String() string { return proto.CompactTextString(m) } func (*TaskQueueHttpHeader) ProtoMessage() {} func (*TaskQueueHttpHeader) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{4} } func (m *TaskQueueHttpHeader) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueHttpHeader.Unmarshal(m, b) } func (m *TaskQueueHttpHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueHttpHeader.Marshal(b, m, deterministic) } func (dst *TaskQueueHttpHeader) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueHttpHeader.Merge(dst, src) } func (m *TaskQueueHttpHeader) XXX_Size() int { return xxx_messageInfo_TaskQueueHttpHeader.Size(m) } func (m *TaskQueueHttpHeader) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueHttpHeader.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueHttpHeader proto.InternalMessageInfo func (m *TaskQueueHttpHeader) GetKey() []byte { if m != nil { return m.Key } return nil } func (m *TaskQueueHttpHeader) GetValue() []byte { if m != nil { return m.Value } return nil } type TaskQueueMode struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueMode) Reset() { *m = TaskQueueMode{} } func (m *TaskQueueMode) String() string { return proto.CompactTextString(m) } func (*TaskQueueMode) ProtoMessage() {} func (*TaskQueueMode) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{5} } func (m *TaskQueueMode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueMode.Unmarshal(m, b) } func (m *TaskQueueMode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueMode.Marshal(b, m, deterministic) } func (dst *TaskQueueMode) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueMode.Merge(dst, src) } func (m *TaskQueueMode) XXX_Size() int { return xxx_messageInfo_TaskQueueMode.Size(m) } func (m *TaskQueueMode) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueMode.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueMode proto.InternalMessageInfo type TaskQueueAddRequest struct { QueueName []byte `protobuf:"bytes,1,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` TaskName []byte `protobuf:"bytes,2,req,name=task_name,json=taskName" json:"task_name,omitempty"` EtaUsec *int64 `protobuf:"varint,3,req,name=eta_usec,json=etaUsec" json:"eta_usec,omitempty"` Method *TaskQueueAddRequest_RequestMethod `protobuf:"varint,5,opt,name=method,enum=appengine.TaskQueueAddRequest_RequestMethod,def=2" json:"method,omitempty"` Url []byte `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"` Header []*TaskQueueAddRequest_Header `protobuf:"group,6,rep,name=Header,json=header" json:"header,omitempty"` Body []byte `protobuf:"bytes,9,opt,name=body" json:"body,omitempty"` Transaction *datastore.Transaction `protobuf:"bytes,10,opt,name=transaction" json:"transaction,omitempty"` AppId []byte `protobuf:"bytes,11,opt,name=app_id,json=appId" json:"app_id,omitempty"` Crontimetable *TaskQueueAddRequest_CronTimetable `protobuf:"group,12,opt,name=CronTimetable,json=crontimetable" json:"crontimetable,omitempty"` Description []byte `protobuf:"bytes,15,opt,name=description" json:"description,omitempty"` Payload *TaskPayload `protobuf:"bytes,16,opt,name=payload" json:"payload,omitempty"` RetryParameters *TaskQueueRetryParameters `protobuf:"bytes,17,opt,name=retry_parameters,json=retryParameters" json:"retry_parameters,omitempty"` Mode *TaskQueueMode_Mode `protobuf:"varint,18,opt,name=mode,enum=appengine.TaskQueueMode_Mode,def=0" json:"mode,omitempty"` Tag []byte `protobuf:"bytes,19,opt,name=tag" json:"tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueAddRequest) Reset() { *m = TaskQueueAddRequest{} } func (m *TaskQueueAddRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueAddRequest) ProtoMessage() {} func (*TaskQueueAddRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{6} } func (m *TaskQueueAddRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueAddRequest.Unmarshal(m, b) } func (m *TaskQueueAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueAddRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueAddRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueAddRequest.Merge(dst, src) } func (m *TaskQueueAddRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueAddRequest.Size(m) } func (m *TaskQueueAddRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueAddRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueAddRequest proto.InternalMessageInfo const Default_TaskQueueAddRequest_Method TaskQueueAddRequest_RequestMethod = TaskQueueAddRequest_POST const Default_TaskQueueAddRequest_Mode TaskQueueMode_Mode = TaskQueueMode_PUSH func (m *TaskQueueAddRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueAddRequest) GetTaskName() []byte { if m != nil { return m.TaskName } return nil } func (m *TaskQueueAddRequest) GetEtaUsec() int64 { if m != nil && m.EtaUsec != nil { return *m.EtaUsec } return 0 } func (m *TaskQueueAddRequest) GetMethod() TaskQueueAddRequest_RequestMethod { if m != nil && m.Method != nil { return *m.Method } return Default_TaskQueueAddRequest_Method } func (m *TaskQueueAddRequest) GetUrl() []byte { if m != nil { return m.Url } return nil } func (m *TaskQueueAddRequest) GetHeader() []*TaskQueueAddRequest_Header { if m != nil { return m.Header } return nil } func (m *TaskQueueAddRequest) GetBody() []byte { if m != nil { return m.Body } return nil } func (m *TaskQueueAddRequest) GetTransaction() *datastore.Transaction { if m != nil { return m.Transaction } return nil } func (m *TaskQueueAddRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueAddRequest) GetCrontimetable() *TaskQueueAddRequest_CronTimetable { if m != nil { return m.Crontimetable } return nil } func (m *TaskQueueAddRequest) GetDescription() []byte { if m != nil { return m.Description } return nil } func (m *TaskQueueAddRequest) GetPayload() *TaskPayload { if m != nil { return m.Payload } return nil } func (m *TaskQueueAddRequest) GetRetryParameters() *TaskQueueRetryParameters { if m != nil { return m.RetryParameters } return nil } func (m *TaskQueueAddRequest) GetMode() TaskQueueMode_Mode { if m != nil && m.Mode != nil { return *m.Mode } return Default_TaskQueueAddRequest_Mode } func (m *TaskQueueAddRequest) GetTag() []byte { if m != nil { return m.Tag } return nil } type TaskQueueAddRequest_Header struct { Key []byte `protobuf:"bytes,7,req,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,8,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueAddRequest_Header) Reset() { *m = TaskQueueAddRequest_Header{} } func (m *TaskQueueAddRequest_Header) String() string { return proto.CompactTextString(m) } func (*TaskQueueAddRequest_Header) ProtoMessage() {} func (*TaskQueueAddRequest_Header) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{6, 0} } func (m *TaskQueueAddRequest_Header) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueAddRequest_Header.Unmarshal(m, b) } func (m *TaskQueueAddRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueAddRequest_Header.Marshal(b, m, deterministic) } func (dst *TaskQueueAddRequest_Header) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueAddRequest_Header.Merge(dst, src) } func (m *TaskQueueAddRequest_Header) XXX_Size() int { return xxx_messageInfo_TaskQueueAddRequest_Header.Size(m) } func (m *TaskQueueAddRequest_Header) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueAddRequest_Header.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueAddRequest_Header proto.InternalMessageInfo func (m *TaskQueueAddRequest_Header) GetKey() []byte { if m != nil { return m.Key } return nil } func (m *TaskQueueAddRequest_Header) GetValue() []byte { if m != nil { return m.Value } return nil } type TaskQueueAddRequest_CronTimetable struct { Schedule []byte `protobuf:"bytes,13,req,name=schedule" json:"schedule,omitempty"` Timezone []byte `protobuf:"bytes,14,req,name=timezone" json:"timezone,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueAddRequest_CronTimetable) Reset() { *m = TaskQueueAddRequest_CronTimetable{} } func (m *TaskQueueAddRequest_CronTimetable) String() string { return proto.CompactTextString(m) } func (*TaskQueueAddRequest_CronTimetable) ProtoMessage() {} func (*TaskQueueAddRequest_CronTimetable) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{6, 1} } func (m *TaskQueueAddRequest_CronTimetable) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueAddRequest_CronTimetable.Unmarshal(m, b) } func (m *TaskQueueAddRequest_CronTimetable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueAddRequest_CronTimetable.Marshal(b, m, deterministic) } func (dst *TaskQueueAddRequest_CronTimetable) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueAddRequest_CronTimetable.Merge(dst, src) } func (m *TaskQueueAddRequest_CronTimetable) XXX_Size() int { return xxx_messageInfo_TaskQueueAddRequest_CronTimetable.Size(m) } func (m *TaskQueueAddRequest_CronTimetable) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueAddRequest_CronTimetable.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueAddRequest_CronTimetable proto.InternalMessageInfo func (m *TaskQueueAddRequest_CronTimetable) GetSchedule() []byte { if m != nil { return m.Schedule } return nil } func (m *TaskQueueAddRequest_CronTimetable) GetTimezone() []byte { if m != nil { return m.Timezone } return nil } type TaskQueueAddResponse struct { ChosenTaskName []byte `protobuf:"bytes,1,opt,name=chosen_task_name,json=chosenTaskName" json:"chosen_task_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueAddResponse) Reset() { *m = TaskQueueAddResponse{} } func (m *TaskQueueAddResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueAddResponse) ProtoMessage() {} func (*TaskQueueAddResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{7} } func (m *TaskQueueAddResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueAddResponse.Unmarshal(m, b) } func (m *TaskQueueAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueAddResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueAddResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueAddResponse.Merge(dst, src) } func (m *TaskQueueAddResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueAddResponse.Size(m) } func (m *TaskQueueAddResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueAddResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueAddResponse proto.InternalMessageInfo func (m *TaskQueueAddResponse) GetChosenTaskName() []byte { if m != nil { return m.ChosenTaskName } return nil } type TaskQueueBulkAddRequest struct { AddRequest []*TaskQueueAddRequest `protobuf:"bytes,1,rep,name=add_request,json=addRequest" json:"add_request,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueBulkAddRequest) Reset() { *m = TaskQueueBulkAddRequest{} } func (m *TaskQueueBulkAddRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueBulkAddRequest) ProtoMessage() {} func (*TaskQueueBulkAddRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{8} } func (m *TaskQueueBulkAddRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueBulkAddRequest.Unmarshal(m, b) } func (m *TaskQueueBulkAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueBulkAddRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueBulkAddRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueBulkAddRequest.Merge(dst, src) } func (m *TaskQueueBulkAddRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueBulkAddRequest.Size(m) } func (m *TaskQueueBulkAddRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueBulkAddRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueBulkAddRequest proto.InternalMessageInfo func (m *TaskQueueBulkAddRequest) GetAddRequest() []*TaskQueueAddRequest { if m != nil { return m.AddRequest } return nil } type TaskQueueBulkAddResponse struct { Taskresult []*TaskQueueBulkAddResponse_TaskResult `protobuf:"group,1,rep,name=TaskResult,json=taskresult" json:"taskresult,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueBulkAddResponse) Reset() { *m = TaskQueueBulkAddResponse{} } func (m *TaskQueueBulkAddResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueBulkAddResponse) ProtoMessage() {} func (*TaskQueueBulkAddResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{9} } func (m *TaskQueueBulkAddResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueBulkAddResponse.Unmarshal(m, b) } func (m *TaskQueueBulkAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueBulkAddResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueBulkAddResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueBulkAddResponse.Merge(dst, src) } func (m *TaskQueueBulkAddResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueBulkAddResponse.Size(m) } func (m *TaskQueueBulkAddResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueBulkAddResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueBulkAddResponse proto.InternalMessageInfo func (m *TaskQueueBulkAddResponse) GetTaskresult() []*TaskQueueBulkAddResponse_TaskResult { if m != nil { return m.Taskresult } return nil } type TaskQueueBulkAddResponse_TaskResult struct { Result *TaskQueueServiceError_ErrorCode `protobuf:"varint,2,req,name=result,enum=appengine.TaskQueueServiceError_ErrorCode" json:"result,omitempty"` ChosenTaskName []byte `protobuf:"bytes,3,opt,name=chosen_task_name,json=chosenTaskName" json:"chosen_task_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueBulkAddResponse_TaskResult) Reset() { *m = TaskQueueBulkAddResponse_TaskResult{} } func (m *TaskQueueBulkAddResponse_TaskResult) String() string { return proto.CompactTextString(m) } func (*TaskQueueBulkAddResponse_TaskResult) ProtoMessage() {} func (*TaskQueueBulkAddResponse_TaskResult) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{9, 0} } func (m *TaskQueueBulkAddResponse_TaskResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueBulkAddResponse_TaskResult.Unmarshal(m, b) } func (m *TaskQueueBulkAddResponse_TaskResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueBulkAddResponse_TaskResult.Marshal(b, m, deterministic) } func (dst *TaskQueueBulkAddResponse_TaskResult) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueBulkAddResponse_TaskResult.Merge(dst, src) } func (m *TaskQueueBulkAddResponse_TaskResult) XXX_Size() int { return xxx_messageInfo_TaskQueueBulkAddResponse_TaskResult.Size(m) } func (m *TaskQueueBulkAddResponse_TaskResult) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueBulkAddResponse_TaskResult.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueBulkAddResponse_TaskResult proto.InternalMessageInfo func (m *TaskQueueBulkAddResponse_TaskResult) GetResult() TaskQueueServiceError_ErrorCode { if m != nil && m.Result != nil { return *m.Result } return TaskQueueServiceError_OK } func (m *TaskQueueBulkAddResponse_TaskResult) GetChosenTaskName() []byte { if m != nil { return m.ChosenTaskName } return nil } type TaskQueueDeleteRequest struct { QueueName []byte `protobuf:"bytes,1,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` TaskName [][]byte `protobuf:"bytes,2,rep,name=task_name,json=taskName" json:"task_name,omitempty"` AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueDeleteRequest) Reset() { *m = TaskQueueDeleteRequest{} } func (m *TaskQueueDeleteRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueDeleteRequest) ProtoMessage() {} func (*TaskQueueDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{10} } func (m *TaskQueueDeleteRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueDeleteRequest.Unmarshal(m, b) } func (m *TaskQueueDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueDeleteRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueDeleteRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueDeleteRequest.Merge(dst, src) } func (m *TaskQueueDeleteRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueDeleteRequest.Size(m) } func (m *TaskQueueDeleteRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueDeleteRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueDeleteRequest proto.InternalMessageInfo func (m *TaskQueueDeleteRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueDeleteRequest) GetTaskName() [][]byte { if m != nil { return m.TaskName } return nil } func (m *TaskQueueDeleteRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } type TaskQueueDeleteResponse struct { Result []TaskQueueServiceError_ErrorCode `protobuf:"varint,3,rep,name=result,enum=appengine.TaskQueueServiceError_ErrorCode" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueDeleteResponse) Reset() { *m = TaskQueueDeleteResponse{} } func (m *TaskQueueDeleteResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueDeleteResponse) ProtoMessage() {} func (*TaskQueueDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{11} } func (m *TaskQueueDeleteResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueDeleteResponse.Unmarshal(m, b) } func (m *TaskQueueDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueDeleteResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueDeleteResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueDeleteResponse.Merge(dst, src) } func (m *TaskQueueDeleteResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueDeleteResponse.Size(m) } func (m *TaskQueueDeleteResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueDeleteResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueDeleteResponse proto.InternalMessageInfo func (m *TaskQueueDeleteResponse) GetResult() []TaskQueueServiceError_ErrorCode { if m != nil { return m.Result } return nil } type TaskQueueForceRunRequest struct { AppId []byte `protobuf:"bytes,1,opt,name=app_id,json=appId" json:"app_id,omitempty"` QueueName []byte `protobuf:"bytes,2,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` TaskName []byte `protobuf:"bytes,3,req,name=task_name,json=taskName" json:"task_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueForceRunRequest) Reset() { *m = TaskQueueForceRunRequest{} } func (m *TaskQueueForceRunRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueForceRunRequest) ProtoMessage() {} func (*TaskQueueForceRunRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{12} } func (m *TaskQueueForceRunRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueForceRunRequest.Unmarshal(m, b) } func (m *TaskQueueForceRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueForceRunRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueForceRunRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueForceRunRequest.Merge(dst, src) } func (m *TaskQueueForceRunRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueForceRunRequest.Size(m) } func (m *TaskQueueForceRunRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueForceRunRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueForceRunRequest proto.InternalMessageInfo func (m *TaskQueueForceRunRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueForceRunRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueForceRunRequest) GetTaskName() []byte { if m != nil { return m.TaskName } return nil } type TaskQueueForceRunResponse struct { Result *TaskQueueServiceError_ErrorCode `protobuf:"varint,3,req,name=result,enum=appengine.TaskQueueServiceError_ErrorCode" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueForceRunResponse) Reset() { *m = TaskQueueForceRunResponse{} } func (m *TaskQueueForceRunResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueForceRunResponse) ProtoMessage() {} func (*TaskQueueForceRunResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{13} } func (m *TaskQueueForceRunResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueForceRunResponse.Unmarshal(m, b) } func (m *TaskQueueForceRunResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueForceRunResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueForceRunResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueForceRunResponse.Merge(dst, src) } func (m *TaskQueueForceRunResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueForceRunResponse.Size(m) } func (m *TaskQueueForceRunResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueForceRunResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueForceRunResponse proto.InternalMessageInfo func (m *TaskQueueForceRunResponse) GetResult() TaskQueueServiceError_ErrorCode { if m != nil && m.Result != nil { return *m.Result } return TaskQueueServiceError_OK } type TaskQueueUpdateQueueRequest struct { AppId []byte `protobuf:"bytes,1,opt,name=app_id,json=appId" json:"app_id,omitempty"` QueueName []byte `protobuf:"bytes,2,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` BucketRefillPerSecond *float64 `protobuf:"fixed64,3,req,name=bucket_refill_per_second,json=bucketRefillPerSecond" json:"bucket_refill_per_second,omitempty"` BucketCapacity *int32 `protobuf:"varint,4,req,name=bucket_capacity,json=bucketCapacity" json:"bucket_capacity,omitempty"` UserSpecifiedRate *string `protobuf:"bytes,5,opt,name=user_specified_rate,json=userSpecifiedRate" json:"user_specified_rate,omitempty"` RetryParameters *TaskQueueRetryParameters `protobuf:"bytes,6,opt,name=retry_parameters,json=retryParameters" json:"retry_parameters,omitempty"` MaxConcurrentRequests *int32 `protobuf:"varint,7,opt,name=max_concurrent_requests,json=maxConcurrentRequests" json:"max_concurrent_requests,omitempty"` Mode *TaskQueueMode_Mode `protobuf:"varint,8,opt,name=mode,enum=appengine.TaskQueueMode_Mode,def=0" json:"mode,omitempty"` Acl *TaskQueueAcl `protobuf:"bytes,9,opt,name=acl" json:"acl,omitempty"` HeaderOverride []*TaskQueueHttpHeader `protobuf:"bytes,10,rep,name=header_override,json=headerOverride" json:"header_override,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueUpdateQueueRequest) Reset() { *m = TaskQueueUpdateQueueRequest{} } func (m *TaskQueueUpdateQueueRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueUpdateQueueRequest) ProtoMessage() {} func (*TaskQueueUpdateQueueRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{14} } func (m *TaskQueueUpdateQueueRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueUpdateQueueRequest.Unmarshal(m, b) } func (m *TaskQueueUpdateQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueUpdateQueueRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueUpdateQueueRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueUpdateQueueRequest.Merge(dst, src) } func (m *TaskQueueUpdateQueueRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueUpdateQueueRequest.Size(m) } func (m *TaskQueueUpdateQueueRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueUpdateQueueRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueUpdateQueueRequest proto.InternalMessageInfo const Default_TaskQueueUpdateQueueRequest_Mode TaskQueueMode_Mode = TaskQueueMode_PUSH func (m *TaskQueueUpdateQueueRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueUpdateQueueRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueUpdateQueueRequest) GetBucketRefillPerSecond() float64 { if m != nil && m.BucketRefillPerSecond != nil { return *m.BucketRefillPerSecond } return 0 } func (m *TaskQueueUpdateQueueRequest) GetBucketCapacity() int32 { if m != nil && m.BucketCapacity != nil { return *m.BucketCapacity } return 0 } func (m *TaskQueueUpdateQueueRequest) GetUserSpecifiedRate() string { if m != nil && m.UserSpecifiedRate != nil { return *m.UserSpecifiedRate } return "" } func (m *TaskQueueUpdateQueueRequest) GetRetryParameters() *TaskQueueRetryParameters { if m != nil { return m.RetryParameters } return nil } func (m *TaskQueueUpdateQueueRequest) GetMaxConcurrentRequests() int32 { if m != nil && m.MaxConcurrentRequests != nil { return *m.MaxConcurrentRequests } return 0 } func (m *TaskQueueUpdateQueueRequest) GetMode() TaskQueueMode_Mode { if m != nil && m.Mode != nil { return *m.Mode } return Default_TaskQueueUpdateQueueRequest_Mode } func (m *TaskQueueUpdateQueueRequest) GetAcl() *TaskQueueAcl { if m != nil { return m.Acl } return nil } func (m *TaskQueueUpdateQueueRequest) GetHeaderOverride() []*TaskQueueHttpHeader { if m != nil { return m.HeaderOverride } return nil } type TaskQueueUpdateQueueResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueUpdateQueueResponse) Reset() { *m = TaskQueueUpdateQueueResponse{} } func (m *TaskQueueUpdateQueueResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueUpdateQueueResponse) ProtoMessage() {} func (*TaskQueueUpdateQueueResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{15} } func (m *TaskQueueUpdateQueueResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueUpdateQueueResponse.Unmarshal(m, b) } func (m *TaskQueueUpdateQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueUpdateQueueResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueUpdateQueueResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueUpdateQueueResponse.Merge(dst, src) } func (m *TaskQueueUpdateQueueResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueUpdateQueueResponse.Size(m) } func (m *TaskQueueUpdateQueueResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueUpdateQueueResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueUpdateQueueResponse proto.InternalMessageInfo type TaskQueueFetchQueuesRequest struct { AppId []byte `protobuf:"bytes,1,opt,name=app_id,json=appId" json:"app_id,omitempty"` MaxRows *int32 `protobuf:"varint,2,req,name=max_rows,json=maxRows" json:"max_rows,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueFetchQueuesRequest) Reset() { *m = TaskQueueFetchQueuesRequest{} } func (m *TaskQueueFetchQueuesRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueFetchQueuesRequest) ProtoMessage() {} func (*TaskQueueFetchQueuesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{16} } func (m *TaskQueueFetchQueuesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueFetchQueuesRequest.Unmarshal(m, b) } func (m *TaskQueueFetchQueuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueFetchQueuesRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueFetchQueuesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueFetchQueuesRequest.Merge(dst, src) } func (m *TaskQueueFetchQueuesRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueFetchQueuesRequest.Size(m) } func (m *TaskQueueFetchQueuesRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueFetchQueuesRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueFetchQueuesRequest proto.InternalMessageInfo func (m *TaskQueueFetchQueuesRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueFetchQueuesRequest) GetMaxRows() int32 { if m != nil && m.MaxRows != nil { return *m.MaxRows } return 0 } type TaskQueueFetchQueuesResponse struct { Queue []*TaskQueueFetchQueuesResponse_Queue `protobuf:"group,1,rep,name=Queue,json=queue" json:"queue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueFetchQueuesResponse) Reset() { *m = TaskQueueFetchQueuesResponse{} } func (m *TaskQueueFetchQueuesResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueFetchQueuesResponse) ProtoMessage() {} func (*TaskQueueFetchQueuesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{17} } func (m *TaskQueueFetchQueuesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueFetchQueuesResponse.Unmarshal(m, b) } func (m *TaskQueueFetchQueuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueFetchQueuesResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueFetchQueuesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueFetchQueuesResponse.Merge(dst, src) } func (m *TaskQueueFetchQueuesResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueFetchQueuesResponse.Size(m) } func (m *TaskQueueFetchQueuesResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueFetchQueuesResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueFetchQueuesResponse proto.InternalMessageInfo func (m *TaskQueueFetchQueuesResponse) GetQueue() []*TaskQueueFetchQueuesResponse_Queue { if m != nil { return m.Queue } return nil } type TaskQueueFetchQueuesResponse_Queue struct { QueueName []byte `protobuf:"bytes,2,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` BucketRefillPerSecond *float64 `protobuf:"fixed64,3,req,name=bucket_refill_per_second,json=bucketRefillPerSecond" json:"bucket_refill_per_second,omitempty"` BucketCapacity *float64 `protobuf:"fixed64,4,req,name=bucket_capacity,json=bucketCapacity" json:"bucket_capacity,omitempty"` UserSpecifiedRate *string `protobuf:"bytes,5,opt,name=user_specified_rate,json=userSpecifiedRate" json:"user_specified_rate,omitempty"` Paused *bool `protobuf:"varint,6,req,name=paused,def=0" json:"paused,omitempty"` RetryParameters *TaskQueueRetryParameters `protobuf:"bytes,7,opt,name=retry_parameters,json=retryParameters" json:"retry_parameters,omitempty"` MaxConcurrentRequests *int32 `protobuf:"varint,8,opt,name=max_concurrent_requests,json=maxConcurrentRequests" json:"max_concurrent_requests,omitempty"` Mode *TaskQueueMode_Mode `protobuf:"varint,9,opt,name=mode,enum=appengine.TaskQueueMode_Mode,def=0" json:"mode,omitempty"` Acl *TaskQueueAcl `protobuf:"bytes,10,opt,name=acl" json:"acl,omitempty"` HeaderOverride []*TaskQueueHttpHeader `protobuf:"bytes,11,rep,name=header_override,json=headerOverride" json:"header_override,omitempty"` CreatorName *string `protobuf:"bytes,12,opt,name=creator_name,json=creatorName,def=apphosting" json:"creator_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueFetchQueuesResponse_Queue) Reset() { *m = TaskQueueFetchQueuesResponse_Queue{} } func (m *TaskQueueFetchQueuesResponse_Queue) String() string { return proto.CompactTextString(m) } func (*TaskQueueFetchQueuesResponse_Queue) ProtoMessage() {} func (*TaskQueueFetchQueuesResponse_Queue) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{17, 0} } func (m *TaskQueueFetchQueuesResponse_Queue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueFetchQueuesResponse_Queue.Unmarshal(m, b) } func (m *TaskQueueFetchQueuesResponse_Queue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueFetchQueuesResponse_Queue.Marshal(b, m, deterministic) } func (dst *TaskQueueFetchQueuesResponse_Queue) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueFetchQueuesResponse_Queue.Merge(dst, src) } func (m *TaskQueueFetchQueuesResponse_Queue) XXX_Size() int { return xxx_messageInfo_TaskQueueFetchQueuesResponse_Queue.Size(m) } func (m *TaskQueueFetchQueuesResponse_Queue) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueFetchQueuesResponse_Queue.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueFetchQueuesResponse_Queue proto.InternalMessageInfo const Default_TaskQueueFetchQueuesResponse_Queue_Paused bool = false const Default_TaskQueueFetchQueuesResponse_Queue_Mode TaskQueueMode_Mode = TaskQueueMode_PUSH const Default_TaskQueueFetchQueuesResponse_Queue_CreatorName string = "apphosting" func (m *TaskQueueFetchQueuesResponse_Queue) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueFetchQueuesResponse_Queue) GetBucketRefillPerSecond() float64 { if m != nil && m.BucketRefillPerSecond != nil { return *m.BucketRefillPerSecond } return 0 } func (m *TaskQueueFetchQueuesResponse_Queue) GetBucketCapacity() float64 { if m != nil && m.BucketCapacity != nil { return *m.BucketCapacity } return 0 } func (m *TaskQueueFetchQueuesResponse_Queue) GetUserSpecifiedRate() string { if m != nil && m.UserSpecifiedRate != nil { return *m.UserSpecifiedRate } return "" } func (m *TaskQueueFetchQueuesResponse_Queue) GetPaused() bool { if m != nil && m.Paused != nil { return *m.Paused } return Default_TaskQueueFetchQueuesResponse_Queue_Paused } func (m *TaskQueueFetchQueuesResponse_Queue) GetRetryParameters() *TaskQueueRetryParameters { if m != nil { return m.RetryParameters } return nil } func (m *TaskQueueFetchQueuesResponse_Queue) GetMaxConcurrentRequests() int32 { if m != nil && m.MaxConcurrentRequests != nil { return *m.MaxConcurrentRequests } return 0 } func (m *TaskQueueFetchQueuesResponse_Queue) GetMode() TaskQueueMode_Mode { if m != nil && m.Mode != nil { return *m.Mode } return Default_TaskQueueFetchQueuesResponse_Queue_Mode } func (m *TaskQueueFetchQueuesResponse_Queue) GetAcl() *TaskQueueAcl { if m != nil { return m.Acl } return nil } func (m *TaskQueueFetchQueuesResponse_Queue) GetHeaderOverride() []*TaskQueueHttpHeader { if m != nil { return m.HeaderOverride } return nil } func (m *TaskQueueFetchQueuesResponse_Queue) GetCreatorName() string { if m != nil && m.CreatorName != nil { return *m.CreatorName } return Default_TaskQueueFetchQueuesResponse_Queue_CreatorName } type TaskQueueFetchQueueStatsRequest struct { AppId []byte `protobuf:"bytes,1,opt,name=app_id,json=appId" json:"app_id,omitempty"` QueueName [][]byte `protobuf:"bytes,2,rep,name=queue_name,json=queueName" json:"queue_name,omitempty"` MaxNumTasks *int32 `protobuf:"varint,3,opt,name=max_num_tasks,json=maxNumTasks,def=0" json:"max_num_tasks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueFetchQueueStatsRequest) Reset() { *m = TaskQueueFetchQueueStatsRequest{} } func (m *TaskQueueFetchQueueStatsRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueFetchQueueStatsRequest) ProtoMessage() {} func (*TaskQueueFetchQueueStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{18} } func (m *TaskQueueFetchQueueStatsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueFetchQueueStatsRequest.Unmarshal(m, b) } func (m *TaskQueueFetchQueueStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueFetchQueueStatsRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueFetchQueueStatsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueFetchQueueStatsRequest.Merge(dst, src) } func (m *TaskQueueFetchQueueStatsRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueFetchQueueStatsRequest.Size(m) } func (m *TaskQueueFetchQueueStatsRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueFetchQueueStatsRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueFetchQueueStatsRequest proto.InternalMessageInfo const Default_TaskQueueFetchQueueStatsRequest_MaxNumTasks int32 = 0 func (m *TaskQueueFetchQueueStatsRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueFetchQueueStatsRequest) GetQueueName() [][]byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueFetchQueueStatsRequest) GetMaxNumTasks() int32 { if m != nil && m.MaxNumTasks != nil { return *m.MaxNumTasks } return Default_TaskQueueFetchQueueStatsRequest_MaxNumTasks } type TaskQueueScannerQueueInfo struct { ExecutedLastMinute *int64 `protobuf:"varint,1,req,name=executed_last_minute,json=executedLastMinute" json:"executed_last_minute,omitempty"` ExecutedLastHour *int64 `protobuf:"varint,2,req,name=executed_last_hour,json=executedLastHour" json:"executed_last_hour,omitempty"` SamplingDurationSeconds *float64 `protobuf:"fixed64,3,req,name=sampling_duration_seconds,json=samplingDurationSeconds" json:"sampling_duration_seconds,omitempty"` RequestsInFlight *int32 `protobuf:"varint,4,opt,name=requests_in_flight,json=requestsInFlight" json:"requests_in_flight,omitempty"` EnforcedRate *float64 `protobuf:"fixed64,5,opt,name=enforced_rate,json=enforcedRate" json:"enforced_rate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueScannerQueueInfo) Reset() { *m = TaskQueueScannerQueueInfo{} } func (m *TaskQueueScannerQueueInfo) String() string { return proto.CompactTextString(m) } func (*TaskQueueScannerQueueInfo) ProtoMessage() {} func (*TaskQueueScannerQueueInfo) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{19} } func (m *TaskQueueScannerQueueInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueScannerQueueInfo.Unmarshal(m, b) } func (m *TaskQueueScannerQueueInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueScannerQueueInfo.Marshal(b, m, deterministic) } func (dst *TaskQueueScannerQueueInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueScannerQueueInfo.Merge(dst, src) } func (m *TaskQueueScannerQueueInfo) XXX_Size() int { return xxx_messageInfo_TaskQueueScannerQueueInfo.Size(m) } func (m *TaskQueueScannerQueueInfo) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueScannerQueueInfo.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueScannerQueueInfo proto.InternalMessageInfo func (m *TaskQueueScannerQueueInfo) GetExecutedLastMinute() int64 { if m != nil && m.ExecutedLastMinute != nil { return *m.ExecutedLastMinute } return 0 } func (m *TaskQueueScannerQueueInfo) GetExecutedLastHour() int64 { if m != nil && m.ExecutedLastHour != nil { return *m.ExecutedLastHour } return 0 } func (m *TaskQueueScannerQueueInfo) GetSamplingDurationSeconds() float64 { if m != nil && m.SamplingDurationSeconds != nil { return *m.SamplingDurationSeconds } return 0 } func (m *TaskQueueScannerQueueInfo) GetRequestsInFlight() int32 { if m != nil && m.RequestsInFlight != nil { return *m.RequestsInFlight } return 0 } func (m *TaskQueueScannerQueueInfo) GetEnforcedRate() float64 { if m != nil && m.EnforcedRate != nil { return *m.EnforcedRate } return 0 } type TaskQueueFetchQueueStatsResponse struct { Queuestats []*TaskQueueFetchQueueStatsResponse_QueueStats `protobuf:"group,1,rep,name=QueueStats,json=queuestats" json:"queuestats,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueFetchQueueStatsResponse) Reset() { *m = TaskQueueFetchQueueStatsResponse{} } func (m *TaskQueueFetchQueueStatsResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueFetchQueueStatsResponse) ProtoMessage() {} func (*TaskQueueFetchQueueStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{20} } func (m *TaskQueueFetchQueueStatsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueFetchQueueStatsResponse.Unmarshal(m, b) } func (m *TaskQueueFetchQueueStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueFetchQueueStatsResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueFetchQueueStatsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueFetchQueueStatsResponse.Merge(dst, src) } func (m *TaskQueueFetchQueueStatsResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueFetchQueueStatsResponse.Size(m) } func (m *TaskQueueFetchQueueStatsResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueFetchQueueStatsResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueFetchQueueStatsResponse proto.InternalMessageInfo func (m *TaskQueueFetchQueueStatsResponse) GetQueuestats() []*TaskQueueFetchQueueStatsResponse_QueueStats { if m != nil { return m.Queuestats } return nil } type TaskQueueFetchQueueStatsResponse_QueueStats struct { NumTasks *int32 `protobuf:"varint,2,req,name=num_tasks,json=numTasks" json:"num_tasks,omitempty"` OldestEtaUsec *int64 `protobuf:"varint,3,req,name=oldest_eta_usec,json=oldestEtaUsec" json:"oldest_eta_usec,omitempty"` ScannerInfo *TaskQueueScannerQueueInfo `protobuf:"bytes,4,opt,name=scanner_info,json=scannerInfo" json:"scanner_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueFetchQueueStatsResponse_QueueStats) Reset() { *m = TaskQueueFetchQueueStatsResponse_QueueStats{} } func (m *TaskQueueFetchQueueStatsResponse_QueueStats) String() string { return proto.CompactTextString(m) } func (*TaskQueueFetchQueueStatsResponse_QueueStats) ProtoMessage() {} func (*TaskQueueFetchQueueStatsResponse_QueueStats) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{20, 0} } func (m *TaskQueueFetchQueueStatsResponse_QueueStats) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueFetchQueueStatsResponse_QueueStats.Unmarshal(m, b) } func (m *TaskQueueFetchQueueStatsResponse_QueueStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueFetchQueueStatsResponse_QueueStats.Marshal(b, m, deterministic) } func (dst *TaskQueueFetchQueueStatsResponse_QueueStats) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueFetchQueueStatsResponse_QueueStats.Merge(dst, src) } func (m *TaskQueueFetchQueueStatsResponse_QueueStats) XXX_Size() int { return xxx_messageInfo_TaskQueueFetchQueueStatsResponse_QueueStats.Size(m) } func (m *TaskQueueFetchQueueStatsResponse_QueueStats) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueFetchQueueStatsResponse_QueueStats.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueFetchQueueStatsResponse_QueueStats proto.InternalMessageInfo func (m *TaskQueueFetchQueueStatsResponse_QueueStats) GetNumTasks() int32 { if m != nil && m.NumTasks != nil { return *m.NumTasks } return 0 } func (m *TaskQueueFetchQueueStatsResponse_QueueStats) GetOldestEtaUsec() int64 { if m != nil && m.OldestEtaUsec != nil { return *m.OldestEtaUsec } return 0 } func (m *TaskQueueFetchQueueStatsResponse_QueueStats) GetScannerInfo() *TaskQueueScannerQueueInfo { if m != nil { return m.ScannerInfo } return nil } type TaskQueuePauseQueueRequest struct { AppId []byte `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` QueueName []byte `protobuf:"bytes,2,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` Pause *bool `protobuf:"varint,3,req,name=pause" json:"pause,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueuePauseQueueRequest) Reset() { *m = TaskQueuePauseQueueRequest{} } func (m *TaskQueuePauseQueueRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueuePauseQueueRequest) ProtoMessage() {} func (*TaskQueuePauseQueueRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{21} } func (m *TaskQueuePauseQueueRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueuePauseQueueRequest.Unmarshal(m, b) } func (m *TaskQueuePauseQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueuePauseQueueRequest.Marshal(b, m, deterministic) } func (dst *TaskQueuePauseQueueRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueuePauseQueueRequest.Merge(dst, src) } func (m *TaskQueuePauseQueueRequest) XXX_Size() int { return xxx_messageInfo_TaskQueuePauseQueueRequest.Size(m) } func (m *TaskQueuePauseQueueRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueuePauseQueueRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueuePauseQueueRequest proto.InternalMessageInfo func (m *TaskQueuePauseQueueRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueuePauseQueueRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueuePauseQueueRequest) GetPause() bool { if m != nil && m.Pause != nil { return *m.Pause } return false } type TaskQueuePauseQueueResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueuePauseQueueResponse) Reset() { *m = TaskQueuePauseQueueResponse{} } func (m *TaskQueuePauseQueueResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueuePauseQueueResponse) ProtoMessage() {} func (*TaskQueuePauseQueueResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{22} } func (m *TaskQueuePauseQueueResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueuePauseQueueResponse.Unmarshal(m, b) } func (m *TaskQueuePauseQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueuePauseQueueResponse.Marshal(b, m, deterministic) } func (dst *TaskQueuePauseQueueResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueuePauseQueueResponse.Merge(dst, src) } func (m *TaskQueuePauseQueueResponse) XXX_Size() int { return xxx_messageInfo_TaskQueuePauseQueueResponse.Size(m) } func (m *TaskQueuePauseQueueResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueuePauseQueueResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueuePauseQueueResponse proto.InternalMessageInfo type TaskQueuePurgeQueueRequest struct { AppId []byte `protobuf:"bytes,1,opt,name=app_id,json=appId" json:"app_id,omitempty"` QueueName []byte `protobuf:"bytes,2,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueuePurgeQueueRequest) Reset() { *m = TaskQueuePurgeQueueRequest{} } func (m *TaskQueuePurgeQueueRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueuePurgeQueueRequest) ProtoMessage() {} func (*TaskQueuePurgeQueueRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{23} } func (m *TaskQueuePurgeQueueRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueuePurgeQueueRequest.Unmarshal(m, b) } func (m *TaskQueuePurgeQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueuePurgeQueueRequest.Marshal(b, m, deterministic) } func (dst *TaskQueuePurgeQueueRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueuePurgeQueueRequest.Merge(dst, src) } func (m *TaskQueuePurgeQueueRequest) XXX_Size() int { return xxx_messageInfo_TaskQueuePurgeQueueRequest.Size(m) } func (m *TaskQueuePurgeQueueRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueuePurgeQueueRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueuePurgeQueueRequest proto.InternalMessageInfo func (m *TaskQueuePurgeQueueRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueuePurgeQueueRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } type TaskQueuePurgeQueueResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueuePurgeQueueResponse) Reset() { *m = TaskQueuePurgeQueueResponse{} } func (m *TaskQueuePurgeQueueResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueuePurgeQueueResponse) ProtoMessage() {} func (*TaskQueuePurgeQueueResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{24} } func (m *TaskQueuePurgeQueueResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueuePurgeQueueResponse.Unmarshal(m, b) } func (m *TaskQueuePurgeQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueuePurgeQueueResponse.Marshal(b, m, deterministic) } func (dst *TaskQueuePurgeQueueResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueuePurgeQueueResponse.Merge(dst, src) } func (m *TaskQueuePurgeQueueResponse) XXX_Size() int { return xxx_messageInfo_TaskQueuePurgeQueueResponse.Size(m) } func (m *TaskQueuePurgeQueueResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueuePurgeQueueResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueuePurgeQueueResponse proto.InternalMessageInfo type TaskQueueDeleteQueueRequest struct { AppId []byte `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` QueueName []byte `protobuf:"bytes,2,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueDeleteQueueRequest) Reset() { *m = TaskQueueDeleteQueueRequest{} } func (m *TaskQueueDeleteQueueRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueDeleteQueueRequest) ProtoMessage() {} func (*TaskQueueDeleteQueueRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{25} } func (m *TaskQueueDeleteQueueRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueDeleteQueueRequest.Unmarshal(m, b) } func (m *TaskQueueDeleteQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueDeleteQueueRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueDeleteQueueRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueDeleteQueueRequest.Merge(dst, src) } func (m *TaskQueueDeleteQueueRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueDeleteQueueRequest.Size(m) } func (m *TaskQueueDeleteQueueRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueDeleteQueueRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueDeleteQueueRequest proto.InternalMessageInfo func (m *TaskQueueDeleteQueueRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueDeleteQueueRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } type TaskQueueDeleteQueueResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueDeleteQueueResponse) Reset() { *m = TaskQueueDeleteQueueResponse{} } func (m *TaskQueueDeleteQueueResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueDeleteQueueResponse) ProtoMessage() {} func (*TaskQueueDeleteQueueResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{26} } func (m *TaskQueueDeleteQueueResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueDeleteQueueResponse.Unmarshal(m, b) } func (m *TaskQueueDeleteQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueDeleteQueueResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueDeleteQueueResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueDeleteQueueResponse.Merge(dst, src) } func (m *TaskQueueDeleteQueueResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueDeleteQueueResponse.Size(m) } func (m *TaskQueueDeleteQueueResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueDeleteQueueResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueDeleteQueueResponse proto.InternalMessageInfo type TaskQueueDeleteGroupRequest struct { AppId []byte `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueDeleteGroupRequest) Reset() { *m = TaskQueueDeleteGroupRequest{} } func (m *TaskQueueDeleteGroupRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueDeleteGroupRequest) ProtoMessage() {} func (*TaskQueueDeleteGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{27} } func (m *TaskQueueDeleteGroupRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueDeleteGroupRequest.Unmarshal(m, b) } func (m *TaskQueueDeleteGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueDeleteGroupRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueDeleteGroupRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueDeleteGroupRequest.Merge(dst, src) } func (m *TaskQueueDeleteGroupRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueDeleteGroupRequest.Size(m) } func (m *TaskQueueDeleteGroupRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueDeleteGroupRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueDeleteGroupRequest proto.InternalMessageInfo func (m *TaskQueueDeleteGroupRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } type TaskQueueDeleteGroupResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueDeleteGroupResponse) Reset() { *m = TaskQueueDeleteGroupResponse{} } func (m *TaskQueueDeleteGroupResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueDeleteGroupResponse) ProtoMessage() {} func (*TaskQueueDeleteGroupResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{28} } func (m *TaskQueueDeleteGroupResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueDeleteGroupResponse.Unmarshal(m, b) } func (m *TaskQueueDeleteGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueDeleteGroupResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueDeleteGroupResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueDeleteGroupResponse.Merge(dst, src) } func (m *TaskQueueDeleteGroupResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueDeleteGroupResponse.Size(m) } func (m *TaskQueueDeleteGroupResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueDeleteGroupResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueDeleteGroupResponse proto.InternalMessageInfo type TaskQueueQueryTasksRequest struct { AppId []byte `protobuf:"bytes,1,opt,name=app_id,json=appId" json:"app_id,omitempty"` QueueName []byte `protobuf:"bytes,2,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` StartTaskName []byte `protobuf:"bytes,3,opt,name=start_task_name,json=startTaskName" json:"start_task_name,omitempty"` StartEtaUsec *int64 `protobuf:"varint,4,opt,name=start_eta_usec,json=startEtaUsec" json:"start_eta_usec,omitempty"` StartTag []byte `protobuf:"bytes,6,opt,name=start_tag,json=startTag" json:"start_tag,omitempty"` MaxRows *int32 `protobuf:"varint,5,opt,name=max_rows,json=maxRows,def=1" json:"max_rows,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryTasksRequest) Reset() { *m = TaskQueueQueryTasksRequest{} } func (m *TaskQueueQueryTasksRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryTasksRequest) ProtoMessage() {} func (*TaskQueueQueryTasksRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{29} } func (m *TaskQueueQueryTasksRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryTasksRequest.Unmarshal(m, b) } func (m *TaskQueueQueryTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryTasksRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryTasksRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryTasksRequest.Merge(dst, src) } func (m *TaskQueueQueryTasksRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryTasksRequest.Size(m) } func (m *TaskQueueQueryTasksRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryTasksRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryTasksRequest proto.InternalMessageInfo const Default_TaskQueueQueryTasksRequest_MaxRows int32 = 1 func (m *TaskQueueQueryTasksRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueQueryTasksRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueQueryTasksRequest) GetStartTaskName() []byte { if m != nil { return m.StartTaskName } return nil } func (m *TaskQueueQueryTasksRequest) GetStartEtaUsec() int64 { if m != nil && m.StartEtaUsec != nil { return *m.StartEtaUsec } return 0 } func (m *TaskQueueQueryTasksRequest) GetStartTag() []byte { if m != nil { return m.StartTag } return nil } func (m *TaskQueueQueryTasksRequest) GetMaxRows() int32 { if m != nil && m.MaxRows != nil { return *m.MaxRows } return Default_TaskQueueQueryTasksRequest_MaxRows } type TaskQueueQueryTasksResponse struct { Task []*TaskQueueQueryTasksResponse_Task `protobuf:"group,1,rep,name=Task,json=task" json:"task,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryTasksResponse) Reset() { *m = TaskQueueQueryTasksResponse{} } func (m *TaskQueueQueryTasksResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryTasksResponse) ProtoMessage() {} func (*TaskQueueQueryTasksResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{30} } func (m *TaskQueueQueryTasksResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryTasksResponse.Unmarshal(m, b) } func (m *TaskQueueQueryTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryTasksResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryTasksResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryTasksResponse.Merge(dst, src) } func (m *TaskQueueQueryTasksResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryTasksResponse.Size(m) } func (m *TaskQueueQueryTasksResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryTasksResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryTasksResponse proto.InternalMessageInfo func (m *TaskQueueQueryTasksResponse) GetTask() []*TaskQueueQueryTasksResponse_Task { if m != nil { return m.Task } return nil } type TaskQueueQueryTasksResponse_Task struct { TaskName []byte `protobuf:"bytes,2,req,name=task_name,json=taskName" json:"task_name,omitempty"` EtaUsec *int64 `protobuf:"varint,3,req,name=eta_usec,json=etaUsec" json:"eta_usec,omitempty"` Url []byte `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"` Method *TaskQueueQueryTasksResponse_Task_RequestMethod `protobuf:"varint,5,opt,name=method,enum=appengine.TaskQueueQueryTasksResponse_Task_RequestMethod" json:"method,omitempty"` RetryCount *int32 `protobuf:"varint,6,opt,name=retry_count,json=retryCount,def=0" json:"retry_count,omitempty"` Header []*TaskQueueQueryTasksResponse_Task_Header `protobuf:"group,7,rep,name=Header,json=header" json:"header,omitempty"` BodySize *int32 `protobuf:"varint,10,opt,name=body_size,json=bodySize" json:"body_size,omitempty"` Body []byte `protobuf:"bytes,11,opt,name=body" json:"body,omitempty"` CreationTimeUsec *int64 `protobuf:"varint,12,req,name=creation_time_usec,json=creationTimeUsec" json:"creation_time_usec,omitempty"` Crontimetable *TaskQueueQueryTasksResponse_Task_CronTimetable `protobuf:"group,13,opt,name=CronTimetable,json=crontimetable" json:"crontimetable,omitempty"` Runlog *TaskQueueQueryTasksResponse_Task_RunLog `protobuf:"group,16,opt,name=RunLog,json=runlog" json:"runlog,omitempty"` Description []byte `protobuf:"bytes,21,opt,name=description" json:"description,omitempty"` Payload *TaskPayload `protobuf:"bytes,22,opt,name=payload" json:"payload,omitempty"` RetryParameters *TaskQueueRetryParameters `protobuf:"bytes,23,opt,name=retry_parameters,json=retryParameters" json:"retry_parameters,omitempty"` FirstTryUsec *int64 `protobuf:"varint,24,opt,name=first_try_usec,json=firstTryUsec" json:"first_try_usec,omitempty"` Tag []byte `protobuf:"bytes,25,opt,name=tag" json:"tag,omitempty"` ExecutionCount *int32 `protobuf:"varint,26,opt,name=execution_count,json=executionCount,def=0" json:"execution_count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryTasksResponse_Task) Reset() { *m = TaskQueueQueryTasksResponse_Task{} } func (m *TaskQueueQueryTasksResponse_Task) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryTasksResponse_Task) ProtoMessage() {} func (*TaskQueueQueryTasksResponse_Task) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{30, 0} } func (m *TaskQueueQueryTasksResponse_Task) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task.Unmarshal(m, b) } func (m *TaskQueueQueryTasksResponse_Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryTasksResponse_Task) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryTasksResponse_Task.Merge(dst, src) } func (m *TaskQueueQueryTasksResponse_Task) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task.Size(m) } func (m *TaskQueueQueryTasksResponse_Task) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryTasksResponse_Task.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryTasksResponse_Task proto.InternalMessageInfo const Default_TaskQueueQueryTasksResponse_Task_RetryCount int32 = 0 const Default_TaskQueueQueryTasksResponse_Task_ExecutionCount int32 = 0 func (m *TaskQueueQueryTasksResponse_Task) GetTaskName() []byte { if m != nil { return m.TaskName } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetEtaUsec() int64 { if m != nil && m.EtaUsec != nil { return *m.EtaUsec } return 0 } func (m *TaskQueueQueryTasksResponse_Task) GetUrl() []byte { if m != nil { return m.Url } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetMethod() TaskQueueQueryTasksResponse_Task_RequestMethod { if m != nil && m.Method != nil { return *m.Method } return TaskQueueQueryTasksResponse_Task_GET } func (m *TaskQueueQueryTasksResponse_Task) GetRetryCount() int32 { if m != nil && m.RetryCount != nil { return *m.RetryCount } return Default_TaskQueueQueryTasksResponse_Task_RetryCount } func (m *TaskQueueQueryTasksResponse_Task) GetHeader() []*TaskQueueQueryTasksResponse_Task_Header { if m != nil { return m.Header } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetBodySize() int32 { if m != nil && m.BodySize != nil { return *m.BodySize } return 0 } func (m *TaskQueueQueryTasksResponse_Task) GetBody() []byte { if m != nil { return m.Body } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetCreationTimeUsec() int64 { if m != nil && m.CreationTimeUsec != nil { return *m.CreationTimeUsec } return 0 } func (m *TaskQueueQueryTasksResponse_Task) GetCrontimetable() *TaskQueueQueryTasksResponse_Task_CronTimetable { if m != nil { return m.Crontimetable } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetRunlog() *TaskQueueQueryTasksResponse_Task_RunLog { if m != nil { return m.Runlog } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetDescription() []byte { if m != nil { return m.Description } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetPayload() *TaskPayload { if m != nil { return m.Payload } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetRetryParameters() *TaskQueueRetryParameters { if m != nil { return m.RetryParameters } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetFirstTryUsec() int64 { if m != nil && m.FirstTryUsec != nil { return *m.FirstTryUsec } return 0 } func (m *TaskQueueQueryTasksResponse_Task) GetTag() []byte { if m != nil { return m.Tag } return nil } func (m *TaskQueueQueryTasksResponse_Task) GetExecutionCount() int32 { if m != nil && m.ExecutionCount != nil { return *m.ExecutionCount } return Default_TaskQueueQueryTasksResponse_Task_ExecutionCount } type TaskQueueQueryTasksResponse_Task_Header struct { Key []byte `protobuf:"bytes,8,req,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,9,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryTasksResponse_Task_Header) Reset() { *m = TaskQueueQueryTasksResponse_Task_Header{} } func (m *TaskQueueQueryTasksResponse_Task_Header) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryTasksResponse_Task_Header) ProtoMessage() {} func (*TaskQueueQueryTasksResponse_Task_Header) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{30, 0, 0} } func (m *TaskQueueQueryTasksResponse_Task_Header) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_Header.Unmarshal(m, b) } func (m *TaskQueueQueryTasksResponse_Task_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_Header.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryTasksResponse_Task_Header) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryTasksResponse_Task_Header.Merge(dst, src) } func (m *TaskQueueQueryTasksResponse_Task_Header) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_Header.Size(m) } func (m *TaskQueueQueryTasksResponse_Task_Header) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryTasksResponse_Task_Header.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryTasksResponse_Task_Header proto.InternalMessageInfo func (m *TaskQueueQueryTasksResponse_Task_Header) GetKey() []byte { if m != nil { return m.Key } return nil } func (m *TaskQueueQueryTasksResponse_Task_Header) GetValue() []byte { if m != nil { return m.Value } return nil } type TaskQueueQueryTasksResponse_Task_CronTimetable struct { Schedule []byte `protobuf:"bytes,14,req,name=schedule" json:"schedule,omitempty"` Timezone []byte `protobuf:"bytes,15,req,name=timezone" json:"timezone,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryTasksResponse_Task_CronTimetable) Reset() { *m = TaskQueueQueryTasksResponse_Task_CronTimetable{} } func (m *TaskQueueQueryTasksResponse_Task_CronTimetable) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryTasksResponse_Task_CronTimetable) ProtoMessage() {} func (*TaskQueueQueryTasksResponse_Task_CronTimetable) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{30, 0, 1} } func (m *TaskQueueQueryTasksResponse_Task_CronTimetable) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_CronTimetable.Unmarshal(m, b) } func (m *TaskQueueQueryTasksResponse_Task_CronTimetable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_CronTimetable.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryTasksResponse_Task_CronTimetable) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryTasksResponse_Task_CronTimetable.Merge(dst, src) } func (m *TaskQueueQueryTasksResponse_Task_CronTimetable) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_CronTimetable.Size(m) } func (m *TaskQueueQueryTasksResponse_Task_CronTimetable) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryTasksResponse_Task_CronTimetable.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryTasksResponse_Task_CronTimetable proto.InternalMessageInfo func (m *TaskQueueQueryTasksResponse_Task_CronTimetable) GetSchedule() []byte { if m != nil { return m.Schedule } return nil } func (m *TaskQueueQueryTasksResponse_Task_CronTimetable) GetTimezone() []byte { if m != nil { return m.Timezone } return nil } type TaskQueueQueryTasksResponse_Task_RunLog struct { DispatchedUsec *int64 `protobuf:"varint,17,req,name=dispatched_usec,json=dispatchedUsec" json:"dispatched_usec,omitempty"` LagUsec *int64 `protobuf:"varint,18,req,name=lag_usec,json=lagUsec" json:"lag_usec,omitempty"` ElapsedUsec *int64 `protobuf:"varint,19,req,name=elapsed_usec,json=elapsedUsec" json:"elapsed_usec,omitempty"` ResponseCode *int64 `protobuf:"varint,20,opt,name=response_code,json=responseCode" json:"response_code,omitempty"` RetryReason *string `protobuf:"bytes,27,opt,name=retry_reason,json=retryReason" json:"retry_reason,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryTasksResponse_Task_RunLog) Reset() { *m = TaskQueueQueryTasksResponse_Task_RunLog{} } func (m *TaskQueueQueryTasksResponse_Task_RunLog) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryTasksResponse_Task_RunLog) ProtoMessage() {} func (*TaskQueueQueryTasksResponse_Task_RunLog) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{30, 0, 2} } func (m *TaskQueueQueryTasksResponse_Task_RunLog) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_RunLog.Unmarshal(m, b) } func (m *TaskQueueQueryTasksResponse_Task_RunLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_RunLog.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryTasksResponse_Task_RunLog) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryTasksResponse_Task_RunLog.Merge(dst, src) } func (m *TaskQueueQueryTasksResponse_Task_RunLog) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryTasksResponse_Task_RunLog.Size(m) } func (m *TaskQueueQueryTasksResponse_Task_RunLog) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryTasksResponse_Task_RunLog.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryTasksResponse_Task_RunLog proto.InternalMessageInfo func (m *TaskQueueQueryTasksResponse_Task_RunLog) GetDispatchedUsec() int64 { if m != nil && m.DispatchedUsec != nil { return *m.DispatchedUsec } return 0 } func (m *TaskQueueQueryTasksResponse_Task_RunLog) GetLagUsec() int64 { if m != nil && m.LagUsec != nil { return *m.LagUsec } return 0 } func (m *TaskQueueQueryTasksResponse_Task_RunLog) GetElapsedUsec() int64 { if m != nil && m.ElapsedUsec != nil { return *m.ElapsedUsec } return 0 } func (m *TaskQueueQueryTasksResponse_Task_RunLog) GetResponseCode() int64 { if m != nil && m.ResponseCode != nil { return *m.ResponseCode } return 0 } func (m *TaskQueueQueryTasksResponse_Task_RunLog) GetRetryReason() string { if m != nil && m.RetryReason != nil { return *m.RetryReason } return "" } type TaskQueueFetchTaskRequest struct { AppId []byte `protobuf:"bytes,1,opt,name=app_id,json=appId" json:"app_id,omitempty"` QueueName []byte `protobuf:"bytes,2,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` TaskName []byte `protobuf:"bytes,3,req,name=task_name,json=taskName" json:"task_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueFetchTaskRequest) Reset() { *m = TaskQueueFetchTaskRequest{} } func (m *TaskQueueFetchTaskRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueFetchTaskRequest) ProtoMessage() {} func (*TaskQueueFetchTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{31} } func (m *TaskQueueFetchTaskRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueFetchTaskRequest.Unmarshal(m, b) } func (m *TaskQueueFetchTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueFetchTaskRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueFetchTaskRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueFetchTaskRequest.Merge(dst, src) } func (m *TaskQueueFetchTaskRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueFetchTaskRequest.Size(m) } func (m *TaskQueueFetchTaskRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueFetchTaskRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueFetchTaskRequest proto.InternalMessageInfo func (m *TaskQueueFetchTaskRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueFetchTaskRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueFetchTaskRequest) GetTaskName() []byte { if m != nil { return m.TaskName } return nil } type TaskQueueFetchTaskResponse struct { Task *TaskQueueQueryTasksResponse `protobuf:"bytes,1,req,name=task" json:"task,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueFetchTaskResponse) Reset() { *m = TaskQueueFetchTaskResponse{} } func (m *TaskQueueFetchTaskResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueFetchTaskResponse) ProtoMessage() {} func (*TaskQueueFetchTaskResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{32} } func (m *TaskQueueFetchTaskResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueFetchTaskResponse.Unmarshal(m, b) } func (m *TaskQueueFetchTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueFetchTaskResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueFetchTaskResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueFetchTaskResponse.Merge(dst, src) } func (m *TaskQueueFetchTaskResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueFetchTaskResponse.Size(m) } func (m *TaskQueueFetchTaskResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueFetchTaskResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueFetchTaskResponse proto.InternalMessageInfo func (m *TaskQueueFetchTaskResponse) GetTask() *TaskQueueQueryTasksResponse { if m != nil { return m.Task } return nil } type TaskQueueUpdateStorageLimitRequest struct { AppId []byte `protobuf:"bytes,1,req,name=app_id,json=appId" json:"app_id,omitempty"` Limit *int64 `protobuf:"varint,2,req,name=limit" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueUpdateStorageLimitRequest) Reset() { *m = TaskQueueUpdateStorageLimitRequest{} } func (m *TaskQueueUpdateStorageLimitRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueUpdateStorageLimitRequest) ProtoMessage() {} func (*TaskQueueUpdateStorageLimitRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{33} } func (m *TaskQueueUpdateStorageLimitRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueUpdateStorageLimitRequest.Unmarshal(m, b) } func (m *TaskQueueUpdateStorageLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueUpdateStorageLimitRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueUpdateStorageLimitRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueUpdateStorageLimitRequest.Merge(dst, src) } func (m *TaskQueueUpdateStorageLimitRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueUpdateStorageLimitRequest.Size(m) } func (m *TaskQueueUpdateStorageLimitRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueUpdateStorageLimitRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueUpdateStorageLimitRequest proto.InternalMessageInfo func (m *TaskQueueUpdateStorageLimitRequest) GetAppId() []byte { if m != nil { return m.AppId } return nil } func (m *TaskQueueUpdateStorageLimitRequest) GetLimit() int64 { if m != nil && m.Limit != nil { return *m.Limit } return 0 } type TaskQueueUpdateStorageLimitResponse struct { NewLimit *int64 `protobuf:"varint,1,req,name=new_limit,json=newLimit" json:"new_limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueUpdateStorageLimitResponse) Reset() { *m = TaskQueueUpdateStorageLimitResponse{} } func (m *TaskQueueUpdateStorageLimitResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueUpdateStorageLimitResponse) ProtoMessage() {} func (*TaskQueueUpdateStorageLimitResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{34} } func (m *TaskQueueUpdateStorageLimitResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueUpdateStorageLimitResponse.Unmarshal(m, b) } func (m *TaskQueueUpdateStorageLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueUpdateStorageLimitResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueUpdateStorageLimitResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueUpdateStorageLimitResponse.Merge(dst, src) } func (m *TaskQueueUpdateStorageLimitResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueUpdateStorageLimitResponse.Size(m) } func (m *TaskQueueUpdateStorageLimitResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueUpdateStorageLimitResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueUpdateStorageLimitResponse proto.InternalMessageInfo func (m *TaskQueueUpdateStorageLimitResponse) GetNewLimit() int64 { if m != nil && m.NewLimit != nil { return *m.NewLimit } return 0 } type TaskQueueQueryAndOwnTasksRequest struct { QueueName []byte `protobuf:"bytes,1,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` LeaseSeconds *float64 `protobuf:"fixed64,2,req,name=lease_seconds,json=leaseSeconds" json:"lease_seconds,omitempty"` MaxTasks *int64 `protobuf:"varint,3,req,name=max_tasks,json=maxTasks" json:"max_tasks,omitempty"` GroupByTag *bool `protobuf:"varint,4,opt,name=group_by_tag,json=groupByTag,def=0" json:"group_by_tag,omitempty"` Tag []byte `protobuf:"bytes,5,opt,name=tag" json:"tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryAndOwnTasksRequest) Reset() { *m = TaskQueueQueryAndOwnTasksRequest{} } func (m *TaskQueueQueryAndOwnTasksRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryAndOwnTasksRequest) ProtoMessage() {} func (*TaskQueueQueryAndOwnTasksRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{35} } func (m *TaskQueueQueryAndOwnTasksRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryAndOwnTasksRequest.Unmarshal(m, b) } func (m *TaskQueueQueryAndOwnTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryAndOwnTasksRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryAndOwnTasksRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryAndOwnTasksRequest.Merge(dst, src) } func (m *TaskQueueQueryAndOwnTasksRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryAndOwnTasksRequest.Size(m) } func (m *TaskQueueQueryAndOwnTasksRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryAndOwnTasksRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryAndOwnTasksRequest proto.InternalMessageInfo const Default_TaskQueueQueryAndOwnTasksRequest_GroupByTag bool = false func (m *TaskQueueQueryAndOwnTasksRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueQueryAndOwnTasksRequest) GetLeaseSeconds() float64 { if m != nil && m.LeaseSeconds != nil { return *m.LeaseSeconds } return 0 } func (m *TaskQueueQueryAndOwnTasksRequest) GetMaxTasks() int64 { if m != nil && m.MaxTasks != nil { return *m.MaxTasks } return 0 } func (m *TaskQueueQueryAndOwnTasksRequest) GetGroupByTag() bool { if m != nil && m.GroupByTag != nil { return *m.GroupByTag } return Default_TaskQueueQueryAndOwnTasksRequest_GroupByTag } func (m *TaskQueueQueryAndOwnTasksRequest) GetTag() []byte { if m != nil { return m.Tag } return nil } type TaskQueueQueryAndOwnTasksResponse struct { Task []*TaskQueueQueryAndOwnTasksResponse_Task `protobuf:"group,1,rep,name=Task,json=task" json:"task,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryAndOwnTasksResponse) Reset() { *m = TaskQueueQueryAndOwnTasksResponse{} } func (m *TaskQueueQueryAndOwnTasksResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryAndOwnTasksResponse) ProtoMessage() {} func (*TaskQueueQueryAndOwnTasksResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{36} } func (m *TaskQueueQueryAndOwnTasksResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse.Unmarshal(m, b) } func (m *TaskQueueQueryAndOwnTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryAndOwnTasksResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse.Merge(dst, src) } func (m *TaskQueueQueryAndOwnTasksResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse.Size(m) } func (m *TaskQueueQueryAndOwnTasksResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse proto.InternalMessageInfo func (m *TaskQueueQueryAndOwnTasksResponse) GetTask() []*TaskQueueQueryAndOwnTasksResponse_Task { if m != nil { return m.Task } return nil } type TaskQueueQueryAndOwnTasksResponse_Task struct { TaskName []byte `protobuf:"bytes,2,req,name=task_name,json=taskName" json:"task_name,omitempty"` EtaUsec *int64 `protobuf:"varint,3,req,name=eta_usec,json=etaUsec" json:"eta_usec,omitempty"` RetryCount *int32 `protobuf:"varint,4,opt,name=retry_count,json=retryCount,def=0" json:"retry_count,omitempty"` Body []byte `protobuf:"bytes,5,opt,name=body" json:"body,omitempty"` Tag []byte `protobuf:"bytes,6,opt,name=tag" json:"tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueQueryAndOwnTasksResponse_Task) Reset() { *m = TaskQueueQueryAndOwnTasksResponse_Task{} } func (m *TaskQueueQueryAndOwnTasksResponse_Task) String() string { return proto.CompactTextString(m) } func (*TaskQueueQueryAndOwnTasksResponse_Task) ProtoMessage() {} func (*TaskQueueQueryAndOwnTasksResponse_Task) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{36, 0} } func (m *TaskQueueQueryAndOwnTasksResponse_Task) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse_Task.Unmarshal(m, b) } func (m *TaskQueueQueryAndOwnTasksResponse_Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse_Task.Marshal(b, m, deterministic) } func (dst *TaskQueueQueryAndOwnTasksResponse_Task) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse_Task.Merge(dst, src) } func (m *TaskQueueQueryAndOwnTasksResponse_Task) XXX_Size() int { return xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse_Task.Size(m) } func (m *TaskQueueQueryAndOwnTasksResponse_Task) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse_Task.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueQueryAndOwnTasksResponse_Task proto.InternalMessageInfo const Default_TaskQueueQueryAndOwnTasksResponse_Task_RetryCount int32 = 0 func (m *TaskQueueQueryAndOwnTasksResponse_Task) GetTaskName() []byte { if m != nil { return m.TaskName } return nil } func (m *TaskQueueQueryAndOwnTasksResponse_Task) GetEtaUsec() int64 { if m != nil && m.EtaUsec != nil { return *m.EtaUsec } return 0 } func (m *TaskQueueQueryAndOwnTasksResponse_Task) GetRetryCount() int32 { if m != nil && m.RetryCount != nil { return *m.RetryCount } return Default_TaskQueueQueryAndOwnTasksResponse_Task_RetryCount } func (m *TaskQueueQueryAndOwnTasksResponse_Task) GetBody() []byte { if m != nil { return m.Body } return nil } func (m *TaskQueueQueryAndOwnTasksResponse_Task) GetTag() []byte { if m != nil { return m.Tag } return nil } type TaskQueueModifyTaskLeaseRequest struct { QueueName []byte `protobuf:"bytes,1,req,name=queue_name,json=queueName" json:"queue_name,omitempty"` TaskName []byte `protobuf:"bytes,2,req,name=task_name,json=taskName" json:"task_name,omitempty"` EtaUsec *int64 `protobuf:"varint,3,req,name=eta_usec,json=etaUsec" json:"eta_usec,omitempty"` LeaseSeconds *float64 `protobuf:"fixed64,4,req,name=lease_seconds,json=leaseSeconds" json:"lease_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueModifyTaskLeaseRequest) Reset() { *m = TaskQueueModifyTaskLeaseRequest{} } func (m *TaskQueueModifyTaskLeaseRequest) String() string { return proto.CompactTextString(m) } func (*TaskQueueModifyTaskLeaseRequest) ProtoMessage() {} func (*TaskQueueModifyTaskLeaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{37} } func (m *TaskQueueModifyTaskLeaseRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueModifyTaskLeaseRequest.Unmarshal(m, b) } func (m *TaskQueueModifyTaskLeaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueModifyTaskLeaseRequest.Marshal(b, m, deterministic) } func (dst *TaskQueueModifyTaskLeaseRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueModifyTaskLeaseRequest.Merge(dst, src) } func (m *TaskQueueModifyTaskLeaseRequest) XXX_Size() int { return xxx_messageInfo_TaskQueueModifyTaskLeaseRequest.Size(m) } func (m *TaskQueueModifyTaskLeaseRequest) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueModifyTaskLeaseRequest.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueModifyTaskLeaseRequest proto.InternalMessageInfo func (m *TaskQueueModifyTaskLeaseRequest) GetQueueName() []byte { if m != nil { return m.QueueName } return nil } func (m *TaskQueueModifyTaskLeaseRequest) GetTaskName() []byte { if m != nil { return m.TaskName } return nil } func (m *TaskQueueModifyTaskLeaseRequest) GetEtaUsec() int64 { if m != nil && m.EtaUsec != nil { return *m.EtaUsec } return 0 } func (m *TaskQueueModifyTaskLeaseRequest) GetLeaseSeconds() float64 { if m != nil && m.LeaseSeconds != nil { return *m.LeaseSeconds } return 0 } type TaskQueueModifyTaskLeaseResponse struct { UpdatedEtaUsec *int64 `protobuf:"varint,1,req,name=updated_eta_usec,json=updatedEtaUsec" json:"updated_eta_usec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TaskQueueModifyTaskLeaseResponse) Reset() { *m = TaskQueueModifyTaskLeaseResponse{} } func (m *TaskQueueModifyTaskLeaseResponse) String() string { return proto.CompactTextString(m) } func (*TaskQueueModifyTaskLeaseResponse) ProtoMessage() {} func (*TaskQueueModifyTaskLeaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor_taskqueue_service_05300f6f4e69f490, []int{38} } func (m *TaskQueueModifyTaskLeaseResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskQueueModifyTaskLeaseResponse.Unmarshal(m, b) } func (m *TaskQueueModifyTaskLeaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskQueueModifyTaskLeaseResponse.Marshal(b, m, deterministic) } func (dst *TaskQueueModifyTaskLeaseResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskQueueModifyTaskLeaseResponse.Merge(dst, src) } func (m *TaskQueueModifyTaskLeaseResponse) XXX_Size() int { return xxx_messageInfo_TaskQueueModifyTaskLeaseResponse.Size(m) } func (m *TaskQueueModifyTaskLeaseResponse) XXX_DiscardUnknown() { xxx_messageInfo_TaskQueueModifyTaskLeaseResponse.DiscardUnknown(m) } var xxx_messageInfo_TaskQueueModifyTaskLeaseResponse proto.InternalMessageInfo func (m *TaskQueueModifyTaskLeaseResponse) GetUpdatedEtaUsec() int64 { if m != nil && m.UpdatedEtaUsec != nil { return *m.UpdatedEtaUsec } return 0 } func init() { proto.RegisterType((*TaskQueueServiceError)(nil), "appengine.TaskQueueServiceError") proto.RegisterType((*TaskPayload)(nil), "appengine.TaskPayload") proto.RegisterType((*TaskQueueRetryParameters)(nil), "appengine.TaskQueueRetryParameters") proto.RegisterType((*TaskQueueAcl)(nil), "appengine.TaskQueueAcl") proto.RegisterType((*TaskQueueHttpHeader)(nil), "appengine.TaskQueueHttpHeader") proto.RegisterType((*TaskQueueMode)(nil), "appengine.TaskQueueMode") proto.RegisterType((*TaskQueueAddRequest)(nil), "appengine.TaskQueueAddRequest") proto.RegisterType((*TaskQueueAddRequest_Header)(nil), "appengine.TaskQueueAddRequest.Header") proto.RegisterType((*TaskQueueAddRequest_CronTimetable)(nil), "appengine.TaskQueueAddRequest.CronTimetable") proto.RegisterType((*TaskQueueAddResponse)(nil), "appengine.TaskQueueAddResponse") proto.RegisterType((*TaskQueueBulkAddRequest)(nil), "appengine.TaskQueueBulkAddRequest") proto.RegisterType((*TaskQueueBulkAddResponse)(nil), "appengine.TaskQueueBulkAddResponse") proto.RegisterType((*TaskQueueBulkAddResponse_TaskResult)(nil), "appengine.TaskQueueBulkAddResponse.TaskResult") proto.RegisterType((*TaskQueueDeleteRequest)(nil), "appengine.TaskQueueDeleteRequest") proto.RegisterType((*TaskQueueDeleteResponse)(nil), "appengine.TaskQueueDeleteResponse") proto.RegisterType((*TaskQueueForceRunRequest)(nil), "appengine.TaskQueueForceRunRequest") proto.RegisterType((*TaskQueueForceRunResponse)(nil), "appengine.TaskQueueForceRunResponse") proto.RegisterType((*TaskQueueUpdateQueueRequest)(nil), "appengine.TaskQueueUpdateQueueRequest") proto.RegisterType((*TaskQueueUpdateQueueResponse)(nil), "appengine.TaskQueueUpdateQueueResponse") proto.RegisterType((*TaskQueueFetchQueuesRequest)(nil), "appengine.TaskQueueFetchQueuesRequest") proto.RegisterType((*TaskQueueFetchQueuesResponse)(nil), "appengine.TaskQueueFetchQueuesResponse") proto.RegisterType((*TaskQueueFetchQueuesResponse_Queue)(nil), "appengine.TaskQueueFetchQueuesResponse.Queue") proto.RegisterType((*TaskQueueFetchQueueStatsRequest)(nil), "appengine.TaskQueueFetchQueueStatsRequest") proto.RegisterType((*TaskQueueScannerQueueInfo)(nil), "appengine.TaskQueueScannerQueueInfo") proto.RegisterType((*TaskQueueFetchQueueStatsResponse)(nil), "appengine.TaskQueueFetchQueueStatsResponse") proto.RegisterType((*TaskQueueFetchQueueStatsResponse_QueueStats)(nil), "appengine.TaskQueueFetchQueueStatsResponse.QueueStats") proto.RegisterType((*TaskQueuePauseQueueRequest)(nil), "appengine.TaskQueuePauseQueueRequest") proto.RegisterType((*TaskQueuePauseQueueResponse)(nil), "appengine.TaskQueuePauseQueueResponse") proto.RegisterType((*TaskQueuePurgeQueueRequest)(nil), "appengine.TaskQueuePurgeQueueRequest") proto.RegisterType((*TaskQueuePurgeQueueResponse)(nil), "appengine.TaskQueuePurgeQueueResponse") proto.RegisterType((*TaskQueueDeleteQueueRequest)(nil), "appengine.TaskQueueDeleteQueueRequest") proto.RegisterType((*TaskQueueDeleteQueueResponse)(nil), "appengine.TaskQueueDeleteQueueResponse") proto.RegisterType((*TaskQueueDeleteGroupRequest)(nil), "appengine.TaskQueueDeleteGroupRequest") proto.RegisterType((*TaskQueueDeleteGroupResponse)(nil), "appengine.TaskQueueDeleteGroupResponse") proto.RegisterType((*TaskQueueQueryTasksRequest)(nil), "appengine.TaskQueueQueryTasksRequest") proto.RegisterType((*TaskQueueQueryTasksResponse)(nil), "appengine.TaskQueueQueryTasksResponse") proto.RegisterType((*TaskQueueQueryTasksResponse_Task)(nil), "appengine.TaskQueueQueryTasksResponse.Task") proto.RegisterType((*TaskQueueQueryTasksResponse_Task_Header)(nil), "appengine.TaskQueueQueryTasksResponse.Task.Header") proto.RegisterType((*TaskQueueQueryTasksResponse_Task_CronTimetable)(nil), "appengine.TaskQueueQueryTasksResponse.Task.CronTimetable") proto.RegisterType((*TaskQueueQueryTasksResponse_Task_RunLog)(nil), "appengine.TaskQueueQueryTasksResponse.Task.RunLog") proto.RegisterType((*TaskQueueFetchTaskRequest)(nil), "appengine.TaskQueueFetchTaskRequest") proto.RegisterType((*TaskQueueFetchTaskResponse)(nil), "appengine.TaskQueueFetchTaskResponse") proto.RegisterType((*TaskQueueUpdateStorageLimitRequest)(nil), "appengine.TaskQueueUpdateStorageLimitRequest") proto.RegisterType((*TaskQueueUpdateStorageLimitResponse)(nil), "appengine.TaskQueueUpdateStorageLimitResponse") proto.RegisterType((*TaskQueueQueryAndOwnTasksRequest)(nil), "appengine.TaskQueueQueryAndOwnTasksRequest") proto.RegisterType((*TaskQueueQueryAndOwnTasksResponse)(nil), "appengine.TaskQueueQueryAndOwnTasksResponse") proto.RegisterType((*TaskQueueQueryAndOwnTasksResponse_Task)(nil), "appengine.TaskQueueQueryAndOwnTasksResponse.Task") proto.RegisterType((*TaskQueueModifyTaskLeaseRequest)(nil), "appengine.TaskQueueModifyTaskLeaseRequest") proto.RegisterType((*TaskQueueModifyTaskLeaseResponse)(nil), "appengine.TaskQueueModifyTaskLeaseResponse") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/taskqueue/taskqueue_service.proto", fileDescriptor_taskqueue_service_05300f6f4e69f490) } var fileDescriptor_taskqueue_service_05300f6f4e69f490 = []byte{ // 2747 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x39, 0x4d, 0x73, 0xdb, 0xd6, 0xb5, 0x01, 0xbf, 0x44, 0x1e, 0x7e, 0xc1, 0xd7, 0xb2, 0x44, 0x51, 0x71, 0x22, 0xc3, 0xf9, 0xd0, 0x4b, 0xfc, 0x14, 0x59, 0x79, 0xe3, 0xbc, 0xa7, 0x99, 0x4c, 0x1e, 0x24, 0xc2, 0x32, 0x63, 0x8a, 0xa4, 0x2f, 0xa1, 0x34, 0xce, 0x4c, 0x07, 0x73, 0x45, 0x5c, 0x51, 0x18, 0x81, 0x00, 0x83, 0x0f, 0x5b, 0xf2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44, 0x81, 0xc8, 0x06, 0xda, 0x4c, 0xbb, 0xbc, 0xff, 0x4a, 0xcf, 0xcd, 0x39, 0x9b, 0x6e, 0x9a, 0xbf, 0x96, 0xae, 0xd9, 0x34, 0xcf, 0xf5, 0xb3, 0xdc, 0xbc, 0x7e, 0x16, 0xb7, 0x99, 0xfc, 0xb9, 0x36, 0x13, 0xe9, 0x5e, 0x98, 0xea, 0xfe, 0x7b, 0x29, 0xf5, 0xc5, 0xb5, 0xef, 0x9a, 0xd6, 0x11, 0x0f, 0xbd, 0x0e, 0xb3, 0xfb, 0x4f, 0xfc, 0x5b, 0xca, 0x05, 0x9f, 0xe7, 0x2e, 0xfa, 0x5c, 0xe9, 0xa4, 0x62, 0xeb, 0xc2, 0xf5, 0xa6, 0x5b, 0xe7, 0x90, 0xc7, 0xae, 0x39, 0x9d, 0xa5, 0x44, 0x90, 0xd6, 0x22, 0x78, 0x34, 0x4d, 0xed, 0x94, 0xbf, 0x2b, 0x25, 0xbf, 0x77, 0xff, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x67, 0xac, 0x35, 0x53, 0x2a, 0x1f, 0x00, 0x00, }
taskqueue
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/taskqueue/taskqueue_service.proto
syntax = "proto2"; option go_package = "taskqueue"; import "google.golang.org/appengine/internal/datastore/datastore_v3.proto"; package appengine; message TaskQueueServiceError { enum ErrorCode { OK = 0; UNKNOWN_QUEUE = 1; TRANSIENT_ERROR = 2; INTERNAL_ERROR = 3; TASK_TOO_LARGE = 4; INVALID_TASK_NAME = 5; INVALID_QUEUE_NAME = 6; INVALID_URL = 7; INVALID_QUEUE_RATE = 8; PERMISSION_DENIED = 9; TASK_ALREADY_EXISTS = 10; TOMBSTONED_TASK = 11; INVALID_ETA = 12; INVALID_REQUEST = 13; UNKNOWN_TASK = 14; TOMBSTONED_QUEUE = 15; DUPLICATE_TASK_NAME = 16; SKIPPED = 17; TOO_MANY_TASKS = 18; INVALID_PAYLOAD = 19; INVALID_RETRY_PARAMETERS = 20; INVALID_QUEUE_MODE = 21; ACL_LOOKUP_ERROR = 22; TRANSACTIONAL_REQUEST_TOO_LARGE = 23; INCORRECT_CREATOR_NAME = 24; TASK_LEASE_EXPIRED = 25; QUEUE_PAUSED = 26; INVALID_TAG = 27; // Reserved range for the Datastore error codes. // Original Datastore error code is shifted by DATASTORE_ERROR offset. DATASTORE_ERROR = 10000; } } message TaskPayload { extensions 10 to max; option message_set_wire_format = true; } message TaskQueueRetryParameters { optional int32 retry_limit = 1; optional int64 age_limit_sec = 2; optional double min_backoff_sec = 3 [default = 0.1]; optional double max_backoff_sec = 4 [default = 3600]; optional int32 max_doublings = 5 [default = 16]; } message TaskQueueAcl { repeated bytes user_email = 1; repeated bytes writer_email = 2; } message TaskQueueHttpHeader { required bytes key = 1; required bytes value = 2; } message TaskQueueMode { enum Mode { PUSH = 0; PULL = 1; } } message TaskQueueAddRequest { required bytes queue_name = 1; required bytes task_name = 2; required int64 eta_usec = 3; enum RequestMethod { GET = 1; POST = 2; HEAD = 3; PUT = 4; DELETE = 5; } optional RequestMethod method = 5 [default=POST]; optional bytes url = 4; repeated group Header = 6 { required bytes key = 7; required bytes value = 8; } optional bytes body = 9 [ctype=CORD]; optional Transaction transaction = 10; optional bytes app_id = 11; optional group CronTimetable = 12 { required bytes schedule = 13; required bytes timezone = 14; } optional bytes description = 15; optional TaskPayload payload = 16; optional TaskQueueRetryParameters retry_parameters = 17; optional TaskQueueMode.Mode mode = 18 [default=PUSH]; optional bytes tag = 19; } message TaskQueueAddResponse { optional bytes chosen_task_name = 1; } message TaskQueueBulkAddRequest { repeated TaskQueueAddRequest add_request = 1; } message TaskQueueBulkAddResponse { repeated group TaskResult = 1 { required TaskQueueServiceError.ErrorCode result = 2; optional bytes chosen_task_name = 3; } } message TaskQueueDeleteRequest { required bytes queue_name = 1; repeated bytes task_name = 2; optional bytes app_id = 3; } message TaskQueueDeleteResponse { repeated TaskQueueServiceError.ErrorCode result = 3; } message TaskQueueForceRunRequest { optional bytes app_id = 1; required bytes queue_name = 2; required bytes task_name = 3; } message TaskQueueForceRunResponse { required TaskQueueServiceError.ErrorCode result = 3; } message TaskQueueUpdateQueueRequest { optional bytes app_id = 1; required bytes queue_name = 2; required double bucket_refill_per_second = 3; required int32 bucket_capacity = 4; optional string user_specified_rate = 5; optional TaskQueueRetryParameters retry_parameters = 6; optional int32 max_concurrent_requests = 7; optional TaskQueueMode.Mode mode = 8 [default = PUSH]; optional TaskQueueAcl acl = 9; repeated TaskQueueHttpHeader header_override = 10; } message TaskQueueUpdateQueueResponse { } message TaskQueueFetchQueuesRequest { optional bytes app_id = 1; required int32 max_rows = 2; } message TaskQueueFetchQueuesResponse { repeated group Queue = 1 { required bytes queue_name = 2; required double bucket_refill_per_second = 3; required double bucket_capacity = 4; optional string user_specified_rate = 5; required bool paused = 6 [default=false]; optional TaskQueueRetryParameters retry_parameters = 7; optional int32 max_concurrent_requests = 8; optional TaskQueueMode.Mode mode = 9 [default = PUSH]; optional TaskQueueAcl acl = 10; repeated TaskQueueHttpHeader header_override = 11; optional string creator_name = 12 [ctype=CORD, default="apphosting"]; } } message TaskQueueFetchQueueStatsRequest { optional bytes app_id = 1; repeated bytes queue_name = 2; optional int32 max_num_tasks = 3 [default = 0]; } message TaskQueueScannerQueueInfo { required int64 executed_last_minute = 1; required int64 executed_last_hour = 2; required double sampling_duration_seconds = 3; optional int32 requests_in_flight = 4; optional double enforced_rate = 5; } message TaskQueueFetchQueueStatsResponse { repeated group QueueStats = 1 { required int32 num_tasks = 2; required int64 oldest_eta_usec = 3; optional TaskQueueScannerQueueInfo scanner_info = 4; } } message TaskQueuePauseQueueRequest { required bytes app_id = 1; required bytes queue_name = 2; required bool pause = 3; } message TaskQueuePauseQueueResponse { } message TaskQueuePurgeQueueRequest { optional bytes app_id = 1; required bytes queue_name = 2; } message TaskQueuePurgeQueueResponse { } message TaskQueueDeleteQueueRequest { required bytes app_id = 1; required bytes queue_name = 2; } message TaskQueueDeleteQueueResponse { } message TaskQueueDeleteGroupRequest { required bytes app_id = 1; } message TaskQueueDeleteGroupResponse { } message TaskQueueQueryTasksRequest { optional bytes app_id = 1; required bytes queue_name = 2; optional bytes start_task_name = 3; optional int64 start_eta_usec = 4; optional bytes start_tag = 6; optional int32 max_rows = 5 [default = 1]; } message TaskQueueQueryTasksResponse { repeated group Task = 1 { required bytes task_name = 2; required int64 eta_usec = 3; optional bytes url = 4; enum RequestMethod { GET = 1; POST = 2; HEAD = 3; PUT = 4; DELETE = 5; } optional RequestMethod method = 5; optional int32 retry_count = 6 [default=0]; repeated group Header = 7 { required bytes key = 8; required bytes value = 9; } optional int32 body_size = 10; optional bytes body = 11 [ctype=CORD]; required int64 creation_time_usec = 12; optional group CronTimetable = 13 { required bytes schedule = 14; required bytes timezone = 15; } optional group RunLog = 16 { required int64 dispatched_usec = 17; required int64 lag_usec = 18; required int64 elapsed_usec = 19; optional int64 response_code = 20; optional string retry_reason = 27; } optional bytes description = 21; optional TaskPayload payload = 22; optional TaskQueueRetryParameters retry_parameters = 23; optional int64 first_try_usec = 24; optional bytes tag = 25; optional int32 execution_count = 26 [default=0]; } } message TaskQueueFetchTaskRequest { optional bytes app_id = 1; required bytes queue_name = 2; required bytes task_name = 3; } message TaskQueueFetchTaskResponse { required TaskQueueQueryTasksResponse task = 1; } message TaskQueueUpdateStorageLimitRequest { required bytes app_id = 1; required int64 limit = 2; } message TaskQueueUpdateStorageLimitResponse { required int64 new_limit = 1; } message TaskQueueQueryAndOwnTasksRequest { required bytes queue_name = 1; required double lease_seconds = 2; required int64 max_tasks = 3; optional bool group_by_tag = 4 [default=false]; optional bytes tag = 5; } message TaskQueueQueryAndOwnTasksResponse { repeated group Task = 1 { required bytes task_name = 2; required int64 eta_usec = 3; optional int32 retry_count = 4 [default=0]; optional bytes body = 5 [ctype=CORD]; optional bytes tag = 6; } } message TaskQueueModifyTaskLeaseRequest { required bytes queue_name = 1; required bytes task_name = 2; required int64 eta_usec = 3; required double lease_seconds = 4; } message TaskQueueModifyTaskLeaseResponse { required int64 updated_eta_usec = 1; }
remote_api
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/remote_api/remote_api.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/remote_api/remote_api.proto package remote_api import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type RpcError_ErrorCode int32 const ( RpcError_UNKNOWN RpcError_ErrorCode = 0 RpcError_CALL_NOT_FOUND RpcError_ErrorCode = 1 RpcError_PARSE_ERROR RpcError_ErrorCode = 2 RpcError_SECURITY_VIOLATION RpcError_ErrorCode = 3 RpcError_OVER_QUOTA RpcError_ErrorCode = 4 RpcError_REQUEST_TOO_LARGE RpcError_ErrorCode = 5 RpcError_CAPABILITY_DISABLED RpcError_ErrorCode = 6 RpcError_FEATURE_DISABLED RpcError_ErrorCode = 7 RpcError_BAD_REQUEST RpcError_ErrorCode = 8 RpcError_RESPONSE_TOO_LARGE RpcError_ErrorCode = 9 RpcError_CANCELLED RpcError_ErrorCode = 10 RpcError_REPLAY_ERROR RpcError_ErrorCode = 11 RpcError_DEADLINE_EXCEEDED RpcError_ErrorCode = 12 ) var RpcError_ErrorCode_name = map[int32]string{ 0: "UNKNOWN", 1: "CALL_NOT_FOUND", 2: "PARSE_ERROR", 3: "SECURITY_VIOLATION", 4: "OVER_QUOTA", 5: "REQUEST_TOO_LARGE", 6: "CAPABILITY_DISABLED", 7: "FEATURE_DISABLED", 8: "BAD_REQUEST", 9: "RESPONSE_TOO_LARGE", 10: "CANCELLED", 11: "REPLAY_ERROR", 12: "DEADLINE_EXCEEDED", } var RpcError_ErrorCode_value = map[string]int32{ "UNKNOWN": 0, "CALL_NOT_FOUND": 1, "PARSE_ERROR": 2, "SECURITY_VIOLATION": 3, "OVER_QUOTA": 4, "REQUEST_TOO_LARGE": 5, "CAPABILITY_DISABLED": 6, "FEATURE_DISABLED": 7, "BAD_REQUEST": 8, "RESPONSE_TOO_LARGE": 9, "CANCELLED": 10, "REPLAY_ERROR": 11, "DEADLINE_EXCEEDED": 12, } func (x RpcError_ErrorCode) Enum() *RpcError_ErrorCode { p := new(RpcError_ErrorCode) *p = x return p } func (x RpcError_ErrorCode) String() string { return proto.EnumName(RpcError_ErrorCode_name, int32(x)) } func (x *RpcError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(RpcError_ErrorCode_value, data, "RpcError_ErrorCode") if err != nil { return err } *x = RpcError_ErrorCode(value) return nil } func (RpcError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_remote_api_1978114ec33a273d, []int{2, 0} } type Request struct { ServiceName *string `protobuf:"bytes,2,req,name=service_name,json=serviceName" json:"service_name,omitempty"` Method *string `protobuf:"bytes,3,req,name=method" json:"method,omitempty"` Request []byte `protobuf:"bytes,4,req,name=request" json:"request,omitempty"` RequestId *string `protobuf:"bytes,5,opt,name=request_id,json=requestId" json:"request_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Request) Reset() { *m = Request{} } func (m *Request) String() string { return proto.CompactTextString(m) } func (*Request) ProtoMessage() {} func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor_remote_api_1978114ec33a273d, []int{0} } func (m *Request) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Request.Unmarshal(m, b) } func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Request.Marshal(b, m, deterministic) } func (dst *Request) XXX_Merge(src proto.Message) { xxx_messageInfo_Request.Merge(dst, src) } func (m *Request) XXX_Size() int { return xxx_messageInfo_Request.Size(m) } func (m *Request) XXX_DiscardUnknown() { xxx_messageInfo_Request.DiscardUnknown(m) } var xxx_messageInfo_Request proto.InternalMessageInfo func (m *Request) GetServiceName() string { if m != nil && m.ServiceName != nil { return *m.ServiceName } return "" } func (m *Request) GetMethod() string { if m != nil && m.Method != nil { return *m.Method } return "" } func (m *Request) GetRequest() []byte { if m != nil { return m.Request } return nil } func (m *Request) GetRequestId() string { if m != nil && m.RequestId != nil { return *m.RequestId } return "" } type ApplicationError struct { Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` Detail *string `protobuf:"bytes,2,req,name=detail" json:"detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ApplicationError) Reset() { *m = ApplicationError{} } func (m *ApplicationError) String() string { return proto.CompactTextString(m) } func (*ApplicationError) ProtoMessage() {} func (*ApplicationError) Descriptor() ([]byte, []int) { return fileDescriptor_remote_api_1978114ec33a273d, []int{1} } func (m *ApplicationError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ApplicationError.Unmarshal(m, b) } func (m *ApplicationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ApplicationError.Marshal(b, m, deterministic) } func (dst *ApplicationError) XXX_Merge(src proto.Message) { xxx_messageInfo_ApplicationError.Merge(dst, src) } func (m *ApplicationError) XXX_Size() int { return xxx_messageInfo_ApplicationError.Size(m) } func (m *ApplicationError) XXX_DiscardUnknown() { xxx_messageInfo_ApplicationError.DiscardUnknown(m) } var xxx_messageInfo_ApplicationError proto.InternalMessageInfo func (m *ApplicationError) GetCode() int32 { if m != nil && m.Code != nil { return *m.Code } return 0 } func (m *ApplicationError) GetDetail() string { if m != nil && m.Detail != nil { return *m.Detail } return "" } type RpcError struct { Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` Detail *string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *RpcError) Reset() { *m = RpcError{} } func (m *RpcError) String() string { return proto.CompactTextString(m) } func (*RpcError) ProtoMessage() {} func (*RpcError) Descriptor() ([]byte, []int) { return fileDescriptor_remote_api_1978114ec33a273d, []int{2} } func (m *RpcError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RpcError.Unmarshal(m, b) } func (m *RpcError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RpcError.Marshal(b, m, deterministic) } func (dst *RpcError) XXX_Merge(src proto.Message) { xxx_messageInfo_RpcError.Merge(dst, src) } func (m *RpcError) XXX_Size() int { return xxx_messageInfo_RpcError.Size(m) } func (m *RpcError) XXX_DiscardUnknown() { xxx_messageInfo_RpcError.DiscardUnknown(m) } var xxx_messageInfo_RpcError proto.InternalMessageInfo func (m *RpcError) GetCode() int32 { if m != nil && m.Code != nil { return *m.Code } return 0 } func (m *RpcError) GetDetail() string { if m != nil && m.Detail != nil { return *m.Detail } return "" } type Response struct { Response []byte `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"` Exception []byte `protobuf:"bytes,2,opt,name=exception" json:"exception,omitempty"` ApplicationError *ApplicationError `protobuf:"bytes,3,opt,name=application_error,json=applicationError" json:"application_error,omitempty"` JavaException []byte `protobuf:"bytes,4,opt,name=java_exception,json=javaException" json:"java_exception,omitempty"` RpcError *RpcError `protobuf:"bytes,5,opt,name=rpc_error,json=rpcError" json:"rpc_error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Response) Reset() { *m = Response{} } func (m *Response) String() string { return proto.CompactTextString(m) } func (*Response) ProtoMessage() {} func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor_remote_api_1978114ec33a273d, []int{3} } func (m *Response) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Response.Unmarshal(m, b) } func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Response.Marshal(b, m, deterministic) } func (dst *Response) XXX_Merge(src proto.Message) { xxx_messageInfo_Response.Merge(dst, src) } func (m *Response) XXX_Size() int { return xxx_messageInfo_Response.Size(m) } func (m *Response) XXX_DiscardUnknown() { xxx_messageInfo_Response.DiscardUnknown(m) } var xxx_messageInfo_Response proto.InternalMessageInfo func (m *Response) GetResponse() []byte { if m != nil { return m.Response } return nil } func (m *Response) GetException() []byte { if m != nil { return m.Exception } return nil } func (m *Response) GetApplicationError() *ApplicationError { if m != nil { return m.ApplicationError } return nil } func (m *Response) GetJavaException() []byte { if m != nil { return m.JavaException } return nil } func (m *Response) GetRpcError() *RpcError { if m != nil { return m.RpcError } return nil } func init() { proto.RegisterType((*Request)(nil), "remote_api.Request") proto.RegisterType((*ApplicationError)(nil), "remote_api.ApplicationError") proto.RegisterType((*RpcError)(nil), "remote_api.RpcError") proto.RegisterType((*Response)(nil), "remote_api.Response") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/remote_api/remote_api.proto", fileDescriptor_remote_api_1978114ec33a273d) } var fileDescriptor_remote_api_1978114ec33a273d = []byte{ // 531 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x51, 0x6e, 0xd3, 0x40, 0x10, 0x86, 0xb1, 0x9b, 0x34, 0xf1, 0xc4, 0x2d, 0xdb, 0xa5, 0x14, 0x0b, 0x15, 0x29, 0x44, 0x42, 0xca, 0x53, 0x2a, 0x38, 0x00, 0x62, 0x63, 0x6f, 0x91, 0x85, 0x65, 0xa7, 0x6b, 0xbb, 0x50, 0x5e, 0x56, 0x2b, 0x67, 0x65, 0x8c, 0x12, 0xaf, 0xd9, 0x98, 0x8a, 0x17, 0x6e, 0xc0, 0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4e, 0x3b, 0xc6, 0xd4, 0x98, 0xdb, 0xec, 0x3e, 0xc6, 0xe7, 0x60, 0xc9, 0x1f, 0x99, 0xac, 0x9a, 0x75, 0xb5, 0x23, 0xb5, 0xd9, 0xde, 0xc0, 0x3e, 0x9c, 0x88, 0xfd, 0x3a, 0xb9, 0x6c, 0x06, 0xec, 0x1c, 0x4c, 0x8d, 0xf9, 0xe4, 0xcd, 0xf9, 0xa2, 0x77, 0x87, 0x0f, 0x77, 0xce, 0x90, 0x78, 0x78, 0x05, 0xaf, 0xe0, 0xf8, 0xab, 0xb8, 0x15, 0x7c, 0x4f, 0x1b, 0xb4, 0xb4, 0xa3, 0xc6, 0xa5, 0xf7, 0xc4, 0xd7, 0x60, 0xe9, 0x2a, 0xeb, 0x48, 0xc3, 0x96, 0x74, 0xda, 0x27, 0xdd, 0x1d, 0x07, 0x1b, 0xeb, 0x4e, 0x2d, 0xed, 0xcf, 0xbd, 0x07, 0xf0, 0x37, 0x00, 0x00, 0xff, 0xff, 0x38, 0xd1, 0x0f, 0x22, 0x4f, 0x03, 0x00, 0x00, }
remote_api
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/remote_api/remote_api.proto
syntax = "proto2"; option go_package = "remote_api"; package remote_api; message Request { required string service_name = 2; required string method = 3; required bytes request = 4; optional string request_id = 5; } message ApplicationError { required int32 code = 1; required string detail = 2; } message RpcError { enum ErrorCode { UNKNOWN = 0; CALL_NOT_FOUND = 1; PARSE_ERROR = 2; SECURITY_VIOLATION = 3; OVER_QUOTA = 4; REQUEST_TOO_LARGE = 5; CAPABILITY_DISABLED = 6; FEATURE_DISABLED = 7; BAD_REQUEST = 8; RESPONSE_TOO_LARGE = 9; CANCELLED = 10; REPLAY_ERROR = 11; DEADLINE_EXCEEDED = 12; } required int32 code = 1; optional string detail = 2; } message Response { optional bytes response = 1; optional bytes exception = 2; optional ApplicationError application_error = 3; optional bytes java_exception = 4; optional RpcError rpc_error = 5; }
aetesting
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/aetesting/fake.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package aetesting provides utilities for testing App Engine packages. // This is not for testing user applications. package aetesting import ( "context" "fmt" "net/http" "reflect" "testing" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal" ) // FakeSingleContext returns a context whose Call invocations will be serviced // by f, which should be a function that has two arguments of the input and output // protocol buffer type, and one error return. func FakeSingleContext(t *testing.T, service, method string, f interface{}) context.Context { fv := reflect.ValueOf(f) if fv.Kind() != reflect.Func { t.Fatal("not a function") } ft := fv.Type() if ft.NumIn() != 2 || ft.NumOut() != 1 { t.Fatalf("f has %d in and %d out, want 2 in and 1 out", ft.NumIn(), ft.NumOut()) } for i := 0; i < 2; i++ { at := ft.In(i) if !at.Implements(protoMessageType) { t.Fatalf("arg %d does not implement proto.Message", i) } } if ft.Out(0) != errorType { t.Fatalf("f's return is %v, want error", ft.Out(0)) } s := &single{ t: t, service: service, method: method, f: fv, } return internal.WithCallOverride(internal.ContextForTesting(&http.Request{}), s.call) } var ( protoMessageType = reflect.TypeOf((*proto.Message)(nil)).Elem() errorType = reflect.TypeOf((*error)(nil)).Elem() ) type single struct { t *testing.T service, method string f reflect.Value } func (s *single) call(ctx context.Context, service, method string, in, out proto.Message) error { if service == "__go__" { if method == "GetNamespace" { return nil // always yield an empty namespace } return fmt.Errorf("Unknown API call /%s.%s", service, method) } if service != s.service || method != s.method { s.t.Fatalf("Unexpected call to /%s.%s", service, method) } ins := []reflect.Value{ reflect.ValueOf(in), reflect.ValueOf(out), } outs := s.f.Call(ins) if outs[0].IsNil() { return nil } return outs[0].Interface().(error) }
base
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/base/api_base.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/base/api_base.proto package base import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type StringProto struct { Value *string `protobuf:"bytes,1,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StringProto) Reset() { *m = StringProto{} } func (m *StringProto) String() string { return proto.CompactTextString(m) } func (*StringProto) ProtoMessage() {} func (*StringProto) Descriptor() ([]byte, []int) { return fileDescriptor_api_base_9d49f8792e0c1140, []int{0} } func (m *StringProto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StringProto.Unmarshal(m, b) } func (m *StringProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StringProto.Marshal(b, m, deterministic) } func (dst *StringProto) XXX_Merge(src proto.Message) { xxx_messageInfo_StringProto.Merge(dst, src) } func (m *StringProto) XXX_Size() int { return xxx_messageInfo_StringProto.Size(m) } func (m *StringProto) XXX_DiscardUnknown() { xxx_messageInfo_StringProto.DiscardUnknown(m) } var xxx_messageInfo_StringProto proto.InternalMessageInfo func (m *StringProto) GetValue() string { if m != nil && m.Value != nil { return *m.Value } return "" } type Integer32Proto struct { Value *int32 `protobuf:"varint,1,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Integer32Proto) Reset() { *m = Integer32Proto{} } func (m *Integer32Proto) String() string { return proto.CompactTextString(m) } func (*Integer32Proto) ProtoMessage() {} func (*Integer32Proto) Descriptor() ([]byte, []int) { return fileDescriptor_api_base_9d49f8792e0c1140, []int{1} } func (m *Integer32Proto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Integer32Proto.Unmarshal(m, b) } func (m *Integer32Proto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Integer32Proto.Marshal(b, m, deterministic) } func (dst *Integer32Proto) XXX_Merge(src proto.Message) { xxx_messageInfo_Integer32Proto.Merge(dst, src) } func (m *Integer32Proto) XXX_Size() int { return xxx_messageInfo_Integer32Proto.Size(m) } func (m *Integer32Proto) XXX_DiscardUnknown() { xxx_messageInfo_Integer32Proto.DiscardUnknown(m) } var xxx_messageInfo_Integer32Proto proto.InternalMessageInfo func (m *Integer32Proto) GetValue() int32 { if m != nil && m.Value != nil { return *m.Value } return 0 } type Integer64Proto struct { Value *int64 `protobuf:"varint,1,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Integer64Proto) Reset() { *m = Integer64Proto{} } func (m *Integer64Proto) String() string { return proto.CompactTextString(m) } func (*Integer64Proto) ProtoMessage() {} func (*Integer64Proto) Descriptor() ([]byte, []int) { return fileDescriptor_api_base_9d49f8792e0c1140, []int{2} } func (m *Integer64Proto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Integer64Proto.Unmarshal(m, b) } func (m *Integer64Proto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Integer64Proto.Marshal(b, m, deterministic) } func (dst *Integer64Proto) XXX_Merge(src proto.Message) { xxx_messageInfo_Integer64Proto.Merge(dst, src) } func (m *Integer64Proto) XXX_Size() int { return xxx_messageInfo_Integer64Proto.Size(m) } func (m *Integer64Proto) XXX_DiscardUnknown() { xxx_messageInfo_Integer64Proto.DiscardUnknown(m) } var xxx_messageInfo_Integer64Proto proto.InternalMessageInfo func (m *Integer64Proto) GetValue() int64 { if m != nil && m.Value != nil { return *m.Value } return 0 } type BoolProto struct { Value *bool `protobuf:"varint,1,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BoolProto) Reset() { *m = BoolProto{} } func (m *BoolProto) String() string { return proto.CompactTextString(m) } func (*BoolProto) ProtoMessage() {} func (*BoolProto) Descriptor() ([]byte, []int) { return fileDescriptor_api_base_9d49f8792e0c1140, []int{3} } func (m *BoolProto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoolProto.Unmarshal(m, b) } func (m *BoolProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoolProto.Marshal(b, m, deterministic) } func (dst *BoolProto) XXX_Merge(src proto.Message) { xxx_messageInfo_BoolProto.Merge(dst, src) } func (m *BoolProto) XXX_Size() int { return xxx_messageInfo_BoolProto.Size(m) } func (m *BoolProto) XXX_DiscardUnknown() { xxx_messageInfo_BoolProto.DiscardUnknown(m) } var xxx_messageInfo_BoolProto proto.InternalMessageInfo func (m *BoolProto) GetValue() bool { if m != nil && m.Value != nil { return *m.Value } return false } type DoubleProto struct { Value *float64 `protobuf:"fixed64,1,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DoubleProto) Reset() { *m = DoubleProto{} } func (m *DoubleProto) String() string { return proto.CompactTextString(m) } func (*DoubleProto) ProtoMessage() {} func (*DoubleProto) Descriptor() ([]byte, []int) { return fileDescriptor_api_base_9d49f8792e0c1140, []int{4} } func (m *DoubleProto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DoubleProto.Unmarshal(m, b) } func (m *DoubleProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DoubleProto.Marshal(b, m, deterministic) } func (dst *DoubleProto) XXX_Merge(src proto.Message) { xxx_messageInfo_DoubleProto.Merge(dst, src) } func (m *DoubleProto) XXX_Size() int { return xxx_messageInfo_DoubleProto.Size(m) } func (m *DoubleProto) XXX_DiscardUnknown() { xxx_messageInfo_DoubleProto.DiscardUnknown(m) } var xxx_messageInfo_DoubleProto proto.InternalMessageInfo func (m *DoubleProto) GetValue() float64 { if m != nil && m.Value != nil { return *m.Value } return 0 } type BytesProto struct { Value []byte `protobuf:"bytes,1,req,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BytesProto) Reset() { *m = BytesProto{} } func (m *BytesProto) String() string { return proto.CompactTextString(m) } func (*BytesProto) ProtoMessage() {} func (*BytesProto) Descriptor() ([]byte, []int) { return fileDescriptor_api_base_9d49f8792e0c1140, []int{5} } func (m *BytesProto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BytesProto.Unmarshal(m, b) } func (m *BytesProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BytesProto.Marshal(b, m, deterministic) } func (dst *BytesProto) XXX_Merge(src proto.Message) { xxx_messageInfo_BytesProto.Merge(dst, src) } func (m *BytesProto) XXX_Size() int { return xxx_messageInfo_BytesProto.Size(m) } func (m *BytesProto) XXX_DiscardUnknown() { xxx_messageInfo_BytesProto.DiscardUnknown(m) } var xxx_messageInfo_BytesProto proto.InternalMessageInfo func (m *BytesProto) GetValue() []byte { if m != nil { return m.Value } return nil } type VoidProto struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *VoidProto) Reset() { *m = VoidProto{} } func (m *VoidProto) String() string { return proto.CompactTextString(m) } func (*VoidProto) ProtoMessage() {} func (*VoidProto) Descriptor() ([]byte, []int) { return fileDescriptor_api_base_9d49f8792e0c1140, []int{6} } func (m *VoidProto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_VoidProto.Unmarshal(m, b) } func (m *VoidProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_VoidProto.Marshal(b, m, deterministic) } func (dst *VoidProto) XXX_Merge(src proto.Message) { xxx_messageInfo_VoidProto.Merge(dst, src) } func (m *VoidProto) XXX_Size() int { return xxx_messageInfo_VoidProto.Size(m) } func (m *VoidProto) XXX_DiscardUnknown() { xxx_messageInfo_VoidProto.DiscardUnknown(m) } var xxx_messageInfo_VoidProto proto.InternalMessageInfo func init() { proto.RegisterType((*StringProto)(nil), "appengine.base.StringProto") proto.RegisterType((*Integer32Proto)(nil), "appengine.base.Integer32Proto") proto.RegisterType((*Integer64Proto)(nil), "appengine.base.Integer64Proto") proto.RegisterType((*BoolProto)(nil), "appengine.base.BoolProto") proto.RegisterType((*DoubleProto)(nil), "appengine.base.DoubleProto") proto.RegisterType((*BytesProto)(nil), "appengine.base.BytesProto") proto.RegisterType((*VoidProto)(nil), "appengine.base.VoidProto") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/base/api_base.proto", fileDescriptor_api_base_9d49f8792e0c1140) } var fileDescriptor_api_base_9d49f8792e0c1140 = []byte{ // 199 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0xcf, 0x3f, 0x4b, 0xc6, 0x30, 0x10, 0x06, 0x70, 0x5a, 0xad, 0xb4, 0x57, 0xe9, 0x20, 0x0e, 0x1d, 0xb5, 0x05, 0x71, 0x4a, 0x40, 0x45, 0x9c, 0x83, 0x8b, 0x9b, 0x28, 0x38, 0xb8, 0x48, 0x8a, 0xc7, 0x11, 0x08, 0xb9, 0x90, 0xa6, 0x82, 0xdf, 0x5e, 0xda, 0xd2, 0xfa, 0xc2, 0x9b, 0xed, 0xfe, 0xfc, 0xe0, 0xe1, 0x81, 0x27, 0x62, 0x26, 0x8b, 0x82, 0xd8, 0x6a, 0x47, 0x82, 0x03, 0x49, 0xed, 0x3d, 0x3a, 0x32, 0x0e, 0xa5, 0x71, 0x11, 0x83, 0xd3, 0x56, 0x0e, 0x7a, 0x44, 0xa9, 0xbd, 0xf9, 0x9a, 0x07, 0xe1, 0x03, 0x47, 0xbe, 0x68, 0x76, 0x27, 0xe6, 0x6b, 0xd7, 0x43, 0xfd, 0x1e, 0x83, 0x71, 0xf4, 0xba, 0xbc, 0x2f, 0xa1, 0xf8, 0xd1, 0x76, 0xc2, 0x36, 0xbb, 0xca, 0x6f, 0xab, 0xb7, 0x75, 0xe9, 0x6e, 0xa0, 0x79, 0x71, 0x11, 0x09, 0xc3, 0xfd, 0x5d, 0xc2, 0x15, 0xc7, 0xee, 0xf1, 0x21, 0xe1, 0x4e, 0x36, 0x77, 0x0d, 0x95, 0x62, 0xb6, 0x09, 0x52, 0x6e, 0xa4, 0x87, 0xfa, 0x99, 0xa7, 0xc1, 0x62, 0x02, 0x65, 0xff, 0x79, 0xa0, 0x7e, 0x23, 0x8e, 0xab, 0x69, 0x0f, 0xcd, 0xb9, 0xca, 0xcb, 0xdd, 0xd5, 0x50, 0x7d, 0xb0, 0xf9, 0x5e, 0x98, 0x3a, 0xfb, 0x3c, 0x9d, 0x9b, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xba, 0x37, 0x25, 0xea, 0x44, 0x01, 0x00, 0x00, }
base
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/base/api_base.proto
// Built-in base types for API calls. Primarily useful as return types. syntax = "proto2"; option go_package = "base"; package appengine.base; message StringProto { required string value = 1; } message Integer32Proto { required int32 value = 1; } message Integer64Proto { required int64 value = 1; } message BoolProto { required bool value = 1; } message DoubleProto { required double value = 1; } message BytesProto { required bytes value = 1 [ctype=CORD]; } message VoidProto { }
channel
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/channel/channel_service.proto
syntax = "proto2"; option go_package = "channel"; package appengine; message ChannelServiceError { enum ErrorCode { OK = 0; INTERNAL_ERROR = 1; INVALID_CHANNEL_KEY = 2; BAD_MESSAGE = 3; INVALID_CHANNEL_TOKEN_DURATION = 4; APPID_ALIAS_REQUIRED = 5; } } message CreateChannelRequest { required string application_key = 1; optional int32 duration_minutes = 2; } message CreateChannelResponse { optional string token = 2; optional int32 duration_minutes = 3; } message SendMessageRequest { required string application_key = 1; required string message = 2; }
channel
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/internal/channel/channel_service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/channel/channel_service.proto package channel import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ChannelServiceError_ErrorCode int32 const ( ChannelServiceError_OK ChannelServiceError_ErrorCode = 0 ChannelServiceError_INTERNAL_ERROR ChannelServiceError_ErrorCode = 1 ChannelServiceError_INVALID_CHANNEL_KEY ChannelServiceError_ErrorCode = 2 ChannelServiceError_BAD_MESSAGE ChannelServiceError_ErrorCode = 3 ChannelServiceError_INVALID_CHANNEL_TOKEN_DURATION ChannelServiceError_ErrorCode = 4 ChannelServiceError_APPID_ALIAS_REQUIRED ChannelServiceError_ErrorCode = 5 ) var ChannelServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INTERNAL_ERROR", 2: "INVALID_CHANNEL_KEY", 3: "BAD_MESSAGE", 4: "INVALID_CHANNEL_TOKEN_DURATION", 5: "APPID_ALIAS_REQUIRED", } var ChannelServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INTERNAL_ERROR": 1, "INVALID_CHANNEL_KEY": 2, "BAD_MESSAGE": 3, "INVALID_CHANNEL_TOKEN_DURATION": 4, "APPID_ALIAS_REQUIRED": 5, } func (x ChannelServiceError_ErrorCode) Enum() *ChannelServiceError_ErrorCode { p := new(ChannelServiceError_ErrorCode) *p = x return p } func (x ChannelServiceError_ErrorCode) String() string { return proto.EnumName(ChannelServiceError_ErrorCode_name, int32(x)) } func (x *ChannelServiceError_ErrorCode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(ChannelServiceError_ErrorCode_value, data, "ChannelServiceError_ErrorCode") if err != nil { return err } *x = ChannelServiceError_ErrorCode(value) return nil } func (ChannelServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_channel_service_a8d15e05b34664a9, []int{0, 0} } type ChannelServiceError struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ChannelServiceError) Reset() { *m = ChannelServiceError{} } func (m *ChannelServiceError) String() string { return proto.CompactTextString(m) } func (*ChannelServiceError) ProtoMessage() {} func (*ChannelServiceError) Descriptor() ([]byte, []int) { return fileDescriptor_channel_service_a8d15e05b34664a9, []int{0} } func (m *ChannelServiceError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChannelServiceError.Unmarshal(m, b) } func (m *ChannelServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ChannelServiceError.Marshal(b, m, deterministic) } func (dst *ChannelServiceError) XXX_Merge(src proto.Message) { xxx_messageInfo_ChannelServiceError.Merge(dst, src) } func (m *ChannelServiceError) XXX_Size() int { return xxx_messageInfo_ChannelServiceError.Size(m) } func (m *ChannelServiceError) XXX_DiscardUnknown() { xxx_messageInfo_ChannelServiceError.DiscardUnknown(m) } var xxx_messageInfo_ChannelServiceError proto.InternalMessageInfo type CreateChannelRequest struct { ApplicationKey *string `protobuf:"bytes,1,req,name=application_key,json=applicationKey" json:"application_key,omitempty"` DurationMinutes *int32 `protobuf:"varint,2,opt,name=duration_minutes,json=durationMinutes" json:"duration_minutes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateChannelRequest) Reset() { *m = CreateChannelRequest{} } func (m *CreateChannelRequest) String() string { return proto.CompactTextString(m) } func (*CreateChannelRequest) ProtoMessage() {} func (*CreateChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor_channel_service_a8d15e05b34664a9, []int{1} } func (m *CreateChannelRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateChannelRequest.Unmarshal(m, b) } func (m *CreateChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateChannelRequest.Marshal(b, m, deterministic) } func (dst *CreateChannelRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateChannelRequest.Merge(dst, src) } func (m *CreateChannelRequest) XXX_Size() int { return xxx_messageInfo_CreateChannelRequest.Size(m) } func (m *CreateChannelRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateChannelRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateChannelRequest proto.InternalMessageInfo func (m *CreateChannelRequest) GetApplicationKey() string { if m != nil && m.ApplicationKey != nil { return *m.ApplicationKey } return "" } func (m *CreateChannelRequest) GetDurationMinutes() int32 { if m != nil && m.DurationMinutes != nil { return *m.DurationMinutes } return 0 } type CreateChannelResponse struct { Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` DurationMinutes *int32 `protobuf:"varint,3,opt,name=duration_minutes,json=durationMinutes" json:"duration_minutes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateChannelResponse) Reset() { *m = CreateChannelResponse{} } func (m *CreateChannelResponse) String() string { return proto.CompactTextString(m) } func (*CreateChannelResponse) ProtoMessage() {} func (*CreateChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor_channel_service_a8d15e05b34664a9, []int{2} } func (m *CreateChannelResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateChannelResponse.Unmarshal(m, b) } func (m *CreateChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateChannelResponse.Marshal(b, m, deterministic) } func (dst *CreateChannelResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateChannelResponse.Merge(dst, src) } func (m *CreateChannelResponse) XXX_Size() int { return xxx_messageInfo_CreateChannelResponse.Size(m) } func (m *CreateChannelResponse) XXX_DiscardUnknown() { xxx_messageInfo_CreateChannelResponse.DiscardUnknown(m) } var xxx_messageInfo_CreateChannelResponse proto.InternalMessageInfo func (m *CreateChannelResponse) GetToken() string { if m != nil && m.Token != nil { return *m.Token } return "" } func (m *CreateChannelResponse) GetDurationMinutes() int32 { if m != nil && m.DurationMinutes != nil { return *m.DurationMinutes } return 0 } type SendMessageRequest struct { ApplicationKey *string `protobuf:"bytes,1,req,name=application_key,json=applicationKey" json:"application_key,omitempty"` Message *string `protobuf:"bytes,2,req,name=message" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SendMessageRequest) Reset() { *m = SendMessageRequest{} } func (m *SendMessageRequest) String() string { return proto.CompactTextString(m) } func (*SendMessageRequest) ProtoMessage() {} func (*SendMessageRequest) Descriptor() ([]byte, []int) { return fileDescriptor_channel_service_a8d15e05b34664a9, []int{3} } func (m *SendMessageRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SendMessageRequest.Unmarshal(m, b) } func (m *SendMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SendMessageRequest.Marshal(b, m, deterministic) } func (dst *SendMessageRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SendMessageRequest.Merge(dst, src) } func (m *SendMessageRequest) XXX_Size() int { return xxx_messageInfo_SendMessageRequest.Size(m) } func (m *SendMessageRequest) XXX_DiscardUnknown() { xxx_messageInfo_SendMessageRequest.DiscardUnknown(m) } var xxx_messageInfo_SendMessageRequest proto.InternalMessageInfo func (m *SendMessageRequest) GetApplicationKey() string { if m != nil && m.ApplicationKey != nil { return *m.ApplicationKey } return "" } func (m *SendMessageRequest) GetMessage() string { if m != nil && m.Message != nil { return *m.Message } return "" } func init() { proto.RegisterType((*ChannelServiceError)(nil), "appengine.ChannelServiceError") proto.RegisterType((*CreateChannelRequest)(nil), "appengine.CreateChannelRequest") proto.RegisterType((*CreateChannelResponse)(nil), "appengine.CreateChannelResponse") proto.RegisterType((*SendMessageRequest)(nil), "appengine.SendMessageRequest") } func init() { proto.RegisterFile("google.golang.org/appengine/internal/channel/channel_service.proto", fileDescriptor_channel_service_a8d15e05b34664a9) } var fileDescriptor_channel_service_a8d15e05b34664a9 = []byte{ // 355 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xcd, 0xee, 0xd2, 0x40, 0x14, 0xc5, 0x6d, 0xff, 0x22, 0xe9, 0x35, 0x81, 0x66, 0xc0, 0xd8, 0x95, 0x21, 0xdd, 0x88, 0x1b, 0x78, 0x86, 0xa1, 0x9d, 0x68, 0xd3, 0xd2, 0xe2, 0x14, 0xfc, 0xda, 0x4c, 0x26, 0x70, 0x53, 0x2b, 0x65, 0xa6, 0x4e, 0x8b, 0x09, 0x4f, 0xe1, 0x63, 0xf8, 0x9a, 0x26, 0x14, 0x88, 0x21, 0x6c, 0x5c, 0xcd, 0x9c, 0x93, 0xdf, 0x39, 0x33, 0x37, 0x17, 0x16, 0x85, 0xd6, 0x45, 0x85, 0xb3, 0x42, 0x57, 0x52, 0x15, 0x33, 0x6d, 0x8a, 0xb9, 0xac, 0x6b, 0x54, 0x45, 0xa9, 0x70, 0x5e, 0xaa, 0x16, 0x8d, 0x92, 0xd5, 0x7c, 0xfb, 0x5d, 0x2a, 0x85, 0xb7, 0x53, 0x34, 0x68, 0x7e, 0x95, 0x5b, 0x9c, 0xd5, 0x46, 0xb7, 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c, 0xbd, 0x56, 0xef, 0x51, 0x9d, 0x83, 0x0e, 0xef, 0xc4, 0xc3, 0xe6, 0xa7, 0xc7, 0xcd, 0x9f, 0x81, 0xe4, 0xa8, 0x76, 0x4b, 0x6c, 0x1a, 0x59, 0xe0, 0x7f, 0xcf, 0xe0, 0x41, 0xff, 0xd0, 0x45, 0x3d, 0xfb, 0x0c, 0x5c, 0xe5, 0xc2, 0xf9, 0xd6, 0xbf, 0x2c, 0xfb, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0a, 0x77, 0x06, 0x23, 0x02, 0x00, 0x00, }
memcache
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/memcache/memcache_test.go
// Copyright 2014 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package memcache import ( "fmt" "testing" "google.golang.org/appengine" "google.golang.org/appengine/internal/aetesting" pb "google.golang.org/appengine/internal/memcache" ) var errRPC = fmt.Errorf("RPC error") func TestGetRequest(t *testing.T) { serviceCalled := false apiKey := "lyric" c := aetesting.FakeSingleContext(t, "memcache", "Get", func(req *pb.MemcacheGetRequest, _ *pb.MemcacheGetResponse) error { // Test request. if n := len(req.Key); n != 1 { t.Errorf("got %d want 1", n) return nil } if k := string(req.Key[0]); k != apiKey { t.Errorf("got %q want %q", k, apiKey) } serviceCalled = true return nil }) // Test the "forward" path from the API call parameters to the // protobuf request object. (The "backward" path from the // protobuf response object to the API call response, // including the error response, are handled in the next few // tests). Get(c, apiKey) if !serviceCalled { t.Error("Service was not called as expected") } } func TestGetResponseHit(t *testing.T) { key := "lyric" value := "Where the buffalo roam" c := aetesting.FakeSingleContext(t, "memcache", "Get", func(_ *pb.MemcacheGetRequest, res *pb.MemcacheGetResponse) error { res.Item = []*pb.MemcacheGetResponse_Item{ {Key: []byte(key), Value: []byte(value)}, } return nil }) apiItem, err := Get(c, key) if apiItem == nil || apiItem.Key != key || string(apiItem.Value) != value { t.Errorf("got %q, %q want {%q,%q}, nil", apiItem, err, key, value) } } func TestGetResponseMiss(t *testing.T) { c := aetesting.FakeSingleContext(t, "memcache", "Get", func(_ *pb.MemcacheGetRequest, res *pb.MemcacheGetResponse) error { // don't fill in any of the response return nil }) _, err := Get(c, "something") if err != ErrCacheMiss { t.Errorf("got %v want ErrCacheMiss", err) } } func TestGetResponseRPCError(t *testing.T) { c := aetesting.FakeSingleContext(t, "memcache", "Get", func(_ *pb.MemcacheGetRequest, res *pb.MemcacheGetResponse) error { return errRPC }) if _, err := Get(c, "something"); err != errRPC { t.Errorf("got %v want errRPC", err) } } func TestAddRequest(t *testing.T) { var apiItem = &Item{ Key: "lyric", Value: []byte("Oh, give me a home"), } serviceCalled := false c := aetesting.FakeSingleContext(t, "memcache", "Set", func(req *pb.MemcacheSetRequest, _ *pb.MemcacheSetResponse) error { // Test request. pbItem := req.Item[0] if k := string(pbItem.Key); k != apiItem.Key { t.Errorf("got %q want %q", k, apiItem.Key) } if v := string(apiItem.Value); v != string(pbItem.Value) { t.Errorf("got %q want %q", v, string(pbItem.Value)) } if p := *pbItem.SetPolicy; p != pb.MemcacheSetRequest_ADD { t.Errorf("got %v want %v", p, pb.MemcacheSetRequest_ADD) } serviceCalled = true return nil }) Add(c, apiItem) if !serviceCalled { t.Error("Service was not called as expected") } } func TestAddResponseStored(t *testing.T) { c := aetesting.FakeSingleContext(t, "memcache", "Set", func(_ *pb.MemcacheSetRequest, res *pb.MemcacheSetResponse) error { res.SetStatus = []pb.MemcacheSetResponse_SetStatusCode{pb.MemcacheSetResponse_STORED} return nil }) if err := Add(c, &Item{}); err != nil { t.Errorf("got %v want nil", err) } } func TestAddResponseNotStored(t *testing.T) { c := aetesting.FakeSingleContext(t, "memcache", "Set", func(_ *pb.MemcacheSetRequest, res *pb.MemcacheSetResponse) error { res.SetStatus = []pb.MemcacheSetResponse_SetStatusCode{pb.MemcacheSetResponse_NOT_STORED} return nil }) if err := Add(c, &Item{}); err != ErrNotStored { t.Errorf("got %v want ErrNotStored", err) } } func TestAddResponseError(t *testing.T) { c := aetesting.FakeSingleContext(t, "memcache", "Set", func(_ *pb.MemcacheSetRequest, res *pb.MemcacheSetResponse) error { res.SetStatus = []pb.MemcacheSetResponse_SetStatusCode{pb.MemcacheSetResponse_ERROR} return nil }) if err := Add(c, &Item{}); err != ErrServerError { t.Errorf("got %v want ErrServerError", err) } } func TestAddResponseRPCError(t *testing.T) { c := aetesting.FakeSingleContext(t, "memcache", "Set", func(_ *pb.MemcacheSetRequest, res *pb.MemcacheSetResponse) error { return errRPC }) if err := Add(c, &Item{}); err != errRPC { t.Errorf("got %v want errRPC", err) } } func TestSetRequest(t *testing.T) { var apiItem = &Item{ Key: "lyric", Value: []byte("Where the buffalo roam"), } serviceCalled := false c := aetesting.FakeSingleContext(t, "memcache", "Set", func(req *pb.MemcacheSetRequest, _ *pb.MemcacheSetResponse) error { // Test request. if n := len(req.Item); n != 1 { t.Errorf("got %d want 1", n) return nil } pbItem := req.Item[0] if k := string(pbItem.Key); k != apiItem.Key { t.Errorf("got %q want %q", k, apiItem.Key) } if v := string(pbItem.Value); v != string(apiItem.Value) { t.Errorf("got %q want %q", v, string(apiItem.Value)) } if p := *pbItem.SetPolicy; p != pb.MemcacheSetRequest_SET { t.Errorf("got %v want %v", p, pb.MemcacheSetRequest_SET) } serviceCalled = true return nil }) Set(c, apiItem) if !serviceCalled { t.Error("Service was not called as expected") } } func TestSetResponse(t *testing.T) { c := aetesting.FakeSingleContext(t, "memcache", "Set", func(_ *pb.MemcacheSetRequest, res *pb.MemcacheSetResponse) error { res.SetStatus = []pb.MemcacheSetResponse_SetStatusCode{pb.MemcacheSetResponse_STORED} return nil }) if err := Set(c, &Item{}); err != nil { t.Errorf("got %v want nil", err) } } func TestSetResponseError(t *testing.T) { c := aetesting.FakeSingleContext(t, "memcache", "Set", func(_ *pb.MemcacheSetRequest, res *pb.MemcacheSetResponse) error { res.SetStatus = []pb.MemcacheSetResponse_SetStatusCode{pb.MemcacheSetResponse_ERROR} return nil }) if err := Set(c, &Item{}); err != ErrServerError { t.Errorf("got %v want ErrServerError", err) } } func TestNamespaceResetting(t *testing.T) { namec := make(chan *string, 1) c0 := aetesting.FakeSingleContext(t, "memcache", "Get", func(req *pb.MemcacheGetRequest, res *pb.MemcacheGetResponse) error { namec <- req.NameSpace return errRPC }) // Check that wrapping c0 in a namespace twice works correctly. c1, err := appengine.Namespace(c0, "A") if err != nil { t.Fatalf("appengine.Namespace: %v", err) } c2, err := appengine.Namespace(c1, "") // should act as the original context if err != nil { t.Fatalf("appengine.Namespace: %v", err) } Get(c0, "key") if ns := <-namec; ns != nil { t.Errorf(`Get with c0: ns = %q, want nil`, *ns) } Get(c1, "key") if ns := <-namec; ns == nil { t.Error(`Get with c1: ns = nil, want "A"`) } else if *ns != "A" { t.Errorf(`Get with c1: ns = %q, want "A"`, *ns) } Get(c2, "key") if ns := <-namec; ns != nil { t.Errorf(`Get with c2: ns = %q, want nil`, *ns) } } func TestGetMultiEmpty(t *testing.T) { serviceCalled := false c := aetesting.FakeSingleContext(t, "memcache", "Get", func(req *pb.MemcacheGetRequest, _ *pb.MemcacheGetResponse) error { serviceCalled = true return nil }) // Test that the Memcache service is not called when // GetMulti is passed an empty slice of keys. GetMulti(c, []string{}) if serviceCalled { t.Error("Service was called but should not have been") } } func TestPeekRequest(t *testing.T) { serviceCalled := false key := "lyric" value := "Where the buffalo roam" t1, t2 := int64(1690570000), int64(1690564666) c := aetesting.FakeSingleContext(t, "memcache", "Get", func(req *pb.MemcacheGetRequest, res *pb.MemcacheGetResponse) error { // Test request. if n := len(req.Key); n != 1 { t.Errorf("got %d want 1", n) return nil } if k := string(req.Key[0]); k != key { t.Errorf("got %q want %q", k, key) } // Response res.Item = []*pb.MemcacheGetResponse_Item{ { Key: []byte(key), Value: []byte(value), Timestamps: &pb.ItemTimestamps{ ExpirationTimeSec: &t1, LastAccessTimeSec: &t2, }, }, } serviceCalled = true return nil }) item, err := Peek(c, key) if !serviceCalled { t.Error("Service was not called as expected") } if err != nil { t.Errorf("got %v want nil", err) } if item == nil || item.Key != key || string(item.Value) != value { t.Errorf("got %q, %q want {%q,%q}, nil", item, err, key, value) } if item.Timestamps.Expiration.Unix() != t1 { t.Errorf("got %d, want %d", item.Timestamps.Expiration.Unix(), t1) } if item.Timestamps.LastAccess.Unix() != t2 { t.Errorf("got %d, want %d", item.Timestamps.LastAccess.Unix(), t2) } }
memcache
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/memcache/memcache.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package memcache provides a client for App Engine's distributed in-memory // key-value store for small chunks of arbitrary data. // // The fundamental operations get and set items, keyed by a string. // // item0, err := memcache.Get(c, "key") // if err != nil && err != memcache.ErrCacheMiss { // return err // } // if err == nil { // fmt.Fprintf(w, "memcache hit: Key=%q Val=[% x]\n", item0.Key, item0.Value) // } else { // fmt.Fprintf(w, "memcache miss\n") // } // // and // // item1 := &memcache.Item{ // Key: "foo", // Value: []byte("bar"), // } // if err := memcache.Set(c, item1); err != nil { // return err // } package memcache // import "google.golang.org/appengine/memcache" import ( "bytes" "context" "encoding/gob" "encoding/json" "errors" "time" "github.com/golang/protobuf/proto" "google.golang.org/appengine" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/memcache" ) var ( // ErrCacheMiss means that an operation failed // because the item wasn't present. ErrCacheMiss = errors.New("memcache: cache miss") // ErrCASConflict means that a CompareAndSwap call failed due to the // cached value being modified between the Get and the CompareAndSwap. // If the cached value was simply evicted rather than replaced, // ErrNotStored will be returned instead. ErrCASConflict = errors.New("memcache: compare-and-swap conflict") // ErrNoStats means that no statistics were available. ErrNoStats = errors.New("memcache: no statistics available") // ErrNotStored means that a conditional write operation (i.e. Add or // CompareAndSwap) failed because the condition was not satisfied. ErrNotStored = errors.New("memcache: item not stored") // ErrServerError means that a server error occurred. ErrServerError = errors.New("memcache: server error") ) // Item is the unit of memcache gets and sets. type Item struct { // Key is the Item's key (250 bytes maximum). Key string // Value is the Item's value. Value []byte // Object is the Item's value for use with a Codec. Object interface{} // Flags are server-opaque flags whose semantics are entirely up to the // App Engine app. Flags uint32 // Expiration is the maximum duration that the item will stay // in the cache. // The zero value means the Item has no expiration time. // Subsecond precision is ignored. // This is not set when getting items. Expiration time.Duration // casID is a client-opaque value used for compare-and-swap operations. // Zero means that compare-and-swap is not used. casID uint64 // ItemTimestamps are server values only returned when calling Peek and PeekMulti. // The timestamps are nil when calling Get and GetMulti. Timestamps ItemTimestamps } // ItemTimestamps are timestamps optionally provided by the server. // See Peek and PeekMulti. type ItemTimestamps struct { // Expiration is related to Item.Expiration but it is a Time (not a Duration), // provided by the server. It is not meant to be set by the user. Expiration *time.Time // LastAccess is the last time the Item was accessed. LastAccess *time.Time // The proto also includes delete_lock_time_sec, which is ignored in the Go lib. } const ( secondsIn30Years = 60 * 60 * 24 * 365 * 30 // from memcache server code thirtyYears = time.Duration(secondsIn30Years) * time.Second ) // protoToItem converts a protocol buffer item to a Go struct. func protoToItem(p *pb.MemcacheGetResponse_Item) *Item { if p.GetIsDeleteLocked() { // "delete lock" for a duration is not a feature available in the Go lib. // Such items may exist in memcache though, e.g. created by the Java lib. // In this case, nil is more appropriate than an item with empty value. // For a single Get, nil will translate to ErrCacheMiss. return nil } return &Item{ Key: string(p.Key), Value: p.Value, Flags: p.GetFlags(), casID: p.GetCasId(), Timestamps: ItemTimestamps{ Expiration: timeSecToTime(p.GetTimestamps().GetExpirationTimeSec()), LastAccess: timeSecToTime(p.GetTimestamps().GetLastAccessTimeSec()), }, } } // For convenience, we interpret a 0 unix second timestamp as a nil *Time. func timeSecToTime(s int64) *time.Time { if s == 0 { return nil } t := time.Unix(s, 0) return &t } // If err is an appengine.MultiError, return its first element. Otherwise, return err. func singleError(err error) error { if me, ok := err.(appengine.MultiError); ok { return me[0] } return err } // Get gets the item for the given key. ErrCacheMiss is returned for a memcache // cache miss. The key must be at most 250 bytes in length. func Get(c context.Context, key string) (*Item, error) { cas, peek := true, false return get(c, key, cas, peek) } // GetMulti is a batch version of Get. The returned map from keys to items may // have fewer elements than the input slice, due to memcache cache misses. // Each key must be at most 250 bytes in length. func GetMulti(c context.Context, key []string) (map[string]*Item, error) { cas, peek := true, false return getMulti(c, key, cas, peek) } // Peek gets the item for the given key and additionally populates Item.Timestamps. // ErrCacheMiss is returned for a memcache cache miss. The key must be at most 250 // bytes in length. func Peek(c context.Context, key string) (*Item, error) { cas, peek := true, true return get(c, key, cas, peek) } // PeekMulti is a batch version of Peek. It is similar to GetMulti but // additionally populates Item.Timestamps. func PeekMulti(c context.Context, key []string) (map[string]*Item, error) { cas, peek := true, true return getMulti(c, key, cas, peek) } func get(c context.Context, key string, forCas bool, forPeek bool) (*Item, error) { m, err := getMulti(c, []string{key}, forCas, forPeek) if err != nil { return nil, err } if _, ok := m[key]; !ok { return nil, ErrCacheMiss } return m[key], nil } func getMulti(c context.Context, key []string, forCas bool, forPeek bool) (map[string]*Item, error) { if len(key) == 0 { return nil, nil } keyAsBytes := make([][]byte, len(key)) for i, k := range key { keyAsBytes[i] = []byte(k) } req := &pb.MemcacheGetRequest{ Key: keyAsBytes, ForCas: proto.Bool(forCas), ForPeek: proto.Bool(forPeek), } res := &pb.MemcacheGetResponse{} if err := internal.Call(c, "memcache", "Get", req, res); err != nil { return nil, err } m := make(map[string]*Item, len(res.Item)) for _, p := range res.Item { t := protoToItem(p) if t != nil { m[t.Key] = t } } return m, nil } // Delete deletes the item for the given key. // ErrCacheMiss is returned if the specified item can not be found. // The key must be at most 250 bytes in length. func Delete(c context.Context, key string) error { return singleError(DeleteMulti(c, []string{key})) } // DeleteMulti is a batch version of Delete. // If any keys cannot be found, an appengine.MultiError is returned. // Each key must be at most 250 bytes in length. func DeleteMulti(c context.Context, key []string) error { if len(key) == 0 { return nil } req := &pb.MemcacheDeleteRequest{ Item: make([]*pb.MemcacheDeleteRequest_Item, len(key)), } for i, k := range key { req.Item[i] = &pb.MemcacheDeleteRequest_Item{Key: []byte(k)} } res := &pb.MemcacheDeleteResponse{} if err := internal.Call(c, "memcache", "Delete", req, res); err != nil { return err } if len(res.DeleteStatus) != len(key) { return ErrServerError } me, any := make(appengine.MultiError, len(key)), false for i, s := range res.DeleteStatus { switch s { case pb.MemcacheDeleteResponse_DELETED: // OK case pb.MemcacheDeleteResponse_NOT_FOUND: me[i] = ErrCacheMiss any = true default: me[i] = ErrServerError any = true } } if any { return me } return nil } // Increment atomically increments the decimal value in the given key // by delta and returns the new value. The value must fit in a uint64. // Overflow wraps around, and underflow is capped to zero. The // provided delta may be negative. If the key doesn't exist in // memcache, the provided initial value is used to atomically // populate it before the delta is applied. // The key must be at most 250 bytes in length. func Increment(c context.Context, key string, delta int64, initialValue uint64) (newValue uint64, err error) { return incr(c, key, delta, &initialValue) } // IncrementExisting works like Increment but assumes that the key // already exists in memcache and doesn't take an initial value. // IncrementExisting can save work if calculating the initial value is // expensive. // An error is returned if the specified item can not be found. func IncrementExisting(c context.Context, key string, delta int64) (newValue uint64, err error) { return incr(c, key, delta, nil) } func incr(c context.Context, key string, delta int64, initialValue *uint64) (newValue uint64, err error) { req := &pb.MemcacheIncrementRequest{ Key: []byte(key), InitialValue: initialValue, } if delta >= 0 { req.Delta = proto.Uint64(uint64(delta)) } else { req.Delta = proto.Uint64(uint64(-delta)) req.Direction = pb.MemcacheIncrementRequest_DECREMENT.Enum() } res := &pb.MemcacheIncrementResponse{} err = internal.Call(c, "memcache", "Increment", req, res) if err != nil { return } if res.NewValue == nil { return 0, ErrCacheMiss } return *res.NewValue, nil } // set sets the given items using the given conflict resolution policy. // appengine.MultiError may be returned. func set(c context.Context, item []*Item, value [][]byte, policy pb.MemcacheSetRequest_SetPolicy) error { if len(item) == 0 { return nil } req := &pb.MemcacheSetRequest{ Item: make([]*pb.MemcacheSetRequest_Item, len(item)), } for i, t := range item { p := &pb.MemcacheSetRequest_Item{ Key: []byte(t.Key), } if value == nil { p.Value = t.Value } else { p.Value = value[i] } if t.Flags != 0 { p.Flags = proto.Uint32(t.Flags) } if t.Expiration != 0 { // In the .proto file, MemcacheSetRequest_Item uses a fixed32 (i.e. unsigned) // for expiration time, while MemcacheGetRequest_Item uses int32 (i.e. signed). // Throughout this .go file, we use int32. // Also, in the proto, the expiration value is either a duration (in seconds) // or an absolute Unix timestamp (in seconds), depending on whether the // value is less than or greater than or equal to 30 years, respectively. if t.Expiration < time.Second { // Because an Expiration of 0 means no expiration, we take // care here to translate an item with an expiration // Duration between 0-1 seconds as immediately expiring // (saying it expired a few seconds ago), rather than // rounding it down to 0 and making it live forever. p.ExpirationTime = proto.Uint32(uint32(time.Now().Unix()) - 5) } else if t.Expiration >= thirtyYears { p.ExpirationTime = proto.Uint32(uint32(time.Now().Unix()) + uint32(t.Expiration/time.Second)) } else { p.ExpirationTime = proto.Uint32(uint32(t.Expiration / time.Second)) } } if t.casID != 0 { p.CasId = proto.Uint64(t.casID) p.ForCas = proto.Bool(true) } p.SetPolicy = policy.Enum() req.Item[i] = p } res := &pb.MemcacheSetResponse{} if err := internal.Call(c, "memcache", "Set", req, res); err != nil { return err } if len(res.SetStatus) != len(item) { return ErrServerError } me, any := make(appengine.MultiError, len(item)), false for i, st := range res.SetStatus { var err error switch st { case pb.MemcacheSetResponse_STORED: // OK case pb.MemcacheSetResponse_NOT_STORED: err = ErrNotStored case pb.MemcacheSetResponse_EXISTS: err = ErrCASConflict default: err = ErrServerError } if err != nil { me[i] = err any = true } } if any { return me } return nil } // Set writes the given item, unconditionally. func Set(c context.Context, item *Item) error { return singleError(set(c, []*Item{item}, nil, pb.MemcacheSetRequest_SET)) } // SetMulti is a batch version of Set. // appengine.MultiError may be returned. func SetMulti(c context.Context, item []*Item) error { return set(c, item, nil, pb.MemcacheSetRequest_SET) } // Add writes the given item, if no value already exists for its key. // ErrNotStored is returned if that condition is not met. func Add(c context.Context, item *Item) error { return singleError(set(c, []*Item{item}, nil, pb.MemcacheSetRequest_ADD)) } // AddMulti is a batch version of Add. // appengine.MultiError may be returned. func AddMulti(c context.Context, item []*Item) error { return set(c, item, nil, pb.MemcacheSetRequest_ADD) } // CompareAndSwap writes the given item that was previously returned by Get, // if the value was neither modified or evicted between the Get and the // CompareAndSwap calls. The item's Key should not change between calls but // all other item fields may differ. // ErrCASConflict is returned if the value was modified in between the calls. // ErrNotStored is returned if the value was evicted in between the calls. func CompareAndSwap(c context.Context, item *Item) error { return singleError(set(c, []*Item{item}, nil, pb.MemcacheSetRequest_CAS)) } // CompareAndSwapMulti is a batch version of CompareAndSwap. // appengine.MultiError may be returned. func CompareAndSwapMulti(c context.Context, item []*Item) error { return set(c, item, nil, pb.MemcacheSetRequest_CAS) } // Codec represents a symmetric pair of functions that implement a codec. // Items stored into or retrieved from memcache using a Codec have their // values marshaled or unmarshaled. // // All the methods provided for Codec behave analogously to the package level // function with same name. type Codec struct { Marshal func(interface{}) ([]byte, error) Unmarshal func([]byte, interface{}) error } // Get gets the item for the given key and decodes the obtained value into v. // ErrCacheMiss is returned for a memcache cache miss. // The key must be at most 250 bytes in length. func (cd Codec) Get(c context.Context, key string, v interface{}) (*Item, error) { i, err := Get(c, key) if err != nil { return nil, err } if err := cd.Unmarshal(i.Value, v); err != nil { return nil, err } return i, nil } func (cd Codec) set(c context.Context, items []*Item, policy pb.MemcacheSetRequest_SetPolicy) error { var vs [][]byte var me appengine.MultiError for i, item := range items { v, err := cd.Marshal(item.Object) if err != nil { if me == nil { me = make(appengine.MultiError, len(items)) } me[i] = err continue } if me == nil { vs = append(vs, v) } } if me != nil { return me } return set(c, items, vs, policy) } // Set writes the given item, unconditionally. func (cd Codec) Set(c context.Context, item *Item) error { return singleError(cd.set(c, []*Item{item}, pb.MemcacheSetRequest_SET)) } // SetMulti is a batch version of Set. // appengine.MultiError may be returned. func (cd Codec) SetMulti(c context.Context, items []*Item) error { return cd.set(c, items, pb.MemcacheSetRequest_SET) } // Add writes the given item, if no value already exists for its key. // ErrNotStored is returned if that condition is not met. func (cd Codec) Add(c context.Context, item *Item) error { return singleError(cd.set(c, []*Item{item}, pb.MemcacheSetRequest_ADD)) } // AddMulti is a batch version of Add. // appengine.MultiError may be returned. func (cd Codec) AddMulti(c context.Context, items []*Item) error { return cd.set(c, items, pb.MemcacheSetRequest_ADD) } // CompareAndSwap writes the given item that was previously returned by Get, // if the value was neither modified or evicted between the Get and the // CompareAndSwap calls. The item's Key should not change between calls but // all other item fields may differ. // ErrCASConflict is returned if the value was modified in between the calls. // ErrNotStored is returned if the value was evicted in between the calls. func (cd Codec) CompareAndSwap(c context.Context, item *Item) error { return singleError(cd.set(c, []*Item{item}, pb.MemcacheSetRequest_CAS)) } // CompareAndSwapMulti is a batch version of CompareAndSwap. // appengine.MultiError may be returned. func (cd Codec) CompareAndSwapMulti(c context.Context, items []*Item) error { return cd.set(c, items, pb.MemcacheSetRequest_CAS) } var ( // Gob is a Codec that uses the gob package. Gob = Codec{gobMarshal, gobUnmarshal} // JSON is a Codec that uses the json package. JSON = Codec{json.Marshal, json.Unmarshal} ) func gobMarshal(v interface{}) ([]byte, error) { var buf bytes.Buffer if err := gob.NewEncoder(&buf).Encode(v); err != nil { return nil, err } return buf.Bytes(), nil } func gobUnmarshal(data []byte, v interface{}) error { return gob.NewDecoder(bytes.NewBuffer(data)).Decode(v) } // Statistics represents a set of statistics about the memcache cache. // This may include items that have expired but have not yet been removed from the cache. type Statistics struct { Hits uint64 // Counter of cache hits Misses uint64 // Counter of cache misses ByteHits uint64 // Counter of bytes transferred for gets Items uint64 // Items currently in the cache Bytes uint64 // Size of all items currently in the cache Oldest int64 // Age of access of the oldest item, in seconds } // Stats retrieves the current memcache statistics. func Stats(c context.Context) (*Statistics, error) { req := &pb.MemcacheStatsRequest{} res := &pb.MemcacheStatsResponse{} if err := internal.Call(c, "memcache", "Stats", req, res); err != nil { return nil, err } if res.Stats == nil { return nil, ErrNoStats } return &Statistics{ Hits: *res.Stats.Hits, Misses: *res.Stats.Misses, ByteHits: *res.Stats.ByteHits, Items: *res.Stats.Items, Bytes: *res.Stats.Bytes, Oldest: int64(*res.Stats.OldestItemAge), }, nil } // Flush flushes all items from memcache. func Flush(c context.Context) error { req := &pb.MemcacheFlushRequest{} res := &pb.MemcacheFlushResponse{} return internal.Call(c, "memcache", "FlushAll", req, res) } func namespaceMod(m proto.Message, namespace string) { switch m := m.(type) { case *pb.MemcacheDeleteRequest: if m.NameSpace == nil { m.NameSpace = &namespace } case *pb.MemcacheGetRequest: if m.NameSpace == nil { m.NameSpace = &namespace } case *pb.MemcacheIncrementRequest: if m.NameSpace == nil { m.NameSpace = &namespace } case *pb.MemcacheSetRequest: if m.NameSpace == nil { m.NameSpace = &namespace } // MemcacheFlushRequest, MemcacheStatsRequest do not apply namespace. } } func init() { internal.RegisterErrorCodeMap("memcache", pb.MemcacheServiceError_ErrorCode_name) internal.NamespaceMods["memcache"] = namespaceMod }
urlfetch
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/appengine/urlfetch/urlfetch.go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package urlfetch provides an http.RoundTripper implementation // for fetching URLs via App Engine's urlfetch service. package urlfetch // import "google.golang.org/appengine/urlfetch" import ( "context" "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "strconv" "strings" "time" "github.com/golang/protobuf/proto" "google.golang.org/appengine/internal" pb "google.golang.org/appengine/internal/urlfetch" ) // Transport is an implementation of http.RoundTripper for // App Engine. Users should generally create an http.Client using // this transport and use the Client rather than using this transport // directly. type Transport struct { Context context.Context // Controls whether the application checks the validity of SSL certificates // over HTTPS connections. A value of false (the default) instructs the // application to send a request to the server only if the certificate is // valid and signed by a trusted certificate authority (CA), and also // includes a hostname that matches the certificate. A value of true // instructs the application to perform no certificate validation. AllowInvalidServerCertificate bool } // Verify statically that *Transport implements http.RoundTripper. var _ http.RoundTripper = (*Transport)(nil) // Client returns an *http.Client using a default urlfetch Transport. This // client will check the validity of SSL certificates. // // Any deadline of the provided context will be used for requests through this client. // If the client does not have a deadline, then an App Engine default of 60 second is used. func Client(ctx context.Context) *http.Client { return &http.Client{ Transport: &Transport{ Context: ctx, }, } } type bodyReader struct { content []byte truncated bool closed bool } // ErrTruncatedBody is the error returned after the final Read() from a // response's Body if the body has been truncated by App Engine's proxy. var ErrTruncatedBody = errors.New("urlfetch: truncated body") func statusCodeToText(code int) string { if t := http.StatusText(code); t != "" { return t } return strconv.Itoa(code) } func (br *bodyReader) Read(p []byte) (n int, err error) { if br.closed { if br.truncated { return 0, ErrTruncatedBody } return 0, io.EOF } n = copy(p, br.content) if n > 0 { br.content = br.content[n:] return } if br.truncated { br.closed = true return 0, ErrTruncatedBody } return 0, io.EOF } func (br *bodyReader) Close() error { br.closed = true br.content = nil return nil } // A map of the URL Fetch-accepted methods that take a request body. var methodAcceptsRequestBody = map[string]bool{ "POST": true, "PUT": true, "PATCH": true, } // urlString returns a valid string given a URL. This function is necessary because // the String method of URL doesn't correctly handle URLs with non-empty Opaque values. // See http://code.google.com/p/go/issues/detail?id=4860. func urlString(u *url.URL) string { if u.Opaque == "" || strings.HasPrefix(u.Opaque, "//") { return u.String() } aux := *u aux.Opaque = "//" + aux.Host + aux.Opaque return aux.String() } // RoundTrip issues a single HTTP request and returns its response. Per the // http.RoundTripper interface, RoundTrip only returns an error if there // was an unsupported request or the URL Fetch proxy fails. // Note that HTTP response codes such as 5xx, 403, 404, etc are not // errors as far as the transport is concerned and will be returned // with err set to nil. func (t *Transport) RoundTrip(req *http.Request) (res *http.Response, err error) { methNum, ok := pb.URLFetchRequest_RequestMethod_value[req.Method] if !ok { return nil, fmt.Errorf("urlfetch: unsupported HTTP method %q", req.Method) } method := pb.URLFetchRequest_RequestMethod(methNum) freq := &pb.URLFetchRequest{ Method: &method, Url: proto.String(urlString(req.URL)), FollowRedirects: proto.Bool(false), // http.Client's responsibility MustValidateServerCertificate: proto.Bool(!t.AllowInvalidServerCertificate), } if deadline, ok := t.Context.Deadline(); ok { freq.Deadline = proto.Float64(deadline.Sub(time.Now()).Seconds()) } for k, vals := range req.Header { for _, val := range vals { freq.Header = append(freq.Header, &pb.URLFetchRequest_Header{ Key: proto.String(k), Value: proto.String(val), }) } } if methodAcceptsRequestBody[req.Method] && req.Body != nil { // Avoid a []byte copy if req.Body has a Bytes method. switch b := req.Body.(type) { case interface { Bytes() []byte }: freq.Payload = b.Bytes() default: freq.Payload, err = ioutil.ReadAll(req.Body) if err != nil { return nil, err } } } fres := &pb.URLFetchResponse{} if err := internal.Call(t.Context, "urlfetch", "Fetch", freq, fres); err != nil { return nil, err } res = &http.Response{} res.StatusCode = int(*fres.StatusCode) res.Status = fmt.Sprintf("%d %s", res.StatusCode, statusCodeToText(res.StatusCode)) res.Header = make(http.Header) res.Request = req // Faked: res.ProtoMajor = 1 res.ProtoMinor = 1 res.Proto = "HTTP/1.1" res.Close = true for _, h := range fres.Header { hkey := http.CanonicalHeaderKey(*h.Key) hval := *h.Value if hkey == "Content-Length" { // Will get filled in below for all but HEAD requests. if req.Method == "HEAD" { res.ContentLength, _ = strconv.ParseInt(hval, 10, 64) } continue } res.Header.Add(hkey, hval) } if req.Method != "HEAD" { res.ContentLength = int64(len(fres.Content)) } truncated := fres.GetContentWasTruncated() res.Body = &bodyReader{content: fres.Content, truncated: truncated} return } func init() { internal.RegisterErrorCodeMap("urlfetch", pb.URLFetchServiceError_ErrorCode_name) internal.RegisterTimeoutErrorCode("urlfetch", int32(pb.URLFetchServiceError_DEADLINE_EXCEEDED)) }