From 6e59191b1335c04be8184cdbfc310c66a9ff07bf Mon Sep 17 00:00:00 2001 From: Aman Mangal Date: Thu, 28 Nov 2024 19:36:34 +0530 Subject: [PATCH] upgrade protobuf library to use Google's protobuf (#178) --- client.go | 5 +- go.mod | 3 +- go.sum | 31 - protos/Makefile | 6 +- protos/api.proto | 7 +- protos/api/api.pb.go | 7854 +++++++------------------------------ protos/api/api_grpc.pb.go | 277 ++ 7 files changed, 1746 insertions(+), 6437 deletions(-) create mode 100644 protos/api/api_grpc.pb.go diff --git a/client.go b/client.go index 15f44ef..ac3cbb1 100644 --- a/client.go +++ b/client.go @@ -31,6 +31,7 @@ import ( "google.golang.org/grpc/credentials" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" "github.com/dgraph-io/dgo/v240/protos/api" ) @@ -135,7 +136,7 @@ func (d *Dgraph) login(ctx context.Context, userid string, password string, return err } - return d.jwt.Unmarshal(resp.Json) + return proto.Unmarshal(resp.Json, &d.jwt) } // GetJwt returns back the JWT for the dgraph client. @@ -205,7 +206,7 @@ func (d *Dgraph) retryLogin(ctx context.Context) error { return err } - return d.jwt.Unmarshal(resp.Json) + return proto.Unmarshal(resp.Json, &d.jwt) } func (d *Dgraph) getContext(ctx context.Context) context.Context { diff --git a/go.mod b/go.mod index ebce2eb..da81647 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,10 @@ go 1.22.7 toolchain go1.23.2 require ( - github.com/gogo/protobuf v1.3.2 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.10.0 google.golang.org/grpc v1.68.0 + google.golang.org/protobuf v1.34.2 ) require ( @@ -18,6 +18,5 @@ require ( golang.org/x/sys v0.25.0 // indirect golang.org/x/text v0.18.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect - google.golang.org/protobuf v1.34.2 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index f8f4847..e46da09 100644 --- a/go.sum +++ b/go.sum @@ -1,52 +1,21 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.68.0 h1:aHQeeJbo8zAkAa3pRzrVjZlbz6uSfeOXlJNQM0RAbz0= diff --git a/protos/Makefile b/protos/Makefile index 756a24e..fdfd65a 100644 --- a/protos/Makefile +++ b/protos/Makefile @@ -21,10 +21,10 @@ clean: .PHONY: check check: echo "Installing proto libraries to versions in go.mod." ; \ - go install github.com/golang/protobuf/protoc-gen-go ; \ - go install github.com/gogo/protobuf/protoc-gen-gogofaster + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31.0 ; \ + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0 .PHONY: regenerate regenerate: check clean - @protoc --gogofaster_out=plugins=grpc:api api.proto + @protoc --go_out=api --go-grpc_out=api --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative api.proto @echo Done. diff --git a/protos/api.proto b/protos/api.proto index 9ba8cda..90b11a0 100644 --- a/protos/api.proto +++ b/protos/api.proto @@ -23,12 +23,7 @@ syntax = "proto3"; package api; -/* import "gogoproto/gogo.proto"; */ - -/* option (gogoproto.marshaler_all) = true; */ -/* option (gogoproto.sizer_all) = true; */ -/* option (gogoproto.unmarshaler_all) = true; */ -/* option (gogoproto.goproto_getters_all) = true; */ +option go_package = "github.com/dgraph-io/dgo/v240/protos/api"; option java_package = "io.dgraph"; option java_outer_classname = "DgraphProto"; diff --git a/protos/api/api.pb.go b/protos/api/api.pb.go index 2b3f9dd..0df580b 100644 --- a/protos/api/api.pb.go +++ b/protos/api/api.pb.go @@ -1,31 +1,44 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// +// Copyright (C) 2023 Dgraph Labs, Inc. and Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Style guide for Protocol Buffer 3. +// Use CamelCase (with an initial capital) for message names – for example, +// SongServerRequest. Use underscore_separated_names for field names – for +// example, song_name. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc v3.12.4 // source: api.proto package api import ( - context "context" - encoding_binary "encoding/binary" - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package +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 Request_RespFormat int32 @@ -34,22 +47,43 @@ const ( Request_RDF Request_RespFormat = 1 ) -var Request_RespFormat_name = map[int32]string{ - 0: "JSON", - 1: "RDF", -} +// Enum value maps for Request_RespFormat. +var ( + Request_RespFormat_name = map[int32]string{ + 0: "JSON", + 1: "RDF", + } + Request_RespFormat_value = map[string]int32{ + "JSON": 0, + "RDF": 1, + } +) -var Request_RespFormat_value = map[string]int32{ - "JSON": 0, - "RDF": 1, +func (x Request_RespFormat) Enum() *Request_RespFormat { + p := new(Request_RespFormat) + *p = x + return p } func (x Request_RespFormat) String() string { - return proto.EnumName(Request_RespFormat_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Request_RespFormat) Descriptor() protoreflect.EnumDescriptor { + return file_api_proto_enumTypes[0].Descriptor() +} + +func (Request_RespFormat) Type() protoreflect.EnumType { + return &file_api_proto_enumTypes[0] } +func (x Request_RespFormat) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Request_RespFormat.Descriptor instead. func (Request_RespFormat) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{0, 0} + return file_api_proto_rawDescGZIP(), []int{0, 0} } type Operation_DropOp int32 @@ -62,28 +96,49 @@ const ( Operation_TYPE Operation_DropOp = 4 ) -var Operation_DropOp_name = map[int32]string{ - 0: "NONE", - 1: "ALL", - 2: "DATA", - 3: "ATTR", - 4: "TYPE", -} +// Enum value maps for Operation_DropOp. +var ( + Operation_DropOp_name = map[int32]string{ + 0: "NONE", + 1: "ALL", + 2: "DATA", + 3: "ATTR", + 4: "TYPE", + } + Operation_DropOp_value = map[string]int32{ + "NONE": 0, + "ALL": 1, + "DATA": 2, + "ATTR": 3, + "TYPE": 4, + } +) -var Operation_DropOp_value = map[string]int32{ - "NONE": 0, - "ALL": 1, - "DATA": 2, - "ATTR": 3, - "TYPE": 4, +func (x Operation_DropOp) Enum() *Operation_DropOp { + p := new(Operation_DropOp) + *p = x + return p } func (x Operation_DropOp) String() string { - return proto.EnumName(Operation_DropOp_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Operation_DropOp) Descriptor() protoreflect.EnumDescriptor { + return file_api_proto_enumTypes[1].Descriptor() } +func (Operation_DropOp) Type() protoreflect.EnumType { + return &file_api_proto_enumTypes[1] +} + +func (x Operation_DropOp) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Operation_DropOp.Descriptor instead. func (Operation_DropOp) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{5, 0} + return file_api_proto_rawDescGZIP(), []int{5, 0} } type Facet_ValType int32 @@ -96,34 +151,59 @@ const ( Facet_DATETIME Facet_ValType = 4 ) -var Facet_ValType_name = map[int32]string{ - 0: "STRING", - 1: "INT", - 2: "FLOAT", - 3: "BOOL", - 4: "DATETIME", -} +// Enum value maps for Facet_ValType. +var ( + Facet_ValType_name = map[int32]string{ + 0: "STRING", + 1: "INT", + 2: "FLOAT", + 3: "BOOL", + 4: "DATETIME", + } + Facet_ValType_value = map[string]int32{ + "STRING": 0, + "INT": 1, + "FLOAT": 2, + "BOOL": 3, + "DATETIME": 4, + } +) -var Facet_ValType_value = map[string]int32{ - "STRING": 0, - "INT": 1, - "FLOAT": 2, - "BOOL": 3, - "DATETIME": 4, +func (x Facet_ValType) Enum() *Facet_ValType { + p := new(Facet_ValType) + *p = x + return p } func (x Facet_ValType) String() string { - return proto.EnumName(Facet_ValType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (Facet_ValType) Descriptor() protoreflect.EnumDescriptor { + return file_api_proto_enumTypes[2].Descriptor() +} + +func (Facet_ValType) Type() protoreflect.EnumType { + return &file_api_proto_enumTypes[2] +} + +func (x Facet_ValType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Facet_ValType.Descriptor instead. func (Facet_ValType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{14, 0} + return file_api_proto_rawDescGZIP(), []int{14, 0} } type Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` - Vars map[string]string `protobuf:"bytes,5,rep,name=vars,proto3" json:"vars,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Vars map[string]string `protobuf:"bytes,5,rep,name=vars,proto3" json:"vars,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Support for GraphQL like variables. ReadOnly bool `protobuf:"varint,6,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` BestEffort bool `protobuf:"varint,7,opt,name=best_effort,json=bestEffort,proto3" json:"best_effort,omitempty"` Mutations []*Mutation `protobuf:"bytes,12,rep,name=mutations,proto3" json:"mutations,omitempty"` @@ -132,191 +212,200 @@ type Request struct { Hash string `protobuf:"bytes,15,opt,name=hash,proto3" json:"hash,omitempty"` } -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_00212fb1f9d3bf1c, []int{0} -} -func (m *Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Request) Reset() { + *x = Request{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Request.Merge(m, src) -} -func (m *Request) XXX_Size() int { - return m.Size() + +func (x *Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Request) XXX_DiscardUnknown() { - xxx_messageInfo_Request.DiscardUnknown(m) + +func (*Request) ProtoMessage() {} + +func (x *Request) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Request proto.InternalMessageInfo +// Deprecated: Use Request.ProtoReflect.Descriptor instead. +func (*Request) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{0} +} -func (m *Request) GetStartTs() uint64 { - if m != nil { - return m.StartTs +func (x *Request) GetStartTs() uint64 { + if x != nil { + return x.StartTs } return 0 } -func (m *Request) GetQuery() string { - if m != nil { - return m.Query +func (x *Request) GetQuery() string { + if x != nil { + return x.Query } return "" } -func (m *Request) GetVars() map[string]string { - if m != nil { - return m.Vars +func (x *Request) GetVars() map[string]string { + if x != nil { + return x.Vars } return nil } -func (m *Request) GetReadOnly() bool { - if m != nil { - return m.ReadOnly +func (x *Request) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } return false } -func (m *Request) GetBestEffort() bool { - if m != nil { - return m.BestEffort +func (x *Request) GetBestEffort() bool { + if x != nil { + return x.BestEffort } return false } -func (m *Request) GetMutations() []*Mutation { - if m != nil { - return m.Mutations +func (x *Request) GetMutations() []*Mutation { + if x != nil { + return x.Mutations } return nil } -func (m *Request) GetCommitNow() bool { - if m != nil { - return m.CommitNow +func (x *Request) GetCommitNow() bool { + if x != nil { + return x.CommitNow } return false } -func (m *Request) GetRespFormat() Request_RespFormat { - if m != nil { - return m.RespFormat +func (x *Request) GetRespFormat() Request_RespFormat { + if x != nil { + return x.RespFormat } return Request_JSON } -func (m *Request) GetHash() string { - if m != nil { - return m.Hash +func (x *Request) GetHash() string { + if x != nil { + return x.Hash } return "" } type Uids struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Uids []string `protobuf:"bytes,1,rep,name=uids,proto3" json:"uids,omitempty"` } -func (m *Uids) Reset() { *m = Uids{} } -func (m *Uids) String() string { return proto.CompactTextString(m) } -func (*Uids) ProtoMessage() {} -func (*Uids) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{1} -} -func (m *Uids) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Uids) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Uids.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Uids) Reset() { + *x = Uids{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Uids) XXX_Merge(src proto.Message) { - xxx_messageInfo_Uids.Merge(m, src) -} -func (m *Uids) XXX_Size() int { - return m.Size() + +func (x *Uids) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Uids) XXX_DiscardUnknown() { - xxx_messageInfo_Uids.DiscardUnknown(m) + +func (*Uids) ProtoMessage() {} + +func (x *Uids) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Uids proto.InternalMessageInfo +// Deprecated: Use Uids.ProtoReflect.Descriptor instead. +func (*Uids) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{1} +} -func (m *Uids) GetUids() []string { - if m != nil { - return m.Uids +func (x *Uids) GetUids() []string { + if x != nil { + return x.Uids } return nil } type ListOfString struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` } -func (m *ListOfString) Reset() { *m = ListOfString{} } -func (m *ListOfString) String() string { return proto.CompactTextString(m) } -func (*ListOfString) ProtoMessage() {} -func (*ListOfString) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{2} -} -func (m *ListOfString) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListOfString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListOfString.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ListOfString) Reset() { + *x = ListOfString{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ListOfString) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListOfString.Merge(m, src) -} -func (m *ListOfString) XXX_Size() int { - return m.Size() + +func (x *ListOfString) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListOfString) XXX_DiscardUnknown() { - xxx_messageInfo_ListOfString.DiscardUnknown(m) + +func (*ListOfString) ProtoMessage() {} + +func (x *ListOfString) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_ListOfString proto.InternalMessageInfo +// Deprecated: Use ListOfString.ProtoReflect.Descriptor instead. +func (*ListOfString) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{2} +} -func (m *ListOfString) GetValue() []string { - if m != nil { - return m.Value +func (x *ListOfString) GetValue() []string { + if x != nil { + return x.Value } return nil } type Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Json []byte `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` Txn *TxnContext `protobuf:"bytes,2,opt,name=txn,proto3" json:"txn,omitempty"` Latency *Latency `protobuf:"bytes,3,opt,name=latency,proto3" json:"latency,omitempty"` @@ -329,89 +418,92 @@ type Response struct { Hdrs map[string]*ListOfString `protobuf:"bytes,14,rep,name=hdrs,proto3" json:"hdrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -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_00212fb1f9d3bf1c, []int{3} -} -func (m *Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Response.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Response) Reset() { + *x = Response{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Response.Merge(m, src) -} -func (m *Response) XXX_Size() int { - return m.Size() + +func (x *Response) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Response) XXX_DiscardUnknown() { - xxx_messageInfo_Response.DiscardUnknown(m) + +func (*Response) ProtoMessage() {} + +func (x *Response) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Response proto.InternalMessageInfo +// Deprecated: Use Response.ProtoReflect.Descriptor instead. +func (*Response) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{3} +} -func (m *Response) GetJson() []byte { - if m != nil { - return m.Json +func (x *Response) GetJson() []byte { + if x != nil { + return x.Json } return nil } -func (m *Response) GetTxn() *TxnContext { - if m != nil { - return m.Txn +func (x *Response) GetTxn() *TxnContext { + if x != nil { + return x.Txn } return nil } -func (m *Response) GetLatency() *Latency { - if m != nil { - return m.Latency +func (x *Response) GetLatency() *Latency { + if x != nil { + return x.Latency } return nil } -func (m *Response) GetMetrics() *Metrics { - if m != nil { - return m.Metrics +func (x *Response) GetMetrics() *Metrics { + if x != nil { + return x.Metrics } return nil } -func (m *Response) GetUids() map[string]string { - if m != nil { - return m.Uids +func (x *Response) GetUids() map[string]string { + if x != nil { + return x.Uids } return nil } -func (m *Response) GetRdf() []byte { - if m != nil { - return m.Rdf +func (x *Response) GetRdf() []byte { + if x != nil { + return x.Rdf } return nil } -func (m *Response) GetHdrs() map[string]*ListOfString { - if m != nil { - return m.Hdrs +func (x *Response) GetHdrs() map[string]*ListOfString { + if x != nil { + return x.Hdrs } return nil } type Mutation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SetJson []byte `protobuf:"bytes,1,opt,name=set_json,json=setJson,proto3" json:"set_json,omitempty"` DeleteJson []byte `protobuf:"bytes,2,opt,name=delete_json,json=deleteJson,proto3" json:"delete_json,omitempty"` SetNquads []byte `protobuf:"bytes,3,opt,name=set_nquads,json=setNquads,proto3" json:"set_nquads,omitempty"` @@ -424,96 +516,99 @@ type Mutation struct { CommitNow bool `protobuf:"varint,14,opt,name=commit_now,json=commitNow,proto3" json:"commit_now,omitempty"` } -func (m *Mutation) Reset() { *m = Mutation{} } -func (m *Mutation) String() string { return proto.CompactTextString(m) } -func (*Mutation) ProtoMessage() {} -func (*Mutation) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{4} -} -func (m *Mutation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Mutation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Mutation) Reset() { + *x = Mutation{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Mutation) XXX_Merge(src proto.Message) { - xxx_messageInfo_Mutation.Merge(m, src) -} -func (m *Mutation) XXX_Size() int { - return m.Size() + +func (x *Mutation) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Mutation) XXX_DiscardUnknown() { - xxx_messageInfo_Mutation.DiscardUnknown(m) + +func (*Mutation) ProtoMessage() {} + +func (x *Mutation) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Mutation proto.InternalMessageInfo +// Deprecated: Use Mutation.ProtoReflect.Descriptor instead. +func (*Mutation) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{4} +} -func (m *Mutation) GetSetJson() []byte { - if m != nil { - return m.SetJson +func (x *Mutation) GetSetJson() []byte { + if x != nil { + return x.SetJson } return nil } -func (m *Mutation) GetDeleteJson() []byte { - if m != nil { - return m.DeleteJson +func (x *Mutation) GetDeleteJson() []byte { + if x != nil { + return x.DeleteJson } return nil } -func (m *Mutation) GetSetNquads() []byte { - if m != nil { - return m.SetNquads +func (x *Mutation) GetSetNquads() []byte { + if x != nil { + return x.SetNquads } return nil } -func (m *Mutation) GetDelNquads() []byte { - if m != nil { - return m.DelNquads +func (x *Mutation) GetDelNquads() []byte { + if x != nil { + return x.DelNquads } return nil } -func (m *Mutation) GetSet() []*NQuad { - if m != nil { - return m.Set +func (x *Mutation) GetSet() []*NQuad { + if x != nil { + return x.Set } return nil } -func (m *Mutation) GetDel() []*NQuad { - if m != nil { - return m.Del +func (x *Mutation) GetDel() []*NQuad { + if x != nil { + return x.Del } return nil } -func (m *Mutation) GetCond() string { - if m != nil { - return m.Cond +func (x *Mutation) GetCond() string { + if x != nil { + return x.Cond } return "" } -func (m *Mutation) GetCommitNow() bool { - if m != nil { - return m.CommitNow +func (x *Mutation) GetCommitNow() bool { + if x != nil { + return x.CommitNow } return false } type Operation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` DropAttr string `protobuf:"bytes,2,opt,name=drop_attr,json=dropAttr,proto3" json:"drop_attr,omitempty"` DropAll bool `protobuf:"varint,3,opt,name=drop_all,json=dropAll,proto3" json:"drop_all,omitempty"` @@ -525,291 +620,305 @@ type Operation struct { RunInBackground bool `protobuf:"varint,6,opt,name=run_in_background,json=runInBackground,proto3" json:"run_in_background,omitempty"` } -func (m *Operation) Reset() { *m = Operation{} } -func (m *Operation) String() string { return proto.CompactTextString(m) } -func (*Operation) ProtoMessage() {} -func (*Operation) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{5} -} -func (m *Operation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Operation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Operation) Reset() { + *x = Operation{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Operation) XXX_Merge(src proto.Message) { - xxx_messageInfo_Operation.Merge(m, src) -} -func (m *Operation) XXX_Size() int { - return m.Size() + +func (x *Operation) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Operation) XXX_DiscardUnknown() { - xxx_messageInfo_Operation.DiscardUnknown(m) + +func (*Operation) ProtoMessage() {} + +func (x *Operation) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Operation proto.InternalMessageInfo +// Deprecated: Use Operation.ProtoReflect.Descriptor instead. +func (*Operation) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{5} +} -func (m *Operation) GetSchema() string { - if m != nil { - return m.Schema +func (x *Operation) GetSchema() string { + if x != nil { + return x.Schema } return "" } -func (m *Operation) GetDropAttr() string { - if m != nil { - return m.DropAttr +func (x *Operation) GetDropAttr() string { + if x != nil { + return x.DropAttr } return "" } -func (m *Operation) GetDropAll() bool { - if m != nil { - return m.DropAll +func (x *Operation) GetDropAll() bool { + if x != nil { + return x.DropAll } return false } -func (m *Operation) GetDropOp() Operation_DropOp { - if m != nil { - return m.DropOp +func (x *Operation) GetDropOp() Operation_DropOp { + if x != nil { + return x.DropOp } return Operation_NONE } -func (m *Operation) GetDropValue() string { - if m != nil { - return m.DropValue +func (x *Operation) GetDropValue() string { + if x != nil { + return x.DropValue } return "" } -func (m *Operation) GetRunInBackground() bool { - if m != nil { - return m.RunInBackground +func (x *Operation) GetRunInBackground() bool { + if x != nil { + return x.RunInBackground } return false } // Worker services. type Payload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` } -func (m *Payload) Reset() { *m = Payload{} } -func (m *Payload) String() string { return proto.CompactTextString(m) } -func (*Payload) ProtoMessage() {} -func (*Payload) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{6} -} -func (m *Payload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Payload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Payload) Reset() { + *x = Payload{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Payload) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payload.Merge(m, src) -} -func (m *Payload) XXX_Size() int { - return m.Size() + +func (x *Payload) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Payload) XXX_DiscardUnknown() { - xxx_messageInfo_Payload.DiscardUnknown(m) + +func (*Payload) ProtoMessage() {} + +func (x *Payload) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Payload proto.InternalMessageInfo +// Deprecated: Use Payload.ProtoReflect.Descriptor instead. +func (*Payload) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{6} +} -func (m *Payload) GetData() []byte { - if m != nil { - return m.Data +func (x *Payload) GetData() []byte { + if x != nil { + return x.Data } return nil } type TxnContext struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` CommitTs uint64 `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` Aborted bool `protobuf:"varint,3,opt,name=aborted,proto3" json:"aborted,omitempty"` - Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` - Preds []string `protobuf:"bytes,5,rep,name=preds,proto3" json:"preds,omitempty"` + Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` // List of keys to be used for conflict detection. + Preds []string `protobuf:"bytes,5,rep,name=preds,proto3" json:"preds,omitempty"` // List of predicates involved in this transaction. Hash string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"` } -func (m *TxnContext) Reset() { *m = TxnContext{} } -func (m *TxnContext) String() string { return proto.CompactTextString(m) } -func (*TxnContext) ProtoMessage() {} -func (*TxnContext) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{7} -} -func (m *TxnContext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnContext.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *TxnContext) Reset() { + *x = TxnContext{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TxnContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnContext.Merge(m, src) -} -func (m *TxnContext) XXX_Size() int { - return m.Size() + +func (x *TxnContext) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxnContext) XXX_DiscardUnknown() { - xxx_messageInfo_TxnContext.DiscardUnknown(m) + +func (*TxnContext) ProtoMessage() {} + +func (x *TxnContext) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_TxnContext proto.InternalMessageInfo +// Deprecated: Use TxnContext.ProtoReflect.Descriptor instead. +func (*TxnContext) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{7} +} -func (m *TxnContext) GetStartTs() uint64 { - if m != nil { - return m.StartTs +func (x *TxnContext) GetStartTs() uint64 { + if x != nil { + return x.StartTs } return 0 } -func (m *TxnContext) GetCommitTs() uint64 { - if m != nil { - return m.CommitTs +func (x *TxnContext) GetCommitTs() uint64 { + if x != nil { + return x.CommitTs } return 0 } -func (m *TxnContext) GetAborted() bool { - if m != nil { - return m.Aborted +func (x *TxnContext) GetAborted() bool { + if x != nil { + return x.Aborted } return false } -func (m *TxnContext) GetKeys() []string { - if m != nil { - return m.Keys +func (x *TxnContext) GetKeys() []string { + if x != nil { + return x.Keys } return nil } -func (m *TxnContext) GetPreds() []string { - if m != nil { - return m.Preds +func (x *TxnContext) GetPreds() []string { + if x != nil { + return x.Preds } return nil } -func (m *TxnContext) GetHash() string { - if m != nil { - return m.Hash +func (x *TxnContext) GetHash() string { + if x != nil { + return x.Hash } return "" } type Check struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *Check) Reset() { *m = Check{} } -func (m *Check) String() string { return proto.CompactTextString(m) } -func (*Check) ProtoMessage() {} -func (*Check) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{8} -} -func (m *Check) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Check) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Check.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Check) Reset() { + *x = Check{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Check) XXX_Merge(src proto.Message) { - xxx_messageInfo_Check.Merge(m, src) -} -func (m *Check) XXX_Size() int { - return m.Size() + +func (x *Check) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Check) XXX_DiscardUnknown() { - xxx_messageInfo_Check.DiscardUnknown(m) + +func (*Check) ProtoMessage() {} + +func (x *Check) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Check proto.InternalMessageInfo +// Deprecated: Use Check.ProtoReflect.Descriptor instead. +func (*Check) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{8} +} type Version struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` } -func (m *Version) Reset() { *m = Version{} } -func (m *Version) String() string { return proto.CompactTextString(m) } -func (*Version) ProtoMessage() {} -func (*Version) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{9} -} -func (m *Version) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Version.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Version) Reset() { + *x = Version{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Version) XXX_Merge(src proto.Message) { - xxx_messageInfo_Version.Merge(m, src) -} -func (m *Version) XXX_Size() int { - return m.Size() + +func (x *Version) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Version) XXX_DiscardUnknown() { - xxx_messageInfo_Version.DiscardUnknown(m) + +func (*Version) ProtoMessage() {} + +func (x *Version) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Version proto.InternalMessageInfo +// Deprecated: Use Version.ProtoReflect.Descriptor instead. +func (*Version) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{9} +} -func (m *Version) GetTag() string { - if m != nil { - return m.Tag +func (x *Version) GetTag() string { + if x != nil { + return x.Tag } return "" } type Latency struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ParsingNs uint64 `protobuf:"varint,1,opt,name=parsing_ns,json=parsingNs,proto3" json:"parsing_ns,omitempty"` ProcessingNs uint64 `protobuf:"varint,2,opt,name=processing_ns,json=processingNs,proto3" json:"processing_ns,omitempty"` EncodingNs uint64 `protobuf:"varint,3,opt,name=encoding_ns,json=encodingNs,proto3" json:"encoding_ns,omitempty"` @@ -817,120 +926,126 @@ type Latency struct { TotalNs uint64 `protobuf:"varint,5,opt,name=total_ns,json=totalNs,proto3" json:"total_ns,omitempty"` } -func (m *Latency) Reset() { *m = Latency{} } -func (m *Latency) String() string { return proto.CompactTextString(m) } -func (*Latency) ProtoMessage() {} -func (*Latency) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{10} -} -func (m *Latency) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Latency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Latency.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Latency) Reset() { + *x = Latency{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Latency) XXX_Merge(src proto.Message) { - xxx_messageInfo_Latency.Merge(m, src) -} -func (m *Latency) XXX_Size() int { - return m.Size() + +func (x *Latency) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Latency) XXX_DiscardUnknown() { - xxx_messageInfo_Latency.DiscardUnknown(m) + +func (*Latency) ProtoMessage() {} + +func (x *Latency) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Latency proto.InternalMessageInfo +// Deprecated: Use Latency.ProtoReflect.Descriptor instead. +func (*Latency) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{10} +} -func (m *Latency) GetParsingNs() uint64 { - if m != nil { - return m.ParsingNs +func (x *Latency) GetParsingNs() uint64 { + if x != nil { + return x.ParsingNs } return 0 } -func (m *Latency) GetProcessingNs() uint64 { - if m != nil { - return m.ProcessingNs +func (x *Latency) GetProcessingNs() uint64 { + if x != nil { + return x.ProcessingNs } return 0 } -func (m *Latency) GetEncodingNs() uint64 { - if m != nil { - return m.EncodingNs +func (x *Latency) GetEncodingNs() uint64 { + if x != nil { + return x.EncodingNs } return 0 } -func (m *Latency) GetAssignTimestampNs() uint64 { - if m != nil { - return m.AssignTimestampNs +func (x *Latency) GetAssignTimestampNs() uint64 { + if x != nil { + return x.AssignTimestampNs } return 0 } -func (m *Latency) GetTotalNs() uint64 { - if m != nil { - return m.TotalNs +func (x *Latency) GetTotalNs() uint64 { + if x != nil { + return x.TotalNs } return 0 } type Metrics struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // num_uids is the map of number of uids processed by each attribute. NumUids map[string]uint64 `protobuf:"bytes,1,rep,name=num_uids,json=numUids,proto3" json:"num_uids,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } -func (m *Metrics) Reset() { *m = Metrics{} } -func (m *Metrics) String() string { return proto.CompactTextString(m) } -func (*Metrics) ProtoMessage() {} -func (*Metrics) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{11} -} -func (m *Metrics) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Metrics.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Metrics) Reset() { + *x = Metrics{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Metrics) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metrics.Merge(m, src) -} -func (m *Metrics) XXX_Size() int { - return m.Size() + +func (x *Metrics) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Metrics) XXX_DiscardUnknown() { - xxx_messageInfo_Metrics.DiscardUnknown(m) + +func (*Metrics) ProtoMessage() {} + +func (x *Metrics) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_Metrics proto.InternalMessageInfo +// Deprecated: Use Metrics.ProtoReflect.Descriptor instead. +func (*Metrics) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{11} +} -func (m *Metrics) GetNumUids() map[string]uint64 { - if m != nil { - return m.NumUids +func (x *Metrics) GetNumUids() map[string]uint64 { + if x != nil { + return x.NumUids } return nil } type NQuad struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` ObjectId string `protobuf:"bytes,3,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` @@ -940,90 +1055,93 @@ type NQuad struct { Namespace uint64 `protobuf:"varint,8,opt,name=namespace,proto3" json:"namespace,omitempty"` } -func (m *NQuad) Reset() { *m = NQuad{} } -func (m *NQuad) String() string { return proto.CompactTextString(m) } -func (*NQuad) ProtoMessage() {} -func (*NQuad) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{12} -} -func (m *NQuad) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NQuad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NQuad.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *NQuad) Reset() { + *x = NQuad{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *NQuad) XXX_Merge(src proto.Message) { - xxx_messageInfo_NQuad.Merge(m, src) -} -func (m *NQuad) XXX_Size() int { - return m.Size() + +func (x *NQuad) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NQuad) XXX_DiscardUnknown() { - xxx_messageInfo_NQuad.DiscardUnknown(m) + +func (*NQuad) ProtoMessage() {} + +func (x *NQuad) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -var xxx_messageInfo_NQuad proto.InternalMessageInfo +// Deprecated: Use NQuad.ProtoReflect.Descriptor instead. +func (*NQuad) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{12} +} -func (m *NQuad) GetSubject() string { - if m != nil { - return m.Subject +func (x *NQuad) GetSubject() string { + if x != nil { + return x.Subject } return "" } -func (m *NQuad) GetPredicate() string { - if m != nil { - return m.Predicate +func (x *NQuad) GetPredicate() string { + if x != nil { + return x.Predicate } return "" } -func (m *NQuad) GetObjectId() string { - if m != nil { - return m.ObjectId +func (x *NQuad) GetObjectId() string { + if x != nil { + return x.ObjectId } return "" } -func (m *NQuad) GetObjectValue() *Value { - if m != nil { - return m.ObjectValue +func (x *NQuad) GetObjectValue() *Value { + if x != nil { + return x.ObjectValue } return nil } -func (m *NQuad) GetLang() string { - if m != nil { - return m.Lang +func (x *NQuad) GetLang() string { + if x != nil { + return x.Lang } return "" } -func (m *NQuad) GetFacets() []*Facet { - if m != nil { - return m.Facets +func (x *NQuad) GetFacets() []*Facet { + if x != nil { + return x.Facets } return nil } -func (m *NQuad) GetNamespace() uint64 { - if m != nil { - return m.Namespace +func (x *NQuad) GetNamespace() uint64 { + if x != nil { + return x.Namespace } return 0 } type Value struct { - // Types that are valid to be assigned to Val: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Val: // // *Value_DefaultVal // *Value_BytesVal @@ -1041,6004 +1159,954 @@ type Value struct { Val isValue_Val `protobuf_oneof:"val"` } -func (m *Value) Reset() { *m = Value{} } -func (m *Value) String() string { return proto.CompactTextString(m) } -func (*Value) ProtoMessage() {} -func (*Value) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{13} -} -func (m *Value) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Value.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Value) Reset() { + *x = Value{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_Value.Merge(m, src) -} -func (m *Value) XXX_Size() int { - return m.Size() -} -func (m *Value) XXX_DiscardUnknown() { - xxx_messageInfo_Value.DiscardUnknown(m) + +func (x *Value) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Value proto.InternalMessageInfo +func (*Value) ProtoMessage() {} -type isValue_Val interface { - isValue_Val() - MarshalTo([]byte) (int, error) - Size() int +func (x *Value) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -type Value_DefaultVal struct { - DefaultVal string `protobuf:"bytes,1,opt,name=default_val,json=defaultVal,proto3,oneof" json:"default_val,omitempty"` -} -type Value_BytesVal struct { - BytesVal []byte `protobuf:"bytes,2,opt,name=bytes_val,json=bytesVal,proto3,oneof" json:"bytes_val,omitempty"` -} -type Value_IntVal struct { - IntVal int64 `protobuf:"varint,3,opt,name=int_val,json=intVal,proto3,oneof" json:"int_val,omitempty"` +// Deprecated: Use Value.ProtoReflect.Descriptor instead. +func (*Value) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{13} } -type Value_BoolVal struct { - BoolVal bool `protobuf:"varint,4,opt,name=bool_val,json=boolVal,proto3,oneof" json:"bool_val,omitempty"` -} -type Value_StrVal struct { - StrVal string `protobuf:"bytes,5,opt,name=str_val,json=strVal,proto3,oneof" json:"str_val,omitempty"` -} -type Value_DoubleVal struct { - DoubleVal float64 `protobuf:"fixed64,6,opt,name=double_val,json=doubleVal,proto3,oneof" json:"double_val,omitempty"` -} -type Value_GeoVal struct { - GeoVal []byte `protobuf:"bytes,7,opt,name=geo_val,json=geoVal,proto3,oneof" json:"geo_val,omitempty"` -} -type Value_DateVal struct { - DateVal []byte `protobuf:"bytes,8,opt,name=date_val,json=dateVal,proto3,oneof" json:"date_val,omitempty"` -} -type Value_DatetimeVal struct { - DatetimeVal []byte `protobuf:"bytes,9,opt,name=datetime_val,json=datetimeVal,proto3,oneof" json:"datetime_val,omitempty"` -} -type Value_PasswordVal struct { - PasswordVal string `protobuf:"bytes,10,opt,name=password_val,json=passwordVal,proto3,oneof" json:"password_val,omitempty"` -} -type Value_UidVal struct { - UidVal uint64 `protobuf:"varint,11,opt,name=uid_val,json=uidVal,proto3,oneof" json:"uid_val,omitempty"` -} -type Value_BigfloatVal struct { - BigfloatVal []byte `protobuf:"bytes,12,opt,name=bigfloat_val,json=bigfloatVal,proto3,oneof" json:"bigfloat_val,omitempty"` -} -type Value_Vfloat32Val struct { - Vfloat32Val []byte `protobuf:"bytes,13,opt,name=vfloat32_val,json=vfloat32Val,proto3,oneof" json:"vfloat32_val,omitempty"` -} - -func (*Value_DefaultVal) isValue_Val() {} -func (*Value_BytesVal) isValue_Val() {} -func (*Value_IntVal) isValue_Val() {} -func (*Value_BoolVal) isValue_Val() {} -func (*Value_StrVal) isValue_Val() {} -func (*Value_DoubleVal) isValue_Val() {} -func (*Value_GeoVal) isValue_Val() {} -func (*Value_DateVal) isValue_Val() {} -func (*Value_DatetimeVal) isValue_Val() {} -func (*Value_PasswordVal) isValue_Val() {} -func (*Value_UidVal) isValue_Val() {} -func (*Value_BigfloatVal) isValue_Val() {} -func (*Value_Vfloat32Val) isValue_Val() {} - -func (m *Value) GetVal() isValue_Val { - if m != nil { - return m.Val - } - return nil + +func (m *Value) GetVal() isValue_Val { + if m != nil { + return m.Val + } + return nil } -func (m *Value) GetDefaultVal() string { - if x, ok := m.GetVal().(*Value_DefaultVal); ok { +func (x *Value) GetDefaultVal() string { + if x, ok := x.GetVal().(*Value_DefaultVal); ok { return x.DefaultVal } return "" } -func (m *Value) GetBytesVal() []byte { - if x, ok := m.GetVal().(*Value_BytesVal); ok { +func (x *Value) GetBytesVal() []byte { + if x, ok := x.GetVal().(*Value_BytesVal); ok { return x.BytesVal } return nil } -func (m *Value) GetIntVal() int64 { - if x, ok := m.GetVal().(*Value_IntVal); ok { +func (x *Value) GetIntVal() int64 { + if x, ok := x.GetVal().(*Value_IntVal); ok { return x.IntVal } return 0 } -func (m *Value) GetBoolVal() bool { - if x, ok := m.GetVal().(*Value_BoolVal); ok { +func (x *Value) GetBoolVal() bool { + if x, ok := x.GetVal().(*Value_BoolVal); ok { return x.BoolVal } return false } -func (m *Value) GetStrVal() string { - if x, ok := m.GetVal().(*Value_StrVal); ok { +func (x *Value) GetStrVal() string { + if x, ok := x.GetVal().(*Value_StrVal); ok { return x.StrVal } return "" } -func (m *Value) GetDoubleVal() float64 { - if x, ok := m.GetVal().(*Value_DoubleVal); ok { +func (x *Value) GetDoubleVal() float64 { + if x, ok := x.GetVal().(*Value_DoubleVal); ok { return x.DoubleVal } return 0 } -func (m *Value) GetGeoVal() []byte { - if x, ok := m.GetVal().(*Value_GeoVal); ok { +func (x *Value) GetGeoVal() []byte { + if x, ok := x.GetVal().(*Value_GeoVal); ok { return x.GeoVal } return nil } -func (m *Value) GetDateVal() []byte { - if x, ok := m.GetVal().(*Value_DateVal); ok { +func (x *Value) GetDateVal() []byte { + if x, ok := x.GetVal().(*Value_DateVal); ok { return x.DateVal } return nil } -func (m *Value) GetDatetimeVal() []byte { - if x, ok := m.GetVal().(*Value_DatetimeVal); ok { +func (x *Value) GetDatetimeVal() []byte { + if x, ok := x.GetVal().(*Value_DatetimeVal); ok { return x.DatetimeVal } return nil } -func (m *Value) GetPasswordVal() string { - if x, ok := m.GetVal().(*Value_PasswordVal); ok { +func (x *Value) GetPasswordVal() string { + if x, ok := x.GetVal().(*Value_PasswordVal); ok { return x.PasswordVal } return "" } -func (m *Value) GetUidVal() uint64 { - if x, ok := m.GetVal().(*Value_UidVal); ok { +func (x *Value) GetUidVal() uint64 { + if x, ok := x.GetVal().(*Value_UidVal); ok { return x.UidVal } return 0 } -func (m *Value) GetBigfloatVal() []byte { - if x, ok := m.GetVal().(*Value_BigfloatVal); ok { +func (x *Value) GetBigfloatVal() []byte { + if x, ok := x.GetVal().(*Value_BigfloatVal); ok { return x.BigfloatVal } return nil } -func (m *Value) GetVfloat32Val() []byte { - if x, ok := m.GetVal().(*Value_Vfloat32Val); ok { +func (x *Value) GetVfloat32Val() []byte { + if x, ok := x.GetVal().(*Value_Vfloat32Val); ok { return x.Vfloat32Val } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Value) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Value_DefaultVal)(nil), - (*Value_BytesVal)(nil), - (*Value_IntVal)(nil), - (*Value_BoolVal)(nil), - (*Value_StrVal)(nil), - (*Value_DoubleVal)(nil), - (*Value_GeoVal)(nil), - (*Value_DateVal)(nil), - (*Value_DatetimeVal)(nil), - (*Value_PasswordVal)(nil), - (*Value_UidVal)(nil), - (*Value_BigfloatVal)(nil), - (*Value_Vfloat32Val)(nil), - } +type isValue_Val interface { + isValue_Val() } -type Facet struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - ValType Facet_ValType `protobuf:"varint,3,opt,name=val_type,json=valType,proto3,enum=api.Facet_ValType" json:"val_type,omitempty"` - Tokens []string `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"` - Alias string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"` +type Value_DefaultVal struct { + DefaultVal string `protobuf:"bytes,1,opt,name=default_val,json=defaultVal,proto3,oneof"` } -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_00212fb1f9d3bf1c, []int{14} -} -func (m *Facet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Facet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Facet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Facet) XXX_Merge(src proto.Message) { - xxx_messageInfo_Facet.Merge(m, src) -} -func (m *Facet) XXX_Size() int { - return m.Size() -} -func (m *Facet) XXX_DiscardUnknown() { - xxx_messageInfo_Facet.DiscardUnknown(m) +type Value_BytesVal struct { + BytesVal []byte `protobuf:"bytes,2,opt,name=bytes_val,json=bytesVal,proto3,oneof"` } -var xxx_messageInfo_Facet proto.InternalMessageInfo +type Value_IntVal struct { + IntVal int64 `protobuf:"varint,3,opt,name=int_val,json=intVal,proto3,oneof"` +} -func (m *Facet) GetKey() string { - if m != nil { - return m.Key - } - return "" +type Value_BoolVal struct { + BoolVal bool `protobuf:"varint,4,opt,name=bool_val,json=boolVal,proto3,oneof"` } -func (m *Facet) GetValue() []byte { - if m != nil { - return m.Value - } - return nil +type Value_StrVal struct { + StrVal string `protobuf:"bytes,5,opt,name=str_val,json=strVal,proto3,oneof"` } -func (m *Facet) GetValType() Facet_ValType { - if m != nil { - return m.ValType - } - return Facet_STRING +type Value_DoubleVal struct { + DoubleVal float64 `protobuf:"fixed64,6,opt,name=double_val,json=doubleVal,proto3,oneof"` } -func (m *Facet) GetTokens() []string { - if m != nil { - return m.Tokens - } - return nil +type Value_GeoVal struct { + GeoVal []byte `protobuf:"bytes,7,opt,name=geo_val,json=geoVal,proto3,oneof"` // Geo data in WKB format } -func (m *Facet) GetAlias() string { - if m != nil { - return m.Alias - } - return "" +type Value_DateVal struct { + DateVal []byte `protobuf:"bytes,8,opt,name=date_val,json=dateVal,proto3,oneof"` } -type LoginRequest struct { - Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` - Namespace uint64 `protobuf:"varint,4,opt,name=namespace,proto3" json:"namespace,omitempty"` +type Value_DatetimeVal struct { + DatetimeVal []byte `protobuf:"bytes,9,opt,name=datetime_val,json=datetimeVal,proto3,oneof"` } -func (m *LoginRequest) Reset() { *m = LoginRequest{} } -func (m *LoginRequest) String() string { return proto.CompactTextString(m) } -func (*LoginRequest) ProtoMessage() {} -func (*LoginRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{15} -} -func (m *LoginRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LoginRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +type Value_PasswordVal struct { + PasswordVal string `protobuf:"bytes,10,opt,name=password_val,json=passwordVal,proto3,oneof"` } -func (m *LoginRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoginRequest.Merge(m, src) + +type Value_UidVal struct { + UidVal uint64 `protobuf:"varint,11,opt,name=uid_val,json=uidVal,proto3,oneof"` } -func (m *LoginRequest) XXX_Size() int { - return m.Size() + +type Value_BigfloatVal struct { + BigfloatVal []byte `protobuf:"bytes,12,opt,name=bigfloat_val,json=bigfloatVal,proto3,oneof"` } -func (m *LoginRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoginRequest.DiscardUnknown(m) + +type Value_Vfloat32Val struct { + Vfloat32Val []byte `protobuf:"bytes,13,opt,name=vfloat32_val,json=vfloat32Val,proto3,oneof"` } -var xxx_messageInfo_LoginRequest proto.InternalMessageInfo +func (*Value_DefaultVal) isValue_Val() {} -func (m *LoginRequest) GetUserid() string { - if m != nil { - return m.Userid - } - return "" -} +func (*Value_BytesVal) isValue_Val() {} -func (m *LoginRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} +func (*Value_IntVal) isValue_Val() {} -func (m *LoginRequest) GetRefreshToken() string { - if m != nil { - return m.RefreshToken - } - return "" -} +func (*Value_BoolVal) isValue_Val() {} -func (m *LoginRequest) GetNamespace() uint64 { - if m != nil { - return m.Namespace - } - return 0 -} +func (*Value_StrVal) isValue_Val() {} -type Jwt struct { - AccessJwt string `protobuf:"bytes,1,opt,name=access_jwt,json=accessJwt,proto3" json:"access_jwt,omitempty"` - RefreshJwt string `protobuf:"bytes,2,opt,name=refresh_jwt,json=refreshJwt,proto3" json:"refresh_jwt,omitempty"` -} +func (*Value_DoubleVal) isValue_Val() {} -func (m *Jwt) Reset() { *m = Jwt{} } -func (m *Jwt) String() string { return proto.CompactTextString(m) } -func (*Jwt) ProtoMessage() {} -func (*Jwt) Descriptor() ([]byte, []int) { - return fileDescriptor_00212fb1f9d3bf1c, []int{16} -} -func (m *Jwt) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Jwt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Jwt.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Jwt) XXX_Merge(src proto.Message) { - xxx_messageInfo_Jwt.Merge(m, src) -} -func (m *Jwt) XXX_Size() int { - return m.Size() -} -func (m *Jwt) XXX_DiscardUnknown() { - xxx_messageInfo_Jwt.DiscardUnknown(m) -} +func (*Value_GeoVal) isValue_Val() {} -var xxx_messageInfo_Jwt proto.InternalMessageInfo +func (*Value_DateVal) isValue_Val() {} -func (m *Jwt) GetAccessJwt() string { - if m != nil { - return m.AccessJwt - } - return "" +func (*Value_DatetimeVal) isValue_Val() {} + +func (*Value_PasswordVal) isValue_Val() {} + +func (*Value_UidVal) isValue_Val() {} + +func (*Value_BigfloatVal) isValue_Val() {} + +func (*Value_Vfloat32Val) isValue_Val() {} + +type Facet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + ValType Facet_ValType `protobuf:"varint,3,opt,name=val_type,json=valType,proto3,enum=api.Facet_ValType" json:"val_type,omitempty"` + Tokens []string `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"` // tokens of value. + Alias string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"` // not stored, only used for query. } -func (m *Jwt) GetRefreshJwt() string { - if m != nil { - return m.RefreshJwt +func (x *Facet) Reset() { + *x = Facet{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func init() { - proto.RegisterEnum("api.Request_RespFormat", Request_RespFormat_name, Request_RespFormat_value) - proto.RegisterEnum("api.Operation_DropOp", Operation_DropOp_name, Operation_DropOp_value) - proto.RegisterEnum("api.Facet_ValType", Facet_ValType_name, Facet_ValType_value) - proto.RegisterType((*Request)(nil), "api.Request") - proto.RegisterMapType((map[string]string)(nil), "api.Request.VarsEntry") - proto.RegisterType((*Uids)(nil), "api.Uids") - proto.RegisterType((*ListOfString)(nil), "api.ListOfString") - proto.RegisterType((*Response)(nil), "api.Response") - proto.RegisterMapType((map[string]*ListOfString)(nil), "api.Response.HdrsEntry") - proto.RegisterMapType((map[string]string)(nil), "api.Response.UidsEntry") - proto.RegisterType((*Mutation)(nil), "api.Mutation") - proto.RegisterType((*Operation)(nil), "api.Operation") - proto.RegisterType((*Payload)(nil), "api.Payload") - proto.RegisterType((*TxnContext)(nil), "api.TxnContext") - proto.RegisterType((*Check)(nil), "api.Check") - proto.RegisterType((*Version)(nil), "api.Version") - proto.RegisterType((*Latency)(nil), "api.Latency") - proto.RegisterType((*Metrics)(nil), "api.Metrics") - proto.RegisterMapType((map[string]uint64)(nil), "api.Metrics.NumUidsEntry") - proto.RegisterType((*NQuad)(nil), "api.NQuad") - proto.RegisterType((*Value)(nil), "api.Value") - proto.RegisterType((*Facet)(nil), "api.Facet") - proto.RegisterType((*LoginRequest)(nil), "api.LoginRequest") - proto.RegisterType((*Jwt)(nil), "api.Jwt") -} - -func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) } - -var fileDescriptor_00212fb1f9d3bf1c = []byte{ - // 1641 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0x41, 0x6f, 0xdb, 0xc8, - 0xf5, 0x17, 0x4d, 0x49, 0x24, 0x9f, 0x68, 0x47, 0x99, 0xff, 0xbf, 0x29, 0xe3, 0x6c, 0x6c, 0x2f, - 0xb7, 0xd8, 0x35, 0x12, 0xac, 0x50, 0x28, 0x05, 0xba, 0xdd, 0x9b, 0x1c, 0x3b, 0xb5, 0x0d, 0x47, - 0xca, 0x32, 0xaa, 0x81, 0x9e, 0x88, 0x91, 0x38, 0x92, 0x19, 0x53, 0x24, 0x33, 0x33, 0xb4, 0x23, - 0xf4, 0x56, 0xa0, 0xf7, 0xf6, 0xd6, 0x43, 0xbf, 0x41, 0x3f, 0x41, 0xbf, 0x41, 0x6f, 0xdd, 0x63, - 0x8f, 0x45, 0x72, 0xd8, 0x0f, 0xd0, 0x2f, 0x50, 0xbc, 0x99, 0xa1, 0xa4, 0x78, 0x17, 0x5d, 0xf4, - 0xa4, 0x79, 0xbf, 0xdf, 0x9b, 0x79, 0x33, 0xef, 0xcd, 0xfb, 0x0d, 0x05, 0x1e, 0x2d, 0xd3, 0x5e, - 0xc9, 0x0b, 0x59, 0x10, 0x9b, 0x96, 0x69, 0xf8, 0x67, 0x1b, 0x9c, 0x88, 0xbd, 0xad, 0x98, 0x90, - 0xe4, 0x21, 0xb8, 0x42, 0x52, 0x2e, 0x63, 0x29, 0x02, 0xeb, 0xc0, 0x3a, 0x6c, 0x46, 0x8e, 0xb2, - 0xc7, 0x82, 0xfc, 0x3f, 0xb4, 0xde, 0x56, 0x8c, 0x2f, 0x83, 0xe6, 0x81, 0x75, 0xe8, 0x45, 0xda, - 0x20, 0x4f, 0xa0, 0x79, 0x43, 0xb9, 0x08, 0x5a, 0x07, 0xf6, 0x61, 0xa7, 0xff, 0xa0, 0x87, 0x6b, - 0x9b, 0xc5, 0x7a, 0x97, 0x94, 0x8b, 0x93, 0x5c, 0xf2, 0x65, 0xa4, 0x7c, 0xc8, 0x23, 0xf0, 0x38, - 0xa3, 0x49, 0x5c, 0xe4, 0xd9, 0x32, 0x68, 0x1f, 0x58, 0x87, 0x6e, 0xe4, 0x22, 0x30, 0xca, 0xb3, - 0x25, 0xd9, 0x87, 0xce, 0x84, 0x09, 0x19, 0xb3, 0xd9, 0xac, 0xe0, 0x32, 0x70, 0x14, 0x0d, 0x08, - 0x9d, 0x28, 0x84, 0x3c, 0x05, 0x6f, 0x51, 0x49, 0x2a, 0xd3, 0x22, 0x17, 0x81, 0xaf, 0xc2, 0x6d, - 0xab, 0x70, 0x2f, 0x0d, 0x1a, 0xad, 0x79, 0xf2, 0x18, 0x60, 0x5a, 0x2c, 0x16, 0xa9, 0x8c, 0xf3, - 0xe2, 0x36, 0xd8, 0x56, 0x8b, 0x79, 0x1a, 0x19, 0x16, 0xb7, 0xe4, 0x2b, 0xe8, 0x70, 0x26, 0xca, - 0x78, 0x56, 0xf0, 0x05, 0x95, 0xc1, 0xce, 0x81, 0x75, 0xb8, 0xd3, 0xff, 0xe9, 0x47, 0x9b, 0x8f, - 0x98, 0x28, 0x5f, 0x28, 0x3a, 0x02, 0xbe, 0x1a, 0x13, 0x02, 0xcd, 0x2b, 0x2a, 0xae, 0x82, 0x7b, - 0x2a, 0x09, 0x6a, 0xbc, 0xfb, 0x4b, 0xf0, 0x56, 0x47, 0x25, 0x5d, 0xb0, 0xaf, 0xd9, 0x52, 0x25, - 0xcf, 0x8b, 0x70, 0x88, 0x89, 0xbb, 0xa1, 0x59, 0xc5, 0x82, 0x2d, 0x9d, 0x38, 0x65, 0x7c, 0xbd, - 0xf5, 0x95, 0x15, 0xee, 0x03, 0xac, 0xc3, 0x10, 0x17, 0x9a, 0xe7, 0xaf, 0x47, 0xc3, 0x6e, 0x83, - 0x38, 0x60, 0x47, 0xc7, 0x2f, 0xba, 0x56, 0xb8, 0x0b, 0xcd, 0xdf, 0xa4, 0x89, 0xc0, 0xa8, 0x55, - 0x9a, 0x60, 0x49, 0x6c, 0x8c, 0x8a, 0xe3, 0xf0, 0x67, 0xe0, 0x5f, 0xa4, 0x42, 0x8e, 0x66, 0xaf, - 0x25, 0x4f, 0xf3, 0xf9, 0x3a, 0x8c, 0x76, 0xd2, 0x46, 0xf8, 0x7b, 0x1b, 0x5c, 0x8c, 0x51, 0xe4, - 0x82, 0xe1, 0x32, 0x6f, 0x44, 0x91, 0xab, 0xcd, 0xf9, 0x91, 0x1a, 0x93, 0x4f, 0xc1, 0x96, 0xef, - 0x72, 0xb5, 0xb7, 0x4e, 0xff, 0x9e, 0x4a, 0xc1, 0xf8, 0x5d, 0xfe, 0xbc, 0xc8, 0x25, 0x7b, 0x27, - 0x23, 0xe4, 0xc8, 0xe7, 0xe0, 0x64, 0x54, 0xb2, 0x7c, 0xba, 0x0c, 0x6c, 0xe5, 0xe6, 0x2b, 0xb7, - 0x0b, 0x8d, 0x45, 0x35, 0x89, 0x7e, 0x0b, 0x26, 0x79, 0x3a, 0x15, 0xea, 0x8e, 0xd4, 0x7e, 0x2f, - 0x35, 0x16, 0xd5, 0x24, 0x79, 0x6a, 0x4e, 0xa3, 0x8b, 0x58, 0xa7, 0x5d, 0xef, 0xb1, 0x87, 0xe7, - 0x35, 0x97, 0x06, 0x9d, 0x30, 0x9f, 0x3c, 0x99, 0xa9, 0x12, 0xfa, 0x11, 0x0e, 0x71, 0xfa, 0x55, - 0xc2, 0x45, 0xb0, 0xf3, 0x43, 0xd3, 0x4f, 0x93, 0xd5, 0x9d, 0x43, 0x27, 0xac, 0xcd, 0x6a, 0xc5, - 0xff, 0xa5, 0x36, 0xbb, 0xe7, 0xe0, 0xad, 0xd6, 0xfa, 0x81, 0x89, 0x5f, 0x6c, 0x4e, 0xec, 0xf4, - 0xef, 0xeb, 0x8c, 0x6c, 0xd4, 0x63, 0xb3, 0xce, 0xff, 0xb6, 0xc0, 0xad, 0x6f, 0xa9, 0x6a, 0x31, - 0x26, 0xe3, 0x8d, 0x42, 0x38, 0x82, 0xc9, 0x73, 0xac, 0xc5, 0x3e, 0x74, 0x12, 0x96, 0x31, 0xc9, - 0x34, 0xbb, 0xa5, 0x58, 0xd0, 0x90, 0x72, 0x78, 0x0c, 0x80, 0x73, 0xf3, 0xb7, 0x15, 0x4d, 0x84, - 0x2a, 0x86, 0x1f, 0x79, 0x82, 0xc9, 0xa1, 0x02, 0x90, 0x4e, 0x58, 0x56, 0xd3, 0x4d, 0x4d, 0x27, - 0x2c, 0x33, 0xf4, 0x27, 0x60, 0x0b, 0x26, 0x4d, 0xab, 0x82, 0xda, 0xf1, 0xf0, 0x9b, 0x8a, 0x26, - 0x11, 0xc2, 0xc8, 0x26, 0x2c, 0x0b, 0xda, 0xdf, 0x67, 0x13, 0x96, 0xe1, 0xd5, 0x99, 0x16, 0x79, - 0x12, 0x78, 0xfa, 0xde, 0xe3, 0xf8, 0x4e, 0x93, 0xed, 0xdc, 0x69, 0xb2, 0xf0, 0x4f, 0x5b, 0xe0, - 0x8d, 0x4a, 0xc6, 0xf5, 0xb1, 0x1f, 0x40, 0x5b, 0x4c, 0xaf, 0xd8, 0x82, 0x9a, 0x2c, 0x1a, 0x0b, - 0x45, 0x21, 0xe1, 0x45, 0x19, 0x53, 0x29, 0xb9, 0xa9, 0x82, 0x8b, 0xc0, 0x40, 0x4a, 0x8e, 0xb9, - 0xd2, 0x64, 0x96, 0xa9, 0xd3, 0xba, 0x91, 0xa3, 0xb8, 0x2c, 0x23, 0x3d, 0x50, 0xc3, 0xb8, 0x28, - 0xd5, 0x41, 0x77, 0xfa, 0x3f, 0x51, 0x5b, 0x5e, 0x05, 0xec, 0x1d, 0xf3, 0xa2, 0x1c, 0x95, 0x51, - 0x3b, 0x51, 0xbf, 0x2a, 0x37, 0xe8, 0xaf, 0xab, 0xd6, 0x52, 0x81, 0x54, 0xe4, 0x4b, 0x04, 0xc8, - 0x13, 0xb8, 0xcf, 0xab, 0x3c, 0x4e, 0xf3, 0x78, 0x42, 0xa7, 0xd7, 0x73, 0x5e, 0x54, 0x79, 0x62, - 0x34, 0xea, 0x1e, 0xaf, 0xf2, 0xb3, 0xfc, 0x68, 0x05, 0x87, 0xbf, 0x82, 0xb6, 0x5e, 0x1c, 0x5b, - 0x76, 0x38, 0x1a, 0x9e, 0xe8, 0x96, 0x1d, 0x5c, 0x5c, 0x74, 0x2d, 0x84, 0x8e, 0x07, 0xe3, 0x41, - 0x77, 0x0b, 0x47, 0x83, 0xf1, 0x38, 0xea, 0xda, 0x38, 0x1a, 0xff, 0xf6, 0xd5, 0x49, 0xb7, 0x19, - 0x3e, 0x06, 0xe7, 0x15, 0x5d, 0x66, 0x05, 0x4d, 0x30, 0xa3, 0xc7, 0x54, 0xd2, 0xba, 0x19, 0x71, - 0x1c, 0xfe, 0xc5, 0x02, 0x58, 0x77, 0xdf, 0x7f, 0x53, 0xe3, 0x47, 0x60, 0x32, 0x8d, 0xdc, 0x96, - 0xe2, 0x5c, 0x0d, 0x8c, 0x05, 0x09, 0xc0, 0xa1, 0x93, 0x82, 0x4b, 0x96, 0xd4, 0x59, 0x33, 0x26, - 0x06, 0xbd, 0x66, 0x4b, 0xbc, 0x1b, 0x4a, 0x48, 0x70, 0x8c, 0x3d, 0x50, 0x72, 0x96, 0x68, 0x0d, - 0xf7, 0x22, 0x6d, 0xac, 0x84, 0xae, 0xbd, 0x16, 0xba, 0xd0, 0x81, 0xd6, 0xf3, 0x2b, 0x36, 0xbd, - 0x0e, 0x1f, 0x81, 0x73, 0xc9, 0xb8, 0xc0, 0xba, 0x76, 0xc1, 0x96, 0x74, 0x5e, 0xb7, 0x86, 0xa4, - 0xf3, 0xf0, 0x6f, 0x16, 0x38, 0x46, 0x1b, 0x30, 0xeb, 0x25, 0xe5, 0x22, 0xcd, 0xe7, 0x71, 0x5e, - 0x9f, 0xc1, 0x33, 0xc8, 0x50, 0x90, 0xcf, 0x60, 0xbb, 0xe4, 0xc5, 0x94, 0x89, 0xda, 0x43, 0x9f, - 0xc4, 0x5f, 0x83, 0x43, 0x81, 0x5d, 0xc1, 0xf2, 0x69, 0x91, 0x18, 0x17, 0x5b, 0xb9, 0x40, 0x0d, - 0x0d, 0x05, 0xe9, 0xc1, 0xff, 0x51, 0x21, 0xd2, 0x79, 0x1e, 0xcb, 0x74, 0xc1, 0x84, 0xa4, 0x8b, - 0x12, 0x1d, 0x9b, 0xca, 0xf1, 0xbe, 0xa6, 0xc6, 0x35, 0x33, 0x14, 0x98, 0x56, 0x59, 0x48, 0x9a, - 0xa1, 0x53, 0x4b, 0xa7, 0x55, 0xd9, 0x43, 0x11, 0xfe, 0x0e, 0x1c, 0x23, 0x57, 0xe4, 0x17, 0xe0, - 0xe6, 0xd5, 0x22, 0x5e, 0xe9, 0x6e, 0xa7, 0xff, 0x70, 0x53, 0xce, 0x7a, 0xc3, 0x6a, 0xb1, 0xd6, - 0x2a, 0x27, 0xd7, 0xd6, 0xee, 0xd7, 0xe0, 0x6f, 0x12, 0x3f, 0x26, 0x39, 0xcd, 0x4d, 0x99, 0xf8, - 0xce, 0x82, 0x96, 0x6a, 0x39, 0x2c, 0xa0, 0xa8, 0x26, 0x6f, 0xd8, 0x54, 0x9a, 0x99, 0xb5, 0x49, - 0x3e, 0x01, 0x0f, 0xeb, 0x93, 0x4e, 0xa9, 0xac, 0x45, 0x6b, 0x0d, 0xe0, 0xad, 0x28, 0x94, 0x5f, - 0x9c, 0xea, 0xd2, 0x7b, 0x91, 0xab, 0x81, 0xb3, 0x84, 0x7c, 0x09, 0xbe, 0x21, 0x75, 0x7c, 0xad, - 0xd1, 0xba, 0xd3, 0x55, 0x13, 0x44, 0x1d, 0xcd, 0xeb, 0x8e, 0x20, 0xd0, 0xcc, 0x68, 0x3e, 0xaf, - 0x2f, 0x00, 0x8e, 0x49, 0x08, 0xed, 0x19, 0x9d, 0x32, 0x29, 0x02, 0x67, 0x43, 0x26, 0x5e, 0x20, - 0x14, 0x19, 0x06, 0x77, 0x98, 0xd3, 0x05, 0x13, 0x25, 0x9d, 0xb2, 0xc0, 0xd5, 0x15, 0x5f, 0x01, - 0xe7, 0x4d, 0xb7, 0xd5, 0x6d, 0x87, 0x7f, 0xb5, 0xa1, 0xa5, 0xa3, 0x7c, 0x8a, 0x92, 0x37, 0xa3, - 0x55, 0xa6, 0x76, 0xa5, 0x4f, 0x7b, 0xda, 0x40, 0xd1, 0x53, 0xe0, 0x25, 0xcd, 0xc8, 0x63, 0xf0, - 0x26, 0x4b, 0xc9, 0x84, 0x72, 0x50, 0x9a, 0x78, 0xda, 0x88, 0x5c, 0x05, 0x21, 0xfd, 0x10, 0x9c, - 0x34, 0xd7, 0xb3, 0xf1, 0xc4, 0xf6, 0x69, 0x23, 0x6a, 0xa7, 0xb9, 0x9a, 0xf9, 0x08, 0xdc, 0x49, - 0x51, 0x64, 0x8a, 0xc3, 0xd3, 0xba, 0xa7, 0x8d, 0xc8, 0x41, 0xc4, 0xcc, 0x13, 0x92, 0x2b, 0xae, - 0x65, 0xa2, 0xb6, 0x85, 0xe4, 0x48, 0xed, 0x03, 0x24, 0x45, 0x35, 0xc9, 0x98, 0x62, 0x31, 0x01, - 0xd6, 0x69, 0x23, 0xf2, 0x34, 0x66, 0xe6, 0xce, 0x59, 0xa1, 0x58, 0xc7, 0x6c, 0xa8, 0x3d, 0x67, - 0x85, 0x89, 0x99, 0x50, 0xa9, 0x67, 0xba, 0x86, 0x73, 0x10, 0x41, 0xf2, 0x33, 0xf0, 0x71, 0x88, - 0xd7, 0x54, 0x39, 0x78, 0xc6, 0xa1, 0x53, 0xa3, 0xc6, 0xa9, 0xa4, 0x42, 0xdc, 0x16, 0x3c, 0x51, - 0x4e, 0x60, 0x76, 0xd7, 0xa9, 0x51, 0xb3, 0x83, 0x2a, 0xd5, 0x7c, 0x07, 0x73, 0x8c, 0x3b, 0xa8, - 0xd2, 0xc4, 0xcc, 0x9f, 0xa4, 0xf3, 0x59, 0x56, 0x50, 0x9d, 0x15, 0xbf, 0x0e, 0x52, 0xa3, 0xc6, - 0xe9, 0x46, 0x19, 0xcf, 0xfa, 0xca, 0x69, 0xbb, 0x76, 0xaa, 0xd1, 0x4b, 0x9a, 0x1d, 0xb5, 0xc0, - 0xbe, 0xa1, 0x59, 0xf8, 0x0f, 0x0b, 0x5a, 0xaa, 0xc6, 0x3f, 0x76, 0x9b, 0x7d, 0x73, 0x9b, 0xc9, - 0x97, 0xe0, 0xde, 0xd0, 0x2c, 0x96, 0xcb, 0x92, 0xa9, 0xa2, 0xec, 0xf4, 0xc9, 0xfa, 0xa6, 0xe0, - 0x65, 0x1b, 0x2f, 0x4b, 0x16, 0x39, 0x37, 0x7a, 0x80, 0x6f, 0x83, 0x2c, 0xae, 0x59, 0x5e, 0xeb, - 0x92, 0xb1, 0x70, 0x71, 0x9a, 0xa5, 0x54, 0x18, 0xb9, 0xd6, 0x46, 0x38, 0x00, 0xc7, 0xac, 0x40, - 0x00, 0xda, 0xaf, 0xc7, 0xd1, 0xd9, 0xf0, 0xd7, 0x5a, 0x81, 0xcf, 0x86, 0xe3, 0xae, 0x45, 0x3c, - 0x68, 0xbd, 0xb8, 0x18, 0x0d, 0xc6, 0x5a, 0x82, 0x8f, 0x46, 0xa3, 0x8b, 0xae, 0x4d, 0x7c, 0x70, - 0x8f, 0x07, 0xe3, 0x93, 0xf1, 0xd9, 0x4b, 0x94, 0xe1, 0x3f, 0x58, 0xe0, 0x5f, 0x14, 0xf3, 0x34, - 0xaf, 0xbf, 0x7b, 0x1f, 0x40, 0xbb, 0x12, 0x8c, 0xa7, 0x49, 0xfd, 0x3a, 0x69, 0x8b, 0xec, 0x82, - 0x5b, 0x67, 0xbd, 0x7e, 0x9c, 0x6a, 0x1b, 0xc5, 0x8b, 0xb3, 0x19, 0x67, 0xe2, 0x2a, 0x56, 0xfb, - 0x35, 0x0d, 0xe7, 0x1b, 0x70, 0x8c, 0xd8, 0xc7, 0xdd, 0xd0, 0xbc, 0xd3, 0x0d, 0xe1, 0x09, 0xd8, - 0xe7, 0xb7, 0x12, 0x55, 0x92, 0x4e, 0x51, 0xf0, 0xe2, 0x37, 0xb7, 0x75, 0xc7, 0x7b, 0x1a, 0x41, - 0x7a, 0x1f, 0xbf, 0x56, 0x75, 0x20, 0xe4, 0xf5, 0x3e, 0xc0, 0x40, 0xe7, 0xb7, 0xb2, 0xff, 0x9d, - 0x05, 0xed, 0xe3, 0x39, 0xa7, 0xe5, 0x15, 0x79, 0x0a, 0x2d, 0x75, 0x30, 0x62, 0xbe, 0x48, 0x36, - 0x0e, 0xb9, 0xbb, 0xfd, 0xd1, 0xa7, 0x52, 0xd8, 0x20, 0x9f, 0x43, 0xeb, 0x1b, 0xf5, 0x15, 0xef, - 0x6f, 0x7e, 0xfa, 0x7e, 0xdf, 0xef, 0x0b, 0x68, 0x0d, 0x32, 0xc9, 0x38, 0xd9, 0xf9, 0xf8, 0x8d, - 0xdd, 0xd5, 0xf3, 0xcc, 0x8b, 0x16, 0x36, 0xc8, 0x33, 0xd8, 0x7e, 0xae, 0x1e, 0xa1, 0x11, 0x1f, - 0xe0, 0x8b, 0x43, 0xee, 0x7e, 0x50, 0xee, 0xde, 0x05, 0xc2, 0x06, 0x79, 0x02, 0xbe, 0x7a, 0x55, - 0xea, 0x17, 0x45, 0x8b, 0x8a, 0x82, 0x4c, 0x00, 0xc3, 0x84, 0x8d, 0xa3, 0x9f, 0xff, 0xfd, 0xfd, - 0x9e, 0xf5, 0xed, 0xfb, 0x3d, 0xeb, 0x5f, 0xef, 0xf7, 0xac, 0x3f, 0x7e, 0xd8, 0x6b, 0x7c, 0xfb, - 0x61, 0xaf, 0xf1, 0xcf, 0x0f, 0x7b, 0x0d, 0xf0, 0xd2, 0xa2, 0x97, 0xa8, 0x1c, 0x1c, 0x75, 0x74, - 0x2e, 0x5e, 0xe1, 0x5f, 0x9c, 0x49, 0x5b, 0xfd, 0xd3, 0x79, 0xf6, 0x9f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x2e, 0x8e, 0x91, 0xeb, 0xf6, 0x0c, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// DgraphClient is the client API for Dgraph service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DgraphClient interface { - Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Response, error) - Query(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) - Alter(ctx context.Context, in *Operation, opts ...grpc.CallOption) (*Payload, error) - CommitOrAbort(ctx context.Context, in *TxnContext, opts ...grpc.CallOption) (*TxnContext, error) - CheckVersion(ctx context.Context, in *Check, opts ...grpc.CallOption) (*Version, error) +func (x *Facet) String() string { + return protoimpl.X.MessageStringOf(x) } -type dgraphClient struct { - cc *grpc.ClientConn +func (*Facet) ProtoMessage() {} + +func (x *Facet) ProtoReflect() protoreflect.Message { + mi := &file_api_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) } -func NewDgraphClient(cc *grpc.ClientConn) DgraphClient { - return &dgraphClient{cc} +// Deprecated: Use Facet.ProtoReflect.Descriptor instead. +func (*Facet) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{14} } -func (c *dgraphClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Response, error) { - out := new(Response) - err := c.cc.Invoke(ctx, "/api.Dgraph/Login", in, out, opts...) - if err != nil { - return nil, err +func (x *Facet) GetKey() string { + if x != nil { + return x.Key } - return out, nil + return "" } -func (c *dgraphClient) Query(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { - out := new(Response) - err := c.cc.Invoke(ctx, "/api.Dgraph/Query", in, out, opts...) - if err != nil { - return nil, err +func (x *Facet) GetValue() []byte { + if x != nil { + return x.Value } - return out, nil + return nil } -func (c *dgraphClient) Alter(ctx context.Context, in *Operation, opts ...grpc.CallOption) (*Payload, error) { - out := new(Payload) - err := c.cc.Invoke(ctx, "/api.Dgraph/Alter", in, out, opts...) - if err != nil { - return nil, err +func (x *Facet) GetValType() Facet_ValType { + if x != nil { + return x.ValType } - return out, nil + return Facet_STRING } -func (c *dgraphClient) CommitOrAbort(ctx context.Context, in *TxnContext, opts ...grpc.CallOption) (*TxnContext, error) { - out := new(TxnContext) - err := c.cc.Invoke(ctx, "/api.Dgraph/CommitOrAbort", in, out, opts...) - if err != nil { - return nil, err +func (x *Facet) GetTokens() []string { + if x != nil { + return x.Tokens } - return out, nil + return nil } -func (c *dgraphClient) CheckVersion(ctx context.Context, in *Check, opts ...grpc.CallOption) (*Version, error) { - out := new(Version) - err := c.cc.Invoke(ctx, "/api.Dgraph/CheckVersion", in, out, opts...) - if err != nil { - return nil, err +func (x *Facet) GetAlias() string { + if x != nil { + return x.Alias } - return out, nil + return "" } -// DgraphServer is the server API for Dgraph service. -type DgraphServer interface { - Login(context.Context, *LoginRequest) (*Response, error) - Query(context.Context, *Request) (*Response, error) - Alter(context.Context, *Operation) (*Payload, error) - CommitOrAbort(context.Context, *TxnContext) (*TxnContext, error) - CheckVersion(context.Context, *Check) (*Version, error) -} +type LoginRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// UnimplementedDgraphServer can be embedded to have forward compatible implementations. -type UnimplementedDgraphServer struct { + Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` + Namespace uint64 `protobuf:"varint,4,opt,name=namespace,proto3" json:"namespace,omitempty"` } -func (*UnimplementedDgraphServer) Login(ctx context.Context, req *LoginRequest) (*Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") -} -func (*UnimplementedDgraphServer) Query(ctx context.Context, req *Request) (*Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") -} -func (*UnimplementedDgraphServer) Alter(ctx context.Context, req *Operation) (*Payload, error) { - return nil, status.Errorf(codes.Unimplemented, "method Alter not implemented") -} -func (*UnimplementedDgraphServer) CommitOrAbort(ctx context.Context, req *TxnContext) (*TxnContext, error) { - return nil, status.Errorf(codes.Unimplemented, "method CommitOrAbort not implemented") -} -func (*UnimplementedDgraphServer) CheckVersion(ctx context.Context, req *Check) (*Version, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckVersion not implemented") +func (x *LoginRequest) Reset() { + *x = LoginRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func RegisterDgraphServer(s *grpc.Server, srv DgraphServer) { - s.RegisterService(&_Dgraph_serviceDesc, srv) +func (x *LoginRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func _Dgraph_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoginRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DgraphServer).Login(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Dgraph/Login", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DgraphServer).Login(ctx, req.(*LoginRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*LoginRequest) ProtoMessage() {} -func _Dgraph_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DgraphServer).Query(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Dgraph/Query", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DgraphServer).Query(ctx, req.(*Request)) +func (x *LoginRequest) ProtoReflect() protoreflect.Message { + mi := &file_api_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 interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _Dgraph_Alter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Operation) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DgraphServer).Alter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Dgraph/Alter", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DgraphServer).Alter(ctx, req.(*Operation)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead. +func (*LoginRequest) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{15} } -func _Dgraph_CommitOrAbort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TxnContext) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DgraphServer).CommitOrAbort(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Dgraph/CommitOrAbort", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DgraphServer).CommitOrAbort(ctx, req.(*TxnContext)) +func (x *LoginRequest) GetUserid() string { + if x != nil { + return x.Userid } - return interceptor(ctx, in, info, handler) + return "" } -func _Dgraph_CheckVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Check) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DgraphServer).CheckVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Dgraph/CheckVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DgraphServer).CheckVersion(ctx, req.(*Check)) +func (x *LoginRequest) GetPassword() string { + if x != nil { + return x.Password } - return interceptor(ctx, in, info, handler) + return "" } -var _Dgraph_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.Dgraph", - HandlerType: (*DgraphServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Login", - Handler: _Dgraph_Login_Handler, - }, - { - MethodName: "Query", - Handler: _Dgraph_Query_Handler, - }, - { - MethodName: "Alter", - Handler: _Dgraph_Alter_Handler, - }, - { - MethodName: "CommitOrAbort", - Handler: _Dgraph_CommitOrAbort_Handler, - }, - { - MethodName: "CheckVersion", - Handler: _Dgraph_CheckVersion_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "api.proto", +func (x *LoginRequest) GetRefreshToken() string { + if x != nil { + return x.RefreshToken + } + return "" } -func (m *Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *LoginRequest) GetNamespace() uint64 { + if x != nil { + return x.Namespace } - return dAtA[:n], nil + return 0 } -func (m *Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type Jwt struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintApi(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0x7a - } - if m.RespFormat != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.RespFormat)) - i-- - dAtA[i] = 0x70 - } - if m.CommitNow { - i-- - if m.CommitNow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - } - if len(m.Mutations) > 0 { - for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - } - if m.BestEffort { - i-- - if m.BestEffort { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.ReadOnly { - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if len(m.Vars) > 0 { - for k := range m.Vars { - v := m.Vars[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Query) > 0 { - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintApi(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0x22 - } - if m.StartTs != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + AccessJwt string `protobuf:"bytes,1,opt,name=access_jwt,json=accessJwt,proto3" json:"access_jwt,omitempty"` + RefreshJwt string `protobuf:"bytes,2,opt,name=refresh_jwt,json=refreshJwt,proto3" json:"refresh_jwt,omitempty"` } -func (m *Uids) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Jwt) Reset() { + *x = Jwt{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil -} - -func (m *Uids) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Uids) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Uids) > 0 { - for iNdEx := len(m.Uids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Uids[iNdEx]) - copy(dAtA[i:], m.Uids[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.Uids[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil } -func (m *ListOfString) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListOfString) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListOfString) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Value) > 0 { - for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Value[iNdEx]) - copy(dAtA[i:], m.Value[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.Value[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +func (x *Jwt) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Response) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Hdrs) > 0 { - for k := range m.Hdrs { - v := m.Hdrs[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x72 - } - } - if len(m.Rdf) > 0 { - i -= len(m.Rdf) - copy(dAtA[i:], m.Rdf) - i = encodeVarintApi(dAtA, i, uint64(len(m.Rdf))) - i-- - dAtA[i] = 0x6a - } - if len(m.Uids) > 0 { - for k := range m.Uids { - v := m.Uids[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintApi(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x62 - } - } - if m.Metrics != nil { - { - size, err := m.Metrics.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Latency != nil { - { - size, err := m.Latency.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Txn != nil { - { - size, err := m.Txn.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Json) > 0 { - i -= len(m.Json) - copy(dAtA[i:], m.Json) - i = encodeVarintApi(dAtA, i, uint64(len(m.Json))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*Jwt) ProtoMessage() {} -func (m *Mutation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Jwt) ProtoReflect() protoreflect.Message { + mi := &file_api_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 dAtA[:n], nil + return mi.MessageOf(x) } -func (m *Mutation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use Jwt.ProtoReflect.Descriptor instead. +func (*Jwt) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{16} } -func (m *Mutation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CommitNow { - i-- - if m.CommitNow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x70 - } - if len(m.Cond) > 0 { - i -= len(m.Cond) - copy(dAtA[i:], m.Cond) - i = encodeVarintApi(dAtA, i, uint64(len(m.Cond))) - i-- - dAtA[i] = 0x4a - } - if len(m.Del) > 0 { - for iNdEx := len(m.Del) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Del[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.Set) > 0 { - for iNdEx := len(m.Set) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Set[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.DelNquads) > 0 { - i -= len(m.DelNquads) - copy(dAtA[i:], m.DelNquads) - i = encodeVarintApi(dAtA, i, uint64(len(m.DelNquads))) - i-- - dAtA[i] = 0x22 - } - if len(m.SetNquads) > 0 { - i -= len(m.SetNquads) - copy(dAtA[i:], m.SetNquads) - i = encodeVarintApi(dAtA, i, uint64(len(m.SetNquads))) - i-- - dAtA[i] = 0x1a - } - if len(m.DeleteJson) > 0 { - i -= len(m.DeleteJson) - copy(dAtA[i:], m.DeleteJson) - i = encodeVarintApi(dAtA, i, uint64(len(m.DeleteJson))) - i-- - dAtA[i] = 0x12 +func (x *Jwt) GetAccessJwt() string { + if x != nil { + return x.AccessJwt } - if len(m.SetJson) > 0 { - i -= len(m.SetJson) - copy(dAtA[i:], m.SetJson) - i = encodeVarintApi(dAtA, i, uint64(len(m.SetJson))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *Operation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Jwt) GetRefreshJwt() string { + if x != nil { + return x.RefreshJwt } - return dAtA[:n], nil + return "" } -func (m *Operation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +var File_api_proto protoreflect.FileDescriptor + +var file_api_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, + 0x22, 0x98, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x2a, 0x0a, + 0x04, 0x76, 0x61, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x72, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x04, 0x76, 0x61, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, + 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, + 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x65, + 0x66, 0x66, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x62, 0x65, 0x73, + 0x74, 0x45, 0x66, 0x66, 0x6f, 0x72, 0x74, 0x12, 0x2b, 0x0a, 0x09, 0x6d, 0x75, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6d, 0x75, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6e, + 0x6f, 0x77, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x4e, 0x6f, 0x77, 0x12, 0x38, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x70, 0x5f, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x46, 0x6f, 0x72, 0x6d, 0x61, + 0x74, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x70, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, + 0x68, 0x1a, 0x37, 0x0a, 0x09, 0x56, 0x61, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1f, 0x0a, 0x0a, 0x52, 0x65, + 0x73, 0x70, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, + 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x44, 0x46, 0x10, 0x01, 0x22, 0x1a, 0x0a, 0x04, 0x55, + 0x69, 0x64, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x69, 0x64, 0x73, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x4f, + 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x82, 0x03, + 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x21, + 0x0a, 0x03, 0x74, 0x78, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x54, 0x78, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x03, 0x74, 0x78, + 0x6e, 0x12, 0x26, 0x0a, 0x07, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x52, 0x07, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x26, 0x0a, 0x07, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x12, 0x2b, 0x0a, 0x04, 0x75, 0x69, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x55, + 0x69, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x75, 0x69, 0x64, 0x73, 0x12, 0x10, + 0x0a, 0x03, 0x72, 0x64, 0x66, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x64, 0x66, + 0x12, 0x2b, 0x0a, 0x04, 0x68, 0x64, 0x72, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x48, 0x64, + 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x68, 0x64, 0x72, 0x73, 0x1a, 0x37, 0x0a, + 0x09, 0x55, 0x69, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x09, 0x48, 0x64, 0x72, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, + 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xf3, 0x01, 0x0a, 0x08, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x19, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x73, 0x65, 0x74, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, + 0x65, 0x74, 0x5f, 0x6e, 0x71, 0x75, 0x61, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x65, 0x74, 0x4e, 0x71, 0x75, 0x61, 0x64, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, + 0x6c, 0x5f, 0x6e, 0x71, 0x75, 0x61, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x64, 0x65, 0x6c, 0x4e, 0x71, 0x75, 0x61, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x03, 0x73, 0x65, 0x74, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4e, 0x51, 0x75, + 0x61, 0x64, 0x52, 0x03, 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x03, 0x64, 0x65, 0x6c, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4e, 0x51, 0x75, 0x61, 0x64, + 0x52, 0x03, 0x64, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x5f, 0x6e, 0x6f, 0x77, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4e, 0x6f, 0x77, 0x22, 0x91, 0x02, 0x0a, 0x09, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x64, 0x72, 0x6f, 0x70, 0x41, 0x74, 0x74, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x64, + 0x72, 0x6f, 0x70, 0x5f, 0x61, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, + 0x72, 0x6f, 0x70, 0x41, 0x6c, 0x6c, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x6f, + 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x4f, 0x70, 0x52, 0x06, + 0x64, 0x72, 0x6f, 0x70, 0x4f, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x72, 0x6f, 0x70, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, + 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0f, 0x72, 0x75, 0x6e, 0x49, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, + 0x64, 0x22, 0x39, 0x0a, 0x06, 0x44, 0x72, 0x6f, 0x70, 0x4f, 0x70, 0x12, 0x08, 0x0a, 0x04, 0x4e, + 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x01, 0x12, 0x08, + 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x54, 0x54, 0x52, + 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x59, 0x50, 0x45, 0x10, 0x04, 0x22, 0x1d, 0x0a, 0x07, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x9c, 0x01, 0x0a, 0x0a, + 0x54, 0x78, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, + 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x54, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x07, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x65, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x05, 0x70, 0x72, 0x65, 0x64, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x07, 0x0a, 0x05, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x22, 0x1b, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, + 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, + 0x22, 0xb9, 0x01, 0x0a, 0x07, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x09, 0x70, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x4e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x4e, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x4e, + 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, + 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, + 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x73, 0x22, 0x7b, 0x0a, 0x07, + 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x34, 0x0a, 0x08, 0x6e, 0x75, 0x6d, 0x5f, 0x75, + 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4e, 0x75, 0x6d, 0x55, 0x69, 0x64, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6e, 0x75, 0x6d, 0x55, 0x69, 0x64, 0x73, 0x1a, 0x3a, 0x0a, + 0x0c, 0x4e, 0x75, 0x6d, 0x55, 0x69, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe7, 0x01, 0x0a, 0x05, 0x4e, 0x51, + 0x75, 0x61, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1c, 0x0a, + 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x0c, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 0x22, 0x0a, 0x06, 0x66, + 0x61, 0x63, 0x65, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x46, 0x61, 0x63, 0x65, 0x74, 0x52, 0x06, 0x66, 0x61, 0x63, 0x65, 0x74, 0x73, 0x12, + 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4a, 0x04, 0x08, + 0x05, 0x10, 0x06, 0x22, 0xab, 0x03, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, + 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, + 0x12, 0x1d, 0x0a, 0x09, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x62, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x12, + 0x19, 0x0a, 0x07, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x06, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x12, 0x1b, 0x0a, 0x08, 0x62, 0x6f, + 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, + 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x12, 0x19, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x5f, 0x76, + 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x56, + 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x0a, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x09, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, + 0x56, 0x61, 0x6c, 0x12, 0x19, 0x0a, 0x07, 0x67, 0x65, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6f, 0x56, 0x61, 0x6c, 0x12, 0x1b, + 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x07, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x12, 0x23, 0x0a, 0x0c, 0x64, + 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, + 0x12, 0x23, 0x0a, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x76, 0x61, 0x6c, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x56, 0x61, 0x6c, 0x12, 0x19, 0x0a, 0x07, 0x75, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x75, 0x69, 0x64, 0x56, 0x61, 0x6c, + 0x12, 0x23, 0x0a, 0x0c, 0x62, 0x69, 0x67, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x69, 0x67, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x56, 0x61, 0x6c, 0x12, 0x23, 0x0a, 0x0c, 0x76, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, + 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x76, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x42, 0x05, 0x0a, 0x03, 0x76, 0x61, + 0x6c, 0x22, 0xcf, 0x01, 0x0a, 0x05, 0x46, 0x61, 0x63, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x76, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x61, 0x63, 0x65, + 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x61, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x22, 0x41, 0x0a, 0x07, 0x56, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x53, + 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4e, 0x54, 0x10, 0x01, + 0x12, 0x09, 0x0a, 0x05, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x42, + 0x4f, 0x4f, 0x4c, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, + 0x45, 0x10, 0x04, 0x22, 0x85, 0x01, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, + 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, + 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x45, 0x0a, 0x03, 0x4a, + 0x77, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6a, 0x77, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4a, 0x77, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x6a, 0x77, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4a, + 0x77, 0x74, 0x32, 0xe7, 0x01, 0x0a, 0x06, 0x44, 0x67, 0x72, 0x61, 0x70, 0x68, 0x12, 0x2b, 0x0a, + 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x6f, 0x67, + 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x26, 0x0a, 0x05, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x0c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x27, 0x0a, 0x05, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x0c, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x0d, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x0f, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x54, 0x78, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x0f, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x54, 0x78, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, + 0x12, 0x2a, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x1a, 0x0c, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x42, 0x42, 0x0a, 0x09, + 0x69, 0x6f, 0x2e, 0x64, 0x67, 0x72, 0x61, 0x70, 0x68, 0x42, 0x0b, 0x44, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x64, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2d, 0x69, 0x6f, 0x2f, 0x64, 0x67, 0x6f, + 0x2f, 0x76, 0x32, 0x34, 0x30, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *Operation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RunInBackground { - i-- - if m.RunInBackground { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if len(m.DropValue) > 0 { - i -= len(m.DropValue) - copy(dAtA[i:], m.DropValue) - i = encodeVarintApi(dAtA, i, uint64(len(m.DropValue))) - i-- - dAtA[i] = 0x2a - } - if m.DropOp != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.DropOp)) - i-- - dAtA[i] = 0x20 - } - if m.DropAll { - i-- - if m.DropAll { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.DropAttr) > 0 { - i -= len(m.DropAttr) - copy(dAtA[i:], m.DropAttr) - i = encodeVarintApi(dAtA, i, uint64(len(m.DropAttr))) - i-- - dAtA[i] = 0x12 - } - if len(m.Schema) > 0 { - i -= len(m.Schema) - copy(dAtA[i:], m.Schema) - i = encodeVarintApi(dAtA, i, uint64(len(m.Schema))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Payload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Payload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintApi(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TxnContext) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TxnContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintApi(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0x32 - } - if len(m.Preds) > 0 { - for iNdEx := len(m.Preds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Preds[iNdEx]) - copy(dAtA[i:], m.Preds[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.Preds[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.Aborted { - i-- - if m.Aborted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.CommitTs != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x10 - } - if m.StartTs != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Check) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Check) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Check) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *Version) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Version) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Tag) > 0 { - i -= len(m.Tag) - copy(dAtA[i:], m.Tag) - i = encodeVarintApi(dAtA, i, uint64(len(m.Tag))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Latency) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Latency) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Latency) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TotalNs != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.TotalNs)) - i-- - dAtA[i] = 0x28 - } - if m.AssignTimestampNs != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.AssignTimestampNs)) - i-- - dAtA[i] = 0x20 - } - if m.EncodingNs != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.EncodingNs)) - i-- - dAtA[i] = 0x18 - } - if m.ProcessingNs != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.ProcessingNs)) - i-- - dAtA[i] = 0x10 - } - if m.ParsingNs != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.ParsingNs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Metrics) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Metrics) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Metrics) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NumUids) > 0 { - for k := range m.NumUids { - v := m.NumUids[k] - baseI := i - i = encodeVarintApi(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintApi(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintApi(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NQuad) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NQuad) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NQuad) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Namespace != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Namespace)) - i-- - dAtA[i] = 0x40 - } - if len(m.Facets) > 0 { - for iNdEx := len(m.Facets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Facets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.Lang) > 0 { - i -= len(m.Lang) - copy(dAtA[i:], m.Lang) - i = encodeVarintApi(dAtA, i, uint64(len(m.Lang))) - i-- - dAtA[i] = 0x32 - } - if m.ObjectValue != nil { - { - size, err := m.ObjectValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintApi(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ObjectId) > 0 { - i -= len(m.ObjectId) - copy(dAtA[i:], m.ObjectId) - i = encodeVarintApi(dAtA, i, uint64(len(m.ObjectId))) - i-- - dAtA[i] = 0x1a - } - if len(m.Predicate) > 0 { - i -= len(m.Predicate) - copy(dAtA[i:], m.Predicate) - i = encodeVarintApi(dAtA, i, uint64(len(m.Predicate))) - i-- - dAtA[i] = 0x12 - } - if len(m.Subject) > 0 { - i -= len(m.Subject) - copy(dAtA[i:], m.Subject) - i = encodeVarintApi(dAtA, i, uint64(len(m.Subject))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Value) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Value) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Val != nil { - { - size := m.Val.Size() - i -= size - if _, err := m.Val.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *Value_DefaultVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_DefaultVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.DefaultVal) - copy(dAtA[i:], m.DefaultVal) - i = encodeVarintApi(dAtA, i, uint64(len(m.DefaultVal))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func (m *Value_BytesVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_BytesVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.BytesVal != nil { - i -= len(m.BytesVal) - copy(dAtA[i:], m.BytesVal) - i = encodeVarintApi(dAtA, i, uint64(len(m.BytesVal))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Value_IntVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_IntVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintApi(dAtA, i, uint64(m.IntVal)) - i-- - dAtA[i] = 0x18 - return len(dAtA) - i, nil -} -func (m *Value_BoolVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_BoolVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i-- - if m.BoolVal { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - return len(dAtA) - i, nil -} -func (m *Value_StrVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_StrVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.StrVal) - copy(dAtA[i:], m.StrVal) - i = encodeVarintApi(dAtA, i, uint64(len(m.StrVal))) - i-- - dAtA[i] = 0x2a - return len(dAtA) - i, nil -} -func (m *Value_DoubleVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_DoubleVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.DoubleVal)))) - i-- - dAtA[i] = 0x31 - return len(dAtA) - i, nil -} -func (m *Value_GeoVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_GeoVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.GeoVal != nil { - i -= len(m.GeoVal) - copy(dAtA[i:], m.GeoVal) - i = encodeVarintApi(dAtA, i, uint64(len(m.GeoVal))) - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *Value_DateVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_DateVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DateVal != nil { - i -= len(m.DateVal) - copy(dAtA[i:], m.DateVal) - i = encodeVarintApi(dAtA, i, uint64(len(m.DateVal))) - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func (m *Value_DatetimeVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_DatetimeVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DatetimeVal != nil { - i -= len(m.DatetimeVal) - copy(dAtA[i:], m.DatetimeVal) - i = encodeVarintApi(dAtA, i, uint64(len(m.DatetimeVal))) - i-- - dAtA[i] = 0x4a - } - return len(dAtA) - i, nil -} -func (m *Value_PasswordVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_PasswordVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.PasswordVal) - copy(dAtA[i:], m.PasswordVal) - i = encodeVarintApi(dAtA, i, uint64(len(m.PasswordVal))) - i-- - dAtA[i] = 0x52 - return len(dAtA) - i, nil -} -func (m *Value_UidVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_UidVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintApi(dAtA, i, uint64(m.UidVal)) - i-- - dAtA[i] = 0x58 - return len(dAtA) - i, nil -} -func (m *Value_BigfloatVal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_BigfloatVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.BigfloatVal != nil { - i -= len(m.BigfloatVal) - copy(dAtA[i:], m.BigfloatVal) - i = encodeVarintApi(dAtA, i, uint64(len(m.BigfloatVal))) - i-- - dAtA[i] = 0x62 - } - return len(dAtA) - i, nil -} -func (m *Value_Vfloat32Val) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_Vfloat32Val) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Vfloat32Val != nil { - i -= len(m.Vfloat32Val) - copy(dAtA[i:], m.Vfloat32Val) - i = encodeVarintApi(dAtA, i, uint64(len(m.Vfloat32Val))) - i-- - dAtA[i] = 0x6a - } - return len(dAtA) - i, nil -} -func (m *Facet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Facet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Facet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Alias) > 0 { - i -= len(m.Alias) - copy(dAtA[i:], m.Alias) - i = encodeVarintApi(dAtA, i, uint64(len(m.Alias))) - i-- - dAtA[i] = 0x2a - } - if len(m.Tokens) > 0 { - for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Tokens[iNdEx]) - copy(dAtA[i:], m.Tokens[iNdEx]) - i = encodeVarintApi(dAtA, i, uint64(len(m.Tokens[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.ValType != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.ValType)) - i-- - dAtA[i] = 0x18 - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintApi(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintApi(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *LoginRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LoginRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Namespace != 0 { - i = encodeVarintApi(dAtA, i, uint64(m.Namespace)) - i-- - dAtA[i] = 0x20 - } - if len(m.RefreshToken) > 0 { - i -= len(m.RefreshToken) - copy(dAtA[i:], m.RefreshToken) - i = encodeVarintApi(dAtA, i, uint64(len(m.RefreshToken))) - i-- - dAtA[i] = 0x1a - } - if len(m.Password) > 0 { - i -= len(m.Password) - copy(dAtA[i:], m.Password) - i = encodeVarintApi(dAtA, i, uint64(len(m.Password))) - i-- - dAtA[i] = 0x12 - } - if len(m.Userid) > 0 { - i -= len(m.Userid) - copy(dAtA[i:], m.Userid) - i = encodeVarintApi(dAtA, i, uint64(len(m.Userid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Jwt) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Jwt) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Jwt) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RefreshJwt) > 0 { - i -= len(m.RefreshJwt) - copy(dAtA[i:], m.RefreshJwt) - i = encodeVarintApi(dAtA, i, uint64(len(m.RefreshJwt))) - i-- - dAtA[i] = 0x12 - } - if len(m.AccessJwt) > 0 { - i -= len(m.AccessJwt) - copy(dAtA[i:], m.AccessJwt) - i = encodeVarintApi(dAtA, i, uint64(len(m.AccessJwt))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintApi(dAtA []byte, offset int, v uint64) int { - offset -= sovApi(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartTs != 0 { - n += 1 + sovApi(uint64(m.StartTs)) - } - l = len(m.Query) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Vars) > 0 { - for k, v := range m.Vars { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - if m.ReadOnly { - n += 2 - } - if m.BestEffort { - n += 2 - } - if len(m.Mutations) > 0 { - for _, e := range m.Mutations { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - if m.CommitNow { - n += 2 - } - if m.RespFormat != 0 { - n += 1 + sovApi(uint64(m.RespFormat)) - } - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *Uids) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Uids) > 0 { - for _, s := range m.Uids { - l = len(s) - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *ListOfString) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Value) > 0 { - for _, s := range m.Value { - l = len(s) - n += 1 + l + sovApi(uint64(l)) - } - } - return n -} - -func (m *Response) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Json) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Txn != nil { - l = m.Txn.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Latency != nil { - l = m.Latency.Size() - n += 1 + l + sovApi(uint64(l)) - } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Uids) > 0 { - for k, v := range m.Uids { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v))) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - l = len(m.Rdf) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Hdrs) > 0 { - for k, v := range m.Hdrs { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovApi(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + l - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *Mutation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SetJson) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.DeleteJson) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.SetNquads) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.DelNquads) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Set) > 0 { - for _, e := range m.Set { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - if len(m.Del) > 0 { - for _, e := range m.Del { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - l = len(m.Cond) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.CommitNow { - n += 2 - } - return n -} - -func (m *Operation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Schema) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.DropAttr) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.DropAll { - n += 2 - } - if m.DropOp != 0 { - n += 1 + sovApi(uint64(m.DropOp)) - } - l = len(m.DropValue) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.RunInBackground { - n += 2 - } - return n -} - -func (m *Payload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Data) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *TxnContext) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartTs != 0 { - n += 1 + sovApi(uint64(m.StartTs)) - } - if m.CommitTs != 0 { - n += 1 + sovApi(uint64(m.CommitTs)) - } - if m.Aborted { - n += 2 - } - if len(m.Keys) > 0 { - for _, s := range m.Keys { - l = len(s) - n += 1 + l + sovApi(uint64(l)) - } - } - if len(m.Preds) > 0 { - for _, s := range m.Preds { - l = len(s) - n += 1 + l + sovApi(uint64(l)) - } - } - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *Check) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *Version) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Tag) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *Latency) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ParsingNs != 0 { - n += 1 + sovApi(uint64(m.ParsingNs)) - } - if m.ProcessingNs != 0 { - n += 1 + sovApi(uint64(m.ProcessingNs)) - } - if m.EncodingNs != 0 { - n += 1 + sovApi(uint64(m.EncodingNs)) - } - if m.AssignTimestampNs != 0 { - n += 1 + sovApi(uint64(m.AssignTimestampNs)) - } - if m.TotalNs != 0 { - n += 1 + sovApi(uint64(m.TotalNs)) - } - return n -} - -func (m *Metrics) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.NumUids) > 0 { - for k, v := range m.NumUids { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + sovApi(uint64(v)) - n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize)) - } - } - return n -} - -func (m *NQuad) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Subject) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Predicate) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.ObjectId) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.ObjectValue != nil { - l = m.ObjectValue.Size() - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Lang) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if len(m.Facets) > 0 { - for _, e := range m.Facets { - l = e.Size() - n += 1 + l + sovApi(uint64(l)) - } - } - if m.Namespace != 0 { - n += 1 + sovApi(uint64(m.Namespace)) - } - return n -} - -func (m *Value) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Val != nil { - n += m.Val.Size() - } - return n -} - -func (m *Value_DefaultVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DefaultVal) - n += 1 + l + sovApi(uint64(l)) - return n -} -func (m *Value_BytesVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BytesVal != nil { - l = len(m.BytesVal) - n += 1 + l + sovApi(uint64(l)) - } - return n -} -func (m *Value_IntVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovApi(uint64(m.IntVal)) - return n -} -func (m *Value_BoolVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *Value_StrVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.StrVal) - n += 1 + l + sovApi(uint64(l)) - return n -} -func (m *Value_DoubleVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 9 - return n -} -func (m *Value_GeoVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GeoVal != nil { - l = len(m.GeoVal) - n += 1 + l + sovApi(uint64(l)) - } - return n -} -func (m *Value_DateVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DateVal != nil { - l = len(m.DateVal) - n += 1 + l + sovApi(uint64(l)) - } - return n -} -func (m *Value_DatetimeVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DatetimeVal != nil { - l = len(m.DatetimeVal) - n += 1 + l + sovApi(uint64(l)) - } - return n -} -func (m *Value_PasswordVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PasswordVal) - n += 1 + l + sovApi(uint64(l)) - return n -} -func (m *Value_UidVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovApi(uint64(m.UidVal)) - return n -} -func (m *Value_BigfloatVal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BigfloatVal != nil { - l = len(m.BigfloatVal) - n += 1 + l + sovApi(uint64(l)) - } - return n -} -func (m *Value_Vfloat32Val) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Vfloat32Val != nil { - l = len(m.Vfloat32Val) - n += 1 + l + sovApi(uint64(l)) - } - return n -} -func (m *Facet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.ValType != 0 { - n += 1 + sovApi(uint64(m.ValType)) - } - if len(m.Tokens) > 0 { - for _, s := range m.Tokens { - l = len(s) - n += 1 + l + sovApi(uint64(l)) - } - } - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func (m *LoginRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Userid) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.Password) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.RefreshToken) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - if m.Namespace != 0 { - n += 1 + sovApi(uint64(m.Namespace)) - } - return n -} - -func (m *Jwt) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AccessJwt) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - l = len(m.RefreshJwt) - if l > 0 { - n += 1 + l + sovApi(uint64(l)) - } - return n -} - -func sovApi(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozApi(x uint64) (n int) { - return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) - } - m.StartTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vars", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Vars == nil { - m.Vars = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Vars[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BestEffort", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.BestEffort = bool(v != 0) - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Mutations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Mutations = append(m.Mutations, &Mutation{}) - if err := m.Mutations[len(m.Mutations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitNow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CommitNow = bool(v != 0) - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RespFormat", wireType) - } - m.RespFormat = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RespFormat |= Request_RespFormat(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Uids) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Uids: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Uids: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uids", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uids = append(m.Uids, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListOfString) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListOfString: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListOfString: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Response) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Response: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Json", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Json = append(m.Json[:0], dAtA[iNdEx:postIndex]...) - if m.Json == nil { - m.Json = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Txn", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Txn == nil { - m.Txn = &TxnContext{} - } - if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Latency", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Latency == nil { - m.Latency = &Latency{} - } - if err := m.Latency.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &Metrics{} - } - if err := m.Metrics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uids", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Uids == nil { - m.Uids = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Uids[mapkey] = mapvalue - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rdf", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rdf = append(m.Rdf[:0], dAtA[iNdEx:postIndex]...) - if m.Rdf == nil { - m.Rdf = []byte{} - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hdrs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Hdrs == nil { - m.Hdrs = make(map[string]*ListOfString) - } - var mapkey string - var mapvalue *ListOfString - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthApi - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthApi - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ListOfString{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Hdrs[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Mutation) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Mutation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Mutation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetJson", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SetJson = append(m.SetJson[:0], dAtA[iNdEx:postIndex]...) - if m.SetJson == nil { - m.SetJson = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteJson", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeleteJson = append(m.DeleteJson[:0], dAtA[iNdEx:postIndex]...) - if m.DeleteJson == nil { - m.DeleteJson = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetNquads", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SetNquads = append(m.SetNquads[:0], dAtA[iNdEx:postIndex]...) - if m.SetNquads == nil { - m.SetNquads = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelNquads", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DelNquads = append(m.DelNquads[:0], dAtA[iNdEx:postIndex]...) - if m.DelNquads == nil { - m.DelNquads = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Set", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Set = append(m.Set, &NQuad{}) - if err := m.Set[len(m.Set)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Del", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Del = append(m.Del, &NQuad{}) - if err := m.Del[len(m.Del)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cond", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cond = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitNow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CommitNow = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Operation) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Operation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Operation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Schema = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DropAttr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DropAttr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DropAll", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DropAll = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DropOp", wireType) - } - m.DropOp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DropOp |= Operation_DropOp(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DropValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DropValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunInBackground", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RunInBackground = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Payload) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Payload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Payload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TxnContext) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TxnContext: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TxnContext: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) - } - m.StartTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType) - } - m.CommitTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Aborted", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Aborted = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Preds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Preds = append(m.Preds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Check) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Check: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Check: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Version) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Version: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tag = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Latency) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Latency: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Latency: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ParsingNs", wireType) - } - m.ParsingNs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ParsingNs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessingNs", wireType) - } - m.ProcessingNs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProcessingNs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodingNs", wireType) - } - m.EncodingNs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EncodingNs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AssignTimestampNs", wireType) - } - m.AssignTimestampNs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AssignTimestampNs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalNs", wireType) - } - m.TotalNs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalNs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Metrics) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Metrics: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Metrics: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NumUids", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NumUids == nil { - m.NumUids = make(map[string]uint64) - } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthApi - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthApi - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.NumUids[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NQuad) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NQuad: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NQuad: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subject = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Predicate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ObjectId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectValue == nil { - m.ObjectValue = &Value{} - } - if err := m.ObjectValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Lang = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Facets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Facets = append(m.Facets, &Facet{}) - if err := m.Facets[len(m.Facets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - m.Namespace = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Namespace |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Value) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Value: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Value: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultVal", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Val = &Value_DefaultVal{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BytesVal", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := make([]byte, postIndex-iNdEx) - copy(v, dAtA[iNdEx:postIndex]) - m.Val = &Value_BytesVal{v} - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Val = &Value_IntVal{v} - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BoolVal", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Val = &Value_BoolVal{b} - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StrVal", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Val = &Value_StrVal{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 6: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field DoubleVal", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Val = &Value_DoubleVal{float64(math.Float64frombits(v))} - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GeoVal", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := make([]byte, postIndex-iNdEx) - copy(v, dAtA[iNdEx:postIndex]) - m.Val = &Value_GeoVal{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DateVal", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := make([]byte, postIndex-iNdEx) - copy(v, dAtA[iNdEx:postIndex]) - m.Val = &Value_DateVal{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DatetimeVal", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := make([]byte, postIndex-iNdEx) - copy(v, dAtA[iNdEx:postIndex]) - m.Val = &Value_DatetimeVal{v} - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PasswordVal", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Val = &Value_PasswordVal{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UidVal", wireType) - } - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Val = &Value_UidVal{v} - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BigfloatVal", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := make([]byte, postIndex-iNdEx) - copy(v, dAtA[iNdEx:postIndex]) - m.Val = &Value_BigfloatVal{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vfloat32Val", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := make([]byte, postIndex-iNdEx) - copy(v, dAtA[iNdEx:postIndex]) - m.Val = &Value_Vfloat32Val{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Facet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Facet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Facet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ValType", wireType) - } - m.ValType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ValType |= Facet_ValType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tokens = append(m.Tokens, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LoginRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LoginRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LoginRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Userid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Userid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Password = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RefreshToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RefreshToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - m.Namespace = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Namespace |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Jwt) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Jwt: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Jwt: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessJwt", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessJwt = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RefreshJwt", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthApi - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RefreshJwt = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipApi(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthApi - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var ( + file_api_proto_rawDescOnce sync.Once + file_api_proto_rawDescData = file_api_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipApi(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowApi - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthApi - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupApi - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthApi - } - if depth == 0 { - return iNdEx, nil - } +func file_api_proto_rawDescGZIP() []byte { + file_api_proto_rawDescOnce.Do(func() { + file_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_proto_rawDescData) + }) + return file_api_proto_rawDescData +} + +var file_api_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_api_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_api_proto_goTypes = []interface{}{ + (Request_RespFormat)(0), // 0: api.Request.RespFormat + (Operation_DropOp)(0), // 1: api.Operation.DropOp + (Facet_ValType)(0), // 2: api.Facet.ValType + (*Request)(nil), // 3: api.Request + (*Uids)(nil), // 4: api.Uids + (*ListOfString)(nil), // 5: api.ListOfString + (*Response)(nil), // 6: api.Response + (*Mutation)(nil), // 7: api.Mutation + (*Operation)(nil), // 8: api.Operation + (*Payload)(nil), // 9: api.Payload + (*TxnContext)(nil), // 10: api.TxnContext + (*Check)(nil), // 11: api.Check + (*Version)(nil), // 12: api.Version + (*Latency)(nil), // 13: api.Latency + (*Metrics)(nil), // 14: api.Metrics + (*NQuad)(nil), // 15: api.NQuad + (*Value)(nil), // 16: api.Value + (*Facet)(nil), // 17: api.Facet + (*LoginRequest)(nil), // 18: api.LoginRequest + (*Jwt)(nil), // 19: api.Jwt + nil, // 20: api.Request.VarsEntry + nil, // 21: api.Response.UidsEntry + nil, // 22: api.Response.HdrsEntry + nil, // 23: api.Metrics.NumUidsEntry +} +var file_api_proto_depIdxs = []int32{ + 20, // 0: api.Request.vars:type_name -> api.Request.VarsEntry + 7, // 1: api.Request.mutations:type_name -> api.Mutation + 0, // 2: api.Request.resp_format:type_name -> api.Request.RespFormat + 10, // 3: api.Response.txn:type_name -> api.TxnContext + 13, // 4: api.Response.latency:type_name -> api.Latency + 14, // 5: api.Response.metrics:type_name -> api.Metrics + 21, // 6: api.Response.uids:type_name -> api.Response.UidsEntry + 22, // 7: api.Response.hdrs:type_name -> api.Response.HdrsEntry + 15, // 8: api.Mutation.set:type_name -> api.NQuad + 15, // 9: api.Mutation.del:type_name -> api.NQuad + 1, // 10: api.Operation.drop_op:type_name -> api.Operation.DropOp + 23, // 11: api.Metrics.num_uids:type_name -> api.Metrics.NumUidsEntry + 16, // 12: api.NQuad.object_value:type_name -> api.Value + 17, // 13: api.NQuad.facets:type_name -> api.Facet + 2, // 14: api.Facet.val_type:type_name -> api.Facet.ValType + 5, // 15: api.Response.HdrsEntry.value:type_name -> api.ListOfString + 18, // 16: api.Dgraph.Login:input_type -> api.LoginRequest + 3, // 17: api.Dgraph.Query:input_type -> api.Request + 8, // 18: api.Dgraph.Alter:input_type -> api.Operation + 10, // 19: api.Dgraph.CommitOrAbort:input_type -> api.TxnContext + 11, // 20: api.Dgraph.CheckVersion:input_type -> api.Check + 6, // 21: api.Dgraph.Login:output_type -> api.Response + 6, // 22: api.Dgraph.Query:output_type -> api.Response + 9, // 23: api.Dgraph.Alter:output_type -> api.Payload + 10, // 24: api.Dgraph.CommitOrAbort:output_type -> api.TxnContext + 12, // 25: api.Dgraph.CheckVersion:output_type -> api.Version + 21, // [21:26] is the sub-list for method output_type + 16, // [16:21] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name +} + +func init() { file_api_proto_init() } +func file_api_proto_init() { + if File_api_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Uids); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOfString); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Mutation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Operation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Payload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxnContext); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Check); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Version); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Latency); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NQuad); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Facet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoginRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Jwt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_api_proto_msgTypes[13].OneofWrappers = []interface{}{ + (*Value_DefaultVal)(nil), + (*Value_BytesVal)(nil), + (*Value_IntVal)(nil), + (*Value_BoolVal)(nil), + (*Value_StrVal)(nil), + (*Value_DoubleVal)(nil), + (*Value_GeoVal)(nil), + (*Value_DateVal)(nil), + (*Value_DatetimeVal)(nil), + (*Value_PasswordVal)(nil), + (*Value_UidVal)(nil), + (*Value_BigfloatVal)(nil), + (*Value_Vfloat32Val)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_api_proto_rawDesc, + NumEnums: 3, + NumMessages: 21, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_api_proto_goTypes, + DependencyIndexes: file_api_proto_depIdxs, + EnumInfos: file_api_proto_enumTypes, + MessageInfos: file_api_proto_msgTypes, + }.Build() + File_api_proto = out.File + file_api_proto_rawDesc = nil + file_api_proto_goTypes = nil + file_api_proto_depIdxs = nil } - -var ( - ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") -) diff --git a/protos/api/api_grpc.pb.go b/protos/api/api_grpc.pb.go new file mode 100644 index 0000000..28185e8 --- /dev/null +++ b/protos/api/api_grpc.pb.go @@ -0,0 +1,277 @@ +// +// Copyright (C) 2023 Dgraph Labs, Inc. and Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Style guide for Protocol Buffer 3. +// Use CamelCase (with an initial capital) for message names – for example, +// SongServerRequest. Use underscore_separated_names for field names – for +// example, song_name. + +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc v3.12.4 +// source: api.proto + +package api + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Dgraph_Login_FullMethodName = "/api.Dgraph/Login" + Dgraph_Query_FullMethodName = "/api.Dgraph/Query" + Dgraph_Alter_FullMethodName = "/api.Dgraph/Alter" + Dgraph_CommitOrAbort_FullMethodName = "/api.Dgraph/CommitOrAbort" + Dgraph_CheckVersion_FullMethodName = "/api.Dgraph/CheckVersion" +) + +// DgraphClient is the client API for Dgraph service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type DgraphClient interface { + Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Response, error) + Query(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) + Alter(ctx context.Context, in *Operation, opts ...grpc.CallOption) (*Payload, error) + CommitOrAbort(ctx context.Context, in *TxnContext, opts ...grpc.CallOption) (*TxnContext, error) + CheckVersion(ctx context.Context, in *Check, opts ...grpc.CallOption) (*Version, error) +} + +type dgraphClient struct { + cc grpc.ClientConnInterface +} + +func NewDgraphClient(cc grpc.ClientConnInterface) DgraphClient { + return &dgraphClient{cc} +} + +func (c *dgraphClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, Dgraph_Login_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dgraphClient) Query(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { + out := new(Response) + err := c.cc.Invoke(ctx, Dgraph_Query_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dgraphClient) Alter(ctx context.Context, in *Operation, opts ...grpc.CallOption) (*Payload, error) { + out := new(Payload) + err := c.cc.Invoke(ctx, Dgraph_Alter_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dgraphClient) CommitOrAbort(ctx context.Context, in *TxnContext, opts ...grpc.CallOption) (*TxnContext, error) { + out := new(TxnContext) + err := c.cc.Invoke(ctx, Dgraph_CommitOrAbort_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dgraphClient) CheckVersion(ctx context.Context, in *Check, opts ...grpc.CallOption) (*Version, error) { + out := new(Version) + err := c.cc.Invoke(ctx, Dgraph_CheckVersion_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DgraphServer is the server API for Dgraph service. +// All implementations must embed UnimplementedDgraphServer +// for forward compatibility +type DgraphServer interface { + Login(context.Context, *LoginRequest) (*Response, error) + Query(context.Context, *Request) (*Response, error) + Alter(context.Context, *Operation) (*Payload, error) + CommitOrAbort(context.Context, *TxnContext) (*TxnContext, error) + CheckVersion(context.Context, *Check) (*Version, error) + mustEmbedUnimplementedDgraphServer() +} + +// UnimplementedDgraphServer must be embedded to have forward compatible implementations. +type UnimplementedDgraphServer struct { +} + +func (UnimplementedDgraphServer) Login(context.Context, *LoginRequest) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") +} +func (UnimplementedDgraphServer) Query(context.Context, *Request) (*Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") +} +func (UnimplementedDgraphServer) Alter(context.Context, *Operation) (*Payload, error) { + return nil, status.Errorf(codes.Unimplemented, "method Alter not implemented") +} +func (UnimplementedDgraphServer) CommitOrAbort(context.Context, *TxnContext) (*TxnContext, error) { + return nil, status.Errorf(codes.Unimplemented, "method CommitOrAbort not implemented") +} +func (UnimplementedDgraphServer) CheckVersion(context.Context, *Check) (*Version, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckVersion not implemented") +} +func (UnimplementedDgraphServer) mustEmbedUnimplementedDgraphServer() {} + +// UnsafeDgraphServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DgraphServer will +// result in compilation errors. +type UnsafeDgraphServer interface { + mustEmbedUnimplementedDgraphServer() +} + +func RegisterDgraphServer(s grpc.ServiceRegistrar, srv DgraphServer) { + s.RegisterService(&Dgraph_ServiceDesc, srv) +} + +func _Dgraph_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoginRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DgraphServer).Login(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Dgraph_Login_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DgraphServer).Login(ctx, req.(*LoginRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dgraph_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DgraphServer).Query(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Dgraph_Query_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DgraphServer).Query(ctx, req.(*Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dgraph_Alter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Operation) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DgraphServer).Alter(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Dgraph_Alter_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DgraphServer).Alter(ctx, req.(*Operation)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dgraph_CommitOrAbort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TxnContext) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DgraphServer).CommitOrAbort(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Dgraph_CommitOrAbort_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DgraphServer).CommitOrAbort(ctx, req.(*TxnContext)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dgraph_CheckVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Check) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DgraphServer).CheckVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Dgraph_CheckVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DgraphServer).CheckVersion(ctx, req.(*Check)) + } + return interceptor(ctx, in, info, handler) +} + +// Dgraph_ServiceDesc is the grpc.ServiceDesc for Dgraph service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Dgraph_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.Dgraph", + HandlerType: (*DgraphServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Login", + Handler: _Dgraph_Login_Handler, + }, + { + MethodName: "Query", + Handler: _Dgraph_Query_Handler, + }, + { + MethodName: "Alter", + Handler: _Dgraph_Alter_Handler, + }, + { + MethodName: "CommitOrAbort", + Handler: _Dgraph_CommitOrAbort_Handler, + }, + { + MethodName: "CheckVersion", + Handler: _Dgraph_CheckVersion_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "api.proto", +}