From 2151427b5ee4c3f2adaab0371d5d901240072592 Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Fri, 7 Oct 2022 10:37:04 -0400 Subject: [PATCH] feat(orm): add query proto codegen (#13438) ## Description This starts the implementation of approach (C) in #11774 by generating `_query.proto` files for `.proto` files which have ORM definitions. It does this using a new protoc plugin called `protoc-gen-go-cosmos-orm-proto`. Please review `bank_query.proto` and `test_schema_query.proto` as these are the outputs of the codegen. The approach taken does not attempt to do any sort of logical queries as discussed in #11774 and instead provides direct index access in the most simple and complete way that we can easily implement now. More advanced things in #11774 could be implemented later, but this should be possible to deliver relatively quickly and should allow developers to completely skip writing gRPC queries manually if they use ORM. Note that the implementation of these queries can provide merkle proofs because the mapping to state is well known. I did need to disable pulsar codegen in this PR because it doesn't support proto3 optionals which are needed here (depends on https://github.com/cosmos/cosmos-proto/issues/12). Fortunately, pulsar is 100% compatible with the official google codegen and there is no problem running ORM tests against the official codegen. --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules) - [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) --- orm/Makefile | 4 + .../protoc-gen-go-cosmos-orm-proto/main.go | 11 + orm/cmd/protoc-gen-go-cosmos-orm/main.go | 2 +- orm/internal/buf.gen.yaml | 5 +- orm/internal/buf.proto.gen.yaml | 11 + orm/internal/codegen/codegen.go | 39 +- orm/internal/codegen/file.go | 17 +- orm/internal/codegen/query.go | 319 + orm/internal/codegen/table.go | 6 +- orm/internal/testpb/bank.cosmos_orm.go | 1 - orm/internal/testpb/bank.pb.go | 246 + orm/internal/testpb/bank.pulsar.go | 1227 ---- orm/internal/testpb/bank_query.pb.go | 1408 ++++ orm/internal/testpb/bank_query.proto | 150 + orm/internal/testpb/bank_query_grpc.pb.go | 221 + orm/internal/testpb/test_schema.cosmos_orm.go | 1 - orm/internal/testpb/test_schema.pb.go | 914 +++ orm/internal/testpb/test_schema.pulsar.go | 5669 ----------------- orm/internal/testpb/test_schema_query.pb.go | 4325 +++++++++++++ orm/internal/testpb/test_schema_query.proto | 442 ++ .../testpb/test_schema_query_grpc.pb.go | 601 ++ 21 files changed, 8711 insertions(+), 6908 deletions(-) create mode 100644 orm/cmd/protoc-gen-go-cosmos-orm-proto/main.go create mode 100644 orm/internal/buf.proto.gen.yaml create mode 100644 orm/internal/codegen/query.go create mode 100644 orm/internal/testpb/bank.pb.go delete mode 100644 orm/internal/testpb/bank.pulsar.go create mode 100644 orm/internal/testpb/bank_query.pb.go create mode 100644 orm/internal/testpb/bank_query.proto create mode 100644 orm/internal/testpb/bank_query_grpc.pb.go create mode 100644 orm/internal/testpb/test_schema.pb.go delete mode 100644 orm/internal/testpb/test_schema.pulsar.go create mode 100644 orm/internal/testpb/test_schema_query.pb.go create mode 100644 orm/internal/testpb/test_schema_query.proto create mode 100644 orm/internal/testpb/test_schema_query_grpc.pb.go diff --git a/orm/Makefile b/orm/Makefile index 5206958821ff..8914a830f72c 100644 --- a/orm/Makefile +++ b/orm/Makefile @@ -1,3 +1,7 @@ codegen: go install ./cmd/protoc-gen-go-cosmos-orm + go install ./cmd/protoc-gen-go-cosmos-orm-proto + # generate .proto files first + (cd internal; buf generate --template buf.proto.gen.yaml) + # generate go code (cd internal; buf generate) \ No newline at end of file diff --git a/orm/cmd/protoc-gen-go-cosmos-orm-proto/main.go b/orm/cmd/protoc-gen-go-cosmos-orm-proto/main.go new file mode 100644 index 000000000000..9428c514d6e5 --- /dev/null +++ b/orm/cmd/protoc-gen-go-cosmos-orm-proto/main.go @@ -0,0 +1,11 @@ +package main + +import ( + "google.golang.org/protobuf/compiler/protogen" + + "github.com/cosmos/cosmos-sdk/orm/internal/codegen" +) + +func main() { + protogen.Options{}.Run(codegen.QueryProtoPluginRunner) +} diff --git a/orm/cmd/protoc-gen-go-cosmos-orm/main.go b/orm/cmd/protoc-gen-go-cosmos-orm/main.go index ca81dc96bf94..9c06f9ac8b7c 100644 --- a/orm/cmd/protoc-gen-go-cosmos-orm/main.go +++ b/orm/cmd/protoc-gen-go-cosmos-orm/main.go @@ -7,5 +7,5 @@ import ( ) func main() { - protogen.Options{}.Run(codegen.PluginRunner) + protogen.Options{}.Run(codegen.ORMPluginRunner) } diff --git a/orm/internal/buf.gen.yaml b/orm/internal/buf.gen.yaml index 7acae39d5714..468e3cf63686 100644 --- a/orm/internal/buf.gen.yaml +++ b/orm/internal/buf.gen.yaml @@ -6,7 +6,10 @@ managed: override: buf.build/cosmos/cosmos-sdk: cosmossdk.io/api plugins: - - name: go-pulsar + - name: go + out: . + opt: paths=source_relative + - name: go-grpc out: . opt: paths=source_relative - name: go-cosmos-orm diff --git a/orm/internal/buf.proto.gen.yaml b/orm/internal/buf.proto.gen.yaml new file mode 100644 index 000000000000..470406018cd5 --- /dev/null +++ b/orm/internal/buf.proto.gen.yaml @@ -0,0 +1,11 @@ +version: v1 +managed: + enabled: true + go_package_prefix: + default: github.com/cosmos/cosmos-sdk/orm/internal + override: + buf.build/cosmos/cosmos-sdk: cosmossdk.io/api +plugins: + - name: go-cosmos-orm-proto + out: . + opt: paths=source_relative diff --git a/orm/internal/codegen/codegen.go b/orm/internal/codegen/codegen.go index c2bfb7a24e47..503477c64bc1 100644 --- a/orm/internal/codegen/codegen.go +++ b/orm/internal/codegen/codegen.go @@ -2,9 +2,11 @@ package codegen import ( "fmt" + "os" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/pluginpb" ormv1 "cosmossdk.io/api/cosmos/orm/v1" "github.com/cosmos/cosmos-proto/generator" @@ -17,7 +19,8 @@ const ( ormTablePkg = protogen.GoImportPath("github.com/cosmos/cosmos-sdk/orm/model/ormtable") ) -func PluginRunner(p *protogen.Plugin) error { +func ORMPluginRunner(p *protogen.Plugin) error { + p.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) for _, f := range p.Files { if !f.Generate { continue @@ -32,12 +35,42 @@ func PluginRunner(p *protogen.Plugin) error { GeneratedFile: gen, LocalPackages: map[string]bool{}, } - f := fileGen{GeneratedFile: cgen, file: f} - err := f.gen() + fgen := fileGen{GeneratedFile: cgen, file: f} + err := fgen.gen() + if err != nil { + return err + } + } + + return nil +} + +func QueryProtoPluginRunner(p *protogen.Plugin) error { + p.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) + for _, f := range p.Files { + if !f.Generate { + continue + } + + if !hasTables(f) { + continue + } + + out, err := os.OpenFile(fmt.Sprintf("%s_query.proto", f.GeneratedFilenamePrefix), os.O_RDWR|os.O_TRUNC|os.O_CREATE, 0644) if err != nil { return err } + err = queryProtoGen{ + File: f, + svc: newWriter(), + msgs: newWriter(), + outFile: out, + imports: map[string]bool{}, + }.gen() + if err != nil { + return err + } } return nil diff --git a/orm/internal/codegen/file.go b/orm/internal/codegen/file.go index a4e2e974d706..681e49cf89e2 100644 --- a/orm/internal/codegen/file.go +++ b/orm/internal/codegen/file.go @@ -87,7 +87,11 @@ func (f fileGen) storeStructName() string { } func (f fileGen) fileShortName() string { - filename := f.file.Proto.GetName() + return fileShortName(f.file) +} + +func fileShortName(file *protogen.File) string { + filename := file.Proto.GetName() shortName := filepath.Base(filename) i := strings.Index(shortName, ".") if i > 0 { @@ -155,7 +159,7 @@ func (f fileGen) genStoreConstructor(stores []*protogen.Message) { f.P("}") } -func (f fileGen) fieldsToCamelCase(fields string) string { +func fieldsToCamelCase(fields string) string { splitFields := strings.Split(fields, ",") camelFields := make([]string, len(splitFields)) for i, field := range splitFields { @@ -163,3 +167,12 @@ func (f fileGen) fieldsToCamelCase(fields string) string { } return strings.Join(camelFields, "") } + +func fieldsToSnakeCase(fields string) string { + splitFields := strings.Split(fields, ",") + camelFields := make([]string, len(splitFields)) + for i, field := range splitFields { + camelFields[i] = strcase.ToSnake(field) + } + return strings.Join(camelFields, "_") +} diff --git a/orm/internal/codegen/query.go b/orm/internal/codegen/query.go new file mode 100644 index 000000000000..cb7d46338ef1 --- /dev/null +++ b/orm/internal/codegen/query.go @@ -0,0 +1,319 @@ +package codegen + +import ( + "bytes" + "fmt" + "os" + + ormv1 "cosmossdk.io/api/cosmos/orm/v1" + "github.com/iancoleman/strcase" + "golang.org/x/exp/maps" + "golang.org/x/exp/slices" + "google.golang.org/protobuf/compiler/protogen" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + + "github.com/cosmos/cosmos-sdk/orm/internal/fieldnames" +) + +type queryProtoGen struct { + *protogen.File + imports map[string]bool + svc *writer + msgs *writer + outFile *os.File +} + +func (g queryProtoGen) gen() error { + g.imports[g.Desc.Path()] = true + + g.svc.F("// %s queries the state of the tables specified by %s.", g.queryServiceName(), g.Desc.Path()) + g.svc.F("service %s {", g.queryServiceName()) + g.svc.Indent() + for _, msg := range g.Messages { + tableDesc := proto.GetExtension(msg.Desc.Options(), ormv1.E_Table).(*ormv1.TableDescriptor) + if tableDesc != nil { + err := g.genTableRPCMethods(msg, tableDesc) + if err != nil { + return err + } + } + singletonDesc := proto.GetExtension(msg.Desc.Options(), ormv1.E_Singleton).(*ormv1.SingletonDescriptor) + if singletonDesc != nil { + err := g.genSingletonRPCMethods(msg) + if err != nil { + return err + } + } + } + g.svc.Dedent() + g.svc.F("}") + g.svc.F("") + + outBuf := newWriter() + outBuf.F("// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT.") + outBuf.F(`syntax = "proto3";`) + outBuf.F("package %s;", g.Desc.Package()) + outBuf.F("") + + imports := maps.Keys(g.imports) + slices.Sort(imports) + for _, i := range imports { + outBuf.F(`import "%s";`, i) + } + outBuf.F("") + + _, err := outBuf.Write(g.svc.Bytes()) + if err != nil { + return err + } + + _, err = outBuf.Write(g.msgs.Bytes()) + if err != nil { + return err + } + + _, err = g.outFile.Write(outBuf.Bytes()) + if err != nil { + return err + } + + return g.outFile.Close() +} + +func (g queryProtoGen) genTableRPCMethods(msg *protogen.Message, desc *ormv1.TableDescriptor) error { + name := msg.Desc.Name() + g.svc.F("// Get queries the %s table by its primary key.", name) + g.svc.F("rpc Get%s (Get%sRequest) returns (Get%sResponse) {}", name, name, name) // TODO grpc gateway + + g.startRequestType("Get%sRequest", name) + g.msgs.Indent() + primaryKeyFields := fieldnames.CommaSeparatedFieldNames(desc.PrimaryKey.Fields) + fields := msg.Desc.Fields() + for i, fieldName := range primaryKeyFields.Names() { + field := fields.ByName(fieldName) + if field == nil { + return fmt.Errorf("can't find primary key field %s", fieldName) + } + g.msgs.F("// %s specifies the value of the %s field in the primary key.", fieldName, fieldName) + g.msgs.F("%s %s = %d;", g.fieldType(field), fieldName, i+1) + } + g.msgs.Dedent() + + g.msgs.F("}") + g.msgs.F("") + g.startResponseType("Get%sResponse", name) + g.msgs.Indent() + g.msgs.F("// value is the response value.") + g.msgs.F("%s value = 1;", name) + g.msgs.Dedent() + g.msgs.F("}") + g.msgs.F("") + + for _, idx := range desc.Index { + if !idx.Unique { + continue + } + + fieldsCamel := fieldsToCamelCase(idx.Fields) + methodName := fmt.Sprintf("Get%sBy%s", name, fieldsCamel) + g.svc.F("// %s queries the %s table by its %s index", methodName, name, fieldsCamel) + g.svc.F("rpc %s (%sRequest) returns (%sResponse) {}", methodName, methodName, methodName) // TODO grpc gateway + + g.startRequestType("%sRequest", methodName) + g.msgs.Indent() + fieldNames := fieldnames.CommaSeparatedFieldNames(idx.Fields) + for i, fieldName := range fieldNames.Names() { + field := fields.ByName(fieldName) + if field == nil { + return fmt.Errorf("can't find unique index field %s", fieldName) + } + g.msgs.F("%s %s = %d;", g.fieldType(field), fieldName, i+1) + } + g.msgs.Dedent() + + g.msgs.F("}") + g.msgs.F("") + g.startResponseType("%sResponse", methodName) + g.msgs.Indent() + g.msgs.F("%s value = 1;", name) + g.msgs.Dedent() + g.msgs.F("}") + g.msgs.F("") + } + + g.imports["cosmos/base/query/v1beta1/pagination.proto"] = true + g.svc.F("// List%s queries the %s table using prefix and range queries against defined indexes.", name, name) + g.svc.F("rpc List%s (List%sRequest) returns (List%sResponse) {}", name, name, name) // TODO grpc gateway + g.startRequestType("List%sRequest", name) + g.msgs.Indent() + g.msgs.F("// IndexKey specifies the value of an index key to use in prefix and range queries.") + g.msgs.F("message IndexKey {") + g.msgs.Indent() + + indexFields := []string{desc.PrimaryKey.Fields} + // the primary key has field number 1 + fieldNums := []uint32{1} + for _, index := range desc.Index { + indexFields = append(indexFields, index.Fields) + // index field numbers are their id + 1 + fieldNums = append(fieldNums, index.Id+1) + } + + g.msgs.F("// key specifies the index key value.") + g.msgs.F("oneof key {") + g.msgs.Indent() + for i, fields := range indexFields { + fieldName := fieldsToSnakeCase(fields) + typeName := fieldsToCamelCase(fields) + g.msgs.F("// %s specifies the value of the %s index key to use in the query.", fieldName, typeName) + g.msgs.F("%s %s = %d;", typeName, fieldName, fieldNums[i]) + } + g.msgs.Dedent() + g.msgs.F("}") + + for _, fieldNames := range indexFields { + g.msgs.F("") + g.msgs.F("message %s {", fieldsToCamelCase(fieldNames)) + g.msgs.Indent() + for i, fieldName := range fieldnames.CommaSeparatedFieldNames(fieldNames).Names() { + g.msgs.F("// %s is the value of the %s field in the index.", fieldName, fieldName) + g.msgs.F("// It can be omitted to query for all valid values of that field in this segment of the index.") + g.msgs.F("optional %s %s = %d;", g.fieldType(fields.ByName(fieldName)), fieldName, i+1) + } + g.msgs.Dedent() + g.msgs.F("}") + } + + g.msgs.Dedent() + g.msgs.F("}") + g.msgs.F("") + g.msgs.F("// query specifies the type of query - either a prefix or range query.") + g.msgs.F("oneof query {") + g.msgs.Indent() + g.msgs.F("// prefix_query specifies the index key value to use for the prefix query.") + g.msgs.F("IndexKey prefix_query = 1;") + g.msgs.F("// range_query specifies the index key from/to values to use for the range query.") + g.msgs.F("RangeQuery range_query = 2;") + g.msgs.Dedent() + g.msgs.F("}") + + g.msgs.F("// pagination specifies optional pagination parameters.") + g.msgs.F("cosmos.base.query.v1beta1.PageRequest pagination = 3;") + g.msgs.F("") + g.msgs.F("// RangeQuery specifies the from/to index keys for a range query.") + g.msgs.F("message RangeQuery {") + g.msgs.Indent() + g.msgs.F("// from is the index key to use for the start of the range query.") + g.msgs.F("// To query from the start of an index, specify an index key for that index with empty values.") + g.msgs.F("IndexKey from = 1;") + g.msgs.F("// to is the index key to use for the end of the range query.") + g.msgs.F("// The index key type MUST be the same as the index key type used for from.") + g.msgs.F("// To query from to the end of an index it can be omitted.") + g.msgs.F("IndexKey to = 2;") + g.msgs.Dedent() + g.msgs.F("}") + g.msgs.Dedent() + g.msgs.F("}") + g.msgs.F("") + g.startResponseType("List%sResponse", name) + g.msgs.Indent() + g.msgs.F("// values are the results of the query.") + g.msgs.F("repeated %s values = 1;", name) + g.msgs.F("// pagination is the pagination response.") + g.msgs.F("cosmos.base.query.v1beta1.PageResponse pagination = 2;") + g.msgs.Dedent() + g.msgs.F("}") + g.msgs.F("") + return nil +} + +func (g queryProtoGen) genSingletonRPCMethods(msg *protogen.Message) error { + name := msg.Desc.Name() + g.svc.F("// Get%s queries the %s singleton.", name, name) + g.svc.F("rpc Get%s (Get%sRequest) returns (Get%sResponse) {}", name, name, name) // TODO grpc gateway + g.startRequestType("Get%sRequest", name) + g.msgs.F("}") + g.msgs.F("") + g.startRequestType("Get%sResponse", name) + g.msgs.Indent() + g.msgs.F("%s value = 1;", name) + g.msgs.Dedent() + g.msgs.F("}") + g.msgs.F("") + return nil +} +func (g queryProtoGen) startRequestType(format string, args ...any) { + g.startRequestResponseType("request", format, args...) +} + +func (g queryProtoGen) startResponseType(format string, args ...any) { + g.startRequestResponseType("response", format, args...) +} + +func (g queryProtoGen) startRequestResponseType(typ string, format string, args ...any) { + msgTypeName := fmt.Sprintf(format, args...) + g.msgs.F("// %s is the %s/%s %s type.", msgTypeName, g.queryServiceName(), msgTypeName, typ) + g.msgs.F("message %s {", msgTypeName) +} + +func (g queryProtoGen) queryServiceName() string { + return fmt.Sprintf("%sQuery", strcase.ToCamel(fileShortName(g.File))) +} + +func (g queryProtoGen) fieldType(descriptor protoreflect.FieldDescriptor) string { + if descriptor.Kind() == protoreflect.MessageKind { + message := descriptor.Message() + g.imports[message.ParentFile().Path()] = true + return string(message.FullName()) + } + + return descriptor.Kind().String() +} + +type writer struct { + *bytes.Buffer + indent int + indentStr string +} + +func newWriter() *writer { + return &writer{ + Buffer: &bytes.Buffer{}, + } +} + +func (w *writer) F(format string, args ...interface{}) { + _, err := w.Write([]byte(w.indentStr)) + if err != nil { + panic(err) + } + + _, err = fmt.Fprintf(w, format, args...) + if err != nil { + panic(err) + } + + _, err = fmt.Fprintln(w) + if err != nil { + panic(err) + } + +} + +func (w *writer) Indent() { + w.indent += 1 + w.updateIndent() +} + +func (w *writer) updateIndent() { + w.indentStr = "" + for i := 0; i < w.indent; i++ { + w.indentStr += " " + } +} + +func (w *writer) Dedent() { + w.indent -= 1 + w.updateIndent() +} diff --git a/orm/internal/codegen/table.go b/orm/internal/codegen/table.go index 7f49037fa55d..b1f21cececa6 100644 --- a/orm/internal/codegen/table.go +++ b/orm/internal/codegen/table.go @@ -61,7 +61,7 @@ func (t tableGen) getTableInterface() { t.P("type ", t.messageTableInterfaceName(t.msg), " interface {") t.P("Insert(ctx ", contextPkg.Ident("Context"), ", ", t.param(t.msg.GoIdent.GoName), " *", t.QualifiedGoIdent(t.msg.GoIdent), ") error") if t.table.PrimaryKey.AutoIncrement { - t.P("InsertReturning", t.fieldsToCamelCase(t.table.PrimaryKey.Fields), "(ctx ", contextPkg.Ident("Context"), ", ", t.param(t.msg.GoIdent.GoName), " *", t.QualifiedGoIdent(t.msg.GoIdent), ") (uint64, error)") + t.P("InsertReturning", fieldsToCamelCase(t.table.PrimaryKey.Fields), "(ctx ", contextPkg.Ident("Context"), ", ", t.param(t.msg.GoIdent.GoName), " *", t.QualifiedGoIdent(t.msg.GoIdent), ") (uint64, error)") } t.P("Update(ctx ", contextPkg.Ident("Context"), ", ", t.param(t.msg.GoIdent.GoName), " *", t.QualifiedGoIdent(t.msg.GoIdent), ") error") t.P("Save(ctx ", contextPkg.Ident("Context"), ", ", t.param(t.msg.GoIdent.GoName), " *", t.QualifiedGoIdent(t.msg.GoIdent), ") error") @@ -86,7 +86,7 @@ func (t tableGen) getTableInterface() { // returns the has and get (in that order) function signature for unique indexes. func (t tableGen) uniqueIndexSig(idxFields string) (string, string, string) { fieldsSlc := strings.Split(idxFields, ",") - camelFields := t.fieldsToCamelCase(idxFields) + camelFields := fieldsToCamelCase(idxFields) hasFuncName := "HasBy" + camelFields getFuncName := "GetBy" + camelFields @@ -180,7 +180,7 @@ func (t tableGen) genTableImpl() { } if t.table.PrimaryKey.AutoIncrement { - t.P(receiver, "InsertReturning", t.fieldsToCamelCase(t.table.PrimaryKey.Fields), "(ctx ", contextPkg.Ident("Context"), ", ", varName, " *", varTypeName, ") (uint64, error) {") + t.P(receiver, "InsertReturning", fieldsToCamelCase(t.table.PrimaryKey.Fields), "(ctx ", contextPkg.Ident("Context"), ", ", varName, " *", varTypeName, ") (uint64, error) {") t.P("return ", receiverVar, ".table.InsertReturningPKey(ctx, ", varName, ")") t.P("}") t.P() diff --git a/orm/internal/testpb/bank.cosmos_orm.go b/orm/internal/testpb/bank.cosmos_orm.go index 51a36e5b8035..0635179c20e8 100644 --- a/orm/internal/testpb/bank.cosmos_orm.go +++ b/orm/internal/testpb/bank.cosmos_orm.go @@ -4,7 +4,6 @@ package testpb import ( context "context" - ormlist "github.com/cosmos/cosmos-sdk/orm/model/ormlist" ormtable "github.com/cosmos/cosmos-sdk/orm/model/ormtable" ormerrors "github.com/cosmos/cosmos-sdk/orm/types/ormerrors" diff --git a/orm/internal/testpb/bank.pb.go b/orm/internal/testpb/bank.pb.go new file mode 100644 index 000000000000..e9d8ba52ae83 --- /dev/null +++ b/orm/internal/testpb/bank.pb.go @@ -0,0 +1,246 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: testpb/bank.proto + +package testpb + +import ( + _ "cosmossdk.io/api/cosmos/orm/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Balance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *Balance) Reset() { + *x = Balance{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Balance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Balance) ProtoMessage() {} + +func (x *Balance) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Balance.ProtoReflect.Descriptor instead. +func (*Balance) Descriptor() ([]byte, []int) { + return file_testpb_bank_proto_rawDescGZIP(), []int{0} +} + +func (x *Balance) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *Balance) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +func (x *Balance) GetAmount() uint64 { + if x != nil { + return x.Amount + } + return 0 +} + +type Supply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *Supply) Reset() { + *x = Supply{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Supply) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Supply) ProtoMessage() {} + +func (x *Supply) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Supply.ProtoReflect.Descriptor instead. +func (*Supply) Descriptor() ([]byte, []int) { + return file_testpb_bank_proto_rawDescGZIP(), []int{1} +} + +func (x *Supply) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +func (x *Supply) GetAmount() uint64 { + if x != nil { + return x.Amount + } + return 0 +} + +var File_testpb_bank_proto protoreflect.FileDescriptor + +var file_testpb_bank_proto_rawDesc = []byte{ + 0x0a, 0x11, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x62, 0x61, 0x6e, 0x6b, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x1a, 0x17, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x6d, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x77, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, + 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, + 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x24, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x1e, 0x0a, + 0x0f, 0x0a, 0x0d, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x12, 0x09, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x10, 0x01, 0x18, 0x01, 0x22, 0x49, 0x0a, + 0x06, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x11, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x0b, 0x0a, 0x07, 0x0a, + 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x42, 0x81, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x42, 0x09, 0x42, 0x61, 0x6e, 0x6b, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, + 0x64, 0x6b, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x54, + 0x65, 0x73, 0x74, 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2, 0x02, + 0x12, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_testpb_bank_proto_rawDescOnce sync.Once + file_testpb_bank_proto_rawDescData = file_testpb_bank_proto_rawDesc +) + +func file_testpb_bank_proto_rawDescGZIP() []byte { + file_testpb_bank_proto_rawDescOnce.Do(func() { + file_testpb_bank_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_bank_proto_rawDescData) + }) + return file_testpb_bank_proto_rawDescData +} + +var file_testpb_bank_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_testpb_bank_proto_goTypes = []interface{}{ + (*Balance)(nil), // 0: testpb.Balance + (*Supply)(nil), // 1: testpb.Supply +} +var file_testpb_bank_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_testpb_bank_proto_init() } +func file_testpb_bank_proto_init() { + if File_testpb_bank_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_testpb_bank_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Balance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Supply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_testpb_bank_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_testpb_bank_proto_goTypes, + DependencyIndexes: file_testpb_bank_proto_depIdxs, + MessageInfos: file_testpb_bank_proto_msgTypes, + }.Build() + File_testpb_bank_proto = out.File + file_testpb_bank_proto_rawDesc = nil + file_testpb_bank_proto_goTypes = nil + file_testpb_bank_proto_depIdxs = nil +} diff --git a/orm/internal/testpb/bank.pulsar.go b/orm/internal/testpb/bank.pulsar.go deleted file mode 100644 index e3b6412c7ec7..000000000000 --- a/orm/internal/testpb/bank.pulsar.go +++ /dev/null @@ -1,1227 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package testpb - -import ( - _ "cosmossdk.io/api/cosmos/orm/v1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Balance protoreflect.MessageDescriptor - fd_Balance_address protoreflect.FieldDescriptor - fd_Balance_denom protoreflect.FieldDescriptor - fd_Balance_amount protoreflect.FieldDescriptor -) - -func init() { - file_testpb_bank_proto_init() - md_Balance = File_testpb_bank_proto.Messages().ByName("Balance") - fd_Balance_address = md_Balance.Fields().ByName("address") - fd_Balance_denom = md_Balance.Fields().ByName("denom") - fd_Balance_amount = md_Balance.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_Balance)(nil) - -type fastReflection_Balance Balance - -func (x *Balance) ProtoReflect() protoreflect.Message { - return (*fastReflection_Balance)(x) -} - -func (x *Balance) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_bank_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 _fastReflection_Balance_messageType fastReflection_Balance_messageType -var _ protoreflect.MessageType = fastReflection_Balance_messageType{} - -type fastReflection_Balance_messageType struct{} - -func (x fastReflection_Balance_messageType) Zero() protoreflect.Message { - return (*fastReflection_Balance)(nil) -} -func (x fastReflection_Balance_messageType) New() protoreflect.Message { - return new(fastReflection_Balance) -} -func (x fastReflection_Balance_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Balance -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Balance) Descriptor() protoreflect.MessageDescriptor { - return md_Balance -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Balance) Type() protoreflect.MessageType { - return _fastReflection_Balance_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Balance) New() protoreflect.Message { - return new(fastReflection_Balance) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Balance) Interface() protoreflect.ProtoMessage { - return (*Balance)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Balance) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_Balance_address, value) { - return - } - } - if x.Denom != "" { - value := protoreflect.ValueOfString(x.Denom) - if !f(fd_Balance_denom, value) { - return - } - } - if x.Amount != uint64(0) { - value := protoreflect.ValueOfUint64(x.Amount) - if !f(fd_Balance_amount, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Balance) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.Balance.address": - return x.Address != "" - case "testpb.Balance.denom": - return x.Denom != "" - case "testpb.Balance.amount": - return x.Amount != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Balance")) - } - panic(fmt.Errorf("message testpb.Balance does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Balance) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.Balance.address": - x.Address = "" - case "testpb.Balance.denom": - x.Denom = "" - case "testpb.Balance.amount": - x.Amount = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Balance")) - } - panic(fmt.Errorf("message testpb.Balance does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Balance) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.Balance.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "testpb.Balance.denom": - value := x.Denom - return protoreflect.ValueOfString(value) - case "testpb.Balance.amount": - value := x.Amount - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Balance")) - } - panic(fmt.Errorf("message testpb.Balance does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Balance) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.Balance.address": - x.Address = value.Interface().(string) - case "testpb.Balance.denom": - x.Denom = value.Interface().(string) - case "testpb.Balance.amount": - x.Amount = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Balance")) - } - panic(fmt.Errorf("message testpb.Balance does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Balance) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.Balance.address": - panic(fmt.Errorf("field address of message testpb.Balance is not mutable")) - case "testpb.Balance.denom": - panic(fmt.Errorf("field denom of message testpb.Balance is not mutable")) - case "testpb.Balance.amount": - panic(fmt.Errorf("field amount of message testpb.Balance is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Balance")) - } - panic(fmt.Errorf("message testpb.Balance does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Balance) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.Balance.address": - return protoreflect.ValueOfString("") - case "testpb.Balance.denom": - return protoreflect.ValueOfString("") - case "testpb.Balance.amount": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Balance")) - } - panic(fmt.Errorf("message testpb.Balance does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Balance) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.Balance", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Balance) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Balance) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Balance) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Balance) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Balance) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Denom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Amount != 0 { - n += 1 + runtime.Sov(uint64(x.Amount)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Balance) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Amount != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) - i-- - dAtA[i] = 0x18 - } - if len(x.Denom) > 0 { - i -= len(x.Denom) - copy(dAtA[i:], x.Denom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Balance) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Balance: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Balance: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - x.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Amount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_Supply protoreflect.MessageDescriptor - fd_Supply_denom protoreflect.FieldDescriptor - fd_Supply_amount protoreflect.FieldDescriptor -) - -func init() { - file_testpb_bank_proto_init() - md_Supply = File_testpb_bank_proto.Messages().ByName("Supply") - fd_Supply_denom = md_Supply.Fields().ByName("denom") - fd_Supply_amount = md_Supply.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_Supply)(nil) - -type fastReflection_Supply Supply - -func (x *Supply) ProtoReflect() protoreflect.Message { - return (*fastReflection_Supply)(x) -} - -func (x *Supply) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_bank_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 _fastReflection_Supply_messageType fastReflection_Supply_messageType -var _ protoreflect.MessageType = fastReflection_Supply_messageType{} - -type fastReflection_Supply_messageType struct{} - -func (x fastReflection_Supply_messageType) Zero() protoreflect.Message { - return (*fastReflection_Supply)(nil) -} -func (x fastReflection_Supply_messageType) New() protoreflect.Message { - return new(fastReflection_Supply) -} -func (x fastReflection_Supply_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Supply -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Supply) Descriptor() protoreflect.MessageDescriptor { - return md_Supply -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Supply) Type() protoreflect.MessageType { - return _fastReflection_Supply_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Supply) New() protoreflect.Message { - return new(fastReflection_Supply) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Supply) Interface() protoreflect.ProtoMessage { - return (*Supply)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Supply) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Denom != "" { - value := protoreflect.ValueOfString(x.Denom) - if !f(fd_Supply_denom, value) { - return - } - } - if x.Amount != uint64(0) { - value := protoreflect.ValueOfUint64(x.Amount) - if !f(fd_Supply_amount, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Supply) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.Supply.denom": - return x.Denom != "" - case "testpb.Supply.amount": - return x.Amount != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Supply")) - } - panic(fmt.Errorf("message testpb.Supply does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Supply) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.Supply.denom": - x.Denom = "" - case "testpb.Supply.amount": - x.Amount = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Supply")) - } - panic(fmt.Errorf("message testpb.Supply does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Supply) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.Supply.denom": - value := x.Denom - return protoreflect.ValueOfString(value) - case "testpb.Supply.amount": - value := x.Amount - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Supply")) - } - panic(fmt.Errorf("message testpb.Supply does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Supply) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.Supply.denom": - x.Denom = value.Interface().(string) - case "testpb.Supply.amount": - x.Amount = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Supply")) - } - panic(fmt.Errorf("message testpb.Supply does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Supply) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.Supply.denom": - panic(fmt.Errorf("field denom of message testpb.Supply is not mutable")) - case "testpb.Supply.amount": - panic(fmt.Errorf("field amount of message testpb.Supply is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Supply")) - } - panic(fmt.Errorf("message testpb.Supply does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Supply) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.Supply.denom": - return protoreflect.ValueOfString("") - case "testpb.Supply.amount": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.Supply")) - } - panic(fmt.Errorf("message testpb.Supply does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Supply) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.Supply", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Supply) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Supply) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Supply) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Supply) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Supply) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Denom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Amount != 0 { - n += 1 + runtime.Sov(uint64(x.Amount)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Supply) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Amount != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) - i-- - dAtA[i] = 0x10 - } - if len(x.Denom) > 0 { - i -= len(x.Denom) - copy(dAtA[i:], x.Denom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Supply) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Supply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Supply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - x.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Amount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: testpb/bank.proto - -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 Balance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` - Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *Balance) Reset() { - *x = Balance{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_bank_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Balance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Balance) ProtoMessage() {} - -// Deprecated: Use Balance.ProtoReflect.Descriptor instead. -func (*Balance) Descriptor() ([]byte, []int) { - return file_testpb_bank_proto_rawDescGZIP(), []int{0} -} - -func (x *Balance) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *Balance) GetDenom() string { - if x != nil { - return x.Denom - } - return "" -} - -func (x *Balance) GetAmount() uint64 { - if x != nil { - return x.Amount - } - return 0 -} - -type Supply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` - Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *Supply) Reset() { - *x = Supply{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_bank_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Supply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Supply) ProtoMessage() {} - -// Deprecated: Use Supply.ProtoReflect.Descriptor instead. -func (*Supply) Descriptor() ([]byte, []int) { - return file_testpb_bank_proto_rawDescGZIP(), []int{1} -} - -func (x *Supply) GetDenom() string { - if x != nil { - return x.Denom - } - return "" -} - -func (x *Supply) GetAmount() uint64 { - if x != nil { - return x.Amount - } - return 0 -} - -var File_testpb_bank_proto protoreflect.FileDescriptor - -var file_testpb_bank_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x62, 0x61, 0x6e, 0x6b, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x1a, 0x17, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x6d, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x77, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, - 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x24, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x1e, 0x0a, - 0x0f, 0x0a, 0x0d, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x64, 0x65, 0x6e, 0x6f, 0x6d, - 0x12, 0x09, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x10, 0x01, 0x18, 0x01, 0x22, 0x49, 0x0a, - 0x06, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x11, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x0b, 0x0a, 0x07, 0x0a, - 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x42, 0x81, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, - 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x42, 0x09, 0x42, 0x61, 0x6e, 0x6b, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, - 0x64, 0x6b, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, - 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x54, - 0x65, 0x73, 0x74, 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2, 0x02, - 0x12, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_testpb_bank_proto_rawDescOnce sync.Once - file_testpb_bank_proto_rawDescData = file_testpb_bank_proto_rawDesc -) - -func file_testpb_bank_proto_rawDescGZIP() []byte { - file_testpb_bank_proto_rawDescOnce.Do(func() { - file_testpb_bank_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_bank_proto_rawDescData) - }) - return file_testpb_bank_proto_rawDescData -} - -var file_testpb_bank_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_testpb_bank_proto_goTypes = []interface{}{ - (*Balance)(nil), // 0: testpb.Balance - (*Supply)(nil), // 1: testpb.Supply -} -var file_testpb_bank_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_testpb_bank_proto_init() } -func file_testpb_bank_proto_init() { - if File_testpb_bank_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_testpb_bank_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Balance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_testpb_bank_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Supply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_testpb_bank_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_testpb_bank_proto_goTypes, - DependencyIndexes: file_testpb_bank_proto_depIdxs, - MessageInfos: file_testpb_bank_proto_msgTypes, - }.Build() - File_testpb_bank_proto = out.File - file_testpb_bank_proto_rawDesc = nil - file_testpb_bank_proto_goTypes = nil - file_testpb_bank_proto_depIdxs = nil -} diff --git a/orm/internal/testpb/bank_query.pb.go b/orm/internal/testpb/bank_query.pb.go new file mode 100644 index 000000000000..e919044cef90 --- /dev/null +++ b/orm/internal/testpb/bank_query.pb.go @@ -0,0 +1,1408 @@ +// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: testpb/bank_query.proto + +package testpb + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GetBalanceRequest is the BankQuery/GetBalanceRequest request type. +type GetBalanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // address specifies the value of the address field in the primary key. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // denom specifies the value of the denom field in the primary key. + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (x *GetBalanceRequest) Reset() { + *x = GetBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBalanceRequest) ProtoMessage() {} + +func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead. +func (*GetBalanceRequest) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{0} +} + +func (x *GetBalanceRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *GetBalanceRequest) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +// GetBalanceResponse is the BankQuery/GetBalanceResponse response type. +type GetBalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value is the response value. + Value *Balance `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetBalanceResponse) Reset() { + *x = GetBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBalanceResponse) ProtoMessage() {} + +func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead. +func (*GetBalanceResponse) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{1} +} + +func (x *GetBalanceResponse) GetValue() *Balance { + if x != nil { + return x.Value + } + return nil +} + +// ListBalanceRequest is the BankQuery/ListBalanceRequest request type. +type ListBalanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // query specifies the type of query - either a prefix or range query. + // + // Types that are assignable to Query: + // *ListBalanceRequest_PrefixQuery + // *ListBalanceRequest_RangeQuery_ + Query isListBalanceRequest_Query `protobuf_oneof:"query"` + // pagination specifies optional pagination parameters. + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListBalanceRequest) Reset() { + *x = ListBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBalanceRequest) ProtoMessage() {} + +func (x *ListBalanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBalanceRequest.ProtoReflect.Descriptor instead. +func (*ListBalanceRequest) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{2} +} + +func (m *ListBalanceRequest) GetQuery() isListBalanceRequest_Query { + if m != nil { + return m.Query + } + return nil +} + +func (x *ListBalanceRequest) GetPrefixQuery() *ListBalanceRequest_IndexKey { + if x, ok := x.GetQuery().(*ListBalanceRequest_PrefixQuery); ok { + return x.PrefixQuery + } + return nil +} + +func (x *ListBalanceRequest) GetRangeQuery() *ListBalanceRequest_RangeQuery { + if x, ok := x.GetQuery().(*ListBalanceRequest_RangeQuery_); ok { + return x.RangeQuery + } + return nil +} + +func (x *ListBalanceRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type isListBalanceRequest_Query interface { + isListBalanceRequest_Query() +} + +type ListBalanceRequest_PrefixQuery struct { + // prefix_query specifies the index key value to use for the prefix query. + PrefixQuery *ListBalanceRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"` +} + +type ListBalanceRequest_RangeQuery_ struct { + // range_query specifies the index key from/to values to use for the range query. + RangeQuery *ListBalanceRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"` +} + +func (*ListBalanceRequest_PrefixQuery) isListBalanceRequest_Query() {} + +func (*ListBalanceRequest_RangeQuery_) isListBalanceRequest_Query() {} + +// ListBalanceResponse is the BankQuery/ListBalanceResponse response type. +type ListBalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // values are the results of the query. + Values []*Balance `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // pagination is the pagination response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListBalanceResponse) Reset() { + *x = ListBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBalanceResponse) ProtoMessage() {} + +func (x *ListBalanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBalanceResponse.ProtoReflect.Descriptor instead. +func (*ListBalanceResponse) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{3} +} + +func (x *ListBalanceResponse) GetValues() []*Balance { + if x != nil { + return x.Values + } + return nil +} + +func (x *ListBalanceResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// GetSupplyRequest is the BankQuery/GetSupplyRequest request type. +type GetSupplyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // denom specifies the value of the denom field in the primary key. + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (x *GetSupplyRequest) Reset() { + *x = GetSupplyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSupplyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSupplyRequest) ProtoMessage() {} + +func (x *GetSupplyRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSupplyRequest.ProtoReflect.Descriptor instead. +func (*GetSupplyRequest) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{4} +} + +func (x *GetSupplyRequest) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +// GetSupplyResponse is the BankQuery/GetSupplyResponse response type. +type GetSupplyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value is the response value. + Value *Supply `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetSupplyResponse) Reset() { + *x = GetSupplyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSupplyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSupplyResponse) ProtoMessage() {} + +func (x *GetSupplyResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSupplyResponse.ProtoReflect.Descriptor instead. +func (*GetSupplyResponse) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{5} +} + +func (x *GetSupplyResponse) GetValue() *Supply { + if x != nil { + return x.Value + } + return nil +} + +// ListSupplyRequest is the BankQuery/ListSupplyRequest request type. +type ListSupplyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // query specifies the type of query - either a prefix or range query. + // + // Types that are assignable to Query: + // *ListSupplyRequest_PrefixQuery + // *ListSupplyRequest_RangeQuery_ + Query isListSupplyRequest_Query `protobuf_oneof:"query"` + // pagination specifies optional pagination parameters. + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListSupplyRequest) Reset() { + *x = ListSupplyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSupplyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSupplyRequest) ProtoMessage() {} + +func (x *ListSupplyRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSupplyRequest.ProtoReflect.Descriptor instead. +func (*ListSupplyRequest) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{6} +} + +func (m *ListSupplyRequest) GetQuery() isListSupplyRequest_Query { + if m != nil { + return m.Query + } + return nil +} + +func (x *ListSupplyRequest) GetPrefixQuery() *ListSupplyRequest_IndexKey { + if x, ok := x.GetQuery().(*ListSupplyRequest_PrefixQuery); ok { + return x.PrefixQuery + } + return nil +} + +func (x *ListSupplyRequest) GetRangeQuery() *ListSupplyRequest_RangeQuery { + if x, ok := x.GetQuery().(*ListSupplyRequest_RangeQuery_); ok { + return x.RangeQuery + } + return nil +} + +func (x *ListSupplyRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type isListSupplyRequest_Query interface { + isListSupplyRequest_Query() +} + +type ListSupplyRequest_PrefixQuery struct { + // prefix_query specifies the index key value to use for the prefix query. + PrefixQuery *ListSupplyRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"` +} + +type ListSupplyRequest_RangeQuery_ struct { + // range_query specifies the index key from/to values to use for the range query. + RangeQuery *ListSupplyRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"` +} + +func (*ListSupplyRequest_PrefixQuery) isListSupplyRequest_Query() {} + +func (*ListSupplyRequest_RangeQuery_) isListSupplyRequest_Query() {} + +// ListSupplyResponse is the BankQuery/ListSupplyResponse response type. +type ListSupplyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // values are the results of the query. + Values []*Supply `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // pagination is the pagination response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListSupplyResponse) Reset() { + *x = ListSupplyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSupplyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSupplyResponse) ProtoMessage() {} + +func (x *ListSupplyResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSupplyResponse.ProtoReflect.Descriptor instead. +func (*ListSupplyResponse) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{7} +} + +func (x *ListSupplyResponse) GetValues() []*Supply { + if x != nil { + return x.Values + } + return nil +} + +func (x *ListSupplyResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// IndexKey specifies the value of an index key to use in prefix and range queries. +type ListBalanceRequest_IndexKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key specifies the index key value. + // + // Types that are assignable to Key: + // *ListBalanceRequest_IndexKey_AddressDenom_ + // *ListBalanceRequest_IndexKey_Denom_ + Key isListBalanceRequest_IndexKey_Key `protobuf_oneof:"key"` +} + +func (x *ListBalanceRequest_IndexKey) Reset() { + *x = ListBalanceRequest_IndexKey{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBalanceRequest_IndexKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBalanceRequest_IndexKey) ProtoMessage() {} + +func (x *ListBalanceRequest_IndexKey) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBalanceRequest_IndexKey.ProtoReflect.Descriptor instead. +func (*ListBalanceRequest_IndexKey) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{2, 0} +} + +func (m *ListBalanceRequest_IndexKey) GetKey() isListBalanceRequest_IndexKey_Key { + if m != nil { + return m.Key + } + return nil +} + +func (x *ListBalanceRequest_IndexKey) GetAddressDenom() *ListBalanceRequest_IndexKey_AddressDenom { + if x, ok := x.GetKey().(*ListBalanceRequest_IndexKey_AddressDenom_); ok { + return x.AddressDenom + } + return nil +} + +func (x *ListBalanceRequest_IndexKey) GetDenom() *ListBalanceRequest_IndexKey_Denom { + if x, ok := x.GetKey().(*ListBalanceRequest_IndexKey_Denom_); ok { + return x.Denom + } + return nil +} + +type isListBalanceRequest_IndexKey_Key interface { + isListBalanceRequest_IndexKey_Key() +} + +type ListBalanceRequest_IndexKey_AddressDenom_ struct { + // address_denom specifies the value of the AddressDenom index key to use in the query. + AddressDenom *ListBalanceRequest_IndexKey_AddressDenom `protobuf:"bytes,1,opt,name=address_denom,json=addressDenom,proto3,oneof"` +} + +type ListBalanceRequest_IndexKey_Denom_ struct { + // denom specifies the value of the Denom index key to use in the query. + Denom *ListBalanceRequest_IndexKey_Denom `protobuf:"bytes,2,opt,name=denom,proto3,oneof"` +} + +func (*ListBalanceRequest_IndexKey_AddressDenom_) isListBalanceRequest_IndexKey_Key() {} + +func (*ListBalanceRequest_IndexKey_Denom_) isListBalanceRequest_IndexKey_Key() {} + +// RangeQuery specifies the from/to index keys for a range query. +type ListBalanceRequest_RangeQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + From *ListBalanceRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + To *ListBalanceRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (x *ListBalanceRequest_RangeQuery) Reset() { + *x = ListBalanceRequest_RangeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBalanceRequest_RangeQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBalanceRequest_RangeQuery) ProtoMessage() {} + +func (x *ListBalanceRequest_RangeQuery) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBalanceRequest_RangeQuery.ProtoReflect.Descriptor instead. +func (*ListBalanceRequest_RangeQuery) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *ListBalanceRequest_RangeQuery) GetFrom() *ListBalanceRequest_IndexKey { + if x != nil { + return x.From + } + return nil +} + +func (x *ListBalanceRequest_RangeQuery) GetTo() *ListBalanceRequest_IndexKey { + if x != nil { + return x.To + } + return nil +} + +type ListBalanceRequest_IndexKey_AddressDenom struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // address is the value of the address field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Address *string `protobuf:"bytes,1,opt,name=address,proto3,oneof" json:"address,omitempty"` + // denom is the value of the denom field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Denom *string `protobuf:"bytes,2,opt,name=denom,proto3,oneof" json:"denom,omitempty"` +} + +func (x *ListBalanceRequest_IndexKey_AddressDenom) Reset() { + *x = ListBalanceRequest_IndexKey_AddressDenom{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBalanceRequest_IndexKey_AddressDenom) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBalanceRequest_IndexKey_AddressDenom) ProtoMessage() {} + +func (x *ListBalanceRequest_IndexKey_AddressDenom) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBalanceRequest_IndexKey_AddressDenom.ProtoReflect.Descriptor instead. +func (*ListBalanceRequest_IndexKey_AddressDenom) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{2, 0, 0} +} + +func (x *ListBalanceRequest_IndexKey_AddressDenom) GetAddress() string { + if x != nil && x.Address != nil { + return *x.Address + } + return "" +} + +func (x *ListBalanceRequest_IndexKey_AddressDenom) GetDenom() string { + if x != nil && x.Denom != nil { + return *x.Denom + } + return "" +} + +type ListBalanceRequest_IndexKey_Denom struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // denom is the value of the denom field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Denom *string `protobuf:"bytes,1,opt,name=denom,proto3,oneof" json:"denom,omitempty"` +} + +func (x *ListBalanceRequest_IndexKey_Denom) Reset() { + *x = ListBalanceRequest_IndexKey_Denom{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBalanceRequest_IndexKey_Denom) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBalanceRequest_IndexKey_Denom) ProtoMessage() {} + +func (x *ListBalanceRequest_IndexKey_Denom) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBalanceRequest_IndexKey_Denom.ProtoReflect.Descriptor instead. +func (*ListBalanceRequest_IndexKey_Denom) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{2, 0, 1} +} + +func (x *ListBalanceRequest_IndexKey_Denom) GetDenom() string { + if x != nil && x.Denom != nil { + return *x.Denom + } + return "" +} + +// IndexKey specifies the value of an index key to use in prefix and range queries. +type ListSupplyRequest_IndexKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key specifies the index key value. + // + // Types that are assignable to Key: + // *ListSupplyRequest_IndexKey_Denom_ + Key isListSupplyRequest_IndexKey_Key `protobuf_oneof:"key"` +} + +func (x *ListSupplyRequest_IndexKey) Reset() { + *x = ListSupplyRequest_IndexKey{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSupplyRequest_IndexKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSupplyRequest_IndexKey) ProtoMessage() {} + +func (x *ListSupplyRequest_IndexKey) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSupplyRequest_IndexKey.ProtoReflect.Descriptor instead. +func (*ListSupplyRequest_IndexKey) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{6, 0} +} + +func (m *ListSupplyRequest_IndexKey) GetKey() isListSupplyRequest_IndexKey_Key { + if m != nil { + return m.Key + } + return nil +} + +func (x *ListSupplyRequest_IndexKey) GetDenom() *ListSupplyRequest_IndexKey_Denom { + if x, ok := x.GetKey().(*ListSupplyRequest_IndexKey_Denom_); ok { + return x.Denom + } + return nil +} + +type isListSupplyRequest_IndexKey_Key interface { + isListSupplyRequest_IndexKey_Key() +} + +type ListSupplyRequest_IndexKey_Denom_ struct { + // denom specifies the value of the Denom index key to use in the query. + Denom *ListSupplyRequest_IndexKey_Denom `protobuf:"bytes,1,opt,name=denom,proto3,oneof"` +} + +func (*ListSupplyRequest_IndexKey_Denom_) isListSupplyRequest_IndexKey_Key() {} + +// RangeQuery specifies the from/to index keys for a range query. +type ListSupplyRequest_RangeQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + From *ListSupplyRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + To *ListSupplyRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (x *ListSupplyRequest_RangeQuery) Reset() { + *x = ListSupplyRequest_RangeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSupplyRequest_RangeQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSupplyRequest_RangeQuery) ProtoMessage() {} + +func (x *ListSupplyRequest_RangeQuery) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSupplyRequest_RangeQuery.ProtoReflect.Descriptor instead. +func (*ListSupplyRequest_RangeQuery) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{6, 1} +} + +func (x *ListSupplyRequest_RangeQuery) GetFrom() *ListSupplyRequest_IndexKey { + if x != nil { + return x.From + } + return nil +} + +func (x *ListSupplyRequest_RangeQuery) GetTo() *ListSupplyRequest_IndexKey { + if x != nil { + return x.To + } + return nil +} + +type ListSupplyRequest_IndexKey_Denom struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // denom is the value of the denom field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Denom *string `protobuf:"bytes,1,opt,name=denom,proto3,oneof" json:"denom,omitempty"` +} + +func (x *ListSupplyRequest_IndexKey_Denom) Reset() { + *x = ListSupplyRequest_IndexKey_Denom{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_bank_query_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSupplyRequest_IndexKey_Denom) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSupplyRequest_IndexKey_Denom) ProtoMessage() {} + +func (x *ListSupplyRequest_IndexKey_Denom) ProtoReflect() protoreflect.Message { + mi := &file_testpb_bank_query_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSupplyRequest_IndexKey_Denom.ProtoReflect.Descriptor instead. +func (*ListSupplyRequest_IndexKey_Denom) Descriptor() ([]byte, []int) { + return file_testpb_bank_query_proto_rawDescGZIP(), []int{6, 0, 0} +} + +func (x *ListSupplyRequest_IndexKey_Denom) GetDenom() string { + if x != nil && x.Denom != nil { + return *x.Denom + } + return "" +} + +var File_testpb_bank_query_proto protoreflect.FileDescriptor + +var file_testpb_bank_query_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x62, 0x61, 0x6e, 0x6b, 0x5f, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x62, 0x61, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x43, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x3b, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0xb3, 0x05, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x0c, 0x70, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x48, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, + 0x00, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x46, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xbb, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, + 0x65, 0x79, 0x12, 0x57, 0x0a, 0x0d, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x64, 0x65, + 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x0c, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x41, 0x0a, 0x05, 0x64, + 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, + 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x1a, 0x5e, + 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x1d, + 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, + 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x1a, 0x2c, + 0x0a, 0x05, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x88, + 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x42, 0x05, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x1a, 0x7a, 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x37, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x33, 0x0a, 0x02, 0x74, 0x6f, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x02, 0x74, 0x6f, 0x42, + 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x87, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, + 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x27, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x28, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x39, 0x0a, 0x11, + 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x24, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf4, 0x03, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, + 0x0c, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x66, 0x69, + 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x47, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x81, 0x01, 0x0a, 0x08, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x4b, 0x65, 0x79, 0x12, 0x40, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x48, 0x00, 0x52, + 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x1a, 0x2c, 0x0a, 0x05, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, + 0x19, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x64, + 0x65, 0x6e, 0x6f, 0x6d, 0x42, 0x05, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x78, 0x0a, 0x0a, 0x52, + 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x36, 0x0a, 0x04, 0x66, 0x72, 0x6f, + 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x66, 0x72, 0x6f, + 0x6d, 0x12, 0x32, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, + 0x79, 0x52, 0x02, 0x74, 0x6f, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x85, + 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x53, + 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x47, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xa7, 0x02, 0x0a, 0x09, 0x42, 0x61, 0x6e, 0x6b, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x45, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x42, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0b, 0x4c, + 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, + 0x6c, 0x79, 0x12, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0a, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x42, 0x86, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x42, + 0x0e, 0x42, 0x61, 0x6e, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, + 0x6f, 0x72, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, + 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2, 0x02, 0x12, 0x54, 0x65, + 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_testpb_bank_query_proto_rawDescOnce sync.Once + file_testpb_bank_query_proto_rawDescData = file_testpb_bank_query_proto_rawDesc +) + +func file_testpb_bank_query_proto_rawDescGZIP() []byte { + file_testpb_bank_query_proto_rawDescOnce.Do(func() { + file_testpb_bank_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_bank_query_proto_rawDescData) + }) + return file_testpb_bank_query_proto_rawDescData +} + +var file_testpb_bank_query_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_testpb_bank_query_proto_goTypes = []interface{}{ + (*GetBalanceRequest)(nil), // 0: testpb.GetBalanceRequest + (*GetBalanceResponse)(nil), // 1: testpb.GetBalanceResponse + (*ListBalanceRequest)(nil), // 2: testpb.ListBalanceRequest + (*ListBalanceResponse)(nil), // 3: testpb.ListBalanceResponse + (*GetSupplyRequest)(nil), // 4: testpb.GetSupplyRequest + (*GetSupplyResponse)(nil), // 5: testpb.GetSupplyResponse + (*ListSupplyRequest)(nil), // 6: testpb.ListSupplyRequest + (*ListSupplyResponse)(nil), // 7: testpb.ListSupplyResponse + (*ListBalanceRequest_IndexKey)(nil), // 8: testpb.ListBalanceRequest.IndexKey + (*ListBalanceRequest_RangeQuery)(nil), // 9: testpb.ListBalanceRequest.RangeQuery + (*ListBalanceRequest_IndexKey_AddressDenom)(nil), // 10: testpb.ListBalanceRequest.IndexKey.AddressDenom + (*ListBalanceRequest_IndexKey_Denom)(nil), // 11: testpb.ListBalanceRequest.IndexKey.Denom + (*ListSupplyRequest_IndexKey)(nil), // 12: testpb.ListSupplyRequest.IndexKey + (*ListSupplyRequest_RangeQuery)(nil), // 13: testpb.ListSupplyRequest.RangeQuery + (*ListSupplyRequest_IndexKey_Denom)(nil), // 14: testpb.ListSupplyRequest.IndexKey.Denom + (*Balance)(nil), // 15: testpb.Balance + (*v1beta1.PageRequest)(nil), // 16: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 17: cosmos.base.query.v1beta1.PageResponse + (*Supply)(nil), // 18: testpb.Supply +} +var file_testpb_bank_query_proto_depIdxs = []int32{ + 15, // 0: testpb.GetBalanceResponse.value:type_name -> testpb.Balance + 8, // 1: testpb.ListBalanceRequest.prefix_query:type_name -> testpb.ListBalanceRequest.IndexKey + 9, // 2: testpb.ListBalanceRequest.range_query:type_name -> testpb.ListBalanceRequest.RangeQuery + 16, // 3: testpb.ListBalanceRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 15, // 4: testpb.ListBalanceResponse.values:type_name -> testpb.Balance + 17, // 5: testpb.ListBalanceResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 18, // 6: testpb.GetSupplyResponse.value:type_name -> testpb.Supply + 12, // 7: testpb.ListSupplyRequest.prefix_query:type_name -> testpb.ListSupplyRequest.IndexKey + 13, // 8: testpb.ListSupplyRequest.range_query:type_name -> testpb.ListSupplyRequest.RangeQuery + 16, // 9: testpb.ListSupplyRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 18, // 10: testpb.ListSupplyResponse.values:type_name -> testpb.Supply + 17, // 11: testpb.ListSupplyResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 10, // 12: testpb.ListBalanceRequest.IndexKey.address_denom:type_name -> testpb.ListBalanceRequest.IndexKey.AddressDenom + 11, // 13: testpb.ListBalanceRequest.IndexKey.denom:type_name -> testpb.ListBalanceRequest.IndexKey.Denom + 8, // 14: testpb.ListBalanceRequest.RangeQuery.from:type_name -> testpb.ListBalanceRequest.IndexKey + 8, // 15: testpb.ListBalanceRequest.RangeQuery.to:type_name -> testpb.ListBalanceRequest.IndexKey + 14, // 16: testpb.ListSupplyRequest.IndexKey.denom:type_name -> testpb.ListSupplyRequest.IndexKey.Denom + 12, // 17: testpb.ListSupplyRequest.RangeQuery.from:type_name -> testpb.ListSupplyRequest.IndexKey + 12, // 18: testpb.ListSupplyRequest.RangeQuery.to:type_name -> testpb.ListSupplyRequest.IndexKey + 0, // 19: testpb.BankQuery.GetBalance:input_type -> testpb.GetBalanceRequest + 2, // 20: testpb.BankQuery.ListBalance:input_type -> testpb.ListBalanceRequest + 4, // 21: testpb.BankQuery.GetSupply:input_type -> testpb.GetSupplyRequest + 6, // 22: testpb.BankQuery.ListSupply:input_type -> testpb.ListSupplyRequest + 1, // 23: testpb.BankQuery.GetBalance:output_type -> testpb.GetBalanceResponse + 3, // 24: testpb.BankQuery.ListBalance:output_type -> testpb.ListBalanceResponse + 5, // 25: testpb.BankQuery.GetSupply:output_type -> testpb.GetSupplyResponse + 7, // 26: testpb.BankQuery.ListSupply:output_type -> testpb.ListSupplyResponse + 23, // [23:27] is the sub-list for method output_type + 19, // [19:23] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name +} + +func init() { file_testpb_bank_query_proto_init() } +func file_testpb_bank_query_proto_init() { + if File_testpb_bank_query_proto != nil { + return + } + file_testpb_bank_proto_init() + if !protoimpl.UnsafeEnabled { + file_testpb_bank_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBalanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBalanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSupplyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSupplyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSupplyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSupplyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBalanceRequest_IndexKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBalanceRequest_RangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBalanceRequest_IndexKey_AddressDenom); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBalanceRequest_IndexKey_Denom); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSupplyRequest_IndexKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSupplyRequest_RangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_bank_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSupplyRequest_IndexKey_Denom); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_testpb_bank_query_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*ListBalanceRequest_PrefixQuery)(nil), + (*ListBalanceRequest_RangeQuery_)(nil), + } + file_testpb_bank_query_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*ListSupplyRequest_PrefixQuery)(nil), + (*ListSupplyRequest_RangeQuery_)(nil), + } + file_testpb_bank_query_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*ListBalanceRequest_IndexKey_AddressDenom_)(nil), + (*ListBalanceRequest_IndexKey_Denom_)(nil), + } + file_testpb_bank_query_proto_msgTypes[10].OneofWrappers = []interface{}{} + file_testpb_bank_query_proto_msgTypes[11].OneofWrappers = []interface{}{} + file_testpb_bank_query_proto_msgTypes[12].OneofWrappers = []interface{}{ + (*ListSupplyRequest_IndexKey_Denom_)(nil), + } + file_testpb_bank_query_proto_msgTypes[14].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_testpb_bank_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 15, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_testpb_bank_query_proto_goTypes, + DependencyIndexes: file_testpb_bank_query_proto_depIdxs, + MessageInfos: file_testpb_bank_query_proto_msgTypes, + }.Build() + File_testpb_bank_query_proto = out.File + file_testpb_bank_query_proto_rawDesc = nil + file_testpb_bank_query_proto_goTypes = nil + file_testpb_bank_query_proto_depIdxs = nil +} diff --git a/orm/internal/testpb/bank_query.proto b/orm/internal/testpb/bank_query.proto new file mode 100644 index 000000000000..a5beea2240d8 --- /dev/null +++ b/orm/internal/testpb/bank_query.proto @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT. +syntax = "proto3"; +package testpb; + +import "cosmos/base/query/v1beta1/pagination.proto"; +import "testpb/bank.proto"; + +// BankQuery queries the state of the tables specified by testpb/bank.proto. +service BankQuery { + // Get queries the Balance table by its primary key. + rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse) {} + // ListBalance queries the Balance table using prefix and range queries against defined indexes. + rpc ListBalance (ListBalanceRequest) returns (ListBalanceResponse) {} + // Get queries the Supply table by its primary key. + rpc GetSupply (GetSupplyRequest) returns (GetSupplyResponse) {} + // ListSupply queries the Supply table using prefix and range queries against defined indexes. + rpc ListSupply (ListSupplyRequest) returns (ListSupplyResponse) {} +} + +// GetBalanceRequest is the BankQuery/GetBalanceRequest request type. +message GetBalanceRequest { + // address specifies the value of the address field in the primary key. + string address = 1; + // denom specifies the value of the denom field in the primary key. + string denom = 2; +} + +// GetBalanceResponse is the BankQuery/GetBalanceResponse response type. +message GetBalanceResponse { + // value is the response value. + Balance value = 1; +} + +// ListBalanceRequest is the BankQuery/ListBalanceRequest request type. +message ListBalanceRequest { + // IndexKey specifies the value of an index key to use in prefix and range queries. + message IndexKey { + // key specifies the index key value. + oneof key { + // address_denom specifies the value of the AddressDenom index key to use in the query. + AddressDenom address_denom = 1; + // denom specifies the value of the Denom index key to use in the query. + Denom denom = 2; + } + + message AddressDenom { + // address is the value of the address field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string address = 1; + // denom is the value of the denom field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string denom = 2; + } + + message Denom { + // denom is the value of the denom field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string denom = 1; + } + } + + // query specifies the type of query - either a prefix or range query. + oneof query { + // prefix_query specifies the index key value to use for the prefix query. + IndexKey prefix_query = 1; + // range_query specifies the index key from/to values to use for the range query. + RangeQuery range_query = 2; + } + // pagination specifies optional pagination parameters. + cosmos.base.query.v1beta1.PageRequest pagination = 3; + + // RangeQuery specifies the from/to index keys for a range query. + message RangeQuery { + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + IndexKey from = 1; + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + IndexKey to = 2; + } +} + +// ListBalanceResponse is the BankQuery/ListBalanceResponse response type. +message ListBalanceResponse { + // values are the results of the query. + repeated Balance values = 1; + // pagination is the pagination response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// GetSupplyRequest is the BankQuery/GetSupplyRequest request type. +message GetSupplyRequest { + // denom specifies the value of the denom field in the primary key. + string denom = 1; +} + +// GetSupplyResponse is the BankQuery/GetSupplyResponse response type. +message GetSupplyResponse { + // value is the response value. + Supply value = 1; +} + +// ListSupplyRequest is the BankQuery/ListSupplyRequest request type. +message ListSupplyRequest { + // IndexKey specifies the value of an index key to use in prefix and range queries. + message IndexKey { + // key specifies the index key value. + oneof key { + // denom specifies the value of the Denom index key to use in the query. + Denom denom = 1; + } + + message Denom { + // denom is the value of the denom field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string denom = 1; + } + } + + // query specifies the type of query - either a prefix or range query. + oneof query { + // prefix_query specifies the index key value to use for the prefix query. + IndexKey prefix_query = 1; + // range_query specifies the index key from/to values to use for the range query. + RangeQuery range_query = 2; + } + // pagination specifies optional pagination parameters. + cosmos.base.query.v1beta1.PageRequest pagination = 3; + + // RangeQuery specifies the from/to index keys for a range query. + message RangeQuery { + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + IndexKey from = 1; + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + IndexKey to = 2; + } +} + +// ListSupplyResponse is the BankQuery/ListSupplyResponse response type. +message ListSupplyResponse { + // values are the results of the query. + repeated Supply values = 1; + // pagination is the pagination response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + diff --git a/orm/internal/testpb/bank_query_grpc.pb.go b/orm/internal/testpb/bank_query_grpc.pb.go new file mode 100644 index 000000000000..026bed3f832c --- /dev/null +++ b/orm/internal/testpb/bank_query_grpc.pb.go @@ -0,0 +1,221 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc (unknown) +// source: testpb/bank_query.proto + +package testpb + +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 + +// BankQueryClient is the client API for BankQuery 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 BankQueryClient interface { + // Get queries the Balance table by its primary key. + GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) + // ListBalance queries the Balance table using prefix and range queries against defined indexes. + ListBalance(ctx context.Context, in *ListBalanceRequest, opts ...grpc.CallOption) (*ListBalanceResponse, error) + // Get queries the Supply table by its primary key. + GetSupply(ctx context.Context, in *GetSupplyRequest, opts ...grpc.CallOption) (*GetSupplyResponse, error) + // ListSupply queries the Supply table using prefix and range queries against defined indexes. + ListSupply(ctx context.Context, in *ListSupplyRequest, opts ...grpc.CallOption) (*ListSupplyResponse, error) +} + +type bankQueryClient struct { + cc grpc.ClientConnInterface +} + +func NewBankQueryClient(cc grpc.ClientConnInterface) BankQueryClient { + return &bankQueryClient{cc} +} + +func (c *bankQueryClient) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) { + out := new(GetBalanceResponse) + err := c.cc.Invoke(ctx, "/testpb.BankQuery/GetBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bankQueryClient) ListBalance(ctx context.Context, in *ListBalanceRequest, opts ...grpc.CallOption) (*ListBalanceResponse, error) { + out := new(ListBalanceResponse) + err := c.cc.Invoke(ctx, "/testpb.BankQuery/ListBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bankQueryClient) GetSupply(ctx context.Context, in *GetSupplyRequest, opts ...grpc.CallOption) (*GetSupplyResponse, error) { + out := new(GetSupplyResponse) + err := c.cc.Invoke(ctx, "/testpb.BankQuery/GetSupply", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bankQueryClient) ListSupply(ctx context.Context, in *ListSupplyRequest, opts ...grpc.CallOption) (*ListSupplyResponse, error) { + out := new(ListSupplyResponse) + err := c.cc.Invoke(ctx, "/testpb.BankQuery/ListSupply", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// BankQueryServer is the server API for BankQuery service. +// All implementations must embed UnimplementedBankQueryServer +// for forward compatibility +type BankQueryServer interface { + // Get queries the Balance table by its primary key. + GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) + // ListBalance queries the Balance table using prefix and range queries against defined indexes. + ListBalance(context.Context, *ListBalanceRequest) (*ListBalanceResponse, error) + // Get queries the Supply table by its primary key. + GetSupply(context.Context, *GetSupplyRequest) (*GetSupplyResponse, error) + // ListSupply queries the Supply table using prefix and range queries against defined indexes. + ListSupply(context.Context, *ListSupplyRequest) (*ListSupplyResponse, error) + mustEmbedUnimplementedBankQueryServer() +} + +// UnimplementedBankQueryServer must be embedded to have forward compatible implementations. +type UnimplementedBankQueryServer struct { +} + +func (UnimplementedBankQueryServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBalance not implemented") +} +func (UnimplementedBankQueryServer) ListBalance(context.Context, *ListBalanceRequest) (*ListBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListBalance not implemented") +} +func (UnimplementedBankQueryServer) GetSupply(context.Context, *GetSupplyRequest) (*GetSupplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSupply not implemented") +} +func (UnimplementedBankQueryServer) ListSupply(context.Context, *ListSupplyRequest) (*ListSupplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSupply not implemented") +} +func (UnimplementedBankQueryServer) mustEmbedUnimplementedBankQueryServer() {} + +// UnsafeBankQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to BankQueryServer will +// result in compilation errors. +type UnsafeBankQueryServer interface { + mustEmbedUnimplementedBankQueryServer() +} + +func RegisterBankQueryServer(s grpc.ServiceRegistrar, srv BankQueryServer) { + s.RegisterService(&BankQuery_ServiceDesc, srv) +} + +func _BankQuery_GetBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BankQueryServer).GetBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.BankQuery/GetBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BankQueryServer).GetBalance(ctx, req.(*GetBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BankQuery_ListBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BankQueryServer).ListBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.BankQuery/ListBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BankQueryServer).ListBalance(ctx, req.(*ListBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BankQuery_GetSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSupplyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BankQueryServer).GetSupply(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.BankQuery/GetSupply", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BankQueryServer).GetSupply(ctx, req.(*GetSupplyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BankQuery_ListSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSupplyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BankQueryServer).ListSupply(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.BankQuery/ListSupply", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BankQueryServer).ListSupply(ctx, req.(*ListSupplyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// BankQuery_ServiceDesc is the grpc.ServiceDesc for BankQuery service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var BankQuery_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "testpb.BankQuery", + HandlerType: (*BankQueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetBalance", + Handler: _BankQuery_GetBalance_Handler, + }, + { + MethodName: "ListBalance", + Handler: _BankQuery_ListBalance_Handler, + }, + { + MethodName: "GetSupply", + Handler: _BankQuery_GetSupply_Handler, + }, + { + MethodName: "ListSupply", + Handler: _BankQuery_ListSupply_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "testpb/bank_query.proto", +} diff --git a/orm/internal/testpb/test_schema.cosmos_orm.go b/orm/internal/testpb/test_schema.cosmos_orm.go index 0306c97c8c56..a5cf2a6fbd11 100644 --- a/orm/internal/testpb/test_schema.cosmos_orm.go +++ b/orm/internal/testpb/test_schema.cosmos_orm.go @@ -4,7 +4,6 @@ package testpb import ( context "context" - ormlist "github.com/cosmos/cosmos-sdk/orm/model/ormlist" ormtable "github.com/cosmos/cosmos-sdk/orm/model/ormtable" ormerrors "github.com/cosmos/cosmos-sdk/orm/types/ormerrors" diff --git a/orm/internal/testpb/test_schema.pb.go b/orm/internal/testpb/test_schema.pb.go new file mode 100644 index 000000000000..4f98d3208c47 --- /dev/null +++ b/orm/internal/testpb/test_schema.pb.go @@ -0,0 +1,914 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: testpb/test_schema.proto + +package testpb + +import ( + _ "cosmossdk.io/api/cosmos/orm/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Enum int32 + +const ( + Enum_ENUM_UNSPECIFIED Enum = 0 + Enum_ENUM_ONE Enum = 1 + Enum_ENUM_TWO Enum = 2 + Enum_ENUM_FIVE Enum = 5 + Enum_ENUM_NEG_THREE Enum = -3 +) + +// Enum value maps for Enum. +var ( + Enum_name = map[int32]string{ + 0: "ENUM_UNSPECIFIED", + 1: "ENUM_ONE", + 2: "ENUM_TWO", + 5: "ENUM_FIVE", + -3: "ENUM_NEG_THREE", + } + Enum_value = map[string]int32{ + "ENUM_UNSPECIFIED": 0, + "ENUM_ONE": 1, + "ENUM_TWO": 2, + "ENUM_FIVE": 5, + "ENUM_NEG_THREE": -3, + } +) + +func (x Enum) Enum() *Enum { + p := new(Enum) + *p = x + return p +} + +func (x Enum) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Enum) Descriptor() protoreflect.EnumDescriptor { + return file_testpb_test_schema_proto_enumTypes[0].Descriptor() +} + +func (Enum) Type() protoreflect.EnumType { + return &file_testpb_test_schema_proto_enumTypes[0] +} + +func (x Enum) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Enum.Descriptor instead. +func (Enum) EnumDescriptor() ([]byte, []int) { + return file_testpb_test_schema_proto_rawDescGZIP(), []int{0} +} + +type ExampleTable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Valid key fields: + U32 uint32 `protobuf:"varint,1,opt,name=u32,proto3" json:"u32,omitempty"` + U64 uint64 `protobuf:"varint,2,opt,name=u64,proto3" json:"u64,omitempty"` + Str string `protobuf:"bytes,3,opt,name=str,proto3" json:"str,omitempty"` + Bz []byte `protobuf:"bytes,4,opt,name=bz,proto3" json:"bz,omitempty"` + Ts *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=ts,proto3" json:"ts,omitempty"` + Dur *durationpb.Duration `protobuf:"bytes,6,opt,name=dur,proto3" json:"dur,omitempty"` + I32 int32 `protobuf:"varint,7,opt,name=i32,proto3" json:"i32,omitempty"` + S32 int32 `protobuf:"zigzag32,8,opt,name=s32,proto3" json:"s32,omitempty"` + Sf32 int32 `protobuf:"fixed32,9,opt,name=sf32,proto3" json:"sf32,omitempty"` + I64 int64 `protobuf:"varint,10,opt,name=i64,proto3" json:"i64,omitempty"` + S64 int64 `protobuf:"zigzag64,11,opt,name=s64,proto3" json:"s64,omitempty"` + Sf64 int64 `protobuf:"fixed64,12,opt,name=sf64,proto3" json:"sf64,omitempty"` + F32 uint32 `protobuf:"fixed32,13,opt,name=f32,proto3" json:"f32,omitempty"` + F64 uint64 `protobuf:"fixed64,14,opt,name=f64,proto3" json:"f64,omitempty"` + B bool `protobuf:"varint,15,opt,name=b,proto3" json:"b,omitempty"` + E Enum `protobuf:"varint,16,opt,name=e,proto3,enum=testpb.Enum" json:"e,omitempty"` + // Invalid key fields: + Repeated []uint32 `protobuf:"varint,17,rep,packed,name=repeated,proto3" json:"repeated,omitempty"` + Map map[string]uint32 `protobuf:"bytes,18,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + Msg *ExampleTable_ExampleMessage `protobuf:"bytes,19,opt,name=msg,proto3" json:"msg,omitempty"` + // Types that are assignable to Sum: + // *ExampleTable_Oneof + Sum isExampleTable_Sum `protobuf_oneof:"sum"` +} + +func (x *ExampleTable) Reset() { + *x = ExampleTable{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExampleTable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExampleTable) ProtoMessage() {} + +func (x *ExampleTable) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExampleTable.ProtoReflect.Descriptor instead. +func (*ExampleTable) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_proto_rawDescGZIP(), []int{0} +} + +func (x *ExampleTable) GetU32() uint32 { + if x != nil { + return x.U32 + } + return 0 +} + +func (x *ExampleTable) GetU64() uint64 { + if x != nil { + return x.U64 + } + return 0 +} + +func (x *ExampleTable) GetStr() string { + if x != nil { + return x.Str + } + return "" +} + +func (x *ExampleTable) GetBz() []byte { + if x != nil { + return x.Bz + } + return nil +} + +func (x *ExampleTable) GetTs() *timestamppb.Timestamp { + if x != nil { + return x.Ts + } + return nil +} + +func (x *ExampleTable) GetDur() *durationpb.Duration { + if x != nil { + return x.Dur + } + return nil +} + +func (x *ExampleTable) GetI32() int32 { + if x != nil { + return x.I32 + } + return 0 +} + +func (x *ExampleTable) GetS32() int32 { + if x != nil { + return x.S32 + } + return 0 +} + +func (x *ExampleTable) GetSf32() int32 { + if x != nil { + return x.Sf32 + } + return 0 +} + +func (x *ExampleTable) GetI64() int64 { + if x != nil { + return x.I64 + } + return 0 +} + +func (x *ExampleTable) GetS64() int64 { + if x != nil { + return x.S64 + } + return 0 +} + +func (x *ExampleTable) GetSf64() int64 { + if x != nil { + return x.Sf64 + } + return 0 +} + +func (x *ExampleTable) GetF32() uint32 { + if x != nil { + return x.F32 + } + return 0 +} + +func (x *ExampleTable) GetF64() uint64 { + if x != nil { + return x.F64 + } + return 0 +} + +func (x *ExampleTable) GetB() bool { + if x != nil { + return x.B + } + return false +} + +func (x *ExampleTable) GetE() Enum { + if x != nil { + return x.E + } + return Enum_ENUM_UNSPECIFIED +} + +func (x *ExampleTable) GetRepeated() []uint32 { + if x != nil { + return x.Repeated + } + return nil +} + +func (x *ExampleTable) GetMap() map[string]uint32 { + if x != nil { + return x.Map + } + return nil +} + +func (x *ExampleTable) GetMsg() *ExampleTable_ExampleMessage { + if x != nil { + return x.Msg + } + return nil +} + +func (m *ExampleTable) GetSum() isExampleTable_Sum { + if m != nil { + return m.Sum + } + return nil +} + +func (x *ExampleTable) GetOneof() uint32 { + if x, ok := x.GetSum().(*ExampleTable_Oneof); ok { + return x.Oneof + } + return 0 +} + +type isExampleTable_Sum interface { + isExampleTable_Sum() +} + +type ExampleTable_Oneof struct { + Oneof uint32 `protobuf:"varint,20,opt,name=oneof,proto3,oneof"` +} + +func (*ExampleTable_Oneof) isExampleTable_Sum() {} + +type ExampleAutoIncrementTable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + X string `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"` + Y int32 `protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty"` +} + +func (x *ExampleAutoIncrementTable) Reset() { + *x = ExampleAutoIncrementTable{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExampleAutoIncrementTable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExampleAutoIncrementTable) ProtoMessage() {} + +func (x *ExampleAutoIncrementTable) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExampleAutoIncrementTable.ProtoReflect.Descriptor instead. +func (*ExampleAutoIncrementTable) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_proto_rawDescGZIP(), []int{1} +} + +func (x *ExampleAutoIncrementTable) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ExampleAutoIncrementTable) GetX() string { + if x != nil { + return x.X + } + return "" +} + +func (x *ExampleAutoIncrementTable) GetY() int32 { + if x != nil { + return x.Y + } + return 0 +} + +type ExampleSingleton struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` + Bar int32 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` +} + +func (x *ExampleSingleton) Reset() { + *x = ExampleSingleton{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExampleSingleton) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExampleSingleton) ProtoMessage() {} + +func (x *ExampleSingleton) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExampleSingleton.ProtoReflect.Descriptor instead. +func (*ExampleSingleton) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_proto_rawDescGZIP(), []int{2} +} + +func (x *ExampleSingleton) GetFoo() string { + if x != nil { + return x.Foo + } + return "" +} + +func (x *ExampleSingleton) GetBar() int32 { + if x != nil { + return x.Bar + } + return 0 +} + +type ExampleTimestamp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Ts *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ts,proto3" json:"ts,omitempty"` +} + +func (x *ExampleTimestamp) Reset() { + *x = ExampleTimestamp{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExampleTimestamp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExampleTimestamp) ProtoMessage() {} + +func (x *ExampleTimestamp) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExampleTimestamp.ProtoReflect.Descriptor instead. +func (*ExampleTimestamp) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_proto_rawDescGZIP(), []int{3} +} + +func (x *ExampleTimestamp) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ExampleTimestamp) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ExampleTimestamp) GetTs() *timestamppb.Timestamp { + if x != nil { + return x.Ts + } + return nil +} + +type SimpleExample struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Unique string `protobuf:"bytes,2,opt,name=unique,proto3" json:"unique,omitempty"` + NotUnique string `protobuf:"bytes,3,opt,name=not_unique,json=notUnique,proto3" json:"not_unique,omitempty"` +} + +func (x *SimpleExample) Reset() { + *x = SimpleExample{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SimpleExample) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SimpleExample) ProtoMessage() {} + +func (x *SimpleExample) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SimpleExample.ProtoReflect.Descriptor instead. +func (*SimpleExample) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_proto_rawDescGZIP(), []int{4} +} + +func (x *SimpleExample) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SimpleExample) GetUnique() string { + if x != nil { + return x.Unique + } + return "" +} + +func (x *SimpleExample) GetNotUnique() string { + if x != nil { + return x.NotUnique + } + return "" +} + +// ExampleAutoIncFieldName is a table for testing InsertReturning. +type ExampleAutoIncFieldName struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Foo uint64 `protobuf:"varint,1,opt,name=foo,proto3" json:"foo,omitempty"` + Bar uint64 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` +} + +func (x *ExampleAutoIncFieldName) Reset() { + *x = ExampleAutoIncFieldName{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExampleAutoIncFieldName) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExampleAutoIncFieldName) ProtoMessage() {} + +func (x *ExampleAutoIncFieldName) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExampleAutoIncFieldName.ProtoReflect.Descriptor instead. +func (*ExampleAutoIncFieldName) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_proto_rawDescGZIP(), []int{5} +} + +func (x *ExampleAutoIncFieldName) GetFoo() uint64 { + if x != nil { + return x.Foo + } + return 0 +} + +func (x *ExampleAutoIncFieldName) GetBar() uint64 { + if x != nil { + return x.Bar + } + return 0 +} + +type ExampleTable_ExampleMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` + Bar int32 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` +} + +func (x *ExampleTable_ExampleMessage) Reset() { + *x = ExampleTable_ExampleMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExampleTable_ExampleMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExampleTable_ExampleMessage) ProtoMessage() {} + +func (x *ExampleTable_ExampleMessage) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExampleTable_ExampleMessage.ProtoReflect.Descriptor instead. +func (*ExampleTable_ExampleMessage) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *ExampleTable_ExampleMessage) GetFoo() string { + if x != nil { + return x.Foo + } + return "" +} + +func (x *ExampleTable_ExampleMessage) GetBar() int32 { + if x != nil { + return x.Bar + } + return 0 +} + +var File_testpb_test_schema_proto protoreflect.FileDescriptor + +var file_testpb_test_schema_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, + 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x05, 0x0a, + 0x0c, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, + 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, + 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x73, 0x74, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x02, 0x62, 0x7a, 0x12, 0x2a, 0x0a, 0x02, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x02, 0x74, 0x73, 0x12, + 0x2b, 0x0a, 0x03, 0x64, 0x75, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x64, 0x75, 0x72, 0x12, 0x10, 0x0a, 0x03, + 0x69, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x10, + 0x0a, 0x03, 0x73, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x11, 0x52, 0x03, 0x73, 0x33, 0x32, + 0x12, 0x12, 0x0a, 0x04, 0x73, 0x66, 0x33, 0x32, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x04, + 0x73, 0x66, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x03, 0x69, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x36, 0x34, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x12, 0x52, 0x03, 0x73, 0x36, 0x34, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x66, 0x36, 0x34, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x10, 0x52, 0x04, 0x73, 0x66, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, + 0x66, 0x33, 0x32, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x07, 0x52, 0x03, 0x66, 0x33, 0x32, 0x12, 0x10, + 0x0a, 0x03, 0x66, 0x36, 0x34, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x66, 0x36, 0x34, + 0x12, 0x0c, 0x0a, 0x01, 0x62, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x01, 0x62, 0x12, 0x1a, + 0x0a, 0x01, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x01, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, + 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x65, + 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2f, 0x0a, 0x03, 0x6d, 0x61, 0x70, 0x18, 0x12, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x03, 0x6d, 0x61, 0x70, 0x12, 0x35, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x13, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x16, + 0x0a, 0x05, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, + 0x05, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x1a, 0x36, 0x0a, 0x08, 0x4d, 0x61, 0x70, 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, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x34, + 0x0a, 0x0e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, + 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x03, 0x62, 0x61, 0x72, 0x3a, 0x3f, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x39, 0x0a, 0x0d, 0x0a, 0x0b, + 0x75, 0x33, 0x32, 0x2c, 0x69, 0x36, 0x34, 0x2c, 0x73, 0x74, 0x72, 0x12, 0x0d, 0x0a, 0x07, 0x75, + 0x36, 0x34, 0x2c, 0x73, 0x74, 0x72, 0x10, 0x01, 0x18, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x73, 0x74, + 0x72, 0x2c, 0x75, 0x33, 0x32, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x62, 0x7a, 0x2c, 0x73, 0x74, + 0x72, 0x10, 0x03, 0x18, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x62, 0x0a, 0x19, + 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x01, 0x79, 0x3a, 0x19, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x13, 0x0a, 0x06, 0x0a, + 0x02, 0x69, 0x64, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x01, 0x78, 0x10, 0x01, 0x18, 0x01, 0x18, 0x03, + 0x22, 0x40, 0x0a, 0x10, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x74, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x03, 0x62, 0x61, 0x72, 0x3a, 0x08, 0xfa, 0x9e, 0xd3, 0x8e, 0x03, 0x02, + 0x08, 0x02, 0x22, 0x7c, 0x0a, 0x10, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x02, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x02, 0x74, 0x73, 0x3a, 0x18, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x12, 0x0a, 0x06, + 0x0a, 0x02, 0x69, 0x64, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x74, 0x73, 0x10, 0x01, 0x18, 0x04, + 0x22, 0x7a, 0x0a, 0x0d, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x6e, 0x6f, 0x74, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6e, 0x6f, 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x3a, 0x1e, 0xf2, 0x9e, + 0xd3, 0x8e, 0x03, 0x18, 0x0a, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0c, 0x0a, 0x06, + 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x10, 0x01, 0x18, 0x01, 0x18, 0x05, 0x22, 0x50, 0x0a, 0x17, + 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x62, 0x61, 0x72, 0x3a, 0x11, 0xf2, 0x9e, 0xd3, + 0x8e, 0x03, 0x0b, 0x0a, 0x07, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x10, 0x01, 0x18, 0x06, 0x2a, 0x64, + 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, + 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x4e, + 0x55, 0x4d, 0x5f, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x4e, 0x55, 0x4d, + 0x5f, 0x46, 0x49, 0x56, 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x0e, 0x45, 0x4e, 0x55, 0x4d, 0x5f, + 0x4e, 0x45, 0x47, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x10, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0x01, 0x42, 0x87, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x42, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, + 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, + 0xe2, 0x02, 0x12, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_testpb_test_schema_proto_rawDescOnce sync.Once + file_testpb_test_schema_proto_rawDescData = file_testpb_test_schema_proto_rawDesc +) + +func file_testpb_test_schema_proto_rawDescGZIP() []byte { + file_testpb_test_schema_proto_rawDescOnce.Do(func() { + file_testpb_test_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_test_schema_proto_rawDescData) + }) + return file_testpb_test_schema_proto_rawDescData +} + +var file_testpb_test_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_testpb_test_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_testpb_test_schema_proto_goTypes = []interface{}{ + (Enum)(0), // 0: testpb.Enum + (*ExampleTable)(nil), // 1: testpb.ExampleTable + (*ExampleAutoIncrementTable)(nil), // 2: testpb.ExampleAutoIncrementTable + (*ExampleSingleton)(nil), // 3: testpb.ExampleSingleton + (*ExampleTimestamp)(nil), // 4: testpb.ExampleTimestamp + (*SimpleExample)(nil), // 5: testpb.SimpleExample + (*ExampleAutoIncFieldName)(nil), // 6: testpb.ExampleAutoIncFieldName + nil, // 7: testpb.ExampleTable.MapEntry + (*ExampleTable_ExampleMessage)(nil), // 8: testpb.ExampleTable.ExampleMessage + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 10: google.protobuf.Duration +} +var file_testpb_test_schema_proto_depIdxs = []int32{ + 9, // 0: testpb.ExampleTable.ts:type_name -> google.protobuf.Timestamp + 10, // 1: testpb.ExampleTable.dur:type_name -> google.protobuf.Duration + 0, // 2: testpb.ExampleTable.e:type_name -> testpb.Enum + 7, // 3: testpb.ExampleTable.map:type_name -> testpb.ExampleTable.MapEntry + 8, // 4: testpb.ExampleTable.msg:type_name -> testpb.ExampleTable.ExampleMessage + 9, // 5: testpb.ExampleTimestamp.ts:type_name -> google.protobuf.Timestamp + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_testpb_test_schema_proto_init() } +func file_testpb_test_schema_proto_init() { + if File_testpb_test_schema_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_testpb_test_schema_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleTable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleAutoIncrementTable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleSingleton); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleTimestamp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleExample); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleAutoIncFieldName); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExampleTable_ExampleMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_testpb_test_schema_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*ExampleTable_Oneof)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_testpb_test_schema_proto_rawDesc, + NumEnums: 1, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_testpb_test_schema_proto_goTypes, + DependencyIndexes: file_testpb_test_schema_proto_depIdxs, + EnumInfos: file_testpb_test_schema_proto_enumTypes, + MessageInfos: file_testpb_test_schema_proto_msgTypes, + }.Build() + File_testpb_test_schema_proto = out.File + file_testpb_test_schema_proto_rawDesc = nil + file_testpb_test_schema_proto_goTypes = nil + file_testpb_test_schema_proto_depIdxs = nil +} diff --git a/orm/internal/testpb/test_schema.pulsar.go b/orm/internal/testpb/test_schema.pulsar.go deleted file mode 100644 index e80a5381d2ce..000000000000 --- a/orm/internal/testpb/test_schema.pulsar.go +++ /dev/null @@ -1,5669 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package testpb - -import ( - _ "cosmossdk.io/api/cosmos/orm/v1" - binary "encoding/binary" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sort "sort" - sync "sync" -) - -var _ protoreflect.List = (*_ExampleTable_17_list)(nil) - -type _ExampleTable_17_list struct { - list *[]uint32 -} - -func (x *_ExampleTable_17_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_ExampleTable_17_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint32((*x.list)[i]) -} - -func (x *_ExampleTable_17_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := (uint32)(valueUnwrapped) - (*x.list)[i] = concreteValue -} - -func (x *_ExampleTable_17_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := (uint32)(valueUnwrapped) - *x.list = append(*x.list, concreteValue) -} - -func (x *_ExampleTable_17_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message ExampleTable at list field Repeated as it is not of Message kind")) -} - -func (x *_ExampleTable_17_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_ExampleTable_17_list) NewElement() protoreflect.Value { - v := uint32(0) - return protoreflect.ValueOfUint32(v) -} - -func (x *_ExampleTable_17_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.Map = (*_ExampleTable_18_map)(nil) - -type _ExampleTable_18_map struct { - m *map[string]uint32 -} - -func (x *_ExampleTable_18_map) Len() int { - if x.m == nil { - return 0 - } - return len(*x.m) -} - -func (x *_ExampleTable_18_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { - if x.m == nil { - return - } - for k, v := range *x.m { - mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) - mapValue := protoreflect.ValueOfUint32(v) - if !f(mapKey, mapValue) { - break - } - } -} - -func (x *_ExampleTable_18_map) Has(key protoreflect.MapKey) bool { - if x.m == nil { - return false - } - keyUnwrapped := key.String() - concreteValue := keyUnwrapped - _, ok := (*x.m)[concreteValue] - return ok -} - -func (x *_ExampleTable_18_map) Clear(key protoreflect.MapKey) { - if x.m == nil { - return - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - delete(*x.m, concreteKey) -} - -func (x *_ExampleTable_18_map) Get(key protoreflect.MapKey) protoreflect.Value { - if x.m == nil { - return protoreflect.Value{} - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if !ok { - return protoreflect.Value{} - } - return protoreflect.ValueOfUint32(v) -} - -func (x *_ExampleTable_18_map) Set(key protoreflect.MapKey, value protoreflect.Value) { - if !key.IsValid() || !value.IsValid() { - panic("invalid key or value provided") - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - valueUnwrapped := value.Uint() - concreteValue := (uint32)(valueUnwrapped) - (*x.m)[concreteKey] = concreteValue -} - -func (x *_ExampleTable_18_map) Mutable(key protoreflect.MapKey) protoreflect.Value { - panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") -} - -func (x *_ExampleTable_18_map) NewValue() protoreflect.Value { - v := uint32(0) - return protoreflect.ValueOfUint32(v) -} - -func (x *_ExampleTable_18_map) IsValid() bool { - return x.m != nil -} - -var ( - md_ExampleTable protoreflect.MessageDescriptor - fd_ExampleTable_u32 protoreflect.FieldDescriptor - fd_ExampleTable_u64 protoreflect.FieldDescriptor - fd_ExampleTable_str protoreflect.FieldDescriptor - fd_ExampleTable_bz protoreflect.FieldDescriptor - fd_ExampleTable_ts protoreflect.FieldDescriptor - fd_ExampleTable_dur protoreflect.FieldDescriptor - fd_ExampleTable_i32 protoreflect.FieldDescriptor - fd_ExampleTable_s32 protoreflect.FieldDescriptor - fd_ExampleTable_sf32 protoreflect.FieldDescriptor - fd_ExampleTable_i64 protoreflect.FieldDescriptor - fd_ExampleTable_s64 protoreflect.FieldDescriptor - fd_ExampleTable_sf64 protoreflect.FieldDescriptor - fd_ExampleTable_f32 protoreflect.FieldDescriptor - fd_ExampleTable_f64 protoreflect.FieldDescriptor - fd_ExampleTable_b protoreflect.FieldDescriptor - fd_ExampleTable_e protoreflect.FieldDescriptor - fd_ExampleTable_repeated protoreflect.FieldDescriptor - fd_ExampleTable_map protoreflect.FieldDescriptor - fd_ExampleTable_msg protoreflect.FieldDescriptor - fd_ExampleTable_oneof protoreflect.FieldDescriptor -) - -func init() { - file_testpb_test_schema_proto_init() - md_ExampleTable = File_testpb_test_schema_proto.Messages().ByName("ExampleTable") - fd_ExampleTable_u32 = md_ExampleTable.Fields().ByName("u32") - fd_ExampleTable_u64 = md_ExampleTable.Fields().ByName("u64") - fd_ExampleTable_str = md_ExampleTable.Fields().ByName("str") - fd_ExampleTable_bz = md_ExampleTable.Fields().ByName("bz") - fd_ExampleTable_ts = md_ExampleTable.Fields().ByName("ts") - fd_ExampleTable_dur = md_ExampleTable.Fields().ByName("dur") - fd_ExampleTable_i32 = md_ExampleTable.Fields().ByName("i32") - fd_ExampleTable_s32 = md_ExampleTable.Fields().ByName("s32") - fd_ExampleTable_sf32 = md_ExampleTable.Fields().ByName("sf32") - fd_ExampleTable_i64 = md_ExampleTable.Fields().ByName("i64") - fd_ExampleTable_s64 = md_ExampleTable.Fields().ByName("s64") - fd_ExampleTable_sf64 = md_ExampleTable.Fields().ByName("sf64") - fd_ExampleTable_f32 = md_ExampleTable.Fields().ByName("f32") - fd_ExampleTable_f64 = md_ExampleTable.Fields().ByName("f64") - fd_ExampleTable_b = md_ExampleTable.Fields().ByName("b") - fd_ExampleTable_e = md_ExampleTable.Fields().ByName("e") - fd_ExampleTable_repeated = md_ExampleTable.Fields().ByName("repeated") - fd_ExampleTable_map = md_ExampleTable.Fields().ByName("map") - fd_ExampleTable_msg = md_ExampleTable.Fields().ByName("msg") - fd_ExampleTable_oneof = md_ExampleTable.Fields().ByName("oneof") -} - -var _ protoreflect.Message = (*fastReflection_ExampleTable)(nil) - -type fastReflection_ExampleTable ExampleTable - -func (x *ExampleTable) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExampleTable)(x) -} - -func (x *ExampleTable) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_test_schema_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 _fastReflection_ExampleTable_messageType fastReflection_ExampleTable_messageType -var _ protoreflect.MessageType = fastReflection_ExampleTable_messageType{} - -type fastReflection_ExampleTable_messageType struct{} - -func (x fastReflection_ExampleTable_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExampleTable)(nil) -} -func (x fastReflection_ExampleTable_messageType) New() protoreflect.Message { - return new(fastReflection_ExampleTable) -} -func (x fastReflection_ExampleTable_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleTable -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ExampleTable) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleTable -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExampleTable) Type() protoreflect.MessageType { - return _fastReflection_ExampleTable_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExampleTable) New() protoreflect.Message { - return new(fastReflection_ExampleTable) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ExampleTable) Interface() protoreflect.ProtoMessage { - return (*ExampleTable)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ExampleTable) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.U32 != uint32(0) { - value := protoreflect.ValueOfUint32(x.U32) - if !f(fd_ExampleTable_u32, value) { - return - } - } - if x.U64 != uint64(0) { - value := protoreflect.ValueOfUint64(x.U64) - if !f(fd_ExampleTable_u64, value) { - return - } - } - if x.Str != "" { - value := protoreflect.ValueOfString(x.Str) - if !f(fd_ExampleTable_str, value) { - return - } - } - if len(x.Bz) != 0 { - value := protoreflect.ValueOfBytes(x.Bz) - if !f(fd_ExampleTable_bz, value) { - return - } - } - if x.Ts != nil { - value := protoreflect.ValueOfMessage(x.Ts.ProtoReflect()) - if !f(fd_ExampleTable_ts, value) { - return - } - } - if x.Dur != nil { - value := protoreflect.ValueOfMessage(x.Dur.ProtoReflect()) - if !f(fd_ExampleTable_dur, value) { - return - } - } - if x.I32 != int32(0) { - value := protoreflect.ValueOfInt32(x.I32) - if !f(fd_ExampleTable_i32, value) { - return - } - } - if x.S32 != int32(0) { - value := protoreflect.ValueOfInt32(x.S32) - if !f(fd_ExampleTable_s32, value) { - return - } - } - if x.Sf32 != int32(0) { - value := protoreflect.ValueOfInt32(x.Sf32) - if !f(fd_ExampleTable_sf32, value) { - return - } - } - if x.I64 != int64(0) { - value := protoreflect.ValueOfInt64(x.I64) - if !f(fd_ExampleTable_i64, value) { - return - } - } - if x.S64 != int64(0) { - value := protoreflect.ValueOfInt64(x.S64) - if !f(fd_ExampleTable_s64, value) { - return - } - } - if x.Sf64 != int64(0) { - value := protoreflect.ValueOfInt64(x.Sf64) - if !f(fd_ExampleTable_sf64, value) { - return - } - } - if x.F32 != uint32(0) { - value := protoreflect.ValueOfUint32(x.F32) - if !f(fd_ExampleTable_f32, value) { - return - } - } - if x.F64 != uint64(0) { - value := protoreflect.ValueOfUint64(x.F64) - if !f(fd_ExampleTable_f64, value) { - return - } - } - if x.B != false { - value := protoreflect.ValueOfBool(x.B) - if !f(fd_ExampleTable_b, value) { - return - } - } - if x.E != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.E)) - if !f(fd_ExampleTable_e, value) { - return - } - } - if len(x.Repeated) != 0 { - value := protoreflect.ValueOfList(&_ExampleTable_17_list{list: &x.Repeated}) - if !f(fd_ExampleTable_repeated, value) { - return - } - } - if len(x.Map) != 0 { - value := protoreflect.ValueOfMap(&_ExampleTable_18_map{m: &x.Map}) - if !f(fd_ExampleTable_map, value) { - return - } - } - if x.Msg != nil { - value := protoreflect.ValueOfMessage(x.Msg.ProtoReflect()) - if !f(fd_ExampleTable_msg, value) { - return - } - } - if x.Sum != nil { - switch o := x.Sum.(type) { - case *ExampleTable_Oneof: - v := o.Oneof - value := protoreflect.ValueOfUint32(v) - if !f(fd_ExampleTable_oneof, value) { - return - } - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ExampleTable) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.ExampleTable.u32": - return x.U32 != uint32(0) - case "testpb.ExampleTable.u64": - return x.U64 != uint64(0) - case "testpb.ExampleTable.str": - return x.Str != "" - case "testpb.ExampleTable.bz": - return len(x.Bz) != 0 - case "testpb.ExampleTable.ts": - return x.Ts != nil - case "testpb.ExampleTable.dur": - return x.Dur != nil - case "testpb.ExampleTable.i32": - return x.I32 != int32(0) - case "testpb.ExampleTable.s32": - return x.S32 != int32(0) - case "testpb.ExampleTable.sf32": - return x.Sf32 != int32(0) - case "testpb.ExampleTable.i64": - return x.I64 != int64(0) - case "testpb.ExampleTable.s64": - return x.S64 != int64(0) - case "testpb.ExampleTable.sf64": - return x.Sf64 != int64(0) - case "testpb.ExampleTable.f32": - return x.F32 != uint32(0) - case "testpb.ExampleTable.f64": - return x.F64 != uint64(0) - case "testpb.ExampleTable.b": - return x.B != false - case "testpb.ExampleTable.e": - return x.E != 0 - case "testpb.ExampleTable.repeated": - return len(x.Repeated) != 0 - case "testpb.ExampleTable.map": - return len(x.Map) != 0 - case "testpb.ExampleTable.msg": - return x.Msg != nil - case "testpb.ExampleTable.oneof": - if x.Sum == nil { - return false - } else if _, ok := x.Sum.(*ExampleTable_Oneof); ok { - return true - } else { - return false - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable")) - } - panic(fmt.Errorf("message testpb.ExampleTable does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTable) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.ExampleTable.u32": - x.U32 = uint32(0) - case "testpb.ExampleTable.u64": - x.U64 = uint64(0) - case "testpb.ExampleTable.str": - x.Str = "" - case "testpb.ExampleTable.bz": - x.Bz = nil - case "testpb.ExampleTable.ts": - x.Ts = nil - case "testpb.ExampleTable.dur": - x.Dur = nil - case "testpb.ExampleTable.i32": - x.I32 = int32(0) - case "testpb.ExampleTable.s32": - x.S32 = int32(0) - case "testpb.ExampleTable.sf32": - x.Sf32 = int32(0) - case "testpb.ExampleTable.i64": - x.I64 = int64(0) - case "testpb.ExampleTable.s64": - x.S64 = int64(0) - case "testpb.ExampleTable.sf64": - x.Sf64 = int64(0) - case "testpb.ExampleTable.f32": - x.F32 = uint32(0) - case "testpb.ExampleTable.f64": - x.F64 = uint64(0) - case "testpb.ExampleTable.b": - x.B = false - case "testpb.ExampleTable.e": - x.E = 0 - case "testpb.ExampleTable.repeated": - x.Repeated = nil - case "testpb.ExampleTable.map": - x.Map = nil - case "testpb.ExampleTable.msg": - x.Msg = nil - case "testpb.ExampleTable.oneof": - x.Sum = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable")) - } - panic(fmt.Errorf("message testpb.ExampleTable does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExampleTable) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.ExampleTable.u32": - value := x.U32 - return protoreflect.ValueOfUint32(value) - case "testpb.ExampleTable.u64": - value := x.U64 - return protoreflect.ValueOfUint64(value) - case "testpb.ExampleTable.str": - value := x.Str - return protoreflect.ValueOfString(value) - case "testpb.ExampleTable.bz": - value := x.Bz - return protoreflect.ValueOfBytes(value) - case "testpb.ExampleTable.ts": - value := x.Ts - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.ExampleTable.dur": - value := x.Dur - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.ExampleTable.i32": - value := x.I32 - return protoreflect.ValueOfInt32(value) - case "testpb.ExampleTable.s32": - value := x.S32 - return protoreflect.ValueOfInt32(value) - case "testpb.ExampleTable.sf32": - value := x.Sf32 - return protoreflect.ValueOfInt32(value) - case "testpb.ExampleTable.i64": - value := x.I64 - return protoreflect.ValueOfInt64(value) - case "testpb.ExampleTable.s64": - value := x.S64 - return protoreflect.ValueOfInt64(value) - case "testpb.ExampleTable.sf64": - value := x.Sf64 - return protoreflect.ValueOfInt64(value) - case "testpb.ExampleTable.f32": - value := x.F32 - return protoreflect.ValueOfUint32(value) - case "testpb.ExampleTable.f64": - value := x.F64 - return protoreflect.ValueOfUint64(value) - case "testpb.ExampleTable.b": - value := x.B - return protoreflect.ValueOfBool(value) - case "testpb.ExampleTable.e": - value := x.E - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "testpb.ExampleTable.repeated": - if len(x.Repeated) == 0 { - return protoreflect.ValueOfList(&_ExampleTable_17_list{}) - } - listValue := &_ExampleTable_17_list{list: &x.Repeated} - return protoreflect.ValueOfList(listValue) - case "testpb.ExampleTable.map": - if len(x.Map) == 0 { - return protoreflect.ValueOfMap(&_ExampleTable_18_map{}) - } - mapValue := &_ExampleTable_18_map{m: &x.Map} - return protoreflect.ValueOfMap(mapValue) - case "testpb.ExampleTable.msg": - value := x.Msg - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.ExampleTable.oneof": - if x.Sum == nil { - return protoreflect.ValueOfUint32(uint32(0)) - } else if v, ok := x.Sum.(*ExampleTable_Oneof); ok { - return protoreflect.ValueOfUint32(v.Oneof) - } else { - return protoreflect.ValueOfUint32(uint32(0)) - } - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable")) - } - panic(fmt.Errorf("message testpb.ExampleTable does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTable) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.ExampleTable.u32": - x.U32 = uint32(value.Uint()) - case "testpb.ExampleTable.u64": - x.U64 = value.Uint() - case "testpb.ExampleTable.str": - x.Str = value.Interface().(string) - case "testpb.ExampleTable.bz": - x.Bz = value.Bytes() - case "testpb.ExampleTable.ts": - x.Ts = value.Message().Interface().(*timestamppb.Timestamp) - case "testpb.ExampleTable.dur": - x.Dur = value.Message().Interface().(*durationpb.Duration) - case "testpb.ExampleTable.i32": - x.I32 = int32(value.Int()) - case "testpb.ExampleTable.s32": - x.S32 = int32(value.Int()) - case "testpb.ExampleTable.sf32": - x.Sf32 = int32(value.Int()) - case "testpb.ExampleTable.i64": - x.I64 = value.Int() - case "testpb.ExampleTable.s64": - x.S64 = value.Int() - case "testpb.ExampleTable.sf64": - x.Sf64 = value.Int() - case "testpb.ExampleTable.f32": - x.F32 = uint32(value.Uint()) - case "testpb.ExampleTable.f64": - x.F64 = value.Uint() - case "testpb.ExampleTable.b": - x.B = value.Bool() - case "testpb.ExampleTable.e": - x.E = (Enum)(value.Enum()) - case "testpb.ExampleTable.repeated": - lv := value.List() - clv := lv.(*_ExampleTable_17_list) - x.Repeated = *clv.list - case "testpb.ExampleTable.map": - mv := value.Map() - cmv := mv.(*_ExampleTable_18_map) - x.Map = *cmv.m - case "testpb.ExampleTable.msg": - x.Msg = value.Message().Interface().(*ExampleTable_ExampleMessage) - case "testpb.ExampleTable.oneof": - cv := uint32(value.Uint()) - x.Sum = &ExampleTable_Oneof{Oneof: cv} - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable")) - } - panic(fmt.Errorf("message testpb.ExampleTable does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTable) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleTable.ts": - if x.Ts == nil { - x.Ts = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.Ts.ProtoReflect()) - case "testpb.ExampleTable.dur": - if x.Dur == nil { - x.Dur = new(durationpb.Duration) - } - return protoreflect.ValueOfMessage(x.Dur.ProtoReflect()) - case "testpb.ExampleTable.repeated": - if x.Repeated == nil { - x.Repeated = []uint32{} - } - value := &_ExampleTable_17_list{list: &x.Repeated} - return protoreflect.ValueOfList(value) - case "testpb.ExampleTable.map": - if x.Map == nil { - x.Map = make(map[string]uint32) - } - value := &_ExampleTable_18_map{m: &x.Map} - return protoreflect.ValueOfMap(value) - case "testpb.ExampleTable.msg": - if x.Msg == nil { - x.Msg = new(ExampleTable_ExampleMessage) - } - return protoreflect.ValueOfMessage(x.Msg.ProtoReflect()) - case "testpb.ExampleTable.u32": - panic(fmt.Errorf("field u32 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.u64": - panic(fmt.Errorf("field u64 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.str": - panic(fmt.Errorf("field str of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.bz": - panic(fmt.Errorf("field bz of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.i32": - panic(fmt.Errorf("field i32 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.s32": - panic(fmt.Errorf("field s32 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.sf32": - panic(fmt.Errorf("field sf32 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.i64": - panic(fmt.Errorf("field i64 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.s64": - panic(fmt.Errorf("field s64 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.sf64": - panic(fmt.Errorf("field sf64 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.f32": - panic(fmt.Errorf("field f32 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.f64": - panic(fmt.Errorf("field f64 of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.b": - panic(fmt.Errorf("field b of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.e": - panic(fmt.Errorf("field e of message testpb.ExampleTable is not mutable")) - case "testpb.ExampleTable.oneof": - panic(fmt.Errorf("field oneof of message testpb.ExampleTable is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable")) - } - panic(fmt.Errorf("message testpb.ExampleTable does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExampleTable) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleTable.u32": - return protoreflect.ValueOfUint32(uint32(0)) - case "testpb.ExampleTable.u64": - return protoreflect.ValueOfUint64(uint64(0)) - case "testpb.ExampleTable.str": - return protoreflect.ValueOfString("") - case "testpb.ExampleTable.bz": - return protoreflect.ValueOfBytes(nil) - case "testpb.ExampleTable.ts": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.ExampleTable.dur": - m := new(durationpb.Duration) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.ExampleTable.i32": - return protoreflect.ValueOfInt32(int32(0)) - case "testpb.ExampleTable.s32": - return protoreflect.ValueOfInt32(int32(0)) - case "testpb.ExampleTable.sf32": - return protoreflect.ValueOfInt32(int32(0)) - case "testpb.ExampleTable.i64": - return protoreflect.ValueOfInt64(int64(0)) - case "testpb.ExampleTable.s64": - return protoreflect.ValueOfInt64(int64(0)) - case "testpb.ExampleTable.sf64": - return protoreflect.ValueOfInt64(int64(0)) - case "testpb.ExampleTable.f32": - return protoreflect.ValueOfUint32(uint32(0)) - case "testpb.ExampleTable.f64": - return protoreflect.ValueOfUint64(uint64(0)) - case "testpb.ExampleTable.b": - return protoreflect.ValueOfBool(false) - case "testpb.ExampleTable.e": - return protoreflect.ValueOfEnum(0) - case "testpb.ExampleTable.repeated": - list := []uint32{} - return protoreflect.ValueOfList(&_ExampleTable_17_list{list: &list}) - case "testpb.ExampleTable.map": - m := make(map[string]uint32) - return protoreflect.ValueOfMap(&_ExampleTable_18_map{m: &m}) - case "testpb.ExampleTable.msg": - m := new(ExampleTable_ExampleMessage) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.ExampleTable.oneof": - return protoreflect.ValueOfUint32(uint32(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable")) - } - panic(fmt.Errorf("message testpb.ExampleTable does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExampleTable) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - case "testpb.ExampleTable.sum": - if x.Sum == nil { - return nil - } - switch x.Sum.(type) { - case *ExampleTable_Oneof: - return x.Descriptor().Fields().ByName("oneof") - } - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.ExampleTable", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExampleTable) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTable) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ExampleTable) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ExampleTable) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExampleTable) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.U32 != 0 { - n += 1 + runtime.Sov(uint64(x.U32)) - } - if x.U64 != 0 { - n += 1 + runtime.Sov(uint64(x.U64)) - } - l = len(x.Str) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Bz) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Ts != nil { - l = options.Size(x.Ts) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Dur != nil { - l = options.Size(x.Dur) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.I32 != 0 { - n += 1 + runtime.Sov(uint64(x.I32)) - } - if x.S32 != 0 { - n += 1 + runtime.Soz(uint64(x.S32)) - } - if x.Sf32 != 0 { - n += 5 - } - if x.I64 != 0 { - n += 1 + runtime.Sov(uint64(x.I64)) - } - if x.S64 != 0 { - n += 1 + runtime.Soz(uint64(x.S64)) - } - if x.Sf64 != 0 { - n += 9 - } - if x.F32 != 0 { - n += 5 - } - if x.F64 != 0 { - n += 9 - } - if x.B { - n += 2 - } - if x.E != 0 { - n += 2 + runtime.Sov(uint64(x.E)) - } - if len(x.Repeated) > 0 { - l = 0 - for _, e := range x.Repeated { - l += runtime.Sov(uint64(e)) - } - n += 2 + runtime.Sov(uint64(l)) + l - } - if len(x.Map) > 0 { - SiZeMaP := func(k string, v uint32) { - mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + runtime.Sov(uint64(v)) - n += mapEntrySize + 2 + runtime.Sov(uint64(mapEntrySize)) - } - if options.Deterministic { - sortme := make([]string, 0, len(x.Map)) - for k := range x.Map { - sortme = append(sortme, k) - } - sort.Strings(sortme) - for _, k := range sortme { - v := x.Map[k] - SiZeMaP(k, v) - } - } else { - for k, v := range x.Map { - SiZeMaP(k, v) - } - } - } - if x.Msg != nil { - l = options.Size(x.Msg) - n += 2 + l + runtime.Sov(uint64(l)) - } - switch x := x.Sum.(type) { - case *ExampleTable_Oneof: - if x == nil { - break - } - n += 2 + runtime.Sov(uint64(x.Oneof)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExampleTable) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - switch x := x.Sum.(type) { - case *ExampleTable_Oneof: - i = runtime.EncodeVarint(dAtA, i, uint64(x.Oneof)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa0 - } - if x.Msg != nil { - encoded, err := options.Marshal(x.Msg) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - if len(x.Map) > 0 { - MaRsHaLmAp := func(k string, v uint32) (protoiface.MarshalOutput, error) { - baseI := i - i = runtime.EncodeVarint(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - return protoiface.MarshalOutput{}, nil - } - if options.Deterministic { - keysForMap := make([]string, 0, len(x.Map)) - for k := range x.Map { - keysForMap = append(keysForMap, string(k)) - } - sort.Slice(keysForMap, func(i, j int) bool { - return keysForMap[i] < keysForMap[j] - }) - for iNdEx := len(keysForMap) - 1; iNdEx >= 0; iNdEx-- { - v := x.Map[string(keysForMap[iNdEx])] - out, err := MaRsHaLmAp(keysForMap[iNdEx], v) - if err != nil { - return out, err - } - } - } else { - for k := range x.Map { - v := x.Map[k] - out, err := MaRsHaLmAp(k, v) - if err != nil { - return out, err - } - } - } - } - if len(x.Repeated) > 0 { - var pksize2 int - for _, num := range x.Repeated { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.Repeated { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if x.E != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.E)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if x.B { - i-- - if x.B { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x78 - } - if x.F64 != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(x.F64)) - i-- - dAtA[i] = 0x71 - } - if x.F32 != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(x.F32)) - i-- - dAtA[i] = 0x6d - } - if x.Sf64 != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(x.Sf64)) - i-- - dAtA[i] = 0x61 - } - if x.S64 != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64((uint64(x.S64)<<1)^uint64((x.S64>>63)))) - i-- - dAtA[i] = 0x58 - } - if x.I64 != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.I64)) - i-- - dAtA[i] = 0x50 - } - if x.Sf32 != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(x.Sf32)) - i-- - dAtA[i] = 0x4d - } - if x.S32 != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64((uint32(x.S32)<<1)^uint32((x.S32>>31)))) - i-- - dAtA[i] = 0x40 - } - if x.I32 != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.I32)) - i-- - dAtA[i] = 0x38 - } - if x.Dur != nil { - encoded, err := options.Marshal(x.Dur) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - if x.Ts != nil { - encoded, err := options.Marshal(x.Ts) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - if len(x.Bz) > 0 { - i -= len(x.Bz) - copy(dAtA[i:], x.Bz) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bz))) - i-- - dAtA[i] = 0x22 - } - if len(x.Str) > 0 { - i -= len(x.Str) - copy(dAtA[i:], x.Str) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Str))) - i-- - dAtA[i] = 0x1a - } - if x.U64 != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.U64)) - i-- - dAtA[i] = 0x10 - } - if x.U32 != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.U32)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExampleTable) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleTable: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleTable: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field U32", wireType) - } - x.U32 = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.U32 |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field U64", wireType) - } - x.U64 = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.U64 |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Str", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Str = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bz", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Bz = append(x.Bz[:0], dAtA[iNdEx:postIndex]...) - if x.Bz == nil { - x.Bz = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Ts == nil { - x.Ts = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Ts); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Dur", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Dur == nil { - x.Dur = &durationpb.Duration{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Dur); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field I32", wireType) - } - x.I32 = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.I32 |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field S32", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - v = int32((uint32(v) >> 1) ^ uint32(((v&1)<<31)>>31)) - x.S32 = v - case 9: - if wireType != 5 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sf32", wireType) - } - x.Sf32 = 0 - if (iNdEx + 4) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Sf32 = int32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - case 10: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field I64", wireType) - } - x.I64 = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.I64 |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field S64", wireType) - } - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - v = (v >> 1) ^ uint64((int64(v&1)<<63)>>63) - x.S64 = int64(v) - case 12: - if wireType != 1 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sf64", wireType) - } - x.Sf64 = 0 - if (iNdEx + 8) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Sf64 = int64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 13: - if wireType != 5 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field F32", wireType) - } - x.F32 = 0 - if (iNdEx + 4) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.F32 = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - case 14: - if wireType != 1 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field F64", wireType) - } - x.F64 = 0 - if (iNdEx + 8) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.F64 = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 15: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field B", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.B = bool(v != 0) - case 16: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field E", wireType) - } - x.E = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.E |= Enum(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 17: - if wireType == 0 { - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Repeated = append(x.Repeated, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Repeated) == 0 { - x.Repeated = make([]uint32, 0, elementCount) - } - for iNdEx < postIndex { - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Repeated = append(x.Repeated, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Repeated", wireType) - } - case 18: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Map", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Map == nil { - x.Map = make(map[string]uint32) - } - var mapkey string - var mapvalue uint32 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapkey > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - x.Map[mapkey] = mapvalue - iNdEx = postIndex - case 19: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Msg == nil { - x.Msg = &ExampleTable_ExampleMessage{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Msg); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 20: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Oneof", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Sum = &ExampleTable_Oneof{v} - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ExampleTable_ExampleMessage protoreflect.MessageDescriptor - fd_ExampleTable_ExampleMessage_foo protoreflect.FieldDescriptor - fd_ExampleTable_ExampleMessage_bar protoreflect.FieldDescriptor -) - -func init() { - file_testpb_test_schema_proto_init() - md_ExampleTable_ExampleMessage = File_testpb_test_schema_proto.Messages().ByName("ExampleTable").Messages().ByName("ExampleMessage") - fd_ExampleTable_ExampleMessage_foo = md_ExampleTable_ExampleMessage.Fields().ByName("foo") - fd_ExampleTable_ExampleMessage_bar = md_ExampleTable_ExampleMessage.Fields().ByName("bar") -} - -var _ protoreflect.Message = (*fastReflection_ExampleTable_ExampleMessage)(nil) - -type fastReflection_ExampleTable_ExampleMessage ExampleTable_ExampleMessage - -func (x *ExampleTable_ExampleMessage) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExampleTable_ExampleMessage)(x) -} - -func (x *ExampleTable_ExampleMessage) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_test_schema_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 _fastReflection_ExampleTable_ExampleMessage_messageType fastReflection_ExampleTable_ExampleMessage_messageType -var _ protoreflect.MessageType = fastReflection_ExampleTable_ExampleMessage_messageType{} - -type fastReflection_ExampleTable_ExampleMessage_messageType struct{} - -func (x fastReflection_ExampleTable_ExampleMessage_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExampleTable_ExampleMessage)(nil) -} -func (x fastReflection_ExampleTable_ExampleMessage_messageType) New() protoreflect.Message { - return new(fastReflection_ExampleTable_ExampleMessage) -} -func (x fastReflection_ExampleTable_ExampleMessage_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleTable_ExampleMessage -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ExampleTable_ExampleMessage) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleTable_ExampleMessage -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExampleTable_ExampleMessage) Type() protoreflect.MessageType { - return _fastReflection_ExampleTable_ExampleMessage_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExampleTable_ExampleMessage) New() protoreflect.Message { - return new(fastReflection_ExampleTable_ExampleMessage) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ExampleTable_ExampleMessage) Interface() protoreflect.ProtoMessage { - return (*ExampleTable_ExampleMessage)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ExampleTable_ExampleMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Foo != "" { - value := protoreflect.ValueOfString(x.Foo) - if !f(fd_ExampleTable_ExampleMessage_foo, value) { - return - } - } - if x.Bar != int32(0) { - value := protoreflect.ValueOfInt32(x.Bar) - if !f(fd_ExampleTable_ExampleMessage_bar, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ExampleTable_ExampleMessage) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.ExampleTable.ExampleMessage.foo": - return x.Foo != "" - case "testpb.ExampleTable.ExampleMessage.bar": - return x.Bar != int32(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage")) - } - panic(fmt.Errorf("message testpb.ExampleTable.ExampleMessage does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTable_ExampleMessage) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.ExampleTable.ExampleMessage.foo": - x.Foo = "" - case "testpb.ExampleTable.ExampleMessage.bar": - x.Bar = int32(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage")) - } - panic(fmt.Errorf("message testpb.ExampleTable.ExampleMessage does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExampleTable_ExampleMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.ExampleTable.ExampleMessage.foo": - value := x.Foo - return protoreflect.ValueOfString(value) - case "testpb.ExampleTable.ExampleMessage.bar": - value := x.Bar - return protoreflect.ValueOfInt32(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage")) - } - panic(fmt.Errorf("message testpb.ExampleTable.ExampleMessage does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTable_ExampleMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.ExampleTable.ExampleMessage.foo": - x.Foo = value.Interface().(string) - case "testpb.ExampleTable.ExampleMessage.bar": - x.Bar = int32(value.Int()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage")) - } - panic(fmt.Errorf("message testpb.ExampleTable.ExampleMessage does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTable_ExampleMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleTable.ExampleMessage.foo": - panic(fmt.Errorf("field foo of message testpb.ExampleTable.ExampleMessage is not mutable")) - case "testpb.ExampleTable.ExampleMessage.bar": - panic(fmt.Errorf("field bar of message testpb.ExampleTable.ExampleMessage is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage")) - } - panic(fmt.Errorf("message testpb.ExampleTable.ExampleMessage does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExampleTable_ExampleMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleTable.ExampleMessage.foo": - return protoreflect.ValueOfString("") - case "testpb.ExampleTable.ExampleMessage.bar": - return protoreflect.ValueOfInt32(int32(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage")) - } - panic(fmt.Errorf("message testpb.ExampleTable.ExampleMessage does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExampleTable_ExampleMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.ExampleTable.ExampleMessage", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExampleTable_ExampleMessage) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTable_ExampleMessage) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ExampleTable_ExampleMessage) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ExampleTable_ExampleMessage) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExampleTable_ExampleMessage) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Foo) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Bar != 0 { - n += 1 + runtime.Sov(uint64(x.Bar)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExampleTable_ExampleMessage) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Bar != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Bar)) - i-- - dAtA[i] = 0x10 - } - if len(x.Foo) > 0 { - i -= len(x.Foo) - copy(dAtA[i:], x.Foo) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Foo))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExampleTable_ExampleMessage) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleTable_ExampleMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleTable_ExampleMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Foo", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Foo = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bar", wireType) - } - x.Bar = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Bar |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ExampleAutoIncrementTable protoreflect.MessageDescriptor - fd_ExampleAutoIncrementTable_id protoreflect.FieldDescriptor - fd_ExampleAutoIncrementTable_x protoreflect.FieldDescriptor - fd_ExampleAutoIncrementTable_y protoreflect.FieldDescriptor -) - -func init() { - file_testpb_test_schema_proto_init() - md_ExampleAutoIncrementTable = File_testpb_test_schema_proto.Messages().ByName("ExampleAutoIncrementTable") - fd_ExampleAutoIncrementTable_id = md_ExampleAutoIncrementTable.Fields().ByName("id") - fd_ExampleAutoIncrementTable_x = md_ExampleAutoIncrementTable.Fields().ByName("x") - fd_ExampleAutoIncrementTable_y = md_ExampleAutoIncrementTable.Fields().ByName("y") -} - -var _ protoreflect.Message = (*fastReflection_ExampleAutoIncrementTable)(nil) - -type fastReflection_ExampleAutoIncrementTable ExampleAutoIncrementTable - -func (x *ExampleAutoIncrementTable) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExampleAutoIncrementTable)(x) -} - -func (x *ExampleAutoIncrementTable) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_test_schema_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 _fastReflection_ExampleAutoIncrementTable_messageType fastReflection_ExampleAutoIncrementTable_messageType -var _ protoreflect.MessageType = fastReflection_ExampleAutoIncrementTable_messageType{} - -type fastReflection_ExampleAutoIncrementTable_messageType struct{} - -func (x fastReflection_ExampleAutoIncrementTable_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExampleAutoIncrementTable)(nil) -} -func (x fastReflection_ExampleAutoIncrementTable_messageType) New() protoreflect.Message { - return new(fastReflection_ExampleAutoIncrementTable) -} -func (x fastReflection_ExampleAutoIncrementTable_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleAutoIncrementTable -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ExampleAutoIncrementTable) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleAutoIncrementTable -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExampleAutoIncrementTable) Type() protoreflect.MessageType { - return _fastReflection_ExampleAutoIncrementTable_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExampleAutoIncrementTable) New() protoreflect.Message { - return new(fastReflection_ExampleAutoIncrementTable) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ExampleAutoIncrementTable) Interface() protoreflect.ProtoMessage { - return (*ExampleAutoIncrementTable)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ExampleAutoIncrementTable) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_ExampleAutoIncrementTable_id, value) { - return - } - } - if x.X != "" { - value := protoreflect.ValueOfString(x.X) - if !f(fd_ExampleAutoIncrementTable_x, value) { - return - } - } - if x.Y != int32(0) { - value := protoreflect.ValueOfInt32(x.Y) - if !f(fd_ExampleAutoIncrementTable_y, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ExampleAutoIncrementTable) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.ExampleAutoIncrementTable.id": - return x.Id != uint64(0) - case "testpb.ExampleAutoIncrementTable.x": - return x.X != "" - case "testpb.ExampleAutoIncrementTable.y": - return x.Y != int32(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncrementTable does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleAutoIncrementTable) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.ExampleAutoIncrementTable.id": - x.Id = uint64(0) - case "testpb.ExampleAutoIncrementTable.x": - x.X = "" - case "testpb.ExampleAutoIncrementTable.y": - x.Y = int32(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncrementTable does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExampleAutoIncrementTable) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.ExampleAutoIncrementTable.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "testpb.ExampleAutoIncrementTable.x": - value := x.X - return protoreflect.ValueOfString(value) - case "testpb.ExampleAutoIncrementTable.y": - value := x.Y - return protoreflect.ValueOfInt32(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncrementTable does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleAutoIncrementTable) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.ExampleAutoIncrementTable.id": - x.Id = value.Uint() - case "testpb.ExampleAutoIncrementTable.x": - x.X = value.Interface().(string) - case "testpb.ExampleAutoIncrementTable.y": - x.Y = int32(value.Int()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncrementTable does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleAutoIncrementTable) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleAutoIncrementTable.id": - panic(fmt.Errorf("field id of message testpb.ExampleAutoIncrementTable is not mutable")) - case "testpb.ExampleAutoIncrementTable.x": - panic(fmt.Errorf("field x of message testpb.ExampleAutoIncrementTable is not mutable")) - case "testpb.ExampleAutoIncrementTable.y": - panic(fmt.Errorf("field y of message testpb.ExampleAutoIncrementTable is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncrementTable does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExampleAutoIncrementTable) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleAutoIncrementTable.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "testpb.ExampleAutoIncrementTable.x": - return protoreflect.ValueOfString("") - case "testpb.ExampleAutoIncrementTable.y": - return protoreflect.ValueOfInt32(int32(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncrementTable does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExampleAutoIncrementTable) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.ExampleAutoIncrementTable", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExampleAutoIncrementTable) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleAutoIncrementTable) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ExampleAutoIncrementTable) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ExampleAutoIncrementTable) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExampleAutoIncrementTable) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.X) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Y != 0 { - n += 1 + runtime.Sov(uint64(x.Y)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExampleAutoIncrementTable) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Y != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Y)) - i-- - dAtA[i] = 0x18 - } - if len(x.X) > 0 { - i -= len(x.X) - copy(dAtA[i:], x.X) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.X))) - i-- - dAtA[i] = 0x12 - } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExampleAutoIncrementTable) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleAutoIncrementTable: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleAutoIncrementTable: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field X", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.X = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Y", wireType) - } - x.Y = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Y |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ExampleSingleton protoreflect.MessageDescriptor - fd_ExampleSingleton_foo protoreflect.FieldDescriptor - fd_ExampleSingleton_bar protoreflect.FieldDescriptor -) - -func init() { - file_testpb_test_schema_proto_init() - md_ExampleSingleton = File_testpb_test_schema_proto.Messages().ByName("ExampleSingleton") - fd_ExampleSingleton_foo = md_ExampleSingleton.Fields().ByName("foo") - fd_ExampleSingleton_bar = md_ExampleSingleton.Fields().ByName("bar") -} - -var _ protoreflect.Message = (*fastReflection_ExampleSingleton)(nil) - -type fastReflection_ExampleSingleton ExampleSingleton - -func (x *ExampleSingleton) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExampleSingleton)(x) -} - -func (x *ExampleSingleton) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_test_schema_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 _fastReflection_ExampleSingleton_messageType fastReflection_ExampleSingleton_messageType -var _ protoreflect.MessageType = fastReflection_ExampleSingleton_messageType{} - -type fastReflection_ExampleSingleton_messageType struct{} - -func (x fastReflection_ExampleSingleton_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExampleSingleton)(nil) -} -func (x fastReflection_ExampleSingleton_messageType) New() protoreflect.Message { - return new(fastReflection_ExampleSingleton) -} -func (x fastReflection_ExampleSingleton_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleSingleton -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ExampleSingleton) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleSingleton -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExampleSingleton) Type() protoreflect.MessageType { - return _fastReflection_ExampleSingleton_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExampleSingleton) New() protoreflect.Message { - return new(fastReflection_ExampleSingleton) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ExampleSingleton) Interface() protoreflect.ProtoMessage { - return (*ExampleSingleton)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ExampleSingleton) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Foo != "" { - value := protoreflect.ValueOfString(x.Foo) - if !f(fd_ExampleSingleton_foo, value) { - return - } - } - if x.Bar != int32(0) { - value := protoreflect.ValueOfInt32(x.Bar) - if !f(fd_ExampleSingleton_bar, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ExampleSingleton) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.ExampleSingleton.foo": - return x.Foo != "" - case "testpb.ExampleSingleton.bar": - return x.Bar != int32(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleSingleton")) - } - panic(fmt.Errorf("message testpb.ExampleSingleton does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleSingleton) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.ExampleSingleton.foo": - x.Foo = "" - case "testpb.ExampleSingleton.bar": - x.Bar = int32(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleSingleton")) - } - panic(fmt.Errorf("message testpb.ExampleSingleton does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExampleSingleton) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.ExampleSingleton.foo": - value := x.Foo - return protoreflect.ValueOfString(value) - case "testpb.ExampleSingleton.bar": - value := x.Bar - return protoreflect.ValueOfInt32(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleSingleton")) - } - panic(fmt.Errorf("message testpb.ExampleSingleton does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleSingleton) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.ExampleSingleton.foo": - x.Foo = value.Interface().(string) - case "testpb.ExampleSingleton.bar": - x.Bar = int32(value.Int()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleSingleton")) - } - panic(fmt.Errorf("message testpb.ExampleSingleton does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleSingleton) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleSingleton.foo": - panic(fmt.Errorf("field foo of message testpb.ExampleSingleton is not mutable")) - case "testpb.ExampleSingleton.bar": - panic(fmt.Errorf("field bar of message testpb.ExampleSingleton is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleSingleton")) - } - panic(fmt.Errorf("message testpb.ExampleSingleton does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExampleSingleton) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleSingleton.foo": - return protoreflect.ValueOfString("") - case "testpb.ExampleSingleton.bar": - return protoreflect.ValueOfInt32(int32(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleSingleton")) - } - panic(fmt.Errorf("message testpb.ExampleSingleton does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExampleSingleton) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.ExampleSingleton", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExampleSingleton) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleSingleton) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ExampleSingleton) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ExampleSingleton) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExampleSingleton) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Foo) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Bar != 0 { - n += 1 + runtime.Sov(uint64(x.Bar)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExampleSingleton) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Bar != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Bar)) - i-- - dAtA[i] = 0x10 - } - if len(x.Foo) > 0 { - i -= len(x.Foo) - copy(dAtA[i:], x.Foo) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Foo))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExampleSingleton) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleSingleton: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleSingleton: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Foo", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Foo = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bar", wireType) - } - x.Bar = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Bar |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ExampleTimestamp protoreflect.MessageDescriptor - fd_ExampleTimestamp_id protoreflect.FieldDescriptor - fd_ExampleTimestamp_name protoreflect.FieldDescriptor - fd_ExampleTimestamp_ts protoreflect.FieldDescriptor -) - -func init() { - file_testpb_test_schema_proto_init() - md_ExampleTimestamp = File_testpb_test_schema_proto.Messages().ByName("ExampleTimestamp") - fd_ExampleTimestamp_id = md_ExampleTimestamp.Fields().ByName("id") - fd_ExampleTimestamp_name = md_ExampleTimestamp.Fields().ByName("name") - fd_ExampleTimestamp_ts = md_ExampleTimestamp.Fields().ByName("ts") -} - -var _ protoreflect.Message = (*fastReflection_ExampleTimestamp)(nil) - -type fastReflection_ExampleTimestamp ExampleTimestamp - -func (x *ExampleTimestamp) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExampleTimestamp)(x) -} - -func (x *ExampleTimestamp) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_test_schema_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 _fastReflection_ExampleTimestamp_messageType fastReflection_ExampleTimestamp_messageType -var _ protoreflect.MessageType = fastReflection_ExampleTimestamp_messageType{} - -type fastReflection_ExampleTimestamp_messageType struct{} - -func (x fastReflection_ExampleTimestamp_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExampleTimestamp)(nil) -} -func (x fastReflection_ExampleTimestamp_messageType) New() protoreflect.Message { - return new(fastReflection_ExampleTimestamp) -} -func (x fastReflection_ExampleTimestamp_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleTimestamp -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ExampleTimestamp) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleTimestamp -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExampleTimestamp) Type() protoreflect.MessageType { - return _fastReflection_ExampleTimestamp_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExampleTimestamp) New() protoreflect.Message { - return new(fastReflection_ExampleTimestamp) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ExampleTimestamp) Interface() protoreflect.ProtoMessage { - return (*ExampleTimestamp)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ExampleTimestamp) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_ExampleTimestamp_id, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_ExampleTimestamp_name, value) { - return - } - } - if x.Ts != nil { - value := protoreflect.ValueOfMessage(x.Ts.ProtoReflect()) - if !f(fd_ExampleTimestamp_ts, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ExampleTimestamp) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.ExampleTimestamp.id": - return x.Id != uint64(0) - case "testpb.ExampleTimestamp.name": - return x.Name != "" - case "testpb.ExampleTimestamp.ts": - return x.Ts != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTimestamp")) - } - panic(fmt.Errorf("message testpb.ExampleTimestamp does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTimestamp) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.ExampleTimestamp.id": - x.Id = uint64(0) - case "testpb.ExampleTimestamp.name": - x.Name = "" - case "testpb.ExampleTimestamp.ts": - x.Ts = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTimestamp")) - } - panic(fmt.Errorf("message testpb.ExampleTimestamp does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExampleTimestamp) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.ExampleTimestamp.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "testpb.ExampleTimestamp.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "testpb.ExampleTimestamp.ts": - value := x.Ts - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTimestamp")) - } - panic(fmt.Errorf("message testpb.ExampleTimestamp does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTimestamp) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.ExampleTimestamp.id": - x.Id = value.Uint() - case "testpb.ExampleTimestamp.name": - x.Name = value.Interface().(string) - case "testpb.ExampleTimestamp.ts": - x.Ts = value.Message().Interface().(*timestamppb.Timestamp) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTimestamp")) - } - panic(fmt.Errorf("message testpb.ExampleTimestamp does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTimestamp) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleTimestamp.ts": - if x.Ts == nil { - x.Ts = new(timestamppb.Timestamp) - } - return protoreflect.ValueOfMessage(x.Ts.ProtoReflect()) - case "testpb.ExampleTimestamp.id": - panic(fmt.Errorf("field id of message testpb.ExampleTimestamp is not mutable")) - case "testpb.ExampleTimestamp.name": - panic(fmt.Errorf("field name of message testpb.ExampleTimestamp is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTimestamp")) - } - panic(fmt.Errorf("message testpb.ExampleTimestamp does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExampleTimestamp) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleTimestamp.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "testpb.ExampleTimestamp.name": - return protoreflect.ValueOfString("") - case "testpb.ExampleTimestamp.ts": - m := new(timestamppb.Timestamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleTimestamp")) - } - panic(fmt.Errorf("message testpb.ExampleTimestamp does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExampleTimestamp) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.ExampleTimestamp", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExampleTimestamp) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleTimestamp) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ExampleTimestamp) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ExampleTimestamp) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExampleTimestamp) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Ts != nil { - l = options.Size(x.Ts) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExampleTimestamp) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Ts != nil { - encoded, err := options.Marshal(x.Ts) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x12 - } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExampleTimestamp) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleTimestamp: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleTimestamp: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Ts == nil { - x.Ts = ×tamppb.Timestamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Ts); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_SimpleExample protoreflect.MessageDescriptor - fd_SimpleExample_name protoreflect.FieldDescriptor - fd_SimpleExample_unique protoreflect.FieldDescriptor - fd_SimpleExample_not_unique protoreflect.FieldDescriptor -) - -func init() { - file_testpb_test_schema_proto_init() - md_SimpleExample = File_testpb_test_schema_proto.Messages().ByName("SimpleExample") - fd_SimpleExample_name = md_SimpleExample.Fields().ByName("name") - fd_SimpleExample_unique = md_SimpleExample.Fields().ByName("unique") - fd_SimpleExample_not_unique = md_SimpleExample.Fields().ByName("not_unique") -} - -var _ protoreflect.Message = (*fastReflection_SimpleExample)(nil) - -type fastReflection_SimpleExample SimpleExample - -func (x *SimpleExample) ProtoReflect() protoreflect.Message { - return (*fastReflection_SimpleExample)(x) -} - -func (x *SimpleExample) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_test_schema_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 _fastReflection_SimpleExample_messageType fastReflection_SimpleExample_messageType -var _ protoreflect.MessageType = fastReflection_SimpleExample_messageType{} - -type fastReflection_SimpleExample_messageType struct{} - -func (x fastReflection_SimpleExample_messageType) Zero() protoreflect.Message { - return (*fastReflection_SimpleExample)(nil) -} -func (x fastReflection_SimpleExample_messageType) New() protoreflect.Message { - return new(fastReflection_SimpleExample) -} -func (x fastReflection_SimpleExample_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SimpleExample -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_SimpleExample) Descriptor() protoreflect.MessageDescriptor { - return md_SimpleExample -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_SimpleExample) Type() protoreflect.MessageType { - return _fastReflection_SimpleExample_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_SimpleExample) New() protoreflect.Message { - return new(fastReflection_SimpleExample) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_SimpleExample) Interface() protoreflect.ProtoMessage { - return (*SimpleExample)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_SimpleExample) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_SimpleExample_name, value) { - return - } - } - if x.Unique != "" { - value := protoreflect.ValueOfString(x.Unique) - if !f(fd_SimpleExample_unique, value) { - return - } - } - if x.NotUnique != "" { - value := protoreflect.ValueOfString(x.NotUnique) - if !f(fd_SimpleExample_not_unique, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_SimpleExample) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.SimpleExample.name": - return x.Name != "" - case "testpb.SimpleExample.unique": - return x.Unique != "" - case "testpb.SimpleExample.not_unique": - return x.NotUnique != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SimpleExample")) - } - panic(fmt.Errorf("message testpb.SimpleExample does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SimpleExample) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.SimpleExample.name": - x.Name = "" - case "testpb.SimpleExample.unique": - x.Unique = "" - case "testpb.SimpleExample.not_unique": - x.NotUnique = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SimpleExample")) - } - panic(fmt.Errorf("message testpb.SimpleExample does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_SimpleExample) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.SimpleExample.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "testpb.SimpleExample.unique": - value := x.Unique - return protoreflect.ValueOfString(value) - case "testpb.SimpleExample.not_unique": - value := x.NotUnique - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SimpleExample")) - } - panic(fmt.Errorf("message testpb.SimpleExample does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SimpleExample) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.SimpleExample.name": - x.Name = value.Interface().(string) - case "testpb.SimpleExample.unique": - x.Unique = value.Interface().(string) - case "testpb.SimpleExample.not_unique": - x.NotUnique = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SimpleExample")) - } - panic(fmt.Errorf("message testpb.SimpleExample does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SimpleExample) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.SimpleExample.name": - panic(fmt.Errorf("field name of message testpb.SimpleExample is not mutable")) - case "testpb.SimpleExample.unique": - panic(fmt.Errorf("field unique of message testpb.SimpleExample is not mutable")) - case "testpb.SimpleExample.not_unique": - panic(fmt.Errorf("field not_unique of message testpb.SimpleExample is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SimpleExample")) - } - panic(fmt.Errorf("message testpb.SimpleExample does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_SimpleExample) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.SimpleExample.name": - return protoreflect.ValueOfString("") - case "testpb.SimpleExample.unique": - return protoreflect.ValueOfString("") - case "testpb.SimpleExample.not_unique": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.SimpleExample")) - } - panic(fmt.Errorf("message testpb.SimpleExample does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_SimpleExample) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.SimpleExample", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_SimpleExample) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SimpleExample) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_SimpleExample) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_SimpleExample) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SimpleExample) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Unique) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NotUnique) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*SimpleExample) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.NotUnique) > 0 { - i -= len(x.NotUnique) - copy(dAtA[i:], x.NotUnique) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NotUnique))) - i-- - dAtA[i] = 0x1a - } - if len(x.Unique) > 0 { - i -= len(x.Unique) - copy(dAtA[i:], x.Unique) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Unique))) - i-- - dAtA[i] = 0x12 - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*SimpleExample) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SimpleExample: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SimpleExample: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Unique", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Unique = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NotUnique", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NotUnique = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ExampleAutoIncFieldName protoreflect.MessageDescriptor - fd_ExampleAutoIncFieldName_foo protoreflect.FieldDescriptor - fd_ExampleAutoIncFieldName_bar protoreflect.FieldDescriptor -) - -func init() { - file_testpb_test_schema_proto_init() - md_ExampleAutoIncFieldName = File_testpb_test_schema_proto.Messages().ByName("ExampleAutoIncFieldName") - fd_ExampleAutoIncFieldName_foo = md_ExampleAutoIncFieldName.Fields().ByName("foo") - fd_ExampleAutoIncFieldName_bar = md_ExampleAutoIncFieldName.Fields().ByName("bar") -} - -var _ protoreflect.Message = (*fastReflection_ExampleAutoIncFieldName)(nil) - -type fastReflection_ExampleAutoIncFieldName ExampleAutoIncFieldName - -func (x *ExampleAutoIncFieldName) ProtoReflect() protoreflect.Message { - return (*fastReflection_ExampleAutoIncFieldName)(x) -} - -func (x *ExampleAutoIncFieldName) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_test_schema_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 _fastReflection_ExampleAutoIncFieldName_messageType fastReflection_ExampleAutoIncFieldName_messageType -var _ protoreflect.MessageType = fastReflection_ExampleAutoIncFieldName_messageType{} - -type fastReflection_ExampleAutoIncFieldName_messageType struct{} - -func (x fastReflection_ExampleAutoIncFieldName_messageType) Zero() protoreflect.Message { - return (*fastReflection_ExampleAutoIncFieldName)(nil) -} -func (x fastReflection_ExampleAutoIncFieldName_messageType) New() protoreflect.Message { - return new(fastReflection_ExampleAutoIncFieldName) -} -func (x fastReflection_ExampleAutoIncFieldName_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleAutoIncFieldName -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ExampleAutoIncFieldName) Descriptor() protoreflect.MessageDescriptor { - return md_ExampleAutoIncFieldName -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ExampleAutoIncFieldName) Type() protoreflect.MessageType { - return _fastReflection_ExampleAutoIncFieldName_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ExampleAutoIncFieldName) New() protoreflect.Message { - return new(fastReflection_ExampleAutoIncFieldName) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ExampleAutoIncFieldName) Interface() protoreflect.ProtoMessage { - return (*ExampleAutoIncFieldName)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ExampleAutoIncFieldName) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Foo != uint64(0) { - value := protoreflect.ValueOfUint64(x.Foo) - if !f(fd_ExampleAutoIncFieldName_foo, value) { - return - } - } - if x.Bar != uint64(0) { - value := protoreflect.ValueOfUint64(x.Bar) - if !f(fd_ExampleAutoIncFieldName_bar, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ExampleAutoIncFieldName) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.ExampleAutoIncFieldName.foo": - return x.Foo != uint64(0) - case "testpb.ExampleAutoIncFieldName.bar": - return x.Bar != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncFieldName")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncFieldName does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleAutoIncFieldName) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.ExampleAutoIncFieldName.foo": - x.Foo = uint64(0) - case "testpb.ExampleAutoIncFieldName.bar": - x.Bar = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncFieldName")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncFieldName does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ExampleAutoIncFieldName) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.ExampleAutoIncFieldName.foo": - value := x.Foo - return protoreflect.ValueOfUint64(value) - case "testpb.ExampleAutoIncFieldName.bar": - value := x.Bar - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncFieldName")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncFieldName does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleAutoIncFieldName) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.ExampleAutoIncFieldName.foo": - x.Foo = value.Uint() - case "testpb.ExampleAutoIncFieldName.bar": - x.Bar = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncFieldName")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncFieldName does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleAutoIncFieldName) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleAutoIncFieldName.foo": - panic(fmt.Errorf("field foo of message testpb.ExampleAutoIncFieldName is not mutable")) - case "testpb.ExampleAutoIncFieldName.bar": - panic(fmt.Errorf("field bar of message testpb.ExampleAutoIncFieldName is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncFieldName")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncFieldName does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ExampleAutoIncFieldName) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.ExampleAutoIncFieldName.foo": - return protoreflect.ValueOfUint64(uint64(0)) - case "testpb.ExampleAutoIncFieldName.bar": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.ExampleAutoIncFieldName")) - } - panic(fmt.Errorf("message testpb.ExampleAutoIncFieldName does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ExampleAutoIncFieldName) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.ExampleAutoIncFieldName", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ExampleAutoIncFieldName) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ExampleAutoIncFieldName) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ExampleAutoIncFieldName) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ExampleAutoIncFieldName) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ExampleAutoIncFieldName) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Foo != 0 { - n += 1 + runtime.Sov(uint64(x.Foo)) - } - if x.Bar != 0 { - n += 1 + runtime.Sov(uint64(x.Bar)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ExampleAutoIncFieldName) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Bar != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Bar)) - i-- - dAtA[i] = 0x10 - } - if x.Foo != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Foo)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ExampleAutoIncFieldName) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleAutoIncFieldName: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExampleAutoIncFieldName: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Foo", wireType) - } - x.Foo = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Foo |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bar", wireType) - } - x.Bar = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Bar |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: testpb/test_schema.proto - -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 Enum int32 - -const ( - Enum_ENUM_UNSPECIFIED Enum = 0 - Enum_ENUM_ONE Enum = 1 - Enum_ENUM_TWO Enum = 2 - Enum_ENUM_FIVE Enum = 5 - Enum_ENUM_NEG_THREE Enum = -3 -) - -// Enum value maps for Enum. -var ( - Enum_name = map[int32]string{ - 0: "ENUM_UNSPECIFIED", - 1: "ENUM_ONE", - 2: "ENUM_TWO", - 5: "ENUM_FIVE", - -3: "ENUM_NEG_THREE", - } - Enum_value = map[string]int32{ - "ENUM_UNSPECIFIED": 0, - "ENUM_ONE": 1, - "ENUM_TWO": 2, - "ENUM_FIVE": 5, - "ENUM_NEG_THREE": -3, - } -) - -func (x Enum) Enum() *Enum { - p := new(Enum) - *p = x - return p -} - -func (x Enum) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Enum) Descriptor() protoreflect.EnumDescriptor { - return file_testpb_test_schema_proto_enumTypes[0].Descriptor() -} - -func (Enum) Type() protoreflect.EnumType { - return &file_testpb_test_schema_proto_enumTypes[0] -} - -func (x Enum) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Enum.Descriptor instead. -func (Enum) EnumDescriptor() ([]byte, []int) { - return file_testpb_test_schema_proto_rawDescGZIP(), []int{0} -} - -type ExampleTable struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Valid key fields: - U32 uint32 `protobuf:"varint,1,opt,name=u32,proto3" json:"u32,omitempty"` - U64 uint64 `protobuf:"varint,2,opt,name=u64,proto3" json:"u64,omitempty"` - Str string `protobuf:"bytes,3,opt,name=str,proto3" json:"str,omitempty"` - Bz []byte `protobuf:"bytes,4,opt,name=bz,proto3" json:"bz,omitempty"` - Ts *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=ts,proto3" json:"ts,omitempty"` - Dur *durationpb.Duration `protobuf:"bytes,6,opt,name=dur,proto3" json:"dur,omitempty"` - I32 int32 `protobuf:"varint,7,opt,name=i32,proto3" json:"i32,omitempty"` - S32 int32 `protobuf:"zigzag32,8,opt,name=s32,proto3" json:"s32,omitempty"` - Sf32 int32 `protobuf:"fixed32,9,opt,name=sf32,proto3" json:"sf32,omitempty"` - I64 int64 `protobuf:"varint,10,opt,name=i64,proto3" json:"i64,omitempty"` - S64 int64 `protobuf:"zigzag64,11,opt,name=s64,proto3" json:"s64,omitempty"` - Sf64 int64 `protobuf:"fixed64,12,opt,name=sf64,proto3" json:"sf64,omitempty"` - F32 uint32 `protobuf:"fixed32,13,opt,name=f32,proto3" json:"f32,omitempty"` - F64 uint64 `protobuf:"fixed64,14,opt,name=f64,proto3" json:"f64,omitempty"` - B bool `protobuf:"varint,15,opt,name=b,proto3" json:"b,omitempty"` - E Enum `protobuf:"varint,16,opt,name=e,proto3,enum=testpb.Enum" json:"e,omitempty"` - // Invalid key fields: - Repeated []uint32 `protobuf:"varint,17,rep,packed,name=repeated,proto3" json:"repeated,omitempty"` - Map map[string]uint32 `protobuf:"bytes,18,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - Msg *ExampleTable_ExampleMessage `protobuf:"bytes,19,opt,name=msg,proto3" json:"msg,omitempty"` - // Types that are assignable to Sum: - // *ExampleTable_Oneof - Sum isExampleTable_Sum `protobuf_oneof:"sum"` -} - -func (x *ExampleTable) Reset() { - *x = ExampleTable{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_test_schema_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExampleTable) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExampleTable) ProtoMessage() {} - -// Deprecated: Use ExampleTable.ProtoReflect.Descriptor instead. -func (*ExampleTable) Descriptor() ([]byte, []int) { - return file_testpb_test_schema_proto_rawDescGZIP(), []int{0} -} - -func (x *ExampleTable) GetU32() uint32 { - if x != nil { - return x.U32 - } - return 0 -} - -func (x *ExampleTable) GetU64() uint64 { - if x != nil { - return x.U64 - } - return 0 -} - -func (x *ExampleTable) GetStr() string { - if x != nil { - return x.Str - } - return "" -} - -func (x *ExampleTable) GetBz() []byte { - if x != nil { - return x.Bz - } - return nil -} - -func (x *ExampleTable) GetTs() *timestamppb.Timestamp { - if x != nil { - return x.Ts - } - return nil -} - -func (x *ExampleTable) GetDur() *durationpb.Duration { - if x != nil { - return x.Dur - } - return nil -} - -func (x *ExampleTable) GetI32() int32 { - if x != nil { - return x.I32 - } - return 0 -} - -func (x *ExampleTable) GetS32() int32 { - if x != nil { - return x.S32 - } - return 0 -} - -func (x *ExampleTable) GetSf32() int32 { - if x != nil { - return x.Sf32 - } - return 0 -} - -func (x *ExampleTable) GetI64() int64 { - if x != nil { - return x.I64 - } - return 0 -} - -func (x *ExampleTable) GetS64() int64 { - if x != nil { - return x.S64 - } - return 0 -} - -func (x *ExampleTable) GetSf64() int64 { - if x != nil { - return x.Sf64 - } - return 0 -} - -func (x *ExampleTable) GetF32() uint32 { - if x != nil { - return x.F32 - } - return 0 -} - -func (x *ExampleTable) GetF64() uint64 { - if x != nil { - return x.F64 - } - return 0 -} - -func (x *ExampleTable) GetB() bool { - if x != nil { - return x.B - } - return false -} - -func (x *ExampleTable) GetE() Enum { - if x != nil { - return x.E - } - return Enum_ENUM_UNSPECIFIED -} - -func (x *ExampleTable) GetRepeated() []uint32 { - if x != nil { - return x.Repeated - } - return nil -} - -func (x *ExampleTable) GetMap() map[string]uint32 { - if x != nil { - return x.Map - } - return nil -} - -func (x *ExampleTable) GetMsg() *ExampleTable_ExampleMessage { - if x != nil { - return x.Msg - } - return nil -} - -func (x *ExampleTable) GetSum() isExampleTable_Sum { - if x != nil { - return x.Sum - } - return nil -} - -func (x *ExampleTable) GetOneof() uint32 { - if x, ok := x.GetSum().(*ExampleTable_Oneof); ok { - return x.Oneof - } - return 0 -} - -type isExampleTable_Sum interface { - isExampleTable_Sum() -} - -type ExampleTable_Oneof struct { - Oneof uint32 `protobuf:"varint,20,opt,name=oneof,proto3,oneof"` -} - -func (*ExampleTable_Oneof) isExampleTable_Sum() {} - -type ExampleAutoIncrementTable struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - X string `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"` - Y int32 `protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty"` -} - -func (x *ExampleAutoIncrementTable) Reset() { - *x = ExampleAutoIncrementTable{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_test_schema_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExampleAutoIncrementTable) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExampleAutoIncrementTable) ProtoMessage() {} - -// Deprecated: Use ExampleAutoIncrementTable.ProtoReflect.Descriptor instead. -func (*ExampleAutoIncrementTable) Descriptor() ([]byte, []int) { - return file_testpb_test_schema_proto_rawDescGZIP(), []int{1} -} - -func (x *ExampleAutoIncrementTable) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *ExampleAutoIncrementTable) GetX() string { - if x != nil { - return x.X - } - return "" -} - -func (x *ExampleAutoIncrementTable) GetY() int32 { - if x != nil { - return x.Y - } - return 0 -} - -type ExampleSingleton struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` - Bar int32 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` -} - -func (x *ExampleSingleton) Reset() { - *x = ExampleSingleton{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_test_schema_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExampleSingleton) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExampleSingleton) ProtoMessage() {} - -// Deprecated: Use ExampleSingleton.ProtoReflect.Descriptor instead. -func (*ExampleSingleton) Descriptor() ([]byte, []int) { - return file_testpb_test_schema_proto_rawDescGZIP(), []int{2} -} - -func (x *ExampleSingleton) GetFoo() string { - if x != nil { - return x.Foo - } - return "" -} - -func (x *ExampleSingleton) GetBar() int32 { - if x != nil { - return x.Bar - } - return 0 -} - -type ExampleTimestamp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Ts *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ts,proto3" json:"ts,omitempty"` -} - -func (x *ExampleTimestamp) Reset() { - *x = ExampleTimestamp{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_test_schema_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExampleTimestamp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExampleTimestamp) ProtoMessage() {} - -// Deprecated: Use ExampleTimestamp.ProtoReflect.Descriptor instead. -func (*ExampleTimestamp) Descriptor() ([]byte, []int) { - return file_testpb_test_schema_proto_rawDescGZIP(), []int{3} -} - -func (x *ExampleTimestamp) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *ExampleTimestamp) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ExampleTimestamp) GetTs() *timestamppb.Timestamp { - if x != nil { - return x.Ts - } - return nil -} - -type SimpleExample struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Unique string `protobuf:"bytes,2,opt,name=unique,proto3" json:"unique,omitempty"` - NotUnique string `protobuf:"bytes,3,opt,name=not_unique,json=notUnique,proto3" json:"not_unique,omitempty"` -} - -func (x *SimpleExample) Reset() { - *x = SimpleExample{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_test_schema_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SimpleExample) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SimpleExample) ProtoMessage() {} - -// Deprecated: Use SimpleExample.ProtoReflect.Descriptor instead. -func (*SimpleExample) Descriptor() ([]byte, []int) { - return file_testpb_test_schema_proto_rawDescGZIP(), []int{4} -} - -func (x *SimpleExample) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *SimpleExample) GetUnique() string { - if x != nil { - return x.Unique - } - return "" -} - -func (x *SimpleExample) GetNotUnique() string { - if x != nil { - return x.NotUnique - } - return "" -} - -// ExampleAutoIncFieldName is a table for testing InsertReturning. -type ExampleAutoIncFieldName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Foo uint64 `protobuf:"varint,1,opt,name=foo,proto3" json:"foo,omitempty"` - Bar uint64 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` -} - -func (x *ExampleAutoIncFieldName) Reset() { - *x = ExampleAutoIncFieldName{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_test_schema_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExampleAutoIncFieldName) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExampleAutoIncFieldName) ProtoMessage() {} - -// Deprecated: Use ExampleAutoIncFieldName.ProtoReflect.Descriptor instead. -func (*ExampleAutoIncFieldName) Descriptor() ([]byte, []int) { - return file_testpb_test_schema_proto_rawDescGZIP(), []int{5} -} - -func (x *ExampleAutoIncFieldName) GetFoo() uint64 { - if x != nil { - return x.Foo - } - return 0 -} - -func (x *ExampleAutoIncFieldName) GetBar() uint64 { - if x != nil { - return x.Bar - } - return 0 -} - -type ExampleTable_ExampleMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` - Bar int32 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` -} - -func (x *ExampleTable_ExampleMessage) Reset() { - *x = ExampleTable_ExampleMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_test_schema_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExampleTable_ExampleMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExampleTable_ExampleMessage) ProtoMessage() {} - -// Deprecated: Use ExampleTable_ExampleMessage.ProtoReflect.Descriptor instead. -func (*ExampleTable_ExampleMessage) Descriptor() ([]byte, []int) { - return file_testpb_test_schema_proto_rawDescGZIP(), []int{0, 1} -} - -func (x *ExampleTable_ExampleMessage) GetFoo() string { - if x != nil { - return x.Foo - } - return "" -} - -func (x *ExampleTable_ExampleMessage) GetBar() int32 { - if x != nil { - return x.Bar - } - return 0 -} - -var File_testpb_test_schema_proto protoreflect.FileDescriptor - -var file_testpb_test_schema_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, - 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, - 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x05, 0x0a, - 0x0c, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, - 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, - 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x73, 0x74, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x02, 0x62, 0x7a, 0x12, 0x2a, 0x0a, 0x02, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x02, 0x74, 0x73, 0x12, - 0x2b, 0x0a, 0x03, 0x64, 0x75, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x64, 0x75, 0x72, 0x12, 0x10, 0x0a, 0x03, - 0x69, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x10, - 0x0a, 0x03, 0x73, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x11, 0x52, 0x03, 0x73, 0x33, 0x32, - 0x12, 0x12, 0x0a, 0x04, 0x73, 0x66, 0x33, 0x32, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x04, - 0x73, 0x66, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x03, 0x69, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x36, 0x34, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x12, 0x52, 0x03, 0x73, 0x36, 0x34, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x66, 0x36, 0x34, - 0x18, 0x0c, 0x20, 0x01, 0x28, 0x10, 0x52, 0x04, 0x73, 0x66, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, - 0x66, 0x33, 0x32, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x07, 0x52, 0x03, 0x66, 0x33, 0x32, 0x12, 0x10, - 0x0a, 0x03, 0x66, 0x36, 0x34, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x66, 0x36, 0x34, - 0x12, 0x0c, 0x0a, 0x01, 0x62, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x01, 0x62, 0x12, 0x1a, - 0x0a, 0x01, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x70, 0x62, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x01, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, - 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x65, - 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2f, 0x0a, 0x03, 0x6d, 0x61, 0x70, 0x18, 0x12, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x61, - 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x03, 0x6d, 0x61, 0x70, 0x12, 0x35, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x13, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x78, - 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x16, - 0x0a, 0x05, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, - 0x05, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x1a, 0x36, 0x0a, 0x08, 0x4d, 0x61, 0x70, 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, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x34, - 0x0a, 0x0e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, - 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x03, 0x62, 0x61, 0x72, 0x3a, 0x3f, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x39, 0x0a, 0x0d, 0x0a, 0x0b, - 0x75, 0x33, 0x32, 0x2c, 0x69, 0x36, 0x34, 0x2c, 0x73, 0x74, 0x72, 0x12, 0x0d, 0x0a, 0x07, 0x75, - 0x36, 0x34, 0x2c, 0x73, 0x74, 0x72, 0x10, 0x01, 0x18, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x73, 0x74, - 0x72, 0x2c, 0x75, 0x33, 0x32, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x62, 0x7a, 0x2c, 0x73, 0x74, - 0x72, 0x10, 0x03, 0x18, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x62, 0x0a, 0x19, - 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x01, 0x79, 0x3a, 0x19, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x13, 0x0a, 0x06, 0x0a, - 0x02, 0x69, 0x64, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x01, 0x78, 0x10, 0x01, 0x18, 0x01, 0x18, 0x03, - 0x22, 0x40, 0x0a, 0x10, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, - 0x65, 0x74, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x03, 0x62, 0x61, 0x72, 0x3a, 0x08, 0xfa, 0x9e, 0xd3, 0x8e, 0x03, 0x02, - 0x08, 0x02, 0x22, 0x7c, 0x0a, 0x10, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x02, 0x74, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x02, 0x74, 0x73, 0x3a, 0x18, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x12, 0x0a, 0x06, - 0x0a, 0x02, 0x69, 0x64, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x74, 0x73, 0x10, 0x01, 0x18, 0x04, - 0x22, 0x7a, 0x0a, 0x0d, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x6e, 0x6f, 0x74, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x6e, 0x6f, 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x3a, 0x1e, 0xf2, 0x9e, - 0xd3, 0x8e, 0x03, 0x18, 0x0a, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0c, 0x0a, 0x06, - 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x10, 0x01, 0x18, 0x01, 0x18, 0x05, 0x22, 0x50, 0x0a, 0x17, - 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x62, 0x61, 0x72, 0x3a, 0x11, 0xf2, 0x9e, 0xd3, - 0x8e, 0x03, 0x0b, 0x0a, 0x07, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x10, 0x01, 0x18, 0x06, 0x2a, 0x64, - 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, - 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x4e, - 0x55, 0x4d, 0x5f, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x4e, 0x55, 0x4d, - 0x5f, 0x46, 0x49, 0x56, 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x0e, 0x45, 0x4e, 0x55, 0x4d, 0x5f, - 0x4e, 0x45, 0x47, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x10, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0x01, 0x42, 0x87, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, - 0x74, 0x70, 0x62, 0x42, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, - 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, - 0xe2, 0x02, 0x12, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_testpb_test_schema_proto_rawDescOnce sync.Once - file_testpb_test_schema_proto_rawDescData = file_testpb_test_schema_proto_rawDesc -) - -func file_testpb_test_schema_proto_rawDescGZIP() []byte { - file_testpb_test_schema_proto_rawDescOnce.Do(func() { - file_testpb_test_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_test_schema_proto_rawDescData) - }) - return file_testpb_test_schema_proto_rawDescData -} - -var file_testpb_test_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_testpb_test_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_testpb_test_schema_proto_goTypes = []interface{}{ - (Enum)(0), // 0: testpb.Enum - (*ExampleTable)(nil), // 1: testpb.ExampleTable - (*ExampleAutoIncrementTable)(nil), // 2: testpb.ExampleAutoIncrementTable - (*ExampleSingleton)(nil), // 3: testpb.ExampleSingleton - (*ExampleTimestamp)(nil), // 4: testpb.ExampleTimestamp - (*SimpleExample)(nil), // 5: testpb.SimpleExample - (*ExampleAutoIncFieldName)(nil), // 6: testpb.ExampleAutoIncFieldName - nil, // 7: testpb.ExampleTable.MapEntry - (*ExampleTable_ExampleMessage)(nil), // 8: testpb.ExampleTable.ExampleMessage - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 10: google.protobuf.Duration -} -var file_testpb_test_schema_proto_depIdxs = []int32{ - 9, // 0: testpb.ExampleTable.ts:type_name -> google.protobuf.Timestamp - 10, // 1: testpb.ExampleTable.dur:type_name -> google.protobuf.Duration - 0, // 2: testpb.ExampleTable.e:type_name -> testpb.Enum - 7, // 3: testpb.ExampleTable.map:type_name -> testpb.ExampleTable.MapEntry - 8, // 4: testpb.ExampleTable.msg:type_name -> testpb.ExampleTable.ExampleMessage - 9, // 5: testpb.ExampleTimestamp.ts:type_name -> google.protobuf.Timestamp - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_testpb_test_schema_proto_init() } -func file_testpb_test_schema_proto_init() { - if File_testpb_test_schema_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_testpb_test_schema_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExampleTable); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_testpb_test_schema_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExampleAutoIncrementTable); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_testpb_test_schema_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExampleSingleton); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_testpb_test_schema_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExampleTimestamp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_testpb_test_schema_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SimpleExample); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_testpb_test_schema_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExampleAutoIncFieldName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_testpb_test_schema_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExampleTable_ExampleMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_testpb_test_schema_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*ExampleTable_Oneof)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_testpb_test_schema_proto_rawDesc, - NumEnums: 1, - NumMessages: 8, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_testpb_test_schema_proto_goTypes, - DependencyIndexes: file_testpb_test_schema_proto_depIdxs, - EnumInfos: file_testpb_test_schema_proto_enumTypes, - MessageInfos: file_testpb_test_schema_proto_msgTypes, - }.Build() - File_testpb_test_schema_proto = out.File - file_testpb_test_schema_proto_rawDesc = nil - file_testpb_test_schema_proto_goTypes = nil - file_testpb_test_schema_proto_depIdxs = nil -} diff --git a/orm/internal/testpb/test_schema_query.pb.go b/orm/internal/testpb/test_schema_query.pb.go new file mode 100644 index 000000000000..0bded19f12a5 --- /dev/null +++ b/orm/internal/testpb/test_schema_query.pb.go @@ -0,0 +1,4325 @@ +// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc (unknown) +// source: testpb/test_schema_query.proto + +package testpb + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GetExampleTableRequest is the TestSchemaQuery/GetExampleTableRequest request type. +type GetExampleTableRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // u32 specifies the value of the u32 field in the primary key. + U32 uint32 `protobuf:"varint,1,opt,name=u32,proto3" json:"u32,omitempty"` + // i64 specifies the value of the i64 field in the primary key. + I64 int64 `protobuf:"varint,2,opt,name=i64,proto3" json:"i64,omitempty"` + // str specifies the value of the str field in the primary key. + Str string `protobuf:"bytes,3,opt,name=str,proto3" json:"str,omitempty"` +} + +func (x *GetExampleTableRequest) Reset() { + *x = GetExampleTableRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleTableRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleTableRequest) ProtoMessage() {} + +func (x *GetExampleTableRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleTableRequest.ProtoReflect.Descriptor instead. +func (*GetExampleTableRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{0} +} + +func (x *GetExampleTableRequest) GetU32() uint32 { + if x != nil { + return x.U32 + } + return 0 +} + +func (x *GetExampleTableRequest) GetI64() int64 { + if x != nil { + return x.I64 + } + return 0 +} + +func (x *GetExampleTableRequest) GetStr() string { + if x != nil { + return x.Str + } + return "" +} + +// GetExampleTableResponse is the TestSchemaQuery/GetExampleTableResponse response type. +type GetExampleTableResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value is the response value. + Value *ExampleTable `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetExampleTableResponse) Reset() { + *x = GetExampleTableResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleTableResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleTableResponse) ProtoMessage() {} + +func (x *GetExampleTableResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleTableResponse.ProtoReflect.Descriptor instead. +func (*GetExampleTableResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{1} +} + +func (x *GetExampleTableResponse) GetValue() *ExampleTable { + if x != nil { + return x.Value + } + return nil +} + +// GetExampleTableByU64StrRequest is the TestSchemaQuery/GetExampleTableByU64StrRequest request type. +type GetExampleTableByU64StrRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + U64 uint64 `protobuf:"varint,1,opt,name=u64,proto3" json:"u64,omitempty"` + Str string `protobuf:"bytes,2,opt,name=str,proto3" json:"str,omitempty"` +} + +func (x *GetExampleTableByU64StrRequest) Reset() { + *x = GetExampleTableByU64StrRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleTableByU64StrRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleTableByU64StrRequest) ProtoMessage() {} + +func (x *GetExampleTableByU64StrRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleTableByU64StrRequest.ProtoReflect.Descriptor instead. +func (*GetExampleTableByU64StrRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{2} +} + +func (x *GetExampleTableByU64StrRequest) GetU64() uint64 { + if x != nil { + return x.U64 + } + return 0 +} + +func (x *GetExampleTableByU64StrRequest) GetStr() string { + if x != nil { + return x.Str + } + return "" +} + +// GetExampleTableByU64StrResponse is the TestSchemaQuery/GetExampleTableByU64StrResponse response type. +type GetExampleTableByU64StrResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *ExampleTable `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetExampleTableByU64StrResponse) Reset() { + *x = GetExampleTableByU64StrResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleTableByU64StrResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleTableByU64StrResponse) ProtoMessage() {} + +func (x *GetExampleTableByU64StrResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleTableByU64StrResponse.ProtoReflect.Descriptor instead. +func (*GetExampleTableByU64StrResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{3} +} + +func (x *GetExampleTableByU64StrResponse) GetValue() *ExampleTable { + if x != nil { + return x.Value + } + return nil +} + +// ListExampleTableRequest is the TestSchemaQuery/ListExampleTableRequest request type. +type ListExampleTableRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // query specifies the type of query - either a prefix or range query. + // + // Types that are assignable to Query: + // *ListExampleTableRequest_PrefixQuery + // *ListExampleTableRequest_RangeQuery_ + Query isListExampleTableRequest_Query `protobuf_oneof:"query"` + // pagination specifies optional pagination parameters. + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListExampleTableRequest) Reset() { + *x = ListExampleTableRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTableRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTableRequest) ProtoMessage() {} + +func (x *ListExampleTableRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTableRequest.ProtoReflect.Descriptor instead. +func (*ListExampleTableRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{4} +} + +func (m *ListExampleTableRequest) GetQuery() isListExampleTableRequest_Query { + if m != nil { + return m.Query + } + return nil +} + +func (x *ListExampleTableRequest) GetPrefixQuery() *ListExampleTableRequest_IndexKey { + if x, ok := x.GetQuery().(*ListExampleTableRequest_PrefixQuery); ok { + return x.PrefixQuery + } + return nil +} + +func (x *ListExampleTableRequest) GetRangeQuery() *ListExampleTableRequest_RangeQuery { + if x, ok := x.GetQuery().(*ListExampleTableRequest_RangeQuery_); ok { + return x.RangeQuery + } + return nil +} + +func (x *ListExampleTableRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type isListExampleTableRequest_Query interface { + isListExampleTableRequest_Query() +} + +type ListExampleTableRequest_PrefixQuery struct { + // prefix_query specifies the index key value to use for the prefix query. + PrefixQuery *ListExampleTableRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"` +} + +type ListExampleTableRequest_RangeQuery_ struct { + // range_query specifies the index key from/to values to use for the range query. + RangeQuery *ListExampleTableRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"` +} + +func (*ListExampleTableRequest_PrefixQuery) isListExampleTableRequest_Query() {} + +func (*ListExampleTableRequest_RangeQuery_) isListExampleTableRequest_Query() {} + +// ListExampleTableResponse is the TestSchemaQuery/ListExampleTableResponse response type. +type ListExampleTableResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // values are the results of the query. + Values []*ExampleTable `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // pagination is the pagination response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListExampleTableResponse) Reset() { + *x = ListExampleTableResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTableResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTableResponse) ProtoMessage() {} + +func (x *ListExampleTableResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTableResponse.ProtoReflect.Descriptor instead. +func (*ListExampleTableResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{5} +} + +func (x *ListExampleTableResponse) GetValues() []*ExampleTable { + if x != nil { + return x.Values + } + return nil +} + +func (x *ListExampleTableResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// GetExampleAutoIncrementTableRequest is the TestSchemaQuery/GetExampleAutoIncrementTableRequest request type. +type GetExampleAutoIncrementTableRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id specifies the value of the id field in the primary key. + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetExampleAutoIncrementTableRequest) Reset() { + *x = GetExampleAutoIncrementTableRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleAutoIncrementTableRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleAutoIncrementTableRequest) ProtoMessage() {} + +func (x *GetExampleAutoIncrementTableRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleAutoIncrementTableRequest.ProtoReflect.Descriptor instead. +func (*GetExampleAutoIncrementTableRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{6} +} + +func (x *GetExampleAutoIncrementTableRequest) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +// GetExampleAutoIncrementTableResponse is the TestSchemaQuery/GetExampleAutoIncrementTableResponse response type. +type GetExampleAutoIncrementTableResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value is the response value. + Value *ExampleAutoIncrementTable `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetExampleAutoIncrementTableResponse) Reset() { + *x = GetExampleAutoIncrementTableResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleAutoIncrementTableResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleAutoIncrementTableResponse) ProtoMessage() {} + +func (x *GetExampleAutoIncrementTableResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleAutoIncrementTableResponse.ProtoReflect.Descriptor instead. +func (*GetExampleAutoIncrementTableResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{7} +} + +func (x *GetExampleAutoIncrementTableResponse) GetValue() *ExampleAutoIncrementTable { + if x != nil { + return x.Value + } + return nil +} + +// GetExampleAutoIncrementTableByXRequest is the TestSchemaQuery/GetExampleAutoIncrementTableByXRequest request type. +type GetExampleAutoIncrementTableByXRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + X string `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"` +} + +func (x *GetExampleAutoIncrementTableByXRequest) Reset() { + *x = GetExampleAutoIncrementTableByXRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleAutoIncrementTableByXRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleAutoIncrementTableByXRequest) ProtoMessage() {} + +func (x *GetExampleAutoIncrementTableByXRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleAutoIncrementTableByXRequest.ProtoReflect.Descriptor instead. +func (*GetExampleAutoIncrementTableByXRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{8} +} + +func (x *GetExampleAutoIncrementTableByXRequest) GetX() string { + if x != nil { + return x.X + } + return "" +} + +// GetExampleAutoIncrementTableByXResponse is the TestSchemaQuery/GetExampleAutoIncrementTableByXResponse response type. +type GetExampleAutoIncrementTableByXResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *ExampleAutoIncrementTable `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetExampleAutoIncrementTableByXResponse) Reset() { + *x = GetExampleAutoIncrementTableByXResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleAutoIncrementTableByXResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleAutoIncrementTableByXResponse) ProtoMessage() {} + +func (x *GetExampleAutoIncrementTableByXResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleAutoIncrementTableByXResponse.ProtoReflect.Descriptor instead. +func (*GetExampleAutoIncrementTableByXResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{9} +} + +func (x *GetExampleAutoIncrementTableByXResponse) GetValue() *ExampleAutoIncrementTable { + if x != nil { + return x.Value + } + return nil +} + +// ListExampleAutoIncrementTableRequest is the TestSchemaQuery/ListExampleAutoIncrementTableRequest request type. +type ListExampleAutoIncrementTableRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // query specifies the type of query - either a prefix or range query. + // + // Types that are assignable to Query: + // *ListExampleAutoIncrementTableRequest_PrefixQuery + // *ListExampleAutoIncrementTableRequest_RangeQuery_ + Query isListExampleAutoIncrementTableRequest_Query `protobuf_oneof:"query"` + // pagination specifies optional pagination parameters. + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListExampleAutoIncrementTableRequest) Reset() { + *x = ListExampleAutoIncrementTableRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncrementTableRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncrementTableRequest) ProtoMessage() {} + +func (x *ListExampleAutoIncrementTableRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncrementTableRequest.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncrementTableRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{10} +} + +func (m *ListExampleAutoIncrementTableRequest) GetQuery() isListExampleAutoIncrementTableRequest_Query { + if m != nil { + return m.Query + } + return nil +} + +func (x *ListExampleAutoIncrementTableRequest) GetPrefixQuery() *ListExampleAutoIncrementTableRequest_IndexKey { + if x, ok := x.GetQuery().(*ListExampleAutoIncrementTableRequest_PrefixQuery); ok { + return x.PrefixQuery + } + return nil +} + +func (x *ListExampleAutoIncrementTableRequest) GetRangeQuery() *ListExampleAutoIncrementTableRequest_RangeQuery { + if x, ok := x.GetQuery().(*ListExampleAutoIncrementTableRequest_RangeQuery_); ok { + return x.RangeQuery + } + return nil +} + +func (x *ListExampleAutoIncrementTableRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type isListExampleAutoIncrementTableRequest_Query interface { + isListExampleAutoIncrementTableRequest_Query() +} + +type ListExampleAutoIncrementTableRequest_PrefixQuery struct { + // prefix_query specifies the index key value to use for the prefix query. + PrefixQuery *ListExampleAutoIncrementTableRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"` +} + +type ListExampleAutoIncrementTableRequest_RangeQuery_ struct { + // range_query specifies the index key from/to values to use for the range query. + RangeQuery *ListExampleAutoIncrementTableRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"` +} + +func (*ListExampleAutoIncrementTableRequest_PrefixQuery) isListExampleAutoIncrementTableRequest_Query() { +} + +func (*ListExampleAutoIncrementTableRequest_RangeQuery_) isListExampleAutoIncrementTableRequest_Query() { +} + +// ListExampleAutoIncrementTableResponse is the TestSchemaQuery/ListExampleAutoIncrementTableResponse response type. +type ListExampleAutoIncrementTableResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // values are the results of the query. + Values []*ExampleAutoIncrementTable `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // pagination is the pagination response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListExampleAutoIncrementTableResponse) Reset() { + *x = ListExampleAutoIncrementTableResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncrementTableResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncrementTableResponse) ProtoMessage() {} + +func (x *ListExampleAutoIncrementTableResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncrementTableResponse.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncrementTableResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{11} +} + +func (x *ListExampleAutoIncrementTableResponse) GetValues() []*ExampleAutoIncrementTable { + if x != nil { + return x.Values + } + return nil +} + +func (x *ListExampleAutoIncrementTableResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// GetExampleSingletonRequest is the TestSchemaQuery/GetExampleSingletonRequest request type. +type GetExampleSingletonRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetExampleSingletonRequest) Reset() { + *x = GetExampleSingletonRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleSingletonRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleSingletonRequest) ProtoMessage() {} + +func (x *GetExampleSingletonRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleSingletonRequest.ProtoReflect.Descriptor instead. +func (*GetExampleSingletonRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{12} +} + +// GetExampleSingletonResponse is the TestSchemaQuery/GetExampleSingletonResponse request type. +type GetExampleSingletonResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *ExampleSingleton `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetExampleSingletonResponse) Reset() { + *x = GetExampleSingletonResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleSingletonResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleSingletonResponse) ProtoMessage() {} + +func (x *GetExampleSingletonResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleSingletonResponse.ProtoReflect.Descriptor instead. +func (*GetExampleSingletonResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{13} +} + +func (x *GetExampleSingletonResponse) GetValue() *ExampleSingleton { + if x != nil { + return x.Value + } + return nil +} + +// GetExampleTimestampRequest is the TestSchemaQuery/GetExampleTimestampRequest request type. +type GetExampleTimestampRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id specifies the value of the id field in the primary key. + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetExampleTimestampRequest) Reset() { + *x = GetExampleTimestampRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleTimestampRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleTimestampRequest) ProtoMessage() {} + +func (x *GetExampleTimestampRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleTimestampRequest.ProtoReflect.Descriptor instead. +func (*GetExampleTimestampRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{14} +} + +func (x *GetExampleTimestampRequest) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +// GetExampleTimestampResponse is the TestSchemaQuery/GetExampleTimestampResponse response type. +type GetExampleTimestampResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value is the response value. + Value *ExampleTimestamp `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetExampleTimestampResponse) Reset() { + *x = GetExampleTimestampResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleTimestampResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleTimestampResponse) ProtoMessage() {} + +func (x *GetExampleTimestampResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleTimestampResponse.ProtoReflect.Descriptor instead. +func (*GetExampleTimestampResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{15} +} + +func (x *GetExampleTimestampResponse) GetValue() *ExampleTimestamp { + if x != nil { + return x.Value + } + return nil +} + +// ListExampleTimestampRequest is the TestSchemaQuery/ListExampleTimestampRequest request type. +type ListExampleTimestampRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // query specifies the type of query - either a prefix or range query. + // + // Types that are assignable to Query: + // *ListExampleTimestampRequest_PrefixQuery + // *ListExampleTimestampRequest_RangeQuery_ + Query isListExampleTimestampRequest_Query `protobuf_oneof:"query"` + // pagination specifies optional pagination parameters. + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListExampleTimestampRequest) Reset() { + *x = ListExampleTimestampRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTimestampRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTimestampRequest) ProtoMessage() {} + +func (x *ListExampleTimestampRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTimestampRequest.ProtoReflect.Descriptor instead. +func (*ListExampleTimestampRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{16} +} + +func (m *ListExampleTimestampRequest) GetQuery() isListExampleTimestampRequest_Query { + if m != nil { + return m.Query + } + return nil +} + +func (x *ListExampleTimestampRequest) GetPrefixQuery() *ListExampleTimestampRequest_IndexKey { + if x, ok := x.GetQuery().(*ListExampleTimestampRequest_PrefixQuery); ok { + return x.PrefixQuery + } + return nil +} + +func (x *ListExampleTimestampRequest) GetRangeQuery() *ListExampleTimestampRequest_RangeQuery { + if x, ok := x.GetQuery().(*ListExampleTimestampRequest_RangeQuery_); ok { + return x.RangeQuery + } + return nil +} + +func (x *ListExampleTimestampRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type isListExampleTimestampRequest_Query interface { + isListExampleTimestampRequest_Query() +} + +type ListExampleTimestampRequest_PrefixQuery struct { + // prefix_query specifies the index key value to use for the prefix query. + PrefixQuery *ListExampleTimestampRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"` +} + +type ListExampleTimestampRequest_RangeQuery_ struct { + // range_query specifies the index key from/to values to use for the range query. + RangeQuery *ListExampleTimestampRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"` +} + +func (*ListExampleTimestampRequest_PrefixQuery) isListExampleTimestampRequest_Query() {} + +func (*ListExampleTimestampRequest_RangeQuery_) isListExampleTimestampRequest_Query() {} + +// ListExampleTimestampResponse is the TestSchemaQuery/ListExampleTimestampResponse response type. +type ListExampleTimestampResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // values are the results of the query. + Values []*ExampleTimestamp `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // pagination is the pagination response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListExampleTimestampResponse) Reset() { + *x = ListExampleTimestampResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTimestampResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTimestampResponse) ProtoMessage() {} + +func (x *ListExampleTimestampResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTimestampResponse.ProtoReflect.Descriptor instead. +func (*ListExampleTimestampResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{17} +} + +func (x *ListExampleTimestampResponse) GetValues() []*ExampleTimestamp { + if x != nil { + return x.Values + } + return nil +} + +func (x *ListExampleTimestampResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// GetSimpleExampleRequest is the TestSchemaQuery/GetSimpleExampleRequest request type. +type GetSimpleExampleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // name specifies the value of the name field in the primary key. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetSimpleExampleRequest) Reset() { + *x = GetSimpleExampleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSimpleExampleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSimpleExampleRequest) ProtoMessage() {} + +func (x *GetSimpleExampleRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSimpleExampleRequest.ProtoReflect.Descriptor instead. +func (*GetSimpleExampleRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{18} +} + +func (x *GetSimpleExampleRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// GetSimpleExampleResponse is the TestSchemaQuery/GetSimpleExampleResponse response type. +type GetSimpleExampleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value is the response value. + Value *SimpleExample `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetSimpleExampleResponse) Reset() { + *x = GetSimpleExampleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSimpleExampleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSimpleExampleResponse) ProtoMessage() {} + +func (x *GetSimpleExampleResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSimpleExampleResponse.ProtoReflect.Descriptor instead. +func (*GetSimpleExampleResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{19} +} + +func (x *GetSimpleExampleResponse) GetValue() *SimpleExample { + if x != nil { + return x.Value + } + return nil +} + +// GetSimpleExampleByUniqueRequest is the TestSchemaQuery/GetSimpleExampleByUniqueRequest request type. +type GetSimpleExampleByUniqueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unique string `protobuf:"bytes,1,opt,name=unique,proto3" json:"unique,omitempty"` +} + +func (x *GetSimpleExampleByUniqueRequest) Reset() { + *x = GetSimpleExampleByUniqueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSimpleExampleByUniqueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSimpleExampleByUniqueRequest) ProtoMessage() {} + +func (x *GetSimpleExampleByUniqueRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSimpleExampleByUniqueRequest.ProtoReflect.Descriptor instead. +func (*GetSimpleExampleByUniqueRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{20} +} + +func (x *GetSimpleExampleByUniqueRequest) GetUnique() string { + if x != nil { + return x.Unique + } + return "" +} + +// GetSimpleExampleByUniqueResponse is the TestSchemaQuery/GetSimpleExampleByUniqueResponse response type. +type GetSimpleExampleByUniqueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *SimpleExample `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetSimpleExampleByUniqueResponse) Reset() { + *x = GetSimpleExampleByUniqueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSimpleExampleByUniqueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSimpleExampleByUniqueResponse) ProtoMessage() {} + +func (x *GetSimpleExampleByUniqueResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSimpleExampleByUniqueResponse.ProtoReflect.Descriptor instead. +func (*GetSimpleExampleByUniqueResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{21} +} + +func (x *GetSimpleExampleByUniqueResponse) GetValue() *SimpleExample { + if x != nil { + return x.Value + } + return nil +} + +// ListSimpleExampleRequest is the TestSchemaQuery/ListSimpleExampleRequest request type. +type ListSimpleExampleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // query specifies the type of query - either a prefix or range query. + // + // Types that are assignable to Query: + // *ListSimpleExampleRequest_PrefixQuery + // *ListSimpleExampleRequest_RangeQuery_ + Query isListSimpleExampleRequest_Query `protobuf_oneof:"query"` + // pagination specifies optional pagination parameters. + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListSimpleExampleRequest) Reset() { + *x = ListSimpleExampleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSimpleExampleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSimpleExampleRequest) ProtoMessage() {} + +func (x *ListSimpleExampleRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSimpleExampleRequest.ProtoReflect.Descriptor instead. +func (*ListSimpleExampleRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{22} +} + +func (m *ListSimpleExampleRequest) GetQuery() isListSimpleExampleRequest_Query { + if m != nil { + return m.Query + } + return nil +} + +func (x *ListSimpleExampleRequest) GetPrefixQuery() *ListSimpleExampleRequest_IndexKey { + if x, ok := x.GetQuery().(*ListSimpleExampleRequest_PrefixQuery); ok { + return x.PrefixQuery + } + return nil +} + +func (x *ListSimpleExampleRequest) GetRangeQuery() *ListSimpleExampleRequest_RangeQuery { + if x, ok := x.GetQuery().(*ListSimpleExampleRequest_RangeQuery_); ok { + return x.RangeQuery + } + return nil +} + +func (x *ListSimpleExampleRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type isListSimpleExampleRequest_Query interface { + isListSimpleExampleRequest_Query() +} + +type ListSimpleExampleRequest_PrefixQuery struct { + // prefix_query specifies the index key value to use for the prefix query. + PrefixQuery *ListSimpleExampleRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"` +} + +type ListSimpleExampleRequest_RangeQuery_ struct { + // range_query specifies the index key from/to values to use for the range query. + RangeQuery *ListSimpleExampleRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"` +} + +func (*ListSimpleExampleRequest_PrefixQuery) isListSimpleExampleRequest_Query() {} + +func (*ListSimpleExampleRequest_RangeQuery_) isListSimpleExampleRequest_Query() {} + +// ListSimpleExampleResponse is the TestSchemaQuery/ListSimpleExampleResponse response type. +type ListSimpleExampleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // values are the results of the query. + Values []*SimpleExample `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // pagination is the pagination response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListSimpleExampleResponse) Reset() { + *x = ListSimpleExampleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSimpleExampleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSimpleExampleResponse) ProtoMessage() {} + +func (x *ListSimpleExampleResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSimpleExampleResponse.ProtoReflect.Descriptor instead. +func (*ListSimpleExampleResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{23} +} + +func (x *ListSimpleExampleResponse) GetValues() []*SimpleExample { + if x != nil { + return x.Values + } + return nil +} + +func (x *ListSimpleExampleResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// GetExampleAutoIncFieldNameRequest is the TestSchemaQuery/GetExampleAutoIncFieldNameRequest request type. +type GetExampleAutoIncFieldNameRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // foo specifies the value of the foo field in the primary key. + Foo uint64 `protobuf:"varint,1,opt,name=foo,proto3" json:"foo,omitempty"` +} + +func (x *GetExampleAutoIncFieldNameRequest) Reset() { + *x = GetExampleAutoIncFieldNameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleAutoIncFieldNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleAutoIncFieldNameRequest) ProtoMessage() {} + +func (x *GetExampleAutoIncFieldNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleAutoIncFieldNameRequest.ProtoReflect.Descriptor instead. +func (*GetExampleAutoIncFieldNameRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{24} +} + +func (x *GetExampleAutoIncFieldNameRequest) GetFoo() uint64 { + if x != nil { + return x.Foo + } + return 0 +} + +// GetExampleAutoIncFieldNameResponse is the TestSchemaQuery/GetExampleAutoIncFieldNameResponse response type. +type GetExampleAutoIncFieldNameResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value is the response value. + Value *ExampleAutoIncFieldName `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetExampleAutoIncFieldNameResponse) Reset() { + *x = GetExampleAutoIncFieldNameResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetExampleAutoIncFieldNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExampleAutoIncFieldNameResponse) ProtoMessage() {} + +func (x *GetExampleAutoIncFieldNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExampleAutoIncFieldNameResponse.ProtoReflect.Descriptor instead. +func (*GetExampleAutoIncFieldNameResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{25} +} + +func (x *GetExampleAutoIncFieldNameResponse) GetValue() *ExampleAutoIncFieldName { + if x != nil { + return x.Value + } + return nil +} + +// ListExampleAutoIncFieldNameRequest is the TestSchemaQuery/ListExampleAutoIncFieldNameRequest request type. +type ListExampleAutoIncFieldNameRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // query specifies the type of query - either a prefix or range query. + // + // Types that are assignable to Query: + // *ListExampleAutoIncFieldNameRequest_PrefixQuery + // *ListExampleAutoIncFieldNameRequest_RangeQuery_ + Query isListExampleAutoIncFieldNameRequest_Query `protobuf_oneof:"query"` + // pagination specifies optional pagination parameters. + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListExampleAutoIncFieldNameRequest) Reset() { + *x = ListExampleAutoIncFieldNameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncFieldNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncFieldNameRequest) ProtoMessage() {} + +func (x *ListExampleAutoIncFieldNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncFieldNameRequest.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncFieldNameRequest) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{26} +} + +func (m *ListExampleAutoIncFieldNameRequest) GetQuery() isListExampleAutoIncFieldNameRequest_Query { + if m != nil { + return m.Query + } + return nil +} + +func (x *ListExampleAutoIncFieldNameRequest) GetPrefixQuery() *ListExampleAutoIncFieldNameRequest_IndexKey { + if x, ok := x.GetQuery().(*ListExampleAutoIncFieldNameRequest_PrefixQuery); ok { + return x.PrefixQuery + } + return nil +} + +func (x *ListExampleAutoIncFieldNameRequest) GetRangeQuery() *ListExampleAutoIncFieldNameRequest_RangeQuery { + if x, ok := x.GetQuery().(*ListExampleAutoIncFieldNameRequest_RangeQuery_); ok { + return x.RangeQuery + } + return nil +} + +func (x *ListExampleAutoIncFieldNameRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type isListExampleAutoIncFieldNameRequest_Query interface { + isListExampleAutoIncFieldNameRequest_Query() +} + +type ListExampleAutoIncFieldNameRequest_PrefixQuery struct { + // prefix_query specifies the index key value to use for the prefix query. + PrefixQuery *ListExampleAutoIncFieldNameRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"` +} + +type ListExampleAutoIncFieldNameRequest_RangeQuery_ struct { + // range_query specifies the index key from/to values to use for the range query. + RangeQuery *ListExampleAutoIncFieldNameRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"` +} + +func (*ListExampleAutoIncFieldNameRequest_PrefixQuery) isListExampleAutoIncFieldNameRequest_Query() {} + +func (*ListExampleAutoIncFieldNameRequest_RangeQuery_) isListExampleAutoIncFieldNameRequest_Query() {} + +// ListExampleAutoIncFieldNameResponse is the TestSchemaQuery/ListExampleAutoIncFieldNameResponse response type. +type ListExampleAutoIncFieldNameResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // values are the results of the query. + Values []*ExampleAutoIncFieldName `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // pagination is the pagination response. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListExampleAutoIncFieldNameResponse) Reset() { + *x = ListExampleAutoIncFieldNameResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncFieldNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncFieldNameResponse) ProtoMessage() {} + +func (x *ListExampleAutoIncFieldNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncFieldNameResponse.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncFieldNameResponse) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{27} +} + +func (x *ListExampleAutoIncFieldNameResponse) GetValues() []*ExampleAutoIncFieldName { + if x != nil { + return x.Values + } + return nil +} + +func (x *ListExampleAutoIncFieldNameResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// IndexKey specifies the value of an index key to use in prefix and range queries. +type ListExampleTableRequest_IndexKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key specifies the index key value. + // + // Types that are assignable to Key: + // *ListExampleTableRequest_IndexKey_U_32I_64Str + // *ListExampleTableRequest_IndexKey_U_64Str + // *ListExampleTableRequest_IndexKey_StrU_32 + // *ListExampleTableRequest_IndexKey_BzStr_ + Key isListExampleTableRequest_IndexKey_Key `protobuf_oneof:"key"` +} + +func (x *ListExampleTableRequest_IndexKey) Reset() { + *x = ListExampleTableRequest_IndexKey{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTableRequest_IndexKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTableRequest_IndexKey) ProtoMessage() {} + +func (x *ListExampleTableRequest_IndexKey) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTableRequest_IndexKey.ProtoReflect.Descriptor instead. +func (*ListExampleTableRequest_IndexKey) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{4, 0} +} + +func (m *ListExampleTableRequest_IndexKey) GetKey() isListExampleTableRequest_IndexKey_Key { + if m != nil { + return m.Key + } + return nil +} + +func (x *ListExampleTableRequest_IndexKey) GetU_32I_64Str() *ListExampleTableRequest_IndexKey_U32I64Str { + if x, ok := x.GetKey().(*ListExampleTableRequest_IndexKey_U_32I_64Str); ok { + return x.U_32I_64Str + } + return nil +} + +func (x *ListExampleTableRequest_IndexKey) GetU_64Str() *ListExampleTableRequest_IndexKey_U64Str { + if x, ok := x.GetKey().(*ListExampleTableRequest_IndexKey_U_64Str); ok { + return x.U_64Str + } + return nil +} + +func (x *ListExampleTableRequest_IndexKey) GetStrU_32() *ListExampleTableRequest_IndexKey_StrU32 { + if x, ok := x.GetKey().(*ListExampleTableRequest_IndexKey_StrU_32); ok { + return x.StrU_32 + } + return nil +} + +func (x *ListExampleTableRequest_IndexKey) GetBzStr() *ListExampleTableRequest_IndexKey_BzStr { + if x, ok := x.GetKey().(*ListExampleTableRequest_IndexKey_BzStr_); ok { + return x.BzStr + } + return nil +} + +type isListExampleTableRequest_IndexKey_Key interface { + isListExampleTableRequest_IndexKey_Key() +} + +type ListExampleTableRequest_IndexKey_U_32I_64Str struct { + // u_32_i_64_str specifies the value of the U32I64Str index key to use in the query. + U_32I_64Str *ListExampleTableRequest_IndexKey_U32I64Str `protobuf:"bytes,1,opt,name=u_32_i_64_str,json=u32I64Str,proto3,oneof"` +} + +type ListExampleTableRequest_IndexKey_U_64Str struct { + // u_64_str specifies the value of the U64Str index key to use in the query. + U_64Str *ListExampleTableRequest_IndexKey_U64Str `protobuf:"bytes,2,opt,name=u_64_str,json=u64Str,proto3,oneof"` +} + +type ListExampleTableRequest_IndexKey_StrU_32 struct { + // str_u_32 specifies the value of the StrU32 index key to use in the query. + StrU_32 *ListExampleTableRequest_IndexKey_StrU32 `protobuf:"bytes,3,opt,name=str_u_32,json=strU32,proto3,oneof"` +} + +type ListExampleTableRequest_IndexKey_BzStr_ struct { + // bz_str specifies the value of the BzStr index key to use in the query. + BzStr *ListExampleTableRequest_IndexKey_BzStr `protobuf:"bytes,4,opt,name=bz_str,json=bzStr,proto3,oneof"` +} + +func (*ListExampleTableRequest_IndexKey_U_32I_64Str) isListExampleTableRequest_IndexKey_Key() {} + +func (*ListExampleTableRequest_IndexKey_U_64Str) isListExampleTableRequest_IndexKey_Key() {} + +func (*ListExampleTableRequest_IndexKey_StrU_32) isListExampleTableRequest_IndexKey_Key() {} + +func (*ListExampleTableRequest_IndexKey_BzStr_) isListExampleTableRequest_IndexKey_Key() {} + +// RangeQuery specifies the from/to index keys for a range query. +type ListExampleTableRequest_RangeQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + From *ListExampleTableRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + To *ListExampleTableRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (x *ListExampleTableRequest_RangeQuery) Reset() { + *x = ListExampleTableRequest_RangeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTableRequest_RangeQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTableRequest_RangeQuery) ProtoMessage() {} + +func (x *ListExampleTableRequest_RangeQuery) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTableRequest_RangeQuery.ProtoReflect.Descriptor instead. +func (*ListExampleTableRequest_RangeQuery) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{4, 1} +} + +func (x *ListExampleTableRequest_RangeQuery) GetFrom() *ListExampleTableRequest_IndexKey { + if x != nil { + return x.From + } + return nil +} + +func (x *ListExampleTableRequest_RangeQuery) GetTo() *ListExampleTableRequest_IndexKey { + if x != nil { + return x.To + } + return nil +} + +type ListExampleTableRequest_IndexKey_U32I64Str struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // u32 is the value of the u32 field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + U32 *uint32 `protobuf:"varint,1,opt,name=u32,proto3,oneof" json:"u32,omitempty"` + // i64 is the value of the i64 field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + I64 *int64 `protobuf:"varint,2,opt,name=i64,proto3,oneof" json:"i64,omitempty"` + // str is the value of the str field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Str *string `protobuf:"bytes,3,opt,name=str,proto3,oneof" json:"str,omitempty"` +} + +func (x *ListExampleTableRequest_IndexKey_U32I64Str) Reset() { + *x = ListExampleTableRequest_IndexKey_U32I64Str{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTableRequest_IndexKey_U32I64Str) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTableRequest_IndexKey_U32I64Str) ProtoMessage() {} + +func (x *ListExampleTableRequest_IndexKey_U32I64Str) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTableRequest_IndexKey_U32I64Str.ProtoReflect.Descriptor instead. +func (*ListExampleTableRequest_IndexKey_U32I64Str) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{4, 0, 0} +} + +func (x *ListExampleTableRequest_IndexKey_U32I64Str) GetU32() uint32 { + if x != nil && x.U32 != nil { + return *x.U32 + } + return 0 +} + +func (x *ListExampleTableRequest_IndexKey_U32I64Str) GetI64() int64 { + if x != nil && x.I64 != nil { + return *x.I64 + } + return 0 +} + +func (x *ListExampleTableRequest_IndexKey_U32I64Str) GetStr() string { + if x != nil && x.Str != nil { + return *x.Str + } + return "" +} + +type ListExampleTableRequest_IndexKey_U64Str struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // u64 is the value of the u64 field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + U64 *uint64 `protobuf:"varint,1,opt,name=u64,proto3,oneof" json:"u64,omitempty"` + // str is the value of the str field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Str *string `protobuf:"bytes,2,opt,name=str,proto3,oneof" json:"str,omitempty"` +} + +func (x *ListExampleTableRequest_IndexKey_U64Str) Reset() { + *x = ListExampleTableRequest_IndexKey_U64Str{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTableRequest_IndexKey_U64Str) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTableRequest_IndexKey_U64Str) ProtoMessage() {} + +func (x *ListExampleTableRequest_IndexKey_U64Str) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTableRequest_IndexKey_U64Str.ProtoReflect.Descriptor instead. +func (*ListExampleTableRequest_IndexKey_U64Str) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{4, 0, 1} +} + +func (x *ListExampleTableRequest_IndexKey_U64Str) GetU64() uint64 { + if x != nil && x.U64 != nil { + return *x.U64 + } + return 0 +} + +func (x *ListExampleTableRequest_IndexKey_U64Str) GetStr() string { + if x != nil && x.Str != nil { + return *x.Str + } + return "" +} + +type ListExampleTableRequest_IndexKey_StrU32 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // str is the value of the str field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Str *string `protobuf:"bytes,1,opt,name=str,proto3,oneof" json:"str,omitempty"` + // u32 is the value of the u32 field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + U32 *uint32 `protobuf:"varint,2,opt,name=u32,proto3,oneof" json:"u32,omitempty"` +} + +func (x *ListExampleTableRequest_IndexKey_StrU32) Reset() { + *x = ListExampleTableRequest_IndexKey_StrU32{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTableRequest_IndexKey_StrU32) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTableRequest_IndexKey_StrU32) ProtoMessage() {} + +func (x *ListExampleTableRequest_IndexKey_StrU32) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTableRequest_IndexKey_StrU32.ProtoReflect.Descriptor instead. +func (*ListExampleTableRequest_IndexKey_StrU32) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{4, 0, 2} +} + +func (x *ListExampleTableRequest_IndexKey_StrU32) GetStr() string { + if x != nil && x.Str != nil { + return *x.Str + } + return "" +} + +func (x *ListExampleTableRequest_IndexKey_StrU32) GetU32() uint32 { + if x != nil && x.U32 != nil { + return *x.U32 + } + return 0 +} + +type ListExampleTableRequest_IndexKey_BzStr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // bz is the value of the bz field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Bz []byte `protobuf:"bytes,1,opt,name=bz,proto3,oneof" json:"bz,omitempty"` + // str is the value of the str field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Str *string `protobuf:"bytes,2,opt,name=str,proto3,oneof" json:"str,omitempty"` +} + +func (x *ListExampleTableRequest_IndexKey_BzStr) Reset() { + *x = ListExampleTableRequest_IndexKey_BzStr{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTableRequest_IndexKey_BzStr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTableRequest_IndexKey_BzStr) ProtoMessage() {} + +func (x *ListExampleTableRequest_IndexKey_BzStr) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTableRequest_IndexKey_BzStr.ProtoReflect.Descriptor instead. +func (*ListExampleTableRequest_IndexKey_BzStr) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{4, 0, 3} +} + +func (x *ListExampleTableRequest_IndexKey_BzStr) GetBz() []byte { + if x != nil { + return x.Bz + } + return nil +} + +func (x *ListExampleTableRequest_IndexKey_BzStr) GetStr() string { + if x != nil && x.Str != nil { + return *x.Str + } + return "" +} + +// IndexKey specifies the value of an index key to use in prefix and range queries. +type ListExampleAutoIncrementTableRequest_IndexKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key specifies the index key value. + // + // Types that are assignable to Key: + // *ListExampleAutoIncrementTableRequest_IndexKey_Id_ + // *ListExampleAutoIncrementTableRequest_IndexKey_X_ + Key isListExampleAutoIncrementTableRequest_IndexKey_Key `protobuf_oneof:"key"` +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey) Reset() { + *x = ListExampleAutoIncrementTableRequest_IndexKey{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncrementTableRequest_IndexKey) ProtoMessage() {} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncrementTableRequest_IndexKey.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncrementTableRequest_IndexKey) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{10, 0} +} + +func (m *ListExampleAutoIncrementTableRequest_IndexKey) GetKey() isListExampleAutoIncrementTableRequest_IndexKey_Key { + if m != nil { + return m.Key + } + return nil +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey) GetId() *ListExampleAutoIncrementTableRequest_IndexKey_Id { + if x, ok := x.GetKey().(*ListExampleAutoIncrementTableRequest_IndexKey_Id_); ok { + return x.Id + } + return nil +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey) GetX() *ListExampleAutoIncrementTableRequest_IndexKey_X { + if x, ok := x.GetKey().(*ListExampleAutoIncrementTableRequest_IndexKey_X_); ok { + return x.X + } + return nil +} + +type isListExampleAutoIncrementTableRequest_IndexKey_Key interface { + isListExampleAutoIncrementTableRequest_IndexKey_Key() +} + +type ListExampleAutoIncrementTableRequest_IndexKey_Id_ struct { + // id specifies the value of the Id index key to use in the query. + Id *ListExampleAutoIncrementTableRequest_IndexKey_Id `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type ListExampleAutoIncrementTableRequest_IndexKey_X_ struct { + // x specifies the value of the X index key to use in the query. + X *ListExampleAutoIncrementTableRequest_IndexKey_X `protobuf:"bytes,2,opt,name=x,proto3,oneof"` +} + +func (*ListExampleAutoIncrementTableRequest_IndexKey_Id_) isListExampleAutoIncrementTableRequest_IndexKey_Key() { +} + +func (*ListExampleAutoIncrementTableRequest_IndexKey_X_) isListExampleAutoIncrementTableRequest_IndexKey_Key() { +} + +// RangeQuery specifies the from/to index keys for a range query. +type ListExampleAutoIncrementTableRequest_RangeQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + From *ListExampleAutoIncrementTableRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + To *ListExampleAutoIncrementTableRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (x *ListExampleAutoIncrementTableRequest_RangeQuery) Reset() { + *x = ListExampleAutoIncrementTableRequest_RangeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncrementTableRequest_RangeQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncrementTableRequest_RangeQuery) ProtoMessage() {} + +func (x *ListExampleAutoIncrementTableRequest_RangeQuery) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncrementTableRequest_RangeQuery.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncrementTableRequest_RangeQuery) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{10, 1} +} + +func (x *ListExampleAutoIncrementTableRequest_RangeQuery) GetFrom() *ListExampleAutoIncrementTableRequest_IndexKey { + if x != nil { + return x.From + } + return nil +} + +func (x *ListExampleAutoIncrementTableRequest_RangeQuery) GetTo() *ListExampleAutoIncrementTableRequest_IndexKey { + if x != nil { + return x.To + } + return nil +} + +type ListExampleAutoIncrementTableRequest_IndexKey_Id struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id is the value of the id field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Id *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey_Id) Reset() { + *x = ListExampleAutoIncrementTableRequest_IndexKey_Id{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey_Id) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncrementTableRequest_IndexKey_Id) ProtoMessage() {} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey_Id) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncrementTableRequest_IndexKey_Id.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncrementTableRequest_IndexKey_Id) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{10, 0, 0} +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey_Id) GetId() uint64 { + if x != nil && x.Id != nil { + return *x.Id + } + return 0 +} + +type ListExampleAutoIncrementTableRequest_IndexKey_X struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // x is the value of the x field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + X *string `protobuf:"bytes,1,opt,name=x,proto3,oneof" json:"x,omitempty"` +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey_X) Reset() { + *x = ListExampleAutoIncrementTableRequest_IndexKey_X{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey_X) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncrementTableRequest_IndexKey_X) ProtoMessage() {} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey_X) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncrementTableRequest_IndexKey_X.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncrementTableRequest_IndexKey_X) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{10, 0, 1} +} + +func (x *ListExampleAutoIncrementTableRequest_IndexKey_X) GetX() string { + if x != nil && x.X != nil { + return *x.X + } + return "" +} + +// IndexKey specifies the value of an index key to use in prefix and range queries. +type ListExampleTimestampRequest_IndexKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key specifies the index key value. + // + // Types that are assignable to Key: + // *ListExampleTimestampRequest_IndexKey_Id_ + // *ListExampleTimestampRequest_IndexKey_Ts_ + Key isListExampleTimestampRequest_IndexKey_Key `protobuf_oneof:"key"` +} + +func (x *ListExampleTimestampRequest_IndexKey) Reset() { + *x = ListExampleTimestampRequest_IndexKey{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTimestampRequest_IndexKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTimestampRequest_IndexKey) ProtoMessage() {} + +func (x *ListExampleTimestampRequest_IndexKey) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTimestampRequest_IndexKey.ProtoReflect.Descriptor instead. +func (*ListExampleTimestampRequest_IndexKey) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{16, 0} +} + +func (m *ListExampleTimestampRequest_IndexKey) GetKey() isListExampleTimestampRequest_IndexKey_Key { + if m != nil { + return m.Key + } + return nil +} + +func (x *ListExampleTimestampRequest_IndexKey) GetId() *ListExampleTimestampRequest_IndexKey_Id { + if x, ok := x.GetKey().(*ListExampleTimestampRequest_IndexKey_Id_); ok { + return x.Id + } + return nil +} + +func (x *ListExampleTimestampRequest_IndexKey) GetTs() *ListExampleTimestampRequest_IndexKey_Ts { + if x, ok := x.GetKey().(*ListExampleTimestampRequest_IndexKey_Ts_); ok { + return x.Ts + } + return nil +} + +type isListExampleTimestampRequest_IndexKey_Key interface { + isListExampleTimestampRequest_IndexKey_Key() +} + +type ListExampleTimestampRequest_IndexKey_Id_ struct { + // id specifies the value of the Id index key to use in the query. + Id *ListExampleTimestampRequest_IndexKey_Id `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type ListExampleTimestampRequest_IndexKey_Ts_ struct { + // ts specifies the value of the Ts index key to use in the query. + Ts *ListExampleTimestampRequest_IndexKey_Ts `protobuf:"bytes,2,opt,name=ts,proto3,oneof"` +} + +func (*ListExampleTimestampRequest_IndexKey_Id_) isListExampleTimestampRequest_IndexKey_Key() {} + +func (*ListExampleTimestampRequest_IndexKey_Ts_) isListExampleTimestampRequest_IndexKey_Key() {} + +// RangeQuery specifies the from/to index keys for a range query. +type ListExampleTimestampRequest_RangeQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + From *ListExampleTimestampRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + To *ListExampleTimestampRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (x *ListExampleTimestampRequest_RangeQuery) Reset() { + *x = ListExampleTimestampRequest_RangeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTimestampRequest_RangeQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTimestampRequest_RangeQuery) ProtoMessage() {} + +func (x *ListExampleTimestampRequest_RangeQuery) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTimestampRequest_RangeQuery.ProtoReflect.Descriptor instead. +func (*ListExampleTimestampRequest_RangeQuery) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{16, 1} +} + +func (x *ListExampleTimestampRequest_RangeQuery) GetFrom() *ListExampleTimestampRequest_IndexKey { + if x != nil { + return x.From + } + return nil +} + +func (x *ListExampleTimestampRequest_RangeQuery) GetTo() *ListExampleTimestampRequest_IndexKey { + if x != nil { + return x.To + } + return nil +} + +type ListExampleTimestampRequest_IndexKey_Id struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id is the value of the id field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Id *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` +} + +func (x *ListExampleTimestampRequest_IndexKey_Id) Reset() { + *x = ListExampleTimestampRequest_IndexKey_Id{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTimestampRequest_IndexKey_Id) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTimestampRequest_IndexKey_Id) ProtoMessage() {} + +func (x *ListExampleTimestampRequest_IndexKey_Id) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTimestampRequest_IndexKey_Id.ProtoReflect.Descriptor instead. +func (*ListExampleTimestampRequest_IndexKey_Id) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{16, 0, 0} +} + +func (x *ListExampleTimestampRequest_IndexKey_Id) GetId() uint64 { + if x != nil && x.Id != nil { + return *x.Id + } + return 0 +} + +type ListExampleTimestampRequest_IndexKey_Ts struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ts is the value of the ts field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3,oneof" json:"ts,omitempty"` +} + +func (x *ListExampleTimestampRequest_IndexKey_Ts) Reset() { + *x = ListExampleTimestampRequest_IndexKey_Ts{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleTimestampRequest_IndexKey_Ts) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleTimestampRequest_IndexKey_Ts) ProtoMessage() {} + +func (x *ListExampleTimestampRequest_IndexKey_Ts) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleTimestampRequest_IndexKey_Ts.ProtoReflect.Descriptor instead. +func (*ListExampleTimestampRequest_IndexKey_Ts) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{16, 0, 1} +} + +func (x *ListExampleTimestampRequest_IndexKey_Ts) GetTs() *timestamppb.Timestamp { + if x != nil { + return x.Ts + } + return nil +} + +// IndexKey specifies the value of an index key to use in prefix and range queries. +type ListSimpleExampleRequest_IndexKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key specifies the index key value. + // + // Types that are assignable to Key: + // *ListSimpleExampleRequest_IndexKey_Name_ + // *ListSimpleExampleRequest_IndexKey_Unique_ + Key isListSimpleExampleRequest_IndexKey_Key `protobuf_oneof:"key"` +} + +func (x *ListSimpleExampleRequest_IndexKey) Reset() { + *x = ListSimpleExampleRequest_IndexKey{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSimpleExampleRequest_IndexKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSimpleExampleRequest_IndexKey) ProtoMessage() {} + +func (x *ListSimpleExampleRequest_IndexKey) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSimpleExampleRequest_IndexKey.ProtoReflect.Descriptor instead. +func (*ListSimpleExampleRequest_IndexKey) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{22, 0} +} + +func (m *ListSimpleExampleRequest_IndexKey) GetKey() isListSimpleExampleRequest_IndexKey_Key { + if m != nil { + return m.Key + } + return nil +} + +func (x *ListSimpleExampleRequest_IndexKey) GetName() *ListSimpleExampleRequest_IndexKey_Name { + if x, ok := x.GetKey().(*ListSimpleExampleRequest_IndexKey_Name_); ok { + return x.Name + } + return nil +} + +func (x *ListSimpleExampleRequest_IndexKey) GetUnique() *ListSimpleExampleRequest_IndexKey_Unique { + if x, ok := x.GetKey().(*ListSimpleExampleRequest_IndexKey_Unique_); ok { + return x.Unique + } + return nil +} + +type isListSimpleExampleRequest_IndexKey_Key interface { + isListSimpleExampleRequest_IndexKey_Key() +} + +type ListSimpleExampleRequest_IndexKey_Name_ struct { + // name specifies the value of the Name index key to use in the query. + Name *ListSimpleExampleRequest_IndexKey_Name `protobuf:"bytes,1,opt,name=name,proto3,oneof"` +} + +type ListSimpleExampleRequest_IndexKey_Unique_ struct { + // unique specifies the value of the Unique index key to use in the query. + Unique *ListSimpleExampleRequest_IndexKey_Unique `protobuf:"bytes,2,opt,name=unique,proto3,oneof"` +} + +func (*ListSimpleExampleRequest_IndexKey_Name_) isListSimpleExampleRequest_IndexKey_Key() {} + +func (*ListSimpleExampleRequest_IndexKey_Unique_) isListSimpleExampleRequest_IndexKey_Key() {} + +// RangeQuery specifies the from/to index keys for a range query. +type ListSimpleExampleRequest_RangeQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + From *ListSimpleExampleRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + To *ListSimpleExampleRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (x *ListSimpleExampleRequest_RangeQuery) Reset() { + *x = ListSimpleExampleRequest_RangeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSimpleExampleRequest_RangeQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSimpleExampleRequest_RangeQuery) ProtoMessage() {} + +func (x *ListSimpleExampleRequest_RangeQuery) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSimpleExampleRequest_RangeQuery.ProtoReflect.Descriptor instead. +func (*ListSimpleExampleRequest_RangeQuery) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{22, 1} +} + +func (x *ListSimpleExampleRequest_RangeQuery) GetFrom() *ListSimpleExampleRequest_IndexKey { + if x != nil { + return x.From + } + return nil +} + +func (x *ListSimpleExampleRequest_RangeQuery) GetTo() *ListSimpleExampleRequest_IndexKey { + if x != nil { + return x.To + } + return nil +} + +type ListSimpleExampleRequest_IndexKey_Name struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // name is the value of the name field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"` +} + +func (x *ListSimpleExampleRequest_IndexKey_Name) Reset() { + *x = ListSimpleExampleRequest_IndexKey_Name{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSimpleExampleRequest_IndexKey_Name) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSimpleExampleRequest_IndexKey_Name) ProtoMessage() {} + +func (x *ListSimpleExampleRequest_IndexKey_Name) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSimpleExampleRequest_IndexKey_Name.ProtoReflect.Descriptor instead. +func (*ListSimpleExampleRequest_IndexKey_Name) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{22, 0, 0} +} + +func (x *ListSimpleExampleRequest_IndexKey_Name) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +type ListSimpleExampleRequest_IndexKey_Unique struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // unique is the value of the unique field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Unique *string `protobuf:"bytes,1,opt,name=unique,proto3,oneof" json:"unique,omitempty"` +} + +func (x *ListSimpleExampleRequest_IndexKey_Unique) Reset() { + *x = ListSimpleExampleRequest_IndexKey_Unique{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSimpleExampleRequest_IndexKey_Unique) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSimpleExampleRequest_IndexKey_Unique) ProtoMessage() {} + +func (x *ListSimpleExampleRequest_IndexKey_Unique) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSimpleExampleRequest_IndexKey_Unique.ProtoReflect.Descriptor instead. +func (*ListSimpleExampleRequest_IndexKey_Unique) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{22, 0, 1} +} + +func (x *ListSimpleExampleRequest_IndexKey_Unique) GetUnique() string { + if x != nil && x.Unique != nil { + return *x.Unique + } + return "" +} + +// IndexKey specifies the value of an index key to use in prefix and range queries. +type ListExampleAutoIncFieldNameRequest_IndexKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // key specifies the index key value. + // + // Types that are assignable to Key: + // *ListExampleAutoIncFieldNameRequest_IndexKey_Foo_ + Key isListExampleAutoIncFieldNameRequest_IndexKey_Key `protobuf_oneof:"key"` +} + +func (x *ListExampleAutoIncFieldNameRequest_IndexKey) Reset() { + *x = ListExampleAutoIncFieldNameRequest_IndexKey{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncFieldNameRequest_IndexKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncFieldNameRequest_IndexKey) ProtoMessage() {} + +func (x *ListExampleAutoIncFieldNameRequest_IndexKey) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncFieldNameRequest_IndexKey.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncFieldNameRequest_IndexKey) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{26, 0} +} + +func (m *ListExampleAutoIncFieldNameRequest_IndexKey) GetKey() isListExampleAutoIncFieldNameRequest_IndexKey_Key { + if m != nil { + return m.Key + } + return nil +} + +func (x *ListExampleAutoIncFieldNameRequest_IndexKey) GetFoo() *ListExampleAutoIncFieldNameRequest_IndexKey_Foo { + if x, ok := x.GetKey().(*ListExampleAutoIncFieldNameRequest_IndexKey_Foo_); ok { + return x.Foo + } + return nil +} + +type isListExampleAutoIncFieldNameRequest_IndexKey_Key interface { + isListExampleAutoIncFieldNameRequest_IndexKey_Key() +} + +type ListExampleAutoIncFieldNameRequest_IndexKey_Foo_ struct { + // foo specifies the value of the Foo index key to use in the query. + Foo *ListExampleAutoIncFieldNameRequest_IndexKey_Foo `protobuf:"bytes,1,opt,name=foo,proto3,oneof"` +} + +func (*ListExampleAutoIncFieldNameRequest_IndexKey_Foo_) isListExampleAutoIncFieldNameRequest_IndexKey_Key() { +} + +// RangeQuery specifies the from/to index keys for a range query. +type ListExampleAutoIncFieldNameRequest_RangeQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + From *ListExampleAutoIncFieldNameRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + To *ListExampleAutoIncFieldNameRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (x *ListExampleAutoIncFieldNameRequest_RangeQuery) Reset() { + *x = ListExampleAutoIncFieldNameRequest_RangeQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncFieldNameRequest_RangeQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncFieldNameRequest_RangeQuery) ProtoMessage() {} + +func (x *ListExampleAutoIncFieldNameRequest_RangeQuery) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncFieldNameRequest_RangeQuery.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncFieldNameRequest_RangeQuery) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{26, 1} +} + +func (x *ListExampleAutoIncFieldNameRequest_RangeQuery) GetFrom() *ListExampleAutoIncFieldNameRequest_IndexKey { + if x != nil { + return x.From + } + return nil +} + +func (x *ListExampleAutoIncFieldNameRequest_RangeQuery) GetTo() *ListExampleAutoIncFieldNameRequest_IndexKey { + if x != nil { + return x.To + } + return nil +} + +type ListExampleAutoIncFieldNameRequest_IndexKey_Foo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // foo is the value of the foo field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + Foo *uint64 `protobuf:"varint,1,opt,name=foo,proto3,oneof" json:"foo,omitempty"` +} + +func (x *ListExampleAutoIncFieldNameRequest_IndexKey_Foo) Reset() { + *x = ListExampleAutoIncFieldNameRequest_IndexKey_Foo{} + if protoimpl.UnsafeEnabled { + mi := &file_testpb_test_schema_query_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListExampleAutoIncFieldNameRequest_IndexKey_Foo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListExampleAutoIncFieldNameRequest_IndexKey_Foo) ProtoMessage() {} + +func (x *ListExampleAutoIncFieldNameRequest_IndexKey_Foo) ProtoReflect() protoreflect.Message { + mi := &file_testpb_test_schema_query_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListExampleAutoIncFieldNameRequest_IndexKey_Foo.ProtoReflect.Descriptor instead. +func (*ListExampleAutoIncFieldNameRequest_IndexKey_Foo) Descriptor() ([]byte, []int) { + return file_testpb_test_schema_query_proto_rawDescGZIP(), []int{26, 0, 0} +} + +func (x *ListExampleAutoIncFieldNameRequest_IndexKey_Foo) GetFoo() uint64 { + if x != nil && x.Foo != nil { + return *x.Foo + } + return 0 +} + +var File_testpb_test_schema_query_proto protoreflect.FileDescriptor + +var file_testpb_test_schema_query_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x74, 0x65, + 0x73, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x4e, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x33, 0x32, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x69, + 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x69, 0x36, 0x34, 0x12, 0x10, 0x0a, + 0x03, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x22, + 0x45, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x44, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x79, 0x55, 0x36, 0x34, 0x53, 0x74, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x22, 0x4d, 0x0a, 0x1f, + 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, + 0x79, 0x55, 0x36, 0x34, 0x53, 0x74, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x9c, 0x08, 0x0a, 0x17, + 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x66, 0x69, + 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x66, 0x69, + 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x4d, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x61, 0x6e, + 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x8a, 0x05, + 0x0a, 0x08, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x12, 0x56, 0x0a, 0x0d, 0x75, 0x5f, + 0x33, 0x32, 0x5f, 0x69, 0x5f, 0x36, 0x34, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x55, 0x33, 0x32, 0x49, + 0x36, 0x34, 0x53, 0x74, 0x72, 0x48, 0x00, 0x52, 0x09, 0x75, 0x33, 0x32, 0x49, 0x36, 0x34, 0x53, + 0x74, 0x72, 0x12, 0x4b, 0x0a, 0x08, 0x75, 0x5f, 0x36, 0x34, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x55, + 0x36, 0x34, 0x53, 0x74, 0x72, 0x48, 0x00, 0x52, 0x06, 0x75, 0x36, 0x34, 0x53, 0x74, 0x72, 0x12, + 0x4b, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x5f, 0x75, 0x5f, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x53, 0x74, 0x72, 0x55, + 0x33, 0x32, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x55, 0x33, 0x32, 0x12, 0x47, 0x0a, 0x06, + 0x62, 0x7a, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x42, 0x7a, 0x53, 0x74, 0x72, 0x48, 0x00, 0x52, 0x05, + 0x62, 0x7a, 0x53, 0x74, 0x72, 0x1a, 0x68, 0x0a, 0x09, 0x55, 0x33, 0x32, 0x49, 0x36, 0x34, 0x53, + 0x74, 0x72, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x48, + 0x00, 0x52, 0x03, 0x75, 0x33, 0x32, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x69, 0x36, 0x34, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x03, 0x69, 0x36, 0x34, 0x88, 0x01, 0x01, + 0x12, 0x15, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, + 0x03, 0x73, 0x74, 0x72, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x75, 0x33, 0x32, 0x42, + 0x06, 0x0a, 0x04, 0x5f, 0x69, 0x36, 0x34, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x73, 0x74, 0x72, 0x1a, + 0x46, 0x0a, 0x06, 0x55, 0x36, 0x34, 0x53, 0x74, 0x72, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x36, 0x34, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x03, 0x75, 0x36, 0x34, 0x88, 0x01, 0x01, + 0x12, 0x15, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, + 0x03, 0x73, 0x74, 0x72, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x75, 0x36, 0x34, 0x42, + 0x06, 0x0a, 0x04, 0x5f, 0x73, 0x74, 0x72, 0x1a, 0x46, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x55, 0x33, + 0x32, 0x12, 0x15, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x03, 0x73, 0x74, 0x72, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x03, 0x75, 0x33, 0x32, 0x88, 0x01, 0x01, 0x42, + 0x06, 0x0a, 0x04, 0x5f, 0x73, 0x74, 0x72, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x75, 0x33, 0x32, 0x1a, + 0x42, 0x0a, 0x05, 0x42, 0x7a, 0x53, 0x74, 0x72, 0x12, 0x13, 0x0a, 0x02, 0x62, 0x7a, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x02, 0x62, 0x7a, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, + 0x03, 0x73, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x03, 0x73, 0x74, + 0x72, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x62, 0x7a, 0x42, 0x06, 0x0a, 0x04, 0x5f, + 0x73, 0x74, 0x72, 0x42, 0x05, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x84, 0x01, 0x0a, 0x0a, 0x52, + 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3c, 0x0a, 0x04, 0x66, 0x72, 0x6f, + 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, + 0x79, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x38, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x02, 0x74, + 0x6f, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x91, 0x01, 0x0a, 0x18, 0x4c, + 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x35, + 0x0a, 0x23, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, + 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x24, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, + 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x36, 0x0a, 0x26, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x79, 0x58, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x78, 0x22, 0x62, + 0x0a, 0x27, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, + 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x79, + 0x58, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0xb9, 0x05, 0x0a, 0x24, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5a, 0x0a, 0x0c, 0x70, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x35, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x66, + 0x69, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x5a, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, + 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xe6, 0x01, 0x0a, 0x08, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x12, 0x4a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x49, 0x64, 0x48, 0x00, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x47, 0x0a, 0x01, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x37, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x58, 0x48, 0x00, 0x52, 0x01, 0x78, 0x1a, 0x20, 0x0a, + 0x02, 0x49, 0x64, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, + 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x1a, + 0x1c, 0x0a, 0x01, 0x58, 0x12, 0x11, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x01, 0x78, 0x88, 0x01, 0x01, 0x42, 0x04, 0x0a, 0x02, 0x5f, 0x78, 0x42, 0x05, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x9e, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x49, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x35, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x45, + 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, + 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, + 0x79, 0x52, 0x02, 0x74, 0x6f, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0xab, + 0x01, 0x0a, 0x25, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, + 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1c, 0x0a, 0x1a, + 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x74, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x1b, 0x47, 0x65, + 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, + 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2c, 0x0a, 0x1a, 0x47, 0x65, 0x74, + 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4d, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x9d, 0x05, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, + 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, + 0x65, 0x66, 0x69, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x51, 0x0a, 0x0b, 0x72, 0x61, 0x6e, + 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, + 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf7, 0x01, 0x0a, 0x08, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, + 0x79, 0x12, 0x41, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x49, 0x64, 0x48, 0x00, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x41, 0x0a, 0x02, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x54, + 0x73, 0x48, 0x00, 0x52, 0x02, 0x74, 0x73, 0x1a, 0x20, 0x0a, 0x02, 0x49, 0x64, 0x12, 0x13, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, + 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x1a, 0x3c, 0x0a, 0x02, 0x54, 0x73, 0x12, + 0x2f, 0x0a, 0x02, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x02, 0x74, 0x73, 0x88, 0x01, 0x01, + 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x74, 0x73, 0x42, 0x05, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x8c, + 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x40, 0x0a, + 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, + 0x3c, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x02, 0x74, 0x6f, 0x42, 0x07, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x2d, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x47, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x39, 0x0a, 0x1f, 0x47, 0x65, + 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x42, 0x79, + 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, + 0x6e, 0x69, 0x71, 0x75, 0x65, 0x22, 0x4f, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x53, 0x69, 0x6d, 0x70, + 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x42, 0x79, 0x55, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x96, 0x05, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x53, + 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x4e, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xff, 0x01, 0x0a, 0x08, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, + 0x79, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4a, + 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x6d, 0x70, + 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, + 0x48, 0x00, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x1a, 0x28, 0x0a, 0x04, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x30, 0x0a, 0x06, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x1b, + 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, + 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x86, 0x01, + 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x04, + 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x39, 0x0a, 0x02, 0x74, + 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, + 0x65, 0x79, 0x52, 0x02, 0x74, 0x6f, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, + 0x93, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x35, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, + 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x22, 0x5b, 0x0a, 0x22, + 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, + 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, + 0x6d, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xcd, 0x04, 0x0a, 0x22, 0x4c, 0x69, + 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x58, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, + 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x70, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x58, 0x0a, 0x0b, 0x72, 0x61, + 0x6e, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x35, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x61, 0x6e, 0x67, + 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x84, 0x01, 0x0a, + 0x08, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x03, 0x66, 0x6f, 0x6f, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, + 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x2e, 0x46, 0x6f, 0x6f, 0x48, + 0x00, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x1a, 0x24, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x15, 0x0a, + 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x03, 0x66, 0x6f, + 0x6f, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x66, 0x6f, 0x6f, 0x42, 0x05, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x1a, 0x9a, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x47, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x33, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x43, 0x0a, 0x02, 0x74, + 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, + 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4b, 0x65, 0x79, 0x52, 0x02, 0x74, 0x6f, + 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0xa7, 0x01, 0x0a, 0x23, 0x4c, 0x69, + 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x37, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, + 0x6d, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x32, 0xf2, 0x0b, 0x0a, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x54, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x42, 0x79, 0x55, 0x36, 0x34, 0x53, 0x74, 0x72, 0x12, 0x26, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x42, 0x79, 0x55, 0x36, 0x34, 0x53, 0x74, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x79, 0x55, 0x36, 0x34, 0x53, 0x74, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x10, 0x4c, + 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, + 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x84, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x42, 0x79, 0x58, 0x12, 0x2e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, + 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x79, 0x58, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, + 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x79, 0x58, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, + 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2c, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, + 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, + 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x12, + 0x22, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, + 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x13, 0x47, 0x65, + 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, + 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, + 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x12, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x57, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, + 0x65, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, + 0x47, 0x65, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x18, 0x47, 0x65, + 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x42, 0x79, + 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x27, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, + 0x47, 0x65, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x42, 0x79, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x69, 0x6d, 0x70, + 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x42, 0x79, 0x55, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x11, 0x4c, + 0x69, 0x73, 0x74, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x12, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, + 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, + 0x65, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, + 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, 0x74, + 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x41, 0x75, + 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x8c, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x42, 0x14, 0x54, 0x65, 0x73, 0x74, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x6f, 0x72, + 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, + 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2, 0x02, 0x12, 0x54, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_testpb_test_schema_query_proto_rawDescOnce sync.Once + file_testpb_test_schema_query_proto_rawDescData = file_testpb_test_schema_query_proto_rawDesc +) + +func file_testpb_test_schema_query_proto_rawDescGZIP() []byte { + file_testpb_test_schema_query_proto_rawDescOnce.Do(func() { + file_testpb_test_schema_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_test_schema_query_proto_rawDescData) + }) + return file_testpb_test_schema_query_proto_rawDescData +} + +var file_testpb_test_schema_query_proto_msgTypes = make([]protoimpl.MessageInfo, 49) +var file_testpb_test_schema_query_proto_goTypes = []interface{}{ + (*GetExampleTableRequest)(nil), // 0: testpb.GetExampleTableRequest + (*GetExampleTableResponse)(nil), // 1: testpb.GetExampleTableResponse + (*GetExampleTableByU64StrRequest)(nil), // 2: testpb.GetExampleTableByU64StrRequest + (*GetExampleTableByU64StrResponse)(nil), // 3: testpb.GetExampleTableByU64StrResponse + (*ListExampleTableRequest)(nil), // 4: testpb.ListExampleTableRequest + (*ListExampleTableResponse)(nil), // 5: testpb.ListExampleTableResponse + (*GetExampleAutoIncrementTableRequest)(nil), // 6: testpb.GetExampleAutoIncrementTableRequest + (*GetExampleAutoIncrementTableResponse)(nil), // 7: testpb.GetExampleAutoIncrementTableResponse + (*GetExampleAutoIncrementTableByXRequest)(nil), // 8: testpb.GetExampleAutoIncrementTableByXRequest + (*GetExampleAutoIncrementTableByXResponse)(nil), // 9: testpb.GetExampleAutoIncrementTableByXResponse + (*ListExampleAutoIncrementTableRequest)(nil), // 10: testpb.ListExampleAutoIncrementTableRequest + (*ListExampleAutoIncrementTableResponse)(nil), // 11: testpb.ListExampleAutoIncrementTableResponse + (*GetExampleSingletonRequest)(nil), // 12: testpb.GetExampleSingletonRequest + (*GetExampleSingletonResponse)(nil), // 13: testpb.GetExampleSingletonResponse + (*GetExampleTimestampRequest)(nil), // 14: testpb.GetExampleTimestampRequest + (*GetExampleTimestampResponse)(nil), // 15: testpb.GetExampleTimestampResponse + (*ListExampleTimestampRequest)(nil), // 16: testpb.ListExampleTimestampRequest + (*ListExampleTimestampResponse)(nil), // 17: testpb.ListExampleTimestampResponse + (*GetSimpleExampleRequest)(nil), // 18: testpb.GetSimpleExampleRequest + (*GetSimpleExampleResponse)(nil), // 19: testpb.GetSimpleExampleResponse + (*GetSimpleExampleByUniqueRequest)(nil), // 20: testpb.GetSimpleExampleByUniqueRequest + (*GetSimpleExampleByUniqueResponse)(nil), // 21: testpb.GetSimpleExampleByUniqueResponse + (*ListSimpleExampleRequest)(nil), // 22: testpb.ListSimpleExampleRequest + (*ListSimpleExampleResponse)(nil), // 23: testpb.ListSimpleExampleResponse + (*GetExampleAutoIncFieldNameRequest)(nil), // 24: testpb.GetExampleAutoIncFieldNameRequest + (*GetExampleAutoIncFieldNameResponse)(nil), // 25: testpb.GetExampleAutoIncFieldNameResponse + (*ListExampleAutoIncFieldNameRequest)(nil), // 26: testpb.ListExampleAutoIncFieldNameRequest + (*ListExampleAutoIncFieldNameResponse)(nil), // 27: testpb.ListExampleAutoIncFieldNameResponse + (*ListExampleTableRequest_IndexKey)(nil), // 28: testpb.ListExampleTableRequest.IndexKey + (*ListExampleTableRequest_RangeQuery)(nil), // 29: testpb.ListExampleTableRequest.RangeQuery + (*ListExampleTableRequest_IndexKey_U32I64Str)(nil), // 30: testpb.ListExampleTableRequest.IndexKey.U32I64Str + (*ListExampleTableRequest_IndexKey_U64Str)(nil), // 31: testpb.ListExampleTableRequest.IndexKey.U64Str + (*ListExampleTableRequest_IndexKey_StrU32)(nil), // 32: testpb.ListExampleTableRequest.IndexKey.StrU32 + (*ListExampleTableRequest_IndexKey_BzStr)(nil), // 33: testpb.ListExampleTableRequest.IndexKey.BzStr + (*ListExampleAutoIncrementTableRequest_IndexKey)(nil), // 34: testpb.ListExampleAutoIncrementTableRequest.IndexKey + (*ListExampleAutoIncrementTableRequest_RangeQuery)(nil), // 35: testpb.ListExampleAutoIncrementTableRequest.RangeQuery + (*ListExampleAutoIncrementTableRequest_IndexKey_Id)(nil), // 36: testpb.ListExampleAutoIncrementTableRequest.IndexKey.Id + (*ListExampleAutoIncrementTableRequest_IndexKey_X)(nil), // 37: testpb.ListExampleAutoIncrementTableRequest.IndexKey.X + (*ListExampleTimestampRequest_IndexKey)(nil), // 38: testpb.ListExampleTimestampRequest.IndexKey + (*ListExampleTimestampRequest_RangeQuery)(nil), // 39: testpb.ListExampleTimestampRequest.RangeQuery + (*ListExampleTimestampRequest_IndexKey_Id)(nil), // 40: testpb.ListExampleTimestampRequest.IndexKey.Id + (*ListExampleTimestampRequest_IndexKey_Ts)(nil), // 41: testpb.ListExampleTimestampRequest.IndexKey.Ts + (*ListSimpleExampleRequest_IndexKey)(nil), // 42: testpb.ListSimpleExampleRequest.IndexKey + (*ListSimpleExampleRequest_RangeQuery)(nil), // 43: testpb.ListSimpleExampleRequest.RangeQuery + (*ListSimpleExampleRequest_IndexKey_Name)(nil), // 44: testpb.ListSimpleExampleRequest.IndexKey.Name + (*ListSimpleExampleRequest_IndexKey_Unique)(nil), // 45: testpb.ListSimpleExampleRequest.IndexKey.Unique + (*ListExampleAutoIncFieldNameRequest_IndexKey)(nil), // 46: testpb.ListExampleAutoIncFieldNameRequest.IndexKey + (*ListExampleAutoIncFieldNameRequest_RangeQuery)(nil), // 47: testpb.ListExampleAutoIncFieldNameRequest.RangeQuery + (*ListExampleAutoIncFieldNameRequest_IndexKey_Foo)(nil), // 48: testpb.ListExampleAutoIncFieldNameRequest.IndexKey.Foo + (*ExampleTable)(nil), // 49: testpb.ExampleTable + (*v1beta1.PageRequest)(nil), // 50: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 51: cosmos.base.query.v1beta1.PageResponse + (*ExampleAutoIncrementTable)(nil), // 52: testpb.ExampleAutoIncrementTable + (*ExampleSingleton)(nil), // 53: testpb.ExampleSingleton + (*ExampleTimestamp)(nil), // 54: testpb.ExampleTimestamp + (*SimpleExample)(nil), // 55: testpb.SimpleExample + (*ExampleAutoIncFieldName)(nil), // 56: testpb.ExampleAutoIncFieldName + (*timestamppb.Timestamp)(nil), // 57: google.protobuf.Timestamp +} +var file_testpb_test_schema_query_proto_depIdxs = []int32{ + 49, // 0: testpb.GetExampleTableResponse.value:type_name -> testpb.ExampleTable + 49, // 1: testpb.GetExampleTableByU64StrResponse.value:type_name -> testpb.ExampleTable + 28, // 2: testpb.ListExampleTableRequest.prefix_query:type_name -> testpb.ListExampleTableRequest.IndexKey + 29, // 3: testpb.ListExampleTableRequest.range_query:type_name -> testpb.ListExampleTableRequest.RangeQuery + 50, // 4: testpb.ListExampleTableRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 49, // 5: testpb.ListExampleTableResponse.values:type_name -> testpb.ExampleTable + 51, // 6: testpb.ListExampleTableResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 52, // 7: testpb.GetExampleAutoIncrementTableResponse.value:type_name -> testpb.ExampleAutoIncrementTable + 52, // 8: testpb.GetExampleAutoIncrementTableByXResponse.value:type_name -> testpb.ExampleAutoIncrementTable + 34, // 9: testpb.ListExampleAutoIncrementTableRequest.prefix_query:type_name -> testpb.ListExampleAutoIncrementTableRequest.IndexKey + 35, // 10: testpb.ListExampleAutoIncrementTableRequest.range_query:type_name -> testpb.ListExampleAutoIncrementTableRequest.RangeQuery + 50, // 11: testpb.ListExampleAutoIncrementTableRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 52, // 12: testpb.ListExampleAutoIncrementTableResponse.values:type_name -> testpb.ExampleAutoIncrementTable + 51, // 13: testpb.ListExampleAutoIncrementTableResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 53, // 14: testpb.GetExampleSingletonResponse.value:type_name -> testpb.ExampleSingleton + 54, // 15: testpb.GetExampleTimestampResponse.value:type_name -> testpb.ExampleTimestamp + 38, // 16: testpb.ListExampleTimestampRequest.prefix_query:type_name -> testpb.ListExampleTimestampRequest.IndexKey + 39, // 17: testpb.ListExampleTimestampRequest.range_query:type_name -> testpb.ListExampleTimestampRequest.RangeQuery + 50, // 18: testpb.ListExampleTimestampRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 54, // 19: testpb.ListExampleTimestampResponse.values:type_name -> testpb.ExampleTimestamp + 51, // 20: testpb.ListExampleTimestampResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 55, // 21: testpb.GetSimpleExampleResponse.value:type_name -> testpb.SimpleExample + 55, // 22: testpb.GetSimpleExampleByUniqueResponse.value:type_name -> testpb.SimpleExample + 42, // 23: testpb.ListSimpleExampleRequest.prefix_query:type_name -> testpb.ListSimpleExampleRequest.IndexKey + 43, // 24: testpb.ListSimpleExampleRequest.range_query:type_name -> testpb.ListSimpleExampleRequest.RangeQuery + 50, // 25: testpb.ListSimpleExampleRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 55, // 26: testpb.ListSimpleExampleResponse.values:type_name -> testpb.SimpleExample + 51, // 27: testpb.ListSimpleExampleResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 56, // 28: testpb.GetExampleAutoIncFieldNameResponse.value:type_name -> testpb.ExampleAutoIncFieldName + 46, // 29: testpb.ListExampleAutoIncFieldNameRequest.prefix_query:type_name -> testpb.ListExampleAutoIncFieldNameRequest.IndexKey + 47, // 30: testpb.ListExampleAutoIncFieldNameRequest.range_query:type_name -> testpb.ListExampleAutoIncFieldNameRequest.RangeQuery + 50, // 31: testpb.ListExampleAutoIncFieldNameRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 56, // 32: testpb.ListExampleAutoIncFieldNameResponse.values:type_name -> testpb.ExampleAutoIncFieldName + 51, // 33: testpb.ListExampleAutoIncFieldNameResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 30, // 34: testpb.ListExampleTableRequest.IndexKey.u_32_i_64_str:type_name -> testpb.ListExampleTableRequest.IndexKey.U32I64Str + 31, // 35: testpb.ListExampleTableRequest.IndexKey.u_64_str:type_name -> testpb.ListExampleTableRequest.IndexKey.U64Str + 32, // 36: testpb.ListExampleTableRequest.IndexKey.str_u_32:type_name -> testpb.ListExampleTableRequest.IndexKey.StrU32 + 33, // 37: testpb.ListExampleTableRequest.IndexKey.bz_str:type_name -> testpb.ListExampleTableRequest.IndexKey.BzStr + 28, // 38: testpb.ListExampleTableRequest.RangeQuery.from:type_name -> testpb.ListExampleTableRequest.IndexKey + 28, // 39: testpb.ListExampleTableRequest.RangeQuery.to:type_name -> testpb.ListExampleTableRequest.IndexKey + 36, // 40: testpb.ListExampleAutoIncrementTableRequest.IndexKey.id:type_name -> testpb.ListExampleAutoIncrementTableRequest.IndexKey.Id + 37, // 41: testpb.ListExampleAutoIncrementTableRequest.IndexKey.x:type_name -> testpb.ListExampleAutoIncrementTableRequest.IndexKey.X + 34, // 42: testpb.ListExampleAutoIncrementTableRequest.RangeQuery.from:type_name -> testpb.ListExampleAutoIncrementTableRequest.IndexKey + 34, // 43: testpb.ListExampleAutoIncrementTableRequest.RangeQuery.to:type_name -> testpb.ListExampleAutoIncrementTableRequest.IndexKey + 40, // 44: testpb.ListExampleTimestampRequest.IndexKey.id:type_name -> testpb.ListExampleTimestampRequest.IndexKey.Id + 41, // 45: testpb.ListExampleTimestampRequest.IndexKey.ts:type_name -> testpb.ListExampleTimestampRequest.IndexKey.Ts + 38, // 46: testpb.ListExampleTimestampRequest.RangeQuery.from:type_name -> testpb.ListExampleTimestampRequest.IndexKey + 38, // 47: testpb.ListExampleTimestampRequest.RangeQuery.to:type_name -> testpb.ListExampleTimestampRequest.IndexKey + 57, // 48: testpb.ListExampleTimestampRequest.IndexKey.Ts.ts:type_name -> google.protobuf.Timestamp + 44, // 49: testpb.ListSimpleExampleRequest.IndexKey.name:type_name -> testpb.ListSimpleExampleRequest.IndexKey.Name + 45, // 50: testpb.ListSimpleExampleRequest.IndexKey.unique:type_name -> testpb.ListSimpleExampleRequest.IndexKey.Unique + 42, // 51: testpb.ListSimpleExampleRequest.RangeQuery.from:type_name -> testpb.ListSimpleExampleRequest.IndexKey + 42, // 52: testpb.ListSimpleExampleRequest.RangeQuery.to:type_name -> testpb.ListSimpleExampleRequest.IndexKey + 48, // 53: testpb.ListExampleAutoIncFieldNameRequest.IndexKey.foo:type_name -> testpb.ListExampleAutoIncFieldNameRequest.IndexKey.Foo + 46, // 54: testpb.ListExampleAutoIncFieldNameRequest.RangeQuery.from:type_name -> testpb.ListExampleAutoIncFieldNameRequest.IndexKey + 46, // 55: testpb.ListExampleAutoIncFieldNameRequest.RangeQuery.to:type_name -> testpb.ListExampleAutoIncFieldNameRequest.IndexKey + 0, // 56: testpb.TestSchemaQuery.GetExampleTable:input_type -> testpb.GetExampleTableRequest + 2, // 57: testpb.TestSchemaQuery.GetExampleTableByU64Str:input_type -> testpb.GetExampleTableByU64StrRequest + 4, // 58: testpb.TestSchemaQuery.ListExampleTable:input_type -> testpb.ListExampleTableRequest + 6, // 59: testpb.TestSchemaQuery.GetExampleAutoIncrementTable:input_type -> testpb.GetExampleAutoIncrementTableRequest + 8, // 60: testpb.TestSchemaQuery.GetExampleAutoIncrementTableByX:input_type -> testpb.GetExampleAutoIncrementTableByXRequest + 10, // 61: testpb.TestSchemaQuery.ListExampleAutoIncrementTable:input_type -> testpb.ListExampleAutoIncrementTableRequest + 12, // 62: testpb.TestSchemaQuery.GetExampleSingleton:input_type -> testpb.GetExampleSingletonRequest + 14, // 63: testpb.TestSchemaQuery.GetExampleTimestamp:input_type -> testpb.GetExampleTimestampRequest + 16, // 64: testpb.TestSchemaQuery.ListExampleTimestamp:input_type -> testpb.ListExampleTimestampRequest + 18, // 65: testpb.TestSchemaQuery.GetSimpleExample:input_type -> testpb.GetSimpleExampleRequest + 20, // 66: testpb.TestSchemaQuery.GetSimpleExampleByUnique:input_type -> testpb.GetSimpleExampleByUniqueRequest + 22, // 67: testpb.TestSchemaQuery.ListSimpleExample:input_type -> testpb.ListSimpleExampleRequest + 24, // 68: testpb.TestSchemaQuery.GetExampleAutoIncFieldName:input_type -> testpb.GetExampleAutoIncFieldNameRequest + 26, // 69: testpb.TestSchemaQuery.ListExampleAutoIncFieldName:input_type -> testpb.ListExampleAutoIncFieldNameRequest + 1, // 70: testpb.TestSchemaQuery.GetExampleTable:output_type -> testpb.GetExampleTableResponse + 3, // 71: testpb.TestSchemaQuery.GetExampleTableByU64Str:output_type -> testpb.GetExampleTableByU64StrResponse + 5, // 72: testpb.TestSchemaQuery.ListExampleTable:output_type -> testpb.ListExampleTableResponse + 7, // 73: testpb.TestSchemaQuery.GetExampleAutoIncrementTable:output_type -> testpb.GetExampleAutoIncrementTableResponse + 9, // 74: testpb.TestSchemaQuery.GetExampleAutoIncrementTableByX:output_type -> testpb.GetExampleAutoIncrementTableByXResponse + 11, // 75: testpb.TestSchemaQuery.ListExampleAutoIncrementTable:output_type -> testpb.ListExampleAutoIncrementTableResponse + 13, // 76: testpb.TestSchemaQuery.GetExampleSingleton:output_type -> testpb.GetExampleSingletonResponse + 15, // 77: testpb.TestSchemaQuery.GetExampleTimestamp:output_type -> testpb.GetExampleTimestampResponse + 17, // 78: testpb.TestSchemaQuery.ListExampleTimestamp:output_type -> testpb.ListExampleTimestampResponse + 19, // 79: testpb.TestSchemaQuery.GetSimpleExample:output_type -> testpb.GetSimpleExampleResponse + 21, // 80: testpb.TestSchemaQuery.GetSimpleExampleByUnique:output_type -> testpb.GetSimpleExampleByUniqueResponse + 23, // 81: testpb.TestSchemaQuery.ListSimpleExample:output_type -> testpb.ListSimpleExampleResponse + 25, // 82: testpb.TestSchemaQuery.GetExampleAutoIncFieldName:output_type -> testpb.GetExampleAutoIncFieldNameResponse + 27, // 83: testpb.TestSchemaQuery.ListExampleAutoIncFieldName:output_type -> testpb.ListExampleAutoIncFieldNameResponse + 70, // [70:84] is the sub-list for method output_type + 56, // [56:70] is the sub-list for method input_type + 56, // [56:56] is the sub-list for extension type_name + 56, // [56:56] is the sub-list for extension extendee + 0, // [0:56] is the sub-list for field type_name +} + +func init() { file_testpb_test_schema_query_proto_init() } +func file_testpb_test_schema_query_proto_init() { + if File_testpb_test_schema_query_proto != nil { + return + } + file_testpb_test_schema_proto_init() + if !protoimpl.UnsafeEnabled { + file_testpb_test_schema_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleTableRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleTableResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleTableByU64StrRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleTableByU64StrResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTableRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTableResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleAutoIncrementTableRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleAutoIncrementTableResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleAutoIncrementTableByXRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleAutoIncrementTableByXResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncrementTableRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncrementTableResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleSingletonRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleSingletonResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleTimestampRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleTimestampResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTimestampRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTimestampResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSimpleExampleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSimpleExampleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSimpleExampleByUniqueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSimpleExampleByUniqueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSimpleExampleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSimpleExampleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleAutoIncFieldNameRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetExampleAutoIncFieldNameResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncFieldNameRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncFieldNameResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTableRequest_IndexKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTableRequest_RangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTableRequest_IndexKey_U32I64Str); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTableRequest_IndexKey_U64Str); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTableRequest_IndexKey_StrU32); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTableRequest_IndexKey_BzStr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncrementTableRequest_IndexKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncrementTableRequest_RangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncrementTableRequest_IndexKey_Id); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncrementTableRequest_IndexKey_X); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTimestampRequest_IndexKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTimestampRequest_RangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTimestampRequest_IndexKey_Id); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleTimestampRequest_IndexKey_Ts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSimpleExampleRequest_IndexKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSimpleExampleRequest_RangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSimpleExampleRequest_IndexKey_Name); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSimpleExampleRequest_IndexKey_Unique); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncFieldNameRequest_IndexKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncFieldNameRequest_RangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpb_test_schema_query_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListExampleAutoIncFieldNameRequest_IndexKey_Foo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_testpb_test_schema_query_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*ListExampleTableRequest_PrefixQuery)(nil), + (*ListExampleTableRequest_RangeQuery_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[10].OneofWrappers = []interface{}{ + (*ListExampleAutoIncrementTableRequest_PrefixQuery)(nil), + (*ListExampleAutoIncrementTableRequest_RangeQuery_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[16].OneofWrappers = []interface{}{ + (*ListExampleTimestampRequest_PrefixQuery)(nil), + (*ListExampleTimestampRequest_RangeQuery_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[22].OneofWrappers = []interface{}{ + (*ListSimpleExampleRequest_PrefixQuery)(nil), + (*ListSimpleExampleRequest_RangeQuery_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[26].OneofWrappers = []interface{}{ + (*ListExampleAutoIncFieldNameRequest_PrefixQuery)(nil), + (*ListExampleAutoIncFieldNameRequest_RangeQuery_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[28].OneofWrappers = []interface{}{ + (*ListExampleTableRequest_IndexKey_U_32I_64Str)(nil), + (*ListExampleTableRequest_IndexKey_U_64Str)(nil), + (*ListExampleTableRequest_IndexKey_StrU_32)(nil), + (*ListExampleTableRequest_IndexKey_BzStr_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[30].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[31].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[32].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[33].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[34].OneofWrappers = []interface{}{ + (*ListExampleAutoIncrementTableRequest_IndexKey_Id_)(nil), + (*ListExampleAutoIncrementTableRequest_IndexKey_X_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[36].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[37].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[38].OneofWrappers = []interface{}{ + (*ListExampleTimestampRequest_IndexKey_Id_)(nil), + (*ListExampleTimestampRequest_IndexKey_Ts_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[40].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[41].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[42].OneofWrappers = []interface{}{ + (*ListSimpleExampleRequest_IndexKey_Name_)(nil), + (*ListSimpleExampleRequest_IndexKey_Unique_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[44].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[45].OneofWrappers = []interface{}{} + file_testpb_test_schema_query_proto_msgTypes[46].OneofWrappers = []interface{}{ + (*ListExampleAutoIncFieldNameRequest_IndexKey_Foo_)(nil), + } + file_testpb_test_schema_query_proto_msgTypes[48].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_testpb_test_schema_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 49, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_testpb_test_schema_query_proto_goTypes, + DependencyIndexes: file_testpb_test_schema_query_proto_depIdxs, + MessageInfos: file_testpb_test_schema_query_proto_msgTypes, + }.Build() + File_testpb_test_schema_query_proto = out.File + file_testpb_test_schema_query_proto_rawDesc = nil + file_testpb_test_schema_query_proto_goTypes = nil + file_testpb_test_schema_query_proto_depIdxs = nil +} diff --git a/orm/internal/testpb/test_schema_query.proto b/orm/internal/testpb/test_schema_query.proto new file mode 100644 index 000000000000..14f86679791f --- /dev/null +++ b/orm/internal/testpb/test_schema_query.proto @@ -0,0 +1,442 @@ +// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT. +syntax = "proto3"; +package testpb; + +import "cosmos/base/query/v1beta1/pagination.proto"; +import "google/protobuf/timestamp.proto"; +import "testpb/test_schema.proto"; + +// TestSchemaQuery queries the state of the tables specified by testpb/test_schema.proto. +service TestSchemaQuery { + // Get queries the ExampleTable table by its primary key. + rpc GetExampleTable (GetExampleTableRequest) returns (GetExampleTableResponse) {} + // GetExampleTableByU64Str queries the ExampleTable table by its U64Str index + rpc GetExampleTableByU64Str (GetExampleTableByU64StrRequest) returns (GetExampleTableByU64StrResponse) {} + // ListExampleTable queries the ExampleTable table using prefix and range queries against defined indexes. + rpc ListExampleTable (ListExampleTableRequest) returns (ListExampleTableResponse) {} + // Get queries the ExampleAutoIncrementTable table by its primary key. + rpc GetExampleAutoIncrementTable (GetExampleAutoIncrementTableRequest) returns (GetExampleAutoIncrementTableResponse) {} + // GetExampleAutoIncrementTableByX queries the ExampleAutoIncrementTable table by its X index + rpc GetExampleAutoIncrementTableByX (GetExampleAutoIncrementTableByXRequest) returns (GetExampleAutoIncrementTableByXResponse) {} + // ListExampleAutoIncrementTable queries the ExampleAutoIncrementTable table using prefix and range queries against defined indexes. + rpc ListExampleAutoIncrementTable (ListExampleAutoIncrementTableRequest) returns (ListExampleAutoIncrementTableResponse) {} + // GetExampleSingleton queries the ExampleSingleton singleton. + rpc GetExampleSingleton (GetExampleSingletonRequest) returns (GetExampleSingletonResponse) {} + // Get queries the ExampleTimestamp table by its primary key. + rpc GetExampleTimestamp (GetExampleTimestampRequest) returns (GetExampleTimestampResponse) {} + // ListExampleTimestamp queries the ExampleTimestamp table using prefix and range queries against defined indexes. + rpc ListExampleTimestamp (ListExampleTimestampRequest) returns (ListExampleTimestampResponse) {} + // Get queries the SimpleExample table by its primary key. + rpc GetSimpleExample (GetSimpleExampleRequest) returns (GetSimpleExampleResponse) {} + // GetSimpleExampleByUnique queries the SimpleExample table by its Unique index + rpc GetSimpleExampleByUnique (GetSimpleExampleByUniqueRequest) returns (GetSimpleExampleByUniqueResponse) {} + // ListSimpleExample queries the SimpleExample table using prefix and range queries against defined indexes. + rpc ListSimpleExample (ListSimpleExampleRequest) returns (ListSimpleExampleResponse) {} + // Get queries the ExampleAutoIncFieldName table by its primary key. + rpc GetExampleAutoIncFieldName (GetExampleAutoIncFieldNameRequest) returns (GetExampleAutoIncFieldNameResponse) {} + // ListExampleAutoIncFieldName queries the ExampleAutoIncFieldName table using prefix and range queries against defined indexes. + rpc ListExampleAutoIncFieldName (ListExampleAutoIncFieldNameRequest) returns (ListExampleAutoIncFieldNameResponse) {} +} + +// GetExampleTableRequest is the TestSchemaQuery/GetExampleTableRequest request type. +message GetExampleTableRequest { + // u32 specifies the value of the u32 field in the primary key. + uint32 u32 = 1; + // i64 specifies the value of the i64 field in the primary key. + int64 i64 = 2; + // str specifies the value of the str field in the primary key. + string str = 3; +} + +// GetExampleTableResponse is the TestSchemaQuery/GetExampleTableResponse response type. +message GetExampleTableResponse { + // value is the response value. + ExampleTable value = 1; +} + +// GetExampleTableByU64StrRequest is the TestSchemaQuery/GetExampleTableByU64StrRequest request type. +message GetExampleTableByU64StrRequest { + uint64 u64 = 1; + string str = 2; +} + +// GetExampleTableByU64StrResponse is the TestSchemaQuery/GetExampleTableByU64StrResponse response type. +message GetExampleTableByU64StrResponse { + ExampleTable value = 1; +} + +// ListExampleTableRequest is the TestSchemaQuery/ListExampleTableRequest request type. +message ListExampleTableRequest { + // IndexKey specifies the value of an index key to use in prefix and range queries. + message IndexKey { + // key specifies the index key value. + oneof key { + // u_32_i_64_str specifies the value of the U32I64Str index key to use in the query. + U32I64Str u_32_i_64_str = 1; + // u_64_str specifies the value of the U64Str index key to use in the query. + U64Str u_64_str = 2; + // str_u_32 specifies the value of the StrU32 index key to use in the query. + StrU32 str_u_32 = 3; + // bz_str specifies the value of the BzStr index key to use in the query. + BzStr bz_str = 4; + } + + message U32I64Str { + // u32 is the value of the u32 field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional uint32 u32 = 1; + // i64 is the value of the i64 field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional int64 i64 = 2; + // str is the value of the str field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string str = 3; + } + + message U64Str { + // u64 is the value of the u64 field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional uint64 u64 = 1; + // str is the value of the str field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string str = 2; + } + + message StrU32 { + // str is the value of the str field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string str = 1; + // u32 is the value of the u32 field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional uint32 u32 = 2; + } + + message BzStr { + // bz is the value of the bz field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional bytes bz = 1; + // str is the value of the str field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string str = 2; + } + } + + // query specifies the type of query - either a prefix or range query. + oneof query { + // prefix_query specifies the index key value to use for the prefix query. + IndexKey prefix_query = 1; + // range_query specifies the index key from/to values to use for the range query. + RangeQuery range_query = 2; + } + // pagination specifies optional pagination parameters. + cosmos.base.query.v1beta1.PageRequest pagination = 3; + + // RangeQuery specifies the from/to index keys for a range query. + message RangeQuery { + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + IndexKey from = 1; + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + IndexKey to = 2; + } +} + +// ListExampleTableResponse is the TestSchemaQuery/ListExampleTableResponse response type. +message ListExampleTableResponse { + // values are the results of the query. + repeated ExampleTable values = 1; + // pagination is the pagination response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// GetExampleAutoIncrementTableRequest is the TestSchemaQuery/GetExampleAutoIncrementTableRequest request type. +message GetExampleAutoIncrementTableRequest { + // id specifies the value of the id field in the primary key. + uint64 id = 1; +} + +// GetExampleAutoIncrementTableResponse is the TestSchemaQuery/GetExampleAutoIncrementTableResponse response type. +message GetExampleAutoIncrementTableResponse { + // value is the response value. + ExampleAutoIncrementTable value = 1; +} + +// GetExampleAutoIncrementTableByXRequest is the TestSchemaQuery/GetExampleAutoIncrementTableByXRequest request type. +message GetExampleAutoIncrementTableByXRequest { + string x = 1; +} + +// GetExampleAutoIncrementTableByXResponse is the TestSchemaQuery/GetExampleAutoIncrementTableByXResponse response type. +message GetExampleAutoIncrementTableByXResponse { + ExampleAutoIncrementTable value = 1; +} + +// ListExampleAutoIncrementTableRequest is the TestSchemaQuery/ListExampleAutoIncrementTableRequest request type. +message ListExampleAutoIncrementTableRequest { + // IndexKey specifies the value of an index key to use in prefix and range queries. + message IndexKey { + // key specifies the index key value. + oneof key { + // id specifies the value of the Id index key to use in the query. + Id id = 1; + // x specifies the value of the X index key to use in the query. + X x = 2; + } + + message Id { + // id is the value of the id field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional uint64 id = 1; + } + + message X { + // x is the value of the x field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string x = 1; + } + } + + // query specifies the type of query - either a prefix or range query. + oneof query { + // prefix_query specifies the index key value to use for the prefix query. + IndexKey prefix_query = 1; + // range_query specifies the index key from/to values to use for the range query. + RangeQuery range_query = 2; + } + // pagination specifies optional pagination parameters. + cosmos.base.query.v1beta1.PageRequest pagination = 3; + + // RangeQuery specifies the from/to index keys for a range query. + message RangeQuery { + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + IndexKey from = 1; + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + IndexKey to = 2; + } +} + +// ListExampleAutoIncrementTableResponse is the TestSchemaQuery/ListExampleAutoIncrementTableResponse response type. +message ListExampleAutoIncrementTableResponse { + // values are the results of the query. + repeated ExampleAutoIncrementTable values = 1; + // pagination is the pagination response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// GetExampleSingletonRequest is the TestSchemaQuery/GetExampleSingletonRequest request type. +message GetExampleSingletonRequest { +} + +// GetExampleSingletonResponse is the TestSchemaQuery/GetExampleSingletonResponse request type. +message GetExampleSingletonResponse { + ExampleSingleton value = 1; +} + +// GetExampleTimestampRequest is the TestSchemaQuery/GetExampleTimestampRequest request type. +message GetExampleTimestampRequest { + // id specifies the value of the id field in the primary key. + uint64 id = 1; +} + +// GetExampleTimestampResponse is the TestSchemaQuery/GetExampleTimestampResponse response type. +message GetExampleTimestampResponse { + // value is the response value. + ExampleTimestamp value = 1; +} + +// ListExampleTimestampRequest is the TestSchemaQuery/ListExampleTimestampRequest request type. +message ListExampleTimestampRequest { + // IndexKey specifies the value of an index key to use in prefix and range queries. + message IndexKey { + // key specifies the index key value. + oneof key { + // id specifies the value of the Id index key to use in the query. + Id id = 1; + // ts specifies the value of the Ts index key to use in the query. + Ts ts = 2; + } + + message Id { + // id is the value of the id field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional uint64 id = 1; + } + + message Ts { + // ts is the value of the ts field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional google.protobuf.Timestamp ts = 1; + } + } + + // query specifies the type of query - either a prefix or range query. + oneof query { + // prefix_query specifies the index key value to use for the prefix query. + IndexKey prefix_query = 1; + // range_query specifies the index key from/to values to use for the range query. + RangeQuery range_query = 2; + } + // pagination specifies optional pagination parameters. + cosmos.base.query.v1beta1.PageRequest pagination = 3; + + // RangeQuery specifies the from/to index keys for a range query. + message RangeQuery { + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + IndexKey from = 1; + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + IndexKey to = 2; + } +} + +// ListExampleTimestampResponse is the TestSchemaQuery/ListExampleTimestampResponse response type. +message ListExampleTimestampResponse { + // values are the results of the query. + repeated ExampleTimestamp values = 1; + // pagination is the pagination response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// GetSimpleExampleRequest is the TestSchemaQuery/GetSimpleExampleRequest request type. +message GetSimpleExampleRequest { + // name specifies the value of the name field in the primary key. + string name = 1; +} + +// GetSimpleExampleResponse is the TestSchemaQuery/GetSimpleExampleResponse response type. +message GetSimpleExampleResponse { + // value is the response value. + SimpleExample value = 1; +} + +// GetSimpleExampleByUniqueRequest is the TestSchemaQuery/GetSimpleExampleByUniqueRequest request type. +message GetSimpleExampleByUniqueRequest { + string unique = 1; +} + +// GetSimpleExampleByUniqueResponse is the TestSchemaQuery/GetSimpleExampleByUniqueResponse response type. +message GetSimpleExampleByUniqueResponse { + SimpleExample value = 1; +} + +// ListSimpleExampleRequest is the TestSchemaQuery/ListSimpleExampleRequest request type. +message ListSimpleExampleRequest { + // IndexKey specifies the value of an index key to use in prefix and range queries. + message IndexKey { + // key specifies the index key value. + oneof key { + // name specifies the value of the Name index key to use in the query. + Name name = 1; + // unique specifies the value of the Unique index key to use in the query. + Unique unique = 2; + } + + message Name { + // name is the value of the name field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string name = 1; + } + + message Unique { + // unique is the value of the unique field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional string unique = 1; + } + } + + // query specifies the type of query - either a prefix or range query. + oneof query { + // prefix_query specifies the index key value to use for the prefix query. + IndexKey prefix_query = 1; + // range_query specifies the index key from/to values to use for the range query. + RangeQuery range_query = 2; + } + // pagination specifies optional pagination parameters. + cosmos.base.query.v1beta1.PageRequest pagination = 3; + + // RangeQuery specifies the from/to index keys for a range query. + message RangeQuery { + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + IndexKey from = 1; + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + IndexKey to = 2; + } +} + +// ListSimpleExampleResponse is the TestSchemaQuery/ListSimpleExampleResponse response type. +message ListSimpleExampleResponse { + // values are the results of the query. + repeated SimpleExample values = 1; + // pagination is the pagination response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// GetExampleAutoIncFieldNameRequest is the TestSchemaQuery/GetExampleAutoIncFieldNameRequest request type. +message GetExampleAutoIncFieldNameRequest { + // foo specifies the value of the foo field in the primary key. + uint64 foo = 1; +} + +// GetExampleAutoIncFieldNameResponse is the TestSchemaQuery/GetExampleAutoIncFieldNameResponse response type. +message GetExampleAutoIncFieldNameResponse { + // value is the response value. + ExampleAutoIncFieldName value = 1; +} + +// ListExampleAutoIncFieldNameRequest is the TestSchemaQuery/ListExampleAutoIncFieldNameRequest request type. +message ListExampleAutoIncFieldNameRequest { + // IndexKey specifies the value of an index key to use in prefix and range queries. + message IndexKey { + // key specifies the index key value. + oneof key { + // foo specifies the value of the Foo index key to use in the query. + Foo foo = 1; + } + + message Foo { + // foo is the value of the foo field in the index. + // It can be omitted to query for all valid values of that field in this segment of the index. + optional uint64 foo = 1; + } + } + + // query specifies the type of query - either a prefix or range query. + oneof query { + // prefix_query specifies the index key value to use for the prefix query. + IndexKey prefix_query = 1; + // range_query specifies the index key from/to values to use for the range query. + RangeQuery range_query = 2; + } + // pagination specifies optional pagination parameters. + cosmos.base.query.v1beta1.PageRequest pagination = 3; + + // RangeQuery specifies the from/to index keys for a range query. + message RangeQuery { + // from is the index key to use for the start of the range query. + // To query from the start of an index, specify an index key for that index with empty values. + IndexKey from = 1; + // to is the index key to use for the end of the range query. + // The index key type MUST be the same as the index key type used for from. + // To query from to the end of an index it can be omitted. + IndexKey to = 2; + } +} + +// ListExampleAutoIncFieldNameResponse is the TestSchemaQuery/ListExampleAutoIncFieldNameResponse response type. +message ListExampleAutoIncFieldNameResponse { + // values are the results of the query. + repeated ExampleAutoIncFieldName values = 1; + // pagination is the pagination response. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + diff --git a/orm/internal/testpb/test_schema_query_grpc.pb.go b/orm/internal/testpb/test_schema_query_grpc.pb.go new file mode 100644 index 000000000000..73a6002aa35b --- /dev/null +++ b/orm/internal/testpb/test_schema_query_grpc.pb.go @@ -0,0 +1,601 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc (unknown) +// source: testpb/test_schema_query.proto + +package testpb + +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 + +// TestSchemaQueryClient is the client API for TestSchemaQuery 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 TestSchemaQueryClient interface { + // Get queries the ExampleTable table by its primary key. + GetExampleTable(ctx context.Context, in *GetExampleTableRequest, opts ...grpc.CallOption) (*GetExampleTableResponse, error) + // GetExampleTableByU64Str queries the ExampleTable table by its U64Str index + GetExampleTableByU64Str(ctx context.Context, in *GetExampleTableByU64StrRequest, opts ...grpc.CallOption) (*GetExampleTableByU64StrResponse, error) + // ListExampleTable queries the ExampleTable table using prefix and range queries against defined indexes. + ListExampleTable(ctx context.Context, in *ListExampleTableRequest, opts ...grpc.CallOption) (*ListExampleTableResponse, error) + // Get queries the ExampleAutoIncrementTable table by its primary key. + GetExampleAutoIncrementTable(ctx context.Context, in *GetExampleAutoIncrementTableRequest, opts ...grpc.CallOption) (*GetExampleAutoIncrementTableResponse, error) + // GetExampleAutoIncrementTableByX queries the ExampleAutoIncrementTable table by its X index + GetExampleAutoIncrementTableByX(ctx context.Context, in *GetExampleAutoIncrementTableByXRequest, opts ...grpc.CallOption) (*GetExampleAutoIncrementTableByXResponse, error) + // ListExampleAutoIncrementTable queries the ExampleAutoIncrementTable table using prefix and range queries against defined indexes. + ListExampleAutoIncrementTable(ctx context.Context, in *ListExampleAutoIncrementTableRequest, opts ...grpc.CallOption) (*ListExampleAutoIncrementTableResponse, error) + // GetExampleSingleton queries the ExampleSingleton singleton. + GetExampleSingleton(ctx context.Context, in *GetExampleSingletonRequest, opts ...grpc.CallOption) (*GetExampleSingletonResponse, error) + // Get queries the ExampleTimestamp table by its primary key. + GetExampleTimestamp(ctx context.Context, in *GetExampleTimestampRequest, opts ...grpc.CallOption) (*GetExampleTimestampResponse, error) + // ListExampleTimestamp queries the ExampleTimestamp table using prefix and range queries against defined indexes. + ListExampleTimestamp(ctx context.Context, in *ListExampleTimestampRequest, opts ...grpc.CallOption) (*ListExampleTimestampResponse, error) + // Get queries the SimpleExample table by its primary key. + GetSimpleExample(ctx context.Context, in *GetSimpleExampleRequest, opts ...grpc.CallOption) (*GetSimpleExampleResponse, error) + // GetSimpleExampleByUnique queries the SimpleExample table by its Unique index + GetSimpleExampleByUnique(ctx context.Context, in *GetSimpleExampleByUniqueRequest, opts ...grpc.CallOption) (*GetSimpleExampleByUniqueResponse, error) + // ListSimpleExample queries the SimpleExample table using prefix and range queries against defined indexes. + ListSimpleExample(ctx context.Context, in *ListSimpleExampleRequest, opts ...grpc.CallOption) (*ListSimpleExampleResponse, error) + // Get queries the ExampleAutoIncFieldName table by its primary key. + GetExampleAutoIncFieldName(ctx context.Context, in *GetExampleAutoIncFieldNameRequest, opts ...grpc.CallOption) (*GetExampleAutoIncFieldNameResponse, error) + // ListExampleAutoIncFieldName queries the ExampleAutoIncFieldName table using prefix and range queries against defined indexes. + ListExampleAutoIncFieldName(ctx context.Context, in *ListExampleAutoIncFieldNameRequest, opts ...grpc.CallOption) (*ListExampleAutoIncFieldNameResponse, error) +} + +type testSchemaQueryClient struct { + cc grpc.ClientConnInterface +} + +func NewTestSchemaQueryClient(cc grpc.ClientConnInterface) TestSchemaQueryClient { + return &testSchemaQueryClient{cc} +} + +func (c *testSchemaQueryClient) GetExampleTable(ctx context.Context, in *GetExampleTableRequest, opts ...grpc.CallOption) (*GetExampleTableResponse, error) { + out := new(GetExampleTableResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetExampleTable", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) GetExampleTableByU64Str(ctx context.Context, in *GetExampleTableByU64StrRequest, opts ...grpc.CallOption) (*GetExampleTableByU64StrResponse, error) { + out := new(GetExampleTableByU64StrResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetExampleTableByU64Str", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) ListExampleTable(ctx context.Context, in *ListExampleTableRequest, opts ...grpc.CallOption) (*ListExampleTableResponse, error) { + out := new(ListExampleTableResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/ListExampleTable", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) GetExampleAutoIncrementTable(ctx context.Context, in *GetExampleAutoIncrementTableRequest, opts ...grpc.CallOption) (*GetExampleAutoIncrementTableResponse, error) { + out := new(GetExampleAutoIncrementTableResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetExampleAutoIncrementTable", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) GetExampleAutoIncrementTableByX(ctx context.Context, in *GetExampleAutoIncrementTableByXRequest, opts ...grpc.CallOption) (*GetExampleAutoIncrementTableByXResponse, error) { + out := new(GetExampleAutoIncrementTableByXResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetExampleAutoIncrementTableByX", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) ListExampleAutoIncrementTable(ctx context.Context, in *ListExampleAutoIncrementTableRequest, opts ...grpc.CallOption) (*ListExampleAutoIncrementTableResponse, error) { + out := new(ListExampleAutoIncrementTableResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/ListExampleAutoIncrementTable", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) GetExampleSingleton(ctx context.Context, in *GetExampleSingletonRequest, opts ...grpc.CallOption) (*GetExampleSingletonResponse, error) { + out := new(GetExampleSingletonResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetExampleSingleton", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) GetExampleTimestamp(ctx context.Context, in *GetExampleTimestampRequest, opts ...grpc.CallOption) (*GetExampleTimestampResponse, error) { + out := new(GetExampleTimestampResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetExampleTimestamp", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) ListExampleTimestamp(ctx context.Context, in *ListExampleTimestampRequest, opts ...grpc.CallOption) (*ListExampleTimestampResponse, error) { + out := new(ListExampleTimestampResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/ListExampleTimestamp", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) GetSimpleExample(ctx context.Context, in *GetSimpleExampleRequest, opts ...grpc.CallOption) (*GetSimpleExampleResponse, error) { + out := new(GetSimpleExampleResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetSimpleExample", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) GetSimpleExampleByUnique(ctx context.Context, in *GetSimpleExampleByUniqueRequest, opts ...grpc.CallOption) (*GetSimpleExampleByUniqueResponse, error) { + out := new(GetSimpleExampleByUniqueResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetSimpleExampleByUnique", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) ListSimpleExample(ctx context.Context, in *ListSimpleExampleRequest, opts ...grpc.CallOption) (*ListSimpleExampleResponse, error) { + out := new(ListSimpleExampleResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/ListSimpleExample", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) GetExampleAutoIncFieldName(ctx context.Context, in *GetExampleAutoIncFieldNameRequest, opts ...grpc.CallOption) (*GetExampleAutoIncFieldNameResponse, error) { + out := new(GetExampleAutoIncFieldNameResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/GetExampleAutoIncFieldName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *testSchemaQueryClient) ListExampleAutoIncFieldName(ctx context.Context, in *ListExampleAutoIncFieldNameRequest, opts ...grpc.CallOption) (*ListExampleAutoIncFieldNameResponse, error) { + out := new(ListExampleAutoIncFieldNameResponse) + err := c.cc.Invoke(ctx, "/testpb.TestSchemaQuery/ListExampleAutoIncFieldName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TestSchemaQueryServer is the server API for TestSchemaQuery service. +// All implementations must embed UnimplementedTestSchemaQueryServer +// for forward compatibility +type TestSchemaQueryServer interface { + // Get queries the ExampleTable table by its primary key. + GetExampleTable(context.Context, *GetExampleTableRequest) (*GetExampleTableResponse, error) + // GetExampleTableByU64Str queries the ExampleTable table by its U64Str index + GetExampleTableByU64Str(context.Context, *GetExampleTableByU64StrRequest) (*GetExampleTableByU64StrResponse, error) + // ListExampleTable queries the ExampleTable table using prefix and range queries against defined indexes. + ListExampleTable(context.Context, *ListExampleTableRequest) (*ListExampleTableResponse, error) + // Get queries the ExampleAutoIncrementTable table by its primary key. + GetExampleAutoIncrementTable(context.Context, *GetExampleAutoIncrementTableRequest) (*GetExampleAutoIncrementTableResponse, error) + // GetExampleAutoIncrementTableByX queries the ExampleAutoIncrementTable table by its X index + GetExampleAutoIncrementTableByX(context.Context, *GetExampleAutoIncrementTableByXRequest) (*GetExampleAutoIncrementTableByXResponse, error) + // ListExampleAutoIncrementTable queries the ExampleAutoIncrementTable table using prefix and range queries against defined indexes. + ListExampleAutoIncrementTable(context.Context, *ListExampleAutoIncrementTableRequest) (*ListExampleAutoIncrementTableResponse, error) + // GetExampleSingleton queries the ExampleSingleton singleton. + GetExampleSingleton(context.Context, *GetExampleSingletonRequest) (*GetExampleSingletonResponse, error) + // Get queries the ExampleTimestamp table by its primary key. + GetExampleTimestamp(context.Context, *GetExampleTimestampRequest) (*GetExampleTimestampResponse, error) + // ListExampleTimestamp queries the ExampleTimestamp table using prefix and range queries against defined indexes. + ListExampleTimestamp(context.Context, *ListExampleTimestampRequest) (*ListExampleTimestampResponse, error) + // Get queries the SimpleExample table by its primary key. + GetSimpleExample(context.Context, *GetSimpleExampleRequest) (*GetSimpleExampleResponse, error) + // GetSimpleExampleByUnique queries the SimpleExample table by its Unique index + GetSimpleExampleByUnique(context.Context, *GetSimpleExampleByUniqueRequest) (*GetSimpleExampleByUniqueResponse, error) + // ListSimpleExample queries the SimpleExample table using prefix and range queries against defined indexes. + ListSimpleExample(context.Context, *ListSimpleExampleRequest) (*ListSimpleExampleResponse, error) + // Get queries the ExampleAutoIncFieldName table by its primary key. + GetExampleAutoIncFieldName(context.Context, *GetExampleAutoIncFieldNameRequest) (*GetExampleAutoIncFieldNameResponse, error) + // ListExampleAutoIncFieldName queries the ExampleAutoIncFieldName table using prefix and range queries against defined indexes. + ListExampleAutoIncFieldName(context.Context, *ListExampleAutoIncFieldNameRequest) (*ListExampleAutoIncFieldNameResponse, error) + mustEmbedUnimplementedTestSchemaQueryServer() +} + +// UnimplementedTestSchemaQueryServer must be embedded to have forward compatible implementations. +type UnimplementedTestSchemaQueryServer struct { +} + +func (UnimplementedTestSchemaQueryServer) GetExampleTable(context.Context, *GetExampleTableRequest) (*GetExampleTableResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExampleTable not implemented") +} +func (UnimplementedTestSchemaQueryServer) GetExampleTableByU64Str(context.Context, *GetExampleTableByU64StrRequest) (*GetExampleTableByU64StrResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExampleTableByU64Str not implemented") +} +func (UnimplementedTestSchemaQueryServer) ListExampleTable(context.Context, *ListExampleTableRequest) (*ListExampleTableResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExampleTable not implemented") +} +func (UnimplementedTestSchemaQueryServer) GetExampleAutoIncrementTable(context.Context, *GetExampleAutoIncrementTableRequest) (*GetExampleAutoIncrementTableResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExampleAutoIncrementTable not implemented") +} +func (UnimplementedTestSchemaQueryServer) GetExampleAutoIncrementTableByX(context.Context, *GetExampleAutoIncrementTableByXRequest) (*GetExampleAutoIncrementTableByXResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExampleAutoIncrementTableByX not implemented") +} +func (UnimplementedTestSchemaQueryServer) ListExampleAutoIncrementTable(context.Context, *ListExampleAutoIncrementTableRequest) (*ListExampleAutoIncrementTableResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExampleAutoIncrementTable not implemented") +} +func (UnimplementedTestSchemaQueryServer) GetExampleSingleton(context.Context, *GetExampleSingletonRequest) (*GetExampleSingletonResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExampleSingleton not implemented") +} +func (UnimplementedTestSchemaQueryServer) GetExampleTimestamp(context.Context, *GetExampleTimestampRequest) (*GetExampleTimestampResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExampleTimestamp not implemented") +} +func (UnimplementedTestSchemaQueryServer) ListExampleTimestamp(context.Context, *ListExampleTimestampRequest) (*ListExampleTimestampResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExampleTimestamp not implemented") +} +func (UnimplementedTestSchemaQueryServer) GetSimpleExample(context.Context, *GetSimpleExampleRequest) (*GetSimpleExampleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSimpleExample not implemented") +} +func (UnimplementedTestSchemaQueryServer) GetSimpleExampleByUnique(context.Context, *GetSimpleExampleByUniqueRequest) (*GetSimpleExampleByUniqueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSimpleExampleByUnique not implemented") +} +func (UnimplementedTestSchemaQueryServer) ListSimpleExample(context.Context, *ListSimpleExampleRequest) (*ListSimpleExampleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSimpleExample not implemented") +} +func (UnimplementedTestSchemaQueryServer) GetExampleAutoIncFieldName(context.Context, *GetExampleAutoIncFieldNameRequest) (*GetExampleAutoIncFieldNameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExampleAutoIncFieldName not implemented") +} +func (UnimplementedTestSchemaQueryServer) ListExampleAutoIncFieldName(context.Context, *ListExampleAutoIncFieldNameRequest) (*ListExampleAutoIncFieldNameResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExampleAutoIncFieldName not implemented") +} +func (UnimplementedTestSchemaQueryServer) mustEmbedUnimplementedTestSchemaQueryServer() {} + +// UnsafeTestSchemaQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TestSchemaQueryServer will +// result in compilation errors. +type UnsafeTestSchemaQueryServer interface { + mustEmbedUnimplementedTestSchemaQueryServer() +} + +func RegisterTestSchemaQueryServer(s grpc.ServiceRegistrar, srv TestSchemaQueryServer) { + s.RegisterService(&TestSchemaQuery_ServiceDesc, srv) +} + +func _TestSchemaQuery_GetExampleTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExampleTableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetExampleTable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetExampleTable", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetExampleTable(ctx, req.(*GetExampleTableRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_GetExampleTableByU64Str_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExampleTableByU64StrRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetExampleTableByU64Str(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetExampleTableByU64Str", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetExampleTableByU64Str(ctx, req.(*GetExampleTableByU64StrRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_ListExampleTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListExampleTableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).ListExampleTable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/ListExampleTable", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).ListExampleTable(ctx, req.(*ListExampleTableRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_GetExampleAutoIncrementTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExampleAutoIncrementTableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetExampleAutoIncrementTable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetExampleAutoIncrementTable", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetExampleAutoIncrementTable(ctx, req.(*GetExampleAutoIncrementTableRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_GetExampleAutoIncrementTableByX_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExampleAutoIncrementTableByXRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetExampleAutoIncrementTableByX(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetExampleAutoIncrementTableByX", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetExampleAutoIncrementTableByX(ctx, req.(*GetExampleAutoIncrementTableByXRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_ListExampleAutoIncrementTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListExampleAutoIncrementTableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).ListExampleAutoIncrementTable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/ListExampleAutoIncrementTable", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).ListExampleAutoIncrementTable(ctx, req.(*ListExampleAutoIncrementTableRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_GetExampleSingleton_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExampleSingletonRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetExampleSingleton(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetExampleSingleton", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetExampleSingleton(ctx, req.(*GetExampleSingletonRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_GetExampleTimestamp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExampleTimestampRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetExampleTimestamp(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetExampleTimestamp", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetExampleTimestamp(ctx, req.(*GetExampleTimestampRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_ListExampleTimestamp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListExampleTimestampRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).ListExampleTimestamp(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/ListExampleTimestamp", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).ListExampleTimestamp(ctx, req.(*ListExampleTimestampRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_GetSimpleExample_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSimpleExampleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetSimpleExample(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetSimpleExample", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetSimpleExample(ctx, req.(*GetSimpleExampleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_GetSimpleExampleByUnique_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSimpleExampleByUniqueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetSimpleExampleByUnique(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetSimpleExampleByUnique", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetSimpleExampleByUnique(ctx, req.(*GetSimpleExampleByUniqueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_ListSimpleExample_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSimpleExampleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).ListSimpleExample(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/ListSimpleExample", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).ListSimpleExample(ctx, req.(*ListSimpleExampleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_GetExampleAutoIncFieldName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExampleAutoIncFieldNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).GetExampleAutoIncFieldName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/GetExampleAutoIncFieldName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).GetExampleAutoIncFieldName(ctx, req.(*GetExampleAutoIncFieldNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TestSchemaQuery_ListExampleAutoIncFieldName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListExampleAutoIncFieldNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestSchemaQueryServer).ListExampleAutoIncFieldName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpb.TestSchemaQuery/ListExampleAutoIncFieldName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestSchemaQueryServer).ListExampleAutoIncFieldName(ctx, req.(*ListExampleAutoIncFieldNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// TestSchemaQuery_ServiceDesc is the grpc.ServiceDesc for TestSchemaQuery service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var TestSchemaQuery_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "testpb.TestSchemaQuery", + HandlerType: (*TestSchemaQueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetExampleTable", + Handler: _TestSchemaQuery_GetExampleTable_Handler, + }, + { + MethodName: "GetExampleTableByU64Str", + Handler: _TestSchemaQuery_GetExampleTableByU64Str_Handler, + }, + { + MethodName: "ListExampleTable", + Handler: _TestSchemaQuery_ListExampleTable_Handler, + }, + { + MethodName: "GetExampleAutoIncrementTable", + Handler: _TestSchemaQuery_GetExampleAutoIncrementTable_Handler, + }, + { + MethodName: "GetExampleAutoIncrementTableByX", + Handler: _TestSchemaQuery_GetExampleAutoIncrementTableByX_Handler, + }, + { + MethodName: "ListExampleAutoIncrementTable", + Handler: _TestSchemaQuery_ListExampleAutoIncrementTable_Handler, + }, + { + MethodName: "GetExampleSingleton", + Handler: _TestSchemaQuery_GetExampleSingleton_Handler, + }, + { + MethodName: "GetExampleTimestamp", + Handler: _TestSchemaQuery_GetExampleTimestamp_Handler, + }, + { + MethodName: "ListExampleTimestamp", + Handler: _TestSchemaQuery_ListExampleTimestamp_Handler, + }, + { + MethodName: "GetSimpleExample", + Handler: _TestSchemaQuery_GetSimpleExample_Handler, + }, + { + MethodName: "GetSimpleExampleByUnique", + Handler: _TestSchemaQuery_GetSimpleExampleByUnique_Handler, + }, + { + MethodName: "ListSimpleExample", + Handler: _TestSchemaQuery_ListSimpleExample_Handler, + }, + { + MethodName: "GetExampleAutoIncFieldName", + Handler: _TestSchemaQuery_GetExampleAutoIncFieldName_Handler, + }, + { + MethodName: "ListExampleAutoIncFieldName", + Handler: _TestSchemaQuery_ListExampleAutoIncFieldName_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "testpb/test_schema_query.proto", +}