From 1b5a71c00310535ae98f892ff187d976e46ff37e Mon Sep 17 00:00:00 2001 From: Tristan Swadell Date: Wed, 18 Nov 2020 14:24:13 -0800 Subject: [PATCH] Golang protobuf v2 API support (#161) --- WORKSPACE | 40 +- go.mod | 8 +- go.sum | 32 +- proto/test/v1/proto2/BUILD.bazel | 1 - .../test_all_types/test_all_types.pb.go | 1294 +++++++++++------ proto/test/v1/proto3/BUILD.bazel | 1 - .../test_all_types/test_all_types.pb.go | 1172 ++++++++++----- proto/test/v1/testpb/envcheck.pb.go | 194 ++- proto/test/v1/testpb/simple.pb.go | 767 ++++++---- tests/envcheck/BUILD.bazel | 4 +- tests/envcheck/envcheck.go | 8 +- tests/envcheck/envcheck_test.go | 6 +- tests/simple/BUILD.bazel | 10 +- tests/simple/simple.go | 37 +- tests/simple/simple_test.go | 13 +- tools/BUILD.bazel | 2 - tools/celrpc/BUILD.bazel | 2 +- tools/celrpc/celrpc.go | 16 +- 18 files changed, 2348 insertions(+), 1259 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index d79ab438..4bd1479f 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -2,19 +2,19 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_go", - sha256 = "8663604808d2738dc615a2c3eb70eba54a9a982089dd09f6ffe5d0e75771bc4f", + sha256 = "207fad3e6689135c5d8713e5a17ba9d1290238f47b9ba545b63d9303406209c6", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.23.6/rules_go-v0.23.6.tar.gz", - "https://github.com/bazelbuild/rules_go/releases/download/v0.23.6/rules_go-v0.23.6.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.7/rules_go-v0.24.7.tar.gz", + "https://github.com/bazelbuild/rules_go/releases/download/v0.24.7/rules_go-v0.24.7.tar.gz", ], ) http_archive( name = "bazel_gazelle", - sha256 = "cdb02a887a7187ea4d5a27452311a75ed8637379a1287d8eeb952138ea485f7d", + sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.1/bazel-gazelle-v0.21.1.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.1/bazel-gazelle-v0.21.1.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", + "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.2/bazel-gazelle-v0.22.2.tar.gz", ], ) @@ -30,21 +30,14 @@ http_archive( http_archive( name = "rules_proto", - sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208", - strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313", + sha256 = "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da", + strip_prefix = "rules_proto-7e4afce6fe62dbff0a4a03450143146f9f2d7488", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", - "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz", + "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz", ], ) -http_archive( - name = "rules_python", - sha256 = "943071099515973b27e8139df8d2a2628404070a7e8782765b4fe1f12ab92033", - strip_prefix = "rules_python-cd552725122fdfe06a72864e21a92b5093a1857d", - url = "https://github.com/bazelbuild/rules_python/archive/cd552725122fdfe06a72864e21a92b5093a1857d.tar.gz", -) - # googleapis http_archive( name = "com_google_googleapis", @@ -58,9 +51,8 @@ http_archive( # protobuf http_archive( name = "com_google_protobuf", - sha256 = "9748c0d90e54ea09e5e75fb7fac16edce15d2028d4356f32211cfa3c0e956564", - strip_prefix = "protobuf-3.11.4", - urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.11.4.zip"], + strip_prefix = "protobuf-3.13.0", + urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.13.0.zip"], ) # googletest @@ -115,17 +107,17 @@ switched_rules_by_language( # Generated Google APIs protos for Golang go_repository( name = "org_golang_google_genproto", - build_file_proto_mode = "disable", - commit = "3dc8dca74b7b7d2637db5f256f0310f95386653f", + build_file_proto_mode = "disable_global", + commit = "62d171c70ae133bd47722027b62f8820407cf744", importpath = "google.golang.org/genproto", ) # gRPC deps go_repository( name = "org_golang_google_grpc", - build_file_proto_mode = "disable", + build_file_proto_mode = "disable_global", importpath = "google.golang.org/grpc", - tag = "v1.27.1", + tag = "v1.33.2", ) go_repository( diff --git a/go.mod b/go.mod index b7c4624b..762a9bf3 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,11 @@ module github.com/google/cel-spec go 1.12 require ( - github.com/golang/protobuf v1.3.4 - github.com/google/go-cmp v0.4.0 // indirect + github.com/golang/protobuf v1.4.3 golang.org/x/net v0.0.0-20200301022130-244492dfa37a // indirect golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527 // indirect golang.org/x/text v0.3.2 // indirect - google.golang.org/genproto v0.0.0-20200305110556-506484158171 - google.golang.org/grpc v1.27.1 + google.golang.org/genproto v0.0.0-20201102152239-715cce707fb0 + google.golang.org/grpc v1.33.2 + google.golang.org/protobuf v1.25.0 ) diff --git a/go.sum b/go.sum index d52bbc63..34960426 100644 --- a/go.sum +++ b/go.sum @@ -16,12 +16,21 @@ github.com/golang/mock v1.1.1 h1:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4 h1:87PNWwrRvUSnqS4dlcBU/ftvOIBep4sYuBLlh6rX2wk= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M= @@ -68,13 +77,26 @@ google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO50 google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200305110556-506484158171 h1:xes2Q2k+d/+YNXVw0FpZkIDJiaux4OVrRKXRAzH6A0U= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20201102152239-715cce707fb0 h1:d0rYPqjQfVuFe+tZgv4PHt2hNxK79MRXX7PaD/A5ynA= +google.golang.org/genproto v0.0.0-20201102152239-715cce707fb0/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.1 h1:zvIju4sqAGvwKspUQOhwnpcqSbzi7/H6QomNNjTL4sk= google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099 h1:XJP7lxbSxWLOMNdBE4B/STaqVy6L73o0knwj2vIlxnw= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc h1:/hemPrYIhOhy8zYrNj+069zDB68us2sMGsfkFJO0iZs= diff --git a/proto/test/v1/proto2/BUILD.bazel b/proto/test/v1/proto2/BUILD.bazel index 46eb7a0d..0c2316dc 100644 --- a/proto/test/v1/proto2/BUILD.bazel +++ b/proto/test/v1/proto2/BUILD.bazel @@ -30,7 +30,6 @@ go_proto_library( proto = ":test_all_types_proto", importpath = "github.com/google/cel-spec/proto/test/v1/proto2/test_all_types", deps = [ - "@com_github_golang_protobuf//proto:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", diff --git a/proto/test/v1/proto2/test_all_types/test_all_types.pb.go b/proto/test/v1/proto2/test_all_types/test_all_types.pb.go index e171a92b..f080a78b 100755 --- a/proto/test/v1/proto2/test_all_types/test_all_types.pb.go +++ b/proto/test/v1/proto2/test_all_types/test_all_types.pb.go @@ -1,29 +1,34 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.13.0 // source: proto/test/v1/proto2/test_all_types.proto package test_all_types import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" duration "github.com/golang/protobuf/ptypes/duration" _struct "github.com/golang/protobuf/ptypes/struct" timestamp "github.com/golang/protobuf/ptypes/timestamp" wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +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) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type GlobalEnum int32 @@ -33,17 +38,19 @@ const ( GlobalEnum_GAZ GlobalEnum = 2 ) -var GlobalEnum_name = map[int32]string{ - 0: "GOO", - 1: "GAR", - 2: "GAZ", -} - -var GlobalEnum_value = map[string]int32{ - "GOO": 0, - "GAR": 1, - "GAZ": 2, -} +// Enum value maps for GlobalEnum. +var ( + GlobalEnum_name = map[int32]string{ + 0: "GOO", + 1: "GAR", + 2: "GAZ", + } + GlobalEnum_value = map[string]int32{ + "GOO": 0, + "GAR": 1, + "GAZ": 2, + } +) func (x GlobalEnum) Enum() *GlobalEnum { p := new(GlobalEnum) @@ -52,20 +59,34 @@ func (x GlobalEnum) Enum() *GlobalEnum { } func (x GlobalEnum) String() string { - return proto.EnumName(GlobalEnum_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (x *GlobalEnum) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(GlobalEnum_value, data, "GlobalEnum") +func (GlobalEnum) Descriptor() protoreflect.EnumDescriptor { + return file_proto_test_v1_proto2_test_all_types_proto_enumTypes[0].Descriptor() +} + +func (GlobalEnum) Type() protoreflect.EnumType { + return &file_proto_test_v1_proto2_test_all_types_proto_enumTypes[0] +} + +func (x GlobalEnum) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *GlobalEnum) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = GlobalEnum(value) + *x = GlobalEnum(num) return nil } +// Deprecated: Use GlobalEnum.Descriptor instead. func (GlobalEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98cc99a98b5d98fe, []int{0} + return file_proto_test_v1_proto2_test_all_types_proto_rawDescGZIP(), []int{0} } type TestAllTypes_NestedEnum int32 @@ -76,17 +97,19 @@ const ( TestAllTypes_BAZ TestAllTypes_NestedEnum = 2 ) -var TestAllTypes_NestedEnum_name = map[int32]string{ - 0: "FOO", - 1: "BAR", - 2: "BAZ", -} - -var TestAllTypes_NestedEnum_value = map[string]int32{ - "FOO": 0, - "BAR": 1, - "BAZ": 2, -} +// Enum value maps for TestAllTypes_NestedEnum. +var ( + TestAllTypes_NestedEnum_name = map[int32]string{ + 0: "FOO", + 1: "BAR", + 2: "BAZ", + } + TestAllTypes_NestedEnum_value = map[string]int32{ + "FOO": 0, + "BAR": 1, + "BAZ": 2, + } +) func (x TestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum { p := new(TestAllTypes_NestedEnum) @@ -95,23 +118,41 @@ func (x TestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum { } func (x TestAllTypes_NestedEnum) String() string { - return proto.EnumName(TestAllTypes_NestedEnum_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (x *TestAllTypes_NestedEnum) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(TestAllTypes_NestedEnum_value, data, "TestAllTypes_NestedEnum") +func (TestAllTypes_NestedEnum) Descriptor() protoreflect.EnumDescriptor { + return file_proto_test_v1_proto2_test_all_types_proto_enumTypes[1].Descriptor() +} + +func (TestAllTypes_NestedEnum) Type() protoreflect.EnumType { + return &file_proto_test_v1_proto2_test_all_types_proto_enumTypes[1] +} + +func (x TestAllTypes_NestedEnum) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *TestAllTypes_NestedEnum) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = TestAllTypes_NestedEnum(value) + *x = TestAllTypes_NestedEnum(num) return nil } +// Deprecated: Use TestAllTypes_NestedEnum.Descriptor instead. func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98cc99a98b5d98fe, []int{0, 0} + return file_proto_test_v1_proto2_test_all_types_proto_rawDescGZIP(), []int{0, 0} } type TestAllTypes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SingleInt32 *int32 `protobuf:"varint,1,opt,name=single_int32,json=singleInt32,def=-32" json:"single_int32,omitempty"` SingleInt64 *int64 `protobuf:"varint,2,opt,name=single_int64,json=singleInt64,def=-64" json:"single_int64,omitempty"` SingleUint32 *uint32 `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32,def=32" json:"single_uint32,omitempty"` @@ -141,7 +182,8 @@ type TestAllTypes struct { SingleStringWrapper *wrappers.StringValue `protobuf:"bytes,111,opt,name=single_string_wrapper,json=singleStringWrapper" json:"single_string_wrapper,omitempty"` SingleBoolWrapper *wrappers.BoolValue `protobuf:"bytes,112,opt,name=single_bool_wrapper,json=singleBoolWrapper" json:"single_bool_wrapper,omitempty"` SingleBytesWrapper *wrappers.BytesValue `protobuf:"bytes,113,opt,name=single_bytes_wrapper,json=singleBytesWrapper" json:"single_bytes_wrapper,omitempty"` - // Types that are valid to be assigned to NestedType: + ListValue *_struct.ListValue `protobuf:"bytes,114,opt,name=list_value,json=listValue" json:"list_value,omitempty"` + // Types that are assignable to NestedType: // *TestAllTypes_SingleNestedMessage // *TestAllTypes_SingleNestedEnum NestedType isTestAllTypes_NestedType `protobuf_oneof:"nested_type"` @@ -169,268 +211,268 @@ type TestAllTypes struct { RepeatedLazyMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,55,rep,name=repeated_lazy_message,json=repeatedLazyMessage" json:"repeated_lazy_message,omitempty"` MapStringString map[string]string `protobuf:"bytes,61,rep,name=map_string_string,json=mapStringString" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` MapInt64NestedType map[int64]*NestedTestAllTypes `protobuf:"bytes,62,rep,name=map_int64_nested_type,json=mapInt64NestedType" json:"map_int64_nested_type,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *TestAllTypes) Reset() { *m = TestAllTypes{} } -func (m *TestAllTypes) String() string { return proto.CompactTextString(m) } -func (*TestAllTypes) ProtoMessage() {} -func (*TestAllTypes) Descriptor() ([]byte, []int) { - return fileDescriptor_98cc99a98b5d98fe, []int{0} -} +// Default values for TestAllTypes fields. +const ( + Default_TestAllTypes_SingleInt32 = int32(-32) + Default_TestAllTypes_SingleInt64 = int64(-64) + Default_TestAllTypes_SingleUint32 = uint32(32) + Default_TestAllTypes_SingleUint64 = uint64(64) + Default_TestAllTypes_SingleFloat = float32(3) + Default_TestAllTypes_SingleDouble = float64(6.4) + Default_TestAllTypes_SingleBool = bool(true) + Default_TestAllTypes_SingleString = string("empty") + Default_TestAllTypes_SingleNestedEnum = TestAllTypes_BAR +) -func (m *TestAllTypes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TestAllTypes.Unmarshal(m, b) -} -func (m *TestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TestAllTypes.Marshal(b, m, deterministic) -} -func (m *TestAllTypes) XXX_Merge(src proto.Message) { - xxx_messageInfo_TestAllTypes.Merge(m, src) -} -func (m *TestAllTypes) XXX_Size() int { - return xxx_messageInfo_TestAllTypes.Size(m) -} -func (m *TestAllTypes) XXX_DiscardUnknown() { - xxx_messageInfo_TestAllTypes.DiscardUnknown(m) +// Default values for TestAllTypes fields. +var ( + Default_TestAllTypes_SingleBytes = []byte("none") +) + +func (x *TestAllTypes) Reset() { + *x = TestAllTypes{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_proto2_test_all_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_TestAllTypes proto.InternalMessageInfo +func (x *TestAllTypes) String() string { + return protoimpl.X.MessageStringOf(x) +} -const Default_TestAllTypes_SingleInt32 int32 = -32 -const Default_TestAllTypes_SingleInt64 int64 = -64 -const Default_TestAllTypes_SingleUint32 uint32 = 32 -const Default_TestAllTypes_SingleUint64 uint64 = 64 -const Default_TestAllTypes_SingleFloat float32 = 3 -const Default_TestAllTypes_SingleDouble float64 = 6.4 -const Default_TestAllTypes_SingleBool bool = true -const Default_TestAllTypes_SingleString string = "empty" +func (*TestAllTypes) ProtoMessage() {} -var Default_TestAllTypes_SingleBytes []byte = []byte("none") +func (x *TestAllTypes) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_proto2_test_all_types_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) +} -const Default_TestAllTypes_SingleNestedEnum TestAllTypes_NestedEnum = TestAllTypes_BAR +// Deprecated: Use TestAllTypes.ProtoReflect.Descriptor instead. +func (*TestAllTypes) Descriptor() ([]byte, []int) { + return file_proto_test_v1_proto2_test_all_types_proto_rawDescGZIP(), []int{0} +} -func (m *TestAllTypes) GetSingleInt32() int32 { - if m != nil && m.SingleInt32 != nil { - return *m.SingleInt32 +func (x *TestAllTypes) GetSingleInt32() int32 { + if x != nil && x.SingleInt32 != nil { + return *x.SingleInt32 } return Default_TestAllTypes_SingleInt32 } -func (m *TestAllTypes) GetSingleInt64() int64 { - if m != nil && m.SingleInt64 != nil { - return *m.SingleInt64 +func (x *TestAllTypes) GetSingleInt64() int64 { + if x != nil && x.SingleInt64 != nil { + return *x.SingleInt64 } return Default_TestAllTypes_SingleInt64 } -func (m *TestAllTypes) GetSingleUint32() uint32 { - if m != nil && m.SingleUint32 != nil { - return *m.SingleUint32 +func (x *TestAllTypes) GetSingleUint32() uint32 { + if x != nil && x.SingleUint32 != nil { + return *x.SingleUint32 } return Default_TestAllTypes_SingleUint32 } -func (m *TestAllTypes) GetSingleUint64() uint64 { - if m != nil && m.SingleUint64 != nil { - return *m.SingleUint64 +func (x *TestAllTypes) GetSingleUint64() uint64 { + if x != nil && x.SingleUint64 != nil { + return *x.SingleUint64 } return Default_TestAllTypes_SingleUint64 } -func (m *TestAllTypes) GetSingleSint32() int32 { - if m != nil && m.SingleSint32 != nil { - return *m.SingleSint32 +func (x *TestAllTypes) GetSingleSint32() int32 { + if x != nil && x.SingleSint32 != nil { + return *x.SingleSint32 } return 0 } -func (m *TestAllTypes) GetSingleSint64() int64 { - if m != nil && m.SingleSint64 != nil { - return *m.SingleSint64 +func (x *TestAllTypes) GetSingleSint64() int64 { + if x != nil && x.SingleSint64 != nil { + return *x.SingleSint64 } return 0 } -func (m *TestAllTypes) GetSingleFixed32() uint32 { - if m != nil && m.SingleFixed32 != nil { - return *m.SingleFixed32 +func (x *TestAllTypes) GetSingleFixed32() uint32 { + if x != nil && x.SingleFixed32 != nil { + return *x.SingleFixed32 } return 0 } -func (m *TestAllTypes) GetSingleFixed64() uint64 { - if m != nil && m.SingleFixed64 != nil { - return *m.SingleFixed64 +func (x *TestAllTypes) GetSingleFixed64() uint64 { + if x != nil && x.SingleFixed64 != nil { + return *x.SingleFixed64 } return 0 } -func (m *TestAllTypes) GetSingleSfixed32() int32 { - if m != nil && m.SingleSfixed32 != nil { - return *m.SingleSfixed32 +func (x *TestAllTypes) GetSingleSfixed32() int32 { + if x != nil && x.SingleSfixed32 != nil { + return *x.SingleSfixed32 } return 0 } -func (m *TestAllTypes) GetSingleSfixed64() int64 { - if m != nil && m.SingleSfixed64 != nil { - return *m.SingleSfixed64 +func (x *TestAllTypes) GetSingleSfixed64() int64 { + if x != nil && x.SingleSfixed64 != nil { + return *x.SingleSfixed64 } return 0 } -func (m *TestAllTypes) GetSingleFloat() float32 { - if m != nil && m.SingleFloat != nil { - return *m.SingleFloat +func (x *TestAllTypes) GetSingleFloat() float32 { + if x != nil && x.SingleFloat != nil { + return *x.SingleFloat } return Default_TestAllTypes_SingleFloat } -func (m *TestAllTypes) GetSingleDouble() float64 { - if m != nil && m.SingleDouble != nil { - return *m.SingleDouble +func (x *TestAllTypes) GetSingleDouble() float64 { + if x != nil && x.SingleDouble != nil { + return *x.SingleDouble } return Default_TestAllTypes_SingleDouble } -func (m *TestAllTypes) GetSingleBool() bool { - if m != nil && m.SingleBool != nil { - return *m.SingleBool +func (x *TestAllTypes) GetSingleBool() bool { + if x != nil && x.SingleBool != nil { + return *x.SingleBool } return Default_TestAllTypes_SingleBool } -func (m *TestAllTypes) GetSingleString() string { - if m != nil && m.SingleString != nil { - return *m.SingleString +func (x *TestAllTypes) GetSingleString() string { + if x != nil && x.SingleString != nil { + return *x.SingleString } return Default_TestAllTypes_SingleString } -func (m *TestAllTypes) GetSingleBytes() []byte { - if m != nil && m.SingleBytes != nil { - return m.SingleBytes +func (x *TestAllTypes) GetSingleBytes() []byte { + if x != nil && x.SingleBytes != nil { + return x.SingleBytes } return append([]byte(nil), Default_TestAllTypes_SingleBytes...) } -func (m *TestAllTypes) GetSingleAny() *any.Any { - if m != nil { - return m.SingleAny +func (x *TestAllTypes) GetSingleAny() *any.Any { + if x != nil { + return x.SingleAny } return nil } -func (m *TestAllTypes) GetSingleDuration() *duration.Duration { - if m != nil { - return m.SingleDuration +func (x *TestAllTypes) GetSingleDuration() *duration.Duration { + if x != nil { + return x.SingleDuration } return nil } -func (m *TestAllTypes) GetSingleTimestamp() *timestamp.Timestamp { - if m != nil { - return m.SingleTimestamp +func (x *TestAllTypes) GetSingleTimestamp() *timestamp.Timestamp { + if x != nil { + return x.SingleTimestamp } return nil } -func (m *TestAllTypes) GetSingleStruct() *_struct.Struct { - if m != nil { - return m.SingleStruct +func (x *TestAllTypes) GetSingleStruct() *_struct.Struct { + if x != nil { + return x.SingleStruct } return nil } -func (m *TestAllTypes) GetSingleValue() *_struct.Value { - if m != nil { - return m.SingleValue +func (x *TestAllTypes) GetSingleValue() *_struct.Value { + if x != nil { + return x.SingleValue } return nil } -func (m *TestAllTypes) GetSingleInt64Wrapper() *wrappers.Int64Value { - if m != nil { - return m.SingleInt64Wrapper +func (x *TestAllTypes) GetSingleInt64Wrapper() *wrappers.Int64Value { + if x != nil { + return x.SingleInt64Wrapper } return nil } -func (m *TestAllTypes) GetSingleInt32Wrapper() *wrappers.Int32Value { - if m != nil { - return m.SingleInt32Wrapper +func (x *TestAllTypes) GetSingleInt32Wrapper() *wrappers.Int32Value { + if x != nil { + return x.SingleInt32Wrapper } return nil } -func (m *TestAllTypes) GetSingleDoubleWrapper() *wrappers.DoubleValue { - if m != nil { - return m.SingleDoubleWrapper +func (x *TestAllTypes) GetSingleDoubleWrapper() *wrappers.DoubleValue { + if x != nil { + return x.SingleDoubleWrapper } return nil } -func (m *TestAllTypes) GetSingleFloatWrapper() *wrappers.FloatValue { - if m != nil { - return m.SingleFloatWrapper +func (x *TestAllTypes) GetSingleFloatWrapper() *wrappers.FloatValue { + if x != nil { + return x.SingleFloatWrapper } return nil } -func (m *TestAllTypes) GetSingleUint64Wrapper() *wrappers.UInt64Value { - if m != nil { - return m.SingleUint64Wrapper +func (x *TestAllTypes) GetSingleUint64Wrapper() *wrappers.UInt64Value { + if x != nil { + return x.SingleUint64Wrapper } return nil } -func (m *TestAllTypes) GetSingleUint32Wrapper() *wrappers.UInt32Value { - if m != nil { - return m.SingleUint32Wrapper +func (x *TestAllTypes) GetSingleUint32Wrapper() *wrappers.UInt32Value { + if x != nil { + return x.SingleUint32Wrapper } return nil } -func (m *TestAllTypes) GetSingleStringWrapper() *wrappers.StringValue { - if m != nil { - return m.SingleStringWrapper +func (x *TestAllTypes) GetSingleStringWrapper() *wrappers.StringValue { + if x != nil { + return x.SingleStringWrapper } return nil } -func (m *TestAllTypes) GetSingleBoolWrapper() *wrappers.BoolValue { - if m != nil { - return m.SingleBoolWrapper +func (x *TestAllTypes) GetSingleBoolWrapper() *wrappers.BoolValue { + if x != nil { + return x.SingleBoolWrapper } return nil } -func (m *TestAllTypes) GetSingleBytesWrapper() *wrappers.BytesValue { - if m != nil { - return m.SingleBytesWrapper +func (x *TestAllTypes) GetSingleBytesWrapper() *wrappers.BytesValue { + if x != nil { + return x.SingleBytesWrapper } return nil } -type isTestAllTypes_NestedType interface { - isTestAllTypes_NestedType() -} - -type TestAllTypes_SingleNestedMessage struct { - SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,21,opt,name=single_nested_message,json=singleNestedMessage,oneof"` -} - -type TestAllTypes_SingleNestedEnum struct { - SingleNestedEnum TestAllTypes_NestedEnum `protobuf:"varint,22,opt,name=single_nested_enum,json=singleNestedEnum,enum=google.api.expr.test.v1.proto2.TestAllTypes_NestedEnum,oneof,def=1"` +func (x *TestAllTypes) GetListValue() *_struct.ListValue { + if x != nil { + return x.ListValue + } + return nil } -func (*TestAllTypes_SingleNestedMessage) isTestAllTypes_NestedType() {} - -func (*TestAllTypes_SingleNestedEnum) isTestAllTypes_NestedType() {} - func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType { if m != nil { return m.NestedType @@ -438,424 +480,774 @@ func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType { return nil } -func (m *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage { - if x, ok := m.GetNestedType().(*TestAllTypes_SingleNestedMessage); ok { +func (x *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage { + if x, ok := x.GetNestedType().(*TestAllTypes_SingleNestedMessage); ok { return x.SingleNestedMessage } return nil } -func (m *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum { - if x, ok := m.GetNestedType().(*TestAllTypes_SingleNestedEnum); ok { +func (x *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum { + if x, ok := x.GetNestedType().(*TestAllTypes_SingleNestedEnum); ok { return x.SingleNestedEnum } return Default_TestAllTypes_SingleNestedEnum } -func (m *TestAllTypes) GetStandaloneMessage() *TestAllTypes_NestedMessage { - if m != nil { - return m.StandaloneMessage +func (x *TestAllTypes) GetStandaloneMessage() *TestAllTypes_NestedMessage { + if x != nil { + return x.StandaloneMessage } return nil } -func (m *TestAllTypes) GetStandaloneEnum() TestAllTypes_NestedEnum { - if m != nil && m.StandaloneEnum != nil { - return *m.StandaloneEnum +func (x *TestAllTypes) GetStandaloneEnum() TestAllTypes_NestedEnum { + if x != nil && x.StandaloneEnum != nil { + return *x.StandaloneEnum } return TestAllTypes_FOO } -func (m *TestAllTypes) GetRepeatedInt32() []int32 { - if m != nil { - return m.RepeatedInt32 +func (x *TestAllTypes) GetRepeatedInt32() []int32 { + if x != nil { + return x.RepeatedInt32 } return nil } -func (m *TestAllTypes) GetRepeatedInt64() []int64 { - if m != nil { - return m.RepeatedInt64 +func (x *TestAllTypes) GetRepeatedInt64() []int64 { + if x != nil { + return x.RepeatedInt64 } return nil } -func (m *TestAllTypes) GetRepeatedUint32() []uint32 { - if m != nil { - return m.RepeatedUint32 +func (x *TestAllTypes) GetRepeatedUint32() []uint32 { + if x != nil { + return x.RepeatedUint32 } return nil } -func (m *TestAllTypes) GetRepeatedUint64() []uint64 { - if m != nil { - return m.RepeatedUint64 +func (x *TestAllTypes) GetRepeatedUint64() []uint64 { + if x != nil { + return x.RepeatedUint64 } return nil } -func (m *TestAllTypes) GetRepeatedSint32() []int32 { - if m != nil { - return m.RepeatedSint32 +func (x *TestAllTypes) GetRepeatedSint32() []int32 { + if x != nil { + return x.RepeatedSint32 } return nil } -func (m *TestAllTypes) GetRepeatedSint64() []int64 { - if m != nil { - return m.RepeatedSint64 +func (x *TestAllTypes) GetRepeatedSint64() []int64 { + if x != nil { + return x.RepeatedSint64 } return nil } -func (m *TestAllTypes) GetRepeatedFixed32() []uint32 { - if m != nil { - return m.RepeatedFixed32 +func (x *TestAllTypes) GetRepeatedFixed32() []uint32 { + if x != nil { + return x.RepeatedFixed32 } return nil } -func (m *TestAllTypes) GetRepeatedFixed64() []uint64 { - if m != nil { - return m.RepeatedFixed64 +func (x *TestAllTypes) GetRepeatedFixed64() []uint64 { + if x != nil { + return x.RepeatedFixed64 } return nil } -func (m *TestAllTypes) GetRepeatedSfixed32() []int32 { - if m != nil { - return m.RepeatedSfixed32 +func (x *TestAllTypes) GetRepeatedSfixed32() []int32 { + if x != nil { + return x.RepeatedSfixed32 } return nil } -func (m *TestAllTypes) GetRepeatedSfixed64() []int64 { - if m != nil { - return m.RepeatedSfixed64 +func (x *TestAllTypes) GetRepeatedSfixed64() []int64 { + if x != nil { + return x.RepeatedSfixed64 } return nil } -func (m *TestAllTypes) GetRepeatedFloat() []float32 { - if m != nil { - return m.RepeatedFloat +func (x *TestAllTypes) GetRepeatedFloat() []float32 { + if x != nil { + return x.RepeatedFloat } return nil } -func (m *TestAllTypes) GetRepeatedDouble() []float64 { - if m != nil { - return m.RepeatedDouble +func (x *TestAllTypes) GetRepeatedDouble() []float64 { + if x != nil { + return x.RepeatedDouble } return nil } -func (m *TestAllTypes) GetRepeatedBool() []bool { - if m != nil { - return m.RepeatedBool +func (x *TestAllTypes) GetRepeatedBool() []bool { + if x != nil { + return x.RepeatedBool } return nil } -func (m *TestAllTypes) GetRepeatedString() []string { - if m != nil { - return m.RepeatedString +func (x *TestAllTypes) GetRepeatedString() []string { + if x != nil { + return x.RepeatedString } return nil } -func (m *TestAllTypes) GetRepeatedBytes() [][]byte { - if m != nil { - return m.RepeatedBytes +func (x *TestAllTypes) GetRepeatedBytes() [][]byte { + if x != nil { + return x.RepeatedBytes } return nil } -func (m *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage { - if m != nil { - return m.RepeatedNestedMessage +func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage { + if x != nil { + return x.RepeatedNestedMessage } return nil } -func (m *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum { - if m != nil { - return m.RepeatedNestedEnum +func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum { + if x != nil { + return x.RepeatedNestedEnum } return nil } -func (m *TestAllTypes) GetRepeatedStringPiece() []string { - if m != nil { - return m.RepeatedStringPiece +func (x *TestAllTypes) GetRepeatedStringPiece() []string { + if x != nil { + return x.RepeatedStringPiece } return nil } -func (m *TestAllTypes) GetRepeatedCord() []string { - if m != nil { - return m.RepeatedCord +func (x *TestAllTypes) GetRepeatedCord() []string { + if x != nil { + return x.RepeatedCord } return nil } -func (m *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage { - if m != nil { - return m.RepeatedLazyMessage +func (x *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage { + if x != nil { + return x.RepeatedLazyMessage } return nil } -func (m *TestAllTypes) GetMapStringString() map[string]string { - if m != nil { - return m.MapStringString +func (x *TestAllTypes) GetMapStringString() map[string]string { + if x != nil { + return x.MapStringString } return nil } -func (m *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes { - if m != nil { - return m.MapInt64NestedType +func (x *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes { + if x != nil { + return x.MapInt64NestedType } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TestAllTypes) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*TestAllTypes_SingleNestedMessage)(nil), - (*TestAllTypes_SingleNestedEnum)(nil), - } -} - -type TestAllTypes_NestedMessage struct { - Bb *int32 `protobuf:"varint,1,opt,name=bb" json:"bb,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type isTestAllTypes_NestedType interface { + isTestAllTypes_NestedType() } -func (m *TestAllTypes_NestedMessage) Reset() { *m = TestAllTypes_NestedMessage{} } -func (m *TestAllTypes_NestedMessage) String() string { return proto.CompactTextString(m) } -func (*TestAllTypes_NestedMessage) ProtoMessage() {} -func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_98cc99a98b5d98fe, []int{0, 0} +type TestAllTypes_SingleNestedMessage struct { + SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,21,opt,name=single_nested_message,json=singleNestedMessage,oneof"` } -func (m *TestAllTypes_NestedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TestAllTypes_NestedMessage.Unmarshal(m, b) -} -func (m *TestAllTypes_NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TestAllTypes_NestedMessage.Marshal(b, m, deterministic) -} -func (m *TestAllTypes_NestedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TestAllTypes_NestedMessage.Merge(m, src) -} -func (m *TestAllTypes_NestedMessage) XXX_Size() int { - return xxx_messageInfo_TestAllTypes_NestedMessage.Size(m) -} -func (m *TestAllTypes_NestedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TestAllTypes_NestedMessage.DiscardUnknown(m) +type TestAllTypes_SingleNestedEnum struct { + SingleNestedEnum TestAllTypes_NestedEnum `protobuf:"varint,22,opt,name=single_nested_enum,json=singleNestedEnum,enum=google.api.expr.test.v1.proto2.TestAllTypes_NestedEnum,oneof,def=1"` } -var xxx_messageInfo_TestAllTypes_NestedMessage proto.InternalMessageInfo +func (*TestAllTypes_SingleNestedMessage) isTestAllTypes_NestedType() {} -func (m *TestAllTypes_NestedMessage) GetBb() int32 { - if m != nil && m.Bb != nil { - return *m.Bb - } - return 0 -} +func (*TestAllTypes_SingleNestedEnum) isTestAllTypes_NestedType() {} type NestedTestAllTypes struct { - Child *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child" json:"child,omitempty"` - Payload *TestAllTypes `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *NestedTestAllTypes) Reset() { *m = NestedTestAllTypes{} } -func (m *NestedTestAllTypes) String() string { return proto.CompactTextString(m) } -func (*NestedTestAllTypes) ProtoMessage() {} -func (*NestedTestAllTypes) Descriptor() ([]byte, []int) { - return fileDescriptor_98cc99a98b5d98fe, []int{1} + Child *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child" json:"child,omitempty"` + Payload *TestAllTypes `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"` } -func (m *NestedTestAllTypes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NestedTestAllTypes.Unmarshal(m, b) -} -func (m *NestedTestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NestedTestAllTypes.Marshal(b, m, deterministic) -} -func (m *NestedTestAllTypes) XXX_Merge(src proto.Message) { - xxx_messageInfo_NestedTestAllTypes.Merge(m, src) +func (x *NestedTestAllTypes) Reset() { + *x = NestedTestAllTypes{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_proto2_test_all_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NestedTestAllTypes) XXX_Size() int { - return xxx_messageInfo_NestedTestAllTypes.Size(m) + +func (x *NestedTestAllTypes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NestedTestAllTypes) XXX_DiscardUnknown() { - xxx_messageInfo_NestedTestAllTypes.DiscardUnknown(m) + +func (*NestedTestAllTypes) ProtoMessage() {} + +func (x *NestedTestAllTypes) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_proto2_test_all_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NestedTestAllTypes proto.InternalMessageInfo +// Deprecated: Use NestedTestAllTypes.ProtoReflect.Descriptor instead. +func (*NestedTestAllTypes) Descriptor() ([]byte, []int) { + return file_proto_test_v1_proto2_test_all_types_proto_rawDescGZIP(), []int{1} +} -func (m *NestedTestAllTypes) GetChild() *NestedTestAllTypes { - if m != nil { - return m.Child +func (x *NestedTestAllTypes) GetChild() *NestedTestAllTypes { + if x != nil { + return x.Child } return nil } -func (m *NestedTestAllTypes) GetPayload() *TestAllTypes { - if m != nil { - return m.Payload +func (x *NestedTestAllTypes) GetPayload() *TestAllTypes { + if x != nil { + return x.Payload } return nil } type TestRequired struct { - RequiredInt32 *int32 `protobuf:"varint,1,req,name=required_int32,json=requiredInt32" json:"required_int32,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequiredInt32 *int32 `protobuf:"varint,1,req,name=required_int32,json=requiredInt32" json:"required_int32,omitempty"` +} + +func (x *TestRequired) Reset() { + *x = TestRequired{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_proto2_test_all_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TestRequired) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TestRequired) ProtoMessage() {} + +func (x *TestRequired) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_proto2_test_all_types_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) } -func (m *TestRequired) Reset() { *m = TestRequired{} } -func (m *TestRequired) String() string { return proto.CompactTextString(m) } -func (*TestRequired) ProtoMessage() {} +// Deprecated: Use TestRequired.ProtoReflect.Descriptor instead. func (*TestRequired) Descriptor() ([]byte, []int) { - return fileDescriptor_98cc99a98b5d98fe, []int{2} + return file_proto_test_v1_proto2_test_all_types_proto_rawDescGZIP(), []int{2} } -func (m *TestRequired) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TestRequired.Unmarshal(m, b) +func (x *TestRequired) GetRequiredInt32() int32 { + if x != nil && x.RequiredInt32 != nil { + return *x.RequiredInt32 + } + return 0 } -func (m *TestRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TestRequired.Marshal(b, m, deterministic) + +type TestAllTypes_NestedMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bb *int32 `protobuf:"varint,1,opt,name=bb" json:"bb,omitempty"` } -func (m *TestRequired) XXX_Merge(src proto.Message) { - xxx_messageInfo_TestRequired.Merge(m, src) + +func (x *TestAllTypes_NestedMessage) Reset() { + *x = TestAllTypes_NestedMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_proto2_test_all_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TestRequired) XXX_Size() int { - return xxx_messageInfo_TestRequired.Size(m) + +func (x *TestAllTypes_NestedMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TestRequired) XXX_DiscardUnknown() { - xxx_messageInfo_TestRequired.DiscardUnknown(m) + +func (*TestAllTypes_NestedMessage) ProtoMessage() {} + +func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_proto2_test_all_types_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TestRequired proto.InternalMessageInfo +// Deprecated: Use TestAllTypes_NestedMessage.ProtoReflect.Descriptor instead. +func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int) { + return file_proto_test_v1_proto2_test_all_types_proto_rawDescGZIP(), []int{0, 0} +} -func (m *TestRequired) GetRequiredInt32() int32 { - if m != nil && m.RequiredInt32 != nil { - return *m.RequiredInt32 +func (x *TestAllTypes_NestedMessage) GetBb() int32 { + if x != nil && x.Bb != nil { + return *x.Bb } return 0 } -func init() { - proto.RegisterEnum("google.api.expr.test.v1.proto2.GlobalEnum", GlobalEnum_name, GlobalEnum_value) - proto.RegisterEnum("google.api.expr.test.v1.proto2.TestAllTypes_NestedEnum", TestAllTypes_NestedEnum_name, TestAllTypes_NestedEnum_value) - proto.RegisterType((*TestAllTypes)(nil), "google.api.expr.test.v1.proto2.TestAllTypes") - proto.RegisterMapType((map[int64]*NestedTestAllTypes)(nil), "google.api.expr.test.v1.proto2.TestAllTypes.MapInt64NestedTypeEntry") - proto.RegisterMapType((map[string]string)(nil), "google.api.expr.test.v1.proto2.TestAllTypes.MapStringStringEntry") - proto.RegisterType((*TestAllTypes_NestedMessage)(nil), "google.api.expr.test.v1.proto2.TestAllTypes.NestedMessage") - proto.RegisterType((*NestedTestAllTypes)(nil), "google.api.expr.test.v1.proto2.NestedTestAllTypes") - proto.RegisterType((*TestRequired)(nil), "google.api.expr.test.v1.proto2.TestRequired") -} - -func init() { - proto.RegisterFile("proto/test/v1/proto2/test_all_types.proto", fileDescriptor_98cc99a98b5d98fe) -} - -var fileDescriptor_98cc99a98b5d98fe = []byte{ - // 1403 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x7d, 0x73, 0xd3, 0xc6, - 0x13, 0x46, 0xba, 0x84, 0x24, 0x97, 0x38, 0x71, 0x2e, 0x09, 0x39, 0xf2, 0x63, 0xe0, 0x7e, 0x81, - 0x90, 0xe3, 0x25, 0xce, 0x60, 0x0b, 0x41, 0x3d, 0x6d, 0x67, 0xe2, 0x42, 0x42, 0x3b, 0xa5, 0x30, - 0x0a, 0xb4, 0x33, 0xfc, 0xe3, 0xca, 0xf6, 0xc5, 0xa8, 0xc8, 0x92, 0x90, 0x25, 0xc0, 0x7c, 0xa0, - 0x7e, 0x85, 0x7e, 0xbd, 0x8e, 0xee, 0xcd, 0x7a, 0xc1, 0x74, 0x42, 0xfe, 0xc9, 0x58, 0xbb, 0xcf, - 0x3d, 0xbb, 0xfb, 0xe8, 0xf6, 0x6e, 0x15, 0x78, 0x27, 0x8a, 0xc3, 0x24, 0x3c, 0x4c, 0xd8, 0x38, - 0x39, 0xfc, 0xf0, 0xe0, 0x90, 0x3f, 0x35, 0xf9, 0x63, 0xd7, 0xf5, 0xfd, 0x6e, 0x32, 0x89, 0xd8, - 0xb8, 0xc1, 0xad, 0xe8, 0xfa, 0x30, 0x0c, 0x87, 0x3e, 0x6b, 0xb8, 0x91, 0xd7, 0x60, 0x9f, 0xa2, - 0xb8, 0x91, 0xa1, 0x1a, 0x1f, 0x1e, 0x08, 0x77, 0x73, 0xe7, 0xaa, 0xf0, 0x0b, 0x8e, 0x5e, 0x7a, - 0x76, 0xe8, 0x06, 0x13, 0xe1, 0xdb, 0xb9, 0x5e, 0x76, 0x0d, 0xd2, 0xd8, 0x4d, 0xbc, 0x30, 0x90, - 0xfe, 0x6b, 0x65, 0xff, 0x38, 0x89, 0xd3, 0x7e, 0x22, 0xbd, 0x37, 0xca, 0xde, 0xc4, 0x1b, 0xb1, - 0x71, 0xe2, 0x8e, 0xa2, 0x59, 0xf4, 0x1f, 0x63, 0x37, 0x8a, 0x58, 0x2c, 0x33, 0xdf, 0xfd, 0xe7, - 0x1a, 0x5c, 0x79, 0xc5, 0xc6, 0xc9, 0x91, 0xef, 0xbf, 0xca, 0x0a, 0x42, 0xb7, 0xe1, 0xca, 0xd8, - 0x0b, 0x86, 0x3e, 0xeb, 0x7a, 0x41, 0xd2, 0x6a, 0x62, 0x83, 0x18, 0x74, 0xbe, 0x0d, 0x0e, 0x5a, - 0x4d, 0x67, 0x59, 0x38, 0x7e, 0xce, 0xec, 0x45, 0x9c, 0x6d, 0x61, 0x93, 0x18, 0x14, 0xb4, 0xc1, - 0x81, 0x6d, 0xe5, 0x70, 0xb6, 0x85, 0xf6, 0x61, 0x4d, 0xe2, 0x52, 0x41, 0x08, 0x88, 0x41, 0x6b, - 0x6d, 0xb3, 0xd5, 0x74, 0x24, 0xc1, 0x6b, 0x6e, 0x2f, 0x01, 0x6d, 0x0b, 0xcf, 0x11, 0x83, 0xce, - 0xb5, 0x4d, 0xdb, 0xca, 0x03, 0x6d, 0x0b, 0xdd, 0xd4, 0xc0, 0xb1, 0x60, 0x9c, 0x27, 0x06, 0x5d, - 0x57, 0xa0, 0x53, 0xc1, 0x56, 0x04, 0xd9, 0x16, 0xbe, 0x4c, 0x0c, 0x8a, 0xf2, 0x20, 0xdb, 0x42, - 0x7b, 0x70, 0x55, 0x82, 0xce, 0xbc, 0x4f, 0x6c, 0xd0, 0x6a, 0xe2, 0x05, 0x62, 0xd0, 0x05, 0x47, - 0x2e, 0x3d, 0x16, 0xc6, 0x32, 0xcc, 0xb6, 0xf0, 0x22, 0x31, 0xe8, 0xe5, 0x02, 0x8c, 0x57, 0xba, - 0xa6, 0x42, 0x2a, 0xba, 0x25, 0x62, 0xd0, 0x35, 0x47, 0xae, 0x3e, 0x95, 0xd6, 0x0a, 0xd0, 0xb6, - 0x30, 0x24, 0x06, 0xad, 0x17, 0x81, 0xb6, 0x85, 0x6e, 0x69, 0x8d, 0xcf, 0xfc, 0xd0, 0x4d, 0xf0, - 0x32, 0x31, 0xa8, 0xd9, 0x36, 0x5a, 0x4a, 0xe1, 0xe3, 0xcc, 0x8a, 0xa8, 0x2e, 0x75, 0x10, 0xa6, - 0x3d, 0x9f, 0xe1, 0x15, 0x62, 0x50, 0xa3, 0x0d, 0xec, 0x86, 0x56, 0xee, 0x09, 0x77, 0xa0, 0x3d, - 0x28, 0x17, 0x76, 0x7b, 0x61, 0xe8, 0xe3, 0x1a, 0x31, 0xe8, 0x62, 0x7b, 0x2e, 0x89, 0x53, 0xe6, - 0x40, 0xe1, 0xe8, 0x84, 0xa1, 0x8f, 0xee, 0x4e, 0xb5, 0x4b, 0x62, 0x2f, 0x18, 0xe2, 0x55, 0x62, - 0xd0, 0xa5, 0xf6, 0x3c, 0x1b, 0x45, 0xc9, 0x44, 0x4b, 0xc8, 0x5d, 0x68, 0x5f, 0xa7, 0xd8, 0x9b, - 0x24, 0x6c, 0x8c, 0xd7, 0x88, 0x41, 0x57, 0xda, 0x73, 0x41, 0x18, 0x30, 0x95, 0x65, 0x27, 0x73, - 0xa0, 0x16, 0x94, 0x21, 0xba, 0x6e, 0x30, 0xc1, 0x03, 0x62, 0xd0, 0xe5, 0xe6, 0x66, 0x43, 0xf6, - 0x8d, 0xda, 0x9d, 0x8d, 0xa3, 0x60, 0xe2, 0x2c, 0x09, 0xdc, 0x51, 0x30, 0x41, 0x1d, 0xad, 0x94, - 0xea, 0x0a, 0xcc, 0xf8, 0xca, 0xab, 0x95, 0x95, 0x4f, 0x24, 0x40, 0x89, 0xa8, 0x9e, 0xd1, 0x53, - 0x58, 0x97, 0x1c, 0xba, 0x37, 0xf0, 0x19, 0x27, 0xd9, 0xa9, 0x90, 0xbc, 0x52, 0x08, 0x47, 0xc6, - 0xd5, 0x06, 0xf4, 0x7d, 0x5e, 0x94, 0xb4, 0x9f, 0xe0, 0x21, 0xe7, 0xd8, 0xae, 0x70, 0x9c, 0x72, - 0x77, 0x4e, 0xa6, 0xb4, 0x9f, 0xa0, 0xef, 0xb4, 0x4c, 0x1f, 0x5c, 0x3f, 0x65, 0xf8, 0x2d, 0x5f, - 0x7c, 0xa5, 0xb2, 0xf8, 0xf7, 0xcc, 0xab, 0x84, 0xe3, 0x0f, 0xe8, 0x39, 0xdc, 0xcc, 0x37, 0x5a, - 0x57, 0x36, 0x30, 0xf6, 0x38, 0xc5, 0xff, 0x2a, 0x14, 0xbc, 0xed, 0x04, 0x0f, 0xca, 0x35, 0xe2, - 0x1f, 0x62, 0x59, 0x91, 0xae, 0xd5, 0xd4, 0x74, 0x7f, 0xcd, 0xa6, 0x6b, 0x35, 0xcb, 0x74, 0xad, - 0xa6, 0xa2, 0x7b, 0x09, 0xb7, 0x0a, 0x9b, 0x4f, 0xf3, 0xbd, 0xe3, 0x7c, 0xd7, 0xaa, 0xef, 0x89, - 0xc3, 0x04, 0xe1, 0x46, 0x7e, 0x77, 0x56, 0x13, 0xe4, 0x9b, 0x5e, 0x13, 0xfa, 0x33, 0x12, 0xe4, - 0x4d, 0x50, 0x48, 0x90, 0x5b, 0xaa, 0x09, 0xa6, 0x45, 0xfd, 0x46, 0x33, 0x12, 0x7c, 0x9d, 0x13, - 0x70, 0x23, 0x7f, 0xf0, 0x7c, 0x99, 0x31, 0x27, 0x61, 0xf0, 0x15, 0x46, 0xa5, 0xe1, 0x46, 0xfe, - 0xcc, 0xab, 0x32, 0x8a, 0x86, 0xd3, 0x8c, 0xe1, 0x0c, 0x46, 0xd1, 0x7c, 0x05, 0x46, 0x61, 0x52, - 0x8c, 0xbf, 0xc0, 0x8d, 0x5c, 0xa7, 0x6b, 0xbe, 0x68, 0xc6, 0xbe, 0xcf, 0xda, 0x5e, 0xb0, 0xad, - 0x4f, 0xcf, 0x81, 0xea, 0x0b, 0xe1, 0x2d, 0xae, 0xc9, 0xde, 0xcf, 0x78, 0x21, 0xbc, 0xdf, 0x0b, - 0x2f, 0x84, 0x5b, 0x14, 0x5d, 0xa4, 0x8b, 0x0d, 0xd8, 0x38, 0x61, 0x83, 0xee, 0x88, 0x8d, 0xc7, - 0xee, 0x90, 0xe1, 0x2d, 0xce, 0xd7, 0x6e, 0x7c, 0xfd, 0x2e, 0x6d, 0xe4, 0x6f, 0xab, 0xc6, 0x6f, - 0x9c, 0xe2, 0xb9, 0x60, 0x78, 0x76, 0x49, 0x89, 0x51, 0x30, 0x23, 0x1f, 0xa2, 0x62, 0x44, 0x16, - 0xa4, 0x23, 0x7c, 0x85, 0x18, 0x74, 0xb5, 0xf9, 0xe8, 0x1b, 0xc2, 0x3d, 0x0d, 0xd2, 0x51, 0x1b, - 0x74, 0x8e, 0x9c, 0x67, 0x97, 0x9c, 0x7a, 0x3e, 0x60, 0xe6, 0x40, 0x1e, 0x44, 0xe3, 0xc4, 0x0d, - 0x06, 0xae, 0x1f, 0x06, 0x4c, 0x17, 0xb7, 0x7d, 0xd1, 0xe2, 0x9c, 0xf5, 0x29, 0xab, 0x2a, 0xec, - 0x4f, 0xb8, 0x96, 0x0b, 0xc5, 0xab, 0xc2, 0x17, 0xaa, 0xca, 0x59, 0x9d, 0xf2, 0xf1, 0x62, 0xf6, - 0xe0, 0x6a, 0xcc, 0x22, 0xe6, 0x66, 0xaa, 0x89, 0xcb, 0xf6, 0x06, 0x01, 0x74, 0xde, 0xa9, 0x29, - 0xab, 0x18, 0x06, 0x4a, 0x30, 0xdb, 0xc2, 0x84, 0x00, 0x0a, 0x0a, 0x30, 0x71, 0x43, 0x6a, 0x98, - 0x9c, 0x06, 0xfe, 0x4f, 0x00, 0xad, 0x39, 0x7a, 0xb5, 0x9e, 0x05, 0x8a, 0x40, 0xdb, 0xc2, 0xbb, - 0x04, 0xd0, 0xb9, 0x22, 0xb0, 0xc4, 0x28, 0xa7, 0x81, 0x9b, 0x04, 0xd0, 0xf5, 0x29, 0xf0, 0xb4, - 0xca, 0x28, 0x27, 0x82, 0x5b, 0x04, 0x50, 0x54, 0x04, 0xda, 0x16, 0xba, 0x03, 0xeb, 0x1a, 0xa8, - 0xae, 0xf1, 0x3d, 0x02, 0xe8, 0x82, 0xa3, 0x09, 0xd4, 0x5c, 0x50, 0x81, 0xda, 0x16, 0xbe, 0x4d, - 0x00, 0xbd, 0x5c, 0x82, 0xda, 0x16, 0xba, 0x07, 0xd7, 0xa7, 0xe1, 0x15, 0xed, 0x3e, 0x01, 0x74, - 0xcd, 0xd1, 0x1c, 0x7a, 0x3e, 0xa8, 0x82, 0x6d, 0x0b, 0x53, 0x02, 0x68, 0xbd, 0x0c, 0x16, 0x33, - 0xcc, 0x34, 0x09, 0x3e, 0x25, 0xdc, 0x21, 0x80, 0x9a, 0x53, 0xe9, 0xc5, 0x90, 0x90, 0xaf, 0x5f, - 0x8e, 0x09, 0x77, 0x09, 0xa0, 0xc6, 0xb4, 0x7e, 0x39, 0x23, 0xdc, 0x84, 0x7a, 0xa5, 0x98, 0x12, - 0xee, 0x11, 0x40, 0x17, 0x9d, 0x15, 0x65, 0xe4, 0x13, 0x42, 0x41, 0x4d, 0x31, 0x23, 0xdc, 0x27, - 0x80, 0x2e, 0xe5, 0xd4, 0x14, 0xe3, 0x41, 0x3e, 0x3b, 0x31, 0x20, 0x1c, 0x10, 0x40, 0x57, 0xa6, - 0xd9, 0x89, 0xe1, 0x20, 0x86, 0xdb, 0x1a, 0x56, 0x3a, 0x15, 0x5a, 0x04, 0x5c, 0xb0, 0x71, 0xb6, - 0x14, 0x75, 0xf1, 0x54, 0xf0, 0xe0, 0x66, 0x39, 0x26, 0xef, 0x20, 0x8b, 0x80, 0x8b, 0x74, 0x10, - 0x2a, 0x46, 0xe3, 0x5d, 0x64, 0xc3, 0xad, 0x92, 0x5c, 0xdd, 0xc8, 0x63, 0x7d, 0x86, 0x1f, 0x66, - 0xa2, 0x75, 0xcc, 0x45, 0xd3, 0xd9, 0x28, 0x0a, 0xf7, 0x32, 0x73, 0x67, 0x23, 0xb1, 0x5e, 0xd7, - 0x0f, 0xe3, 0x01, 0xb6, 0x25, 0xde, 0x98, 0xbe, 0x8f, 0x9f, 0xc2, 0x78, 0x80, 0xe2, 0x5c, 0x00, - 0xdf, 0xfd, 0x3c, 0xd1, 0xea, 0x3d, 0xba, 0xa8, 0x7a, 0x1d, 0x93, 0x1a, 0xd3, 0xe4, 0x7e, 0x75, - 0x3f, 0x4f, 0x94, 0x7e, 0x23, 0xb8, 0x3e, 0x72, 0x23, 0x55, 0x8f, 0xdc, 0x05, 0x3f, 0xf0, 0x78, - 0x47, 0xe7, 0x8a, 0xf7, 0xdc, 0x8d, 0x44, 0xd1, 0xe2, 0xef, 0xd3, 0x20, 0x89, 0x27, 0xce, 0xda, - 0xa8, 0x68, 0x45, 0x1f, 0xe1, 0x56, 0x16, 0x4e, 0xdc, 0xe1, 0xf2, 0x7d, 0x65, 0x9f, 0x60, 0xf8, - 0x47, 0x1e, 0xf2, 0xc9, 0x79, 0x43, 0xf2, 0x13, 0x49, 0x94, 0x9a, 0xd9, 0x44, 0x54, 0x34, 0xaa, - 0x38, 0x76, 0x6e, 0xc0, 0x5a, 0x71, 0xe3, 0xac, 0x42, 0xb3, 0xd7, 0x13, 0xdf, 0x45, 0x8e, 0xd9, - 0xeb, 0xed, 0x74, 0xe0, 0xe6, 0x97, 0x4a, 0x40, 0x75, 0x08, 0xde, 0xb1, 0x09, 0x07, 0x2e, 0x39, - 0xd9, 0x4f, 0xb4, 0x09, 0xe7, 0xc5, 0xf8, 0x67, 0x72, 0x9b, 0x78, 0x68, 0x9b, 0x8f, 0x8d, 0x9d, - 0x09, 0xdc, 0x9e, 0x91, 0x53, 0x9e, 0x06, 0x08, 0x9a, 0x67, 0x79, 0x9a, 0xe5, 0x66, 0xf3, 0xbf, - 0x4a, 0x97, 0x8c, 0x39, 0x01, 0x72, 0xa1, 0x77, 0xf7, 0x21, 0xcc, 0x6d, 0xd5, 0x05, 0x08, 0x8e, - 0x5f, 0xbc, 0xa8, 0x5f, 0xca, 0x7e, 0x74, 0x8e, 0x9c, 0xba, 0x21, 0x7e, 0xbc, 0xa9, 0x9b, 0x9d, - 0x1a, 0x5c, 0xce, 0xe9, 0xbe, 0xfb, 0xb7, 0x01, 0x51, 0x95, 0x39, 0x4b, 0xae, 0xff, 0xd6, 0xf3, - 0x07, 0x3c, 0xe1, 0x6f, 0x4c, 0x8e, 0x13, 0xa0, 0x63, 0xb8, 0x10, 0xb9, 0x13, 0x3f, 0x74, 0x07, - 0xb2, 0xd0, 0xfb, 0xe7, 0x79, 0xc7, 0x8e, 0x5a, 0xbc, 0xfb, 0x50, 0x7c, 0xe1, 0x3a, 0xec, 0x7d, - 0xea, 0xc5, 0x6c, 0x20, 0xce, 0x24, 0xf1, 0x5b, 0x7f, 0xe3, 0x9a, 0xe2, 0x4e, 0x13, 0x56, 0x7e, - 0xa7, 0xdd, 0xdd, 0x87, 0xf0, 0xc4, 0x0f, 0x7b, 0xae, 0xaf, 0x74, 0x39, 0x51, 0xba, 0x9c, 0x28, - 0x5d, 0x4e, 0xb8, 0x2e, 0xed, 0x37, 0x8f, 0x87, 0x5e, 0xf2, 0x36, 0xed, 0x35, 0xfa, 0xe1, 0xe8, - 0x50, 0x7e, 0x6f, 0xf7, 0x99, 0x7f, 0x30, 0x8e, 0x58, 0xff, 0xeb, 0xff, 0x3e, 0xf8, 0x37, 0x00, - 0x00, 0xff, 0xff, 0x21, 0x77, 0xe0, 0x3d, 0x64, 0x10, 0x00, 0x00, +var File_proto_test_v1_proto2_test_all_types_proto protoreflect.FileDescriptor + +var file_proto_test_v1_proto2_test_all_types_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, + 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, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 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, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, 0x1c, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x03, 0x2d, 0x33, + 0x32, 0x52, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x26, + 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x3a, 0x03, 0x2d, 0x36, 0x34, 0x52, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x27, 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x33, + 0x32, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, + 0x27, 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x02, 0x36, 0x34, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x52, + 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x23, 0x0a, + 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x12, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x74, + 0x36, 0x34, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x66, 0x69, 0x78, + 0x65, 0x64, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x52, 0x0d, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x06, 0x52, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, + 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, + 0x64, 0x33, 0x32, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x10, 0x52, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, + 0x36, 0x34, 0x12, 0x24, 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x01, 0x33, 0x52, 0x0b, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x3a, + 0x03, 0x36, 0x2e, 0x34, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, + 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x62, 0x6f, 0x6f, + 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x52, 0x0a, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x2a, 0x0a, 0x0d, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, + 0x3a, 0x05, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x04, 0x6e, 0x6f, 0x6e, + 0x65, 0x52, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x33, + 0x0a, 0x0a, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x61, 0x6e, 0x79, 0x18, 0x64, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x41, 0x6e, 0x79, 0x12, 0x42, 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x65, 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, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x10, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x66, 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, 0x0f, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3c, + 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x18, + 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0c, + 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x39, 0x0a, 0x0c, + 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x68, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, + 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x57, + 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x6a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x57, 0x72, + 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x15, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, + 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x6b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, + 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, + 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x57, + 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x15, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, + 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x69, 0x6e, 0x74, 0x36, + 0x34, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x15, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, + 0x72, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x69, 0x6e, + 0x74, 0x33, 0x32, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x15, 0x73, 0x69, + 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x77, 0x72, 0x61, 0x70, + 0x70, 0x65, 0x72, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x13, + 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x77, 0x72, 0x61, 0x70, + 0x70, 0x65, 0x72, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x42, 0x6f, 0x6f, + 0x6c, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, + 0x18, 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, + 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x70, 0x0a, 0x15, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x6e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, + 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x32, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, + 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x6c, 0x0a, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x6e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, + 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x32, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x48, 0x00, + 0x52, 0x10, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, + 0x75, 0x6d, 0x12, 0x69, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, + 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, + 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x60, 0x0a, + 0x0f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, + 0x18, 0x18, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, + 0x0e, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, + 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, + 0x32, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0d, + 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x27, 0x0a, + 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, + 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04, 0x52, + 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, + 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, + 0x33, 0x32, 0x18, 0x23, 0x20, 0x03, 0x28, 0x11, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x24, 0x20, 0x03, 0x28, + 0x12, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x69, 0x6e, 0x74, 0x36, + 0x34, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, + 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x52, 0x0f, 0x72, 0x65, 0x70, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x29, 0x0a, 0x10, + 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, + 0x18, 0x26, 0x20, 0x03, 0x28, 0x06, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x27, 0x20, 0x03, + 0x28, 0x0f, 0x52, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x66, 0x69, 0x78, + 0x65, 0x64, 0x33, 0x32, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x52, + 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, + 0x34, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x2a, 0x20, 0x03, 0x28, + 0x01, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x6f, 0x75, 0x62, 0x6c, + 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f, + 0x6f, 0x6c, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, + 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, + 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x72, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x69, 0x0a, 0x14, 0x72, 0x65, + 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, + 0x75, 0x6d, 0x18, 0x34, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, + 0x6d, 0x52, 0x12, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x36, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x35, + 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x52, 0x13, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x12, 0x27, 0x0a, + 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x36, + 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x43, 0x6f, 0x72, 0x64, 0x12, 0x72, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x7a, 0x79, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x37, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x42, 0x02, 0x28, 0x01, 0x52, 0x13, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4c, + 0x61, 0x7a, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x6d, 0x0a, 0x11, 0x6d, 0x61, + 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, + 0x3d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x6d, 0x61, 0x70, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x77, 0x0a, 0x15, 0x6d, 0x61, 0x70, + 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x3e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x4e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, + 0x6d, 0x61, 0x70, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x1a, 0x1f, 0x0a, 0x0d, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x02, 0x62, 0x62, 0x1a, 0x42, 0x0a, 0x14, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x79, 0x0a, 0x17, 0x4d, 0x61, 0x70, 0x49, 0x6e, + 0x74, 0x36, 0x34, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x48, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x65, 0x73, 0x74, 0x41, + 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x27, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, + 0x12, 0x07, 0x0a, 0x03, 0x46, 0x4f, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x52, + 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x5a, 0x10, 0x02, 0x42, 0x0d, 0x0a, 0x0b, 0x6e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa6, 0x01, 0x0a, 0x12, 0x4e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x12, 0x48, 0x0a, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, + 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x32, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x52, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x46, 0x0a, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x54, 0x65, + 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x22, 0x35, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, + 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x02, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x2a, 0x27, 0x0a, 0x0a, 0x47, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x4f, 0x4f, 0x10, + 0x00, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x41, 0x52, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x41, + 0x5a, 0x10, 0x02, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x65, 0x6c, 0x2d, 0x73, 0x70, 0x65, + 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, + 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, +} + +var ( + file_proto_test_v1_proto2_test_all_types_proto_rawDescOnce sync.Once + file_proto_test_v1_proto2_test_all_types_proto_rawDescData = file_proto_test_v1_proto2_test_all_types_proto_rawDesc +) + +func file_proto_test_v1_proto2_test_all_types_proto_rawDescGZIP() []byte { + file_proto_test_v1_proto2_test_all_types_proto_rawDescOnce.Do(func() { + file_proto_test_v1_proto2_test_all_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_test_v1_proto2_test_all_types_proto_rawDescData) + }) + return file_proto_test_v1_proto2_test_all_types_proto_rawDescData +} + +var file_proto_test_v1_proto2_test_all_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_proto_test_v1_proto2_test_all_types_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_proto_test_v1_proto2_test_all_types_proto_goTypes = []interface{}{ + (GlobalEnum)(0), // 0: google.api.expr.test.v1.proto2.GlobalEnum + (TestAllTypes_NestedEnum)(0), // 1: google.api.expr.test.v1.proto2.TestAllTypes.NestedEnum + (*TestAllTypes)(nil), // 2: google.api.expr.test.v1.proto2.TestAllTypes + (*NestedTestAllTypes)(nil), // 3: google.api.expr.test.v1.proto2.NestedTestAllTypes + (*TestRequired)(nil), // 4: google.api.expr.test.v1.proto2.TestRequired + (*TestAllTypes_NestedMessage)(nil), // 5: google.api.expr.test.v1.proto2.TestAllTypes.NestedMessage + nil, // 6: google.api.expr.test.v1.proto2.TestAllTypes.MapStringStringEntry + nil, // 7: google.api.expr.test.v1.proto2.TestAllTypes.MapInt64NestedTypeEntry + (*any.Any)(nil), // 8: google.protobuf.Any + (*duration.Duration)(nil), // 9: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*_struct.Struct)(nil), // 11: google.protobuf.Struct + (*_struct.Value)(nil), // 12: google.protobuf.Value + (*wrappers.Int64Value)(nil), // 13: google.protobuf.Int64Value + (*wrappers.Int32Value)(nil), // 14: google.protobuf.Int32Value + (*wrappers.DoubleValue)(nil), // 15: google.protobuf.DoubleValue + (*wrappers.FloatValue)(nil), // 16: google.protobuf.FloatValue + (*wrappers.UInt64Value)(nil), // 17: google.protobuf.UInt64Value + (*wrappers.UInt32Value)(nil), // 18: google.protobuf.UInt32Value + (*wrappers.StringValue)(nil), // 19: google.protobuf.StringValue + (*wrappers.BoolValue)(nil), // 20: google.protobuf.BoolValue + (*wrappers.BytesValue)(nil), // 21: google.protobuf.BytesValue + (*_struct.ListValue)(nil), // 22: google.protobuf.ListValue +} +var file_proto_test_v1_proto2_test_all_types_proto_depIdxs = []int32{ + 8, // 0: google.api.expr.test.v1.proto2.TestAllTypes.single_any:type_name -> google.protobuf.Any + 9, // 1: google.api.expr.test.v1.proto2.TestAllTypes.single_duration:type_name -> google.protobuf.Duration + 10, // 2: google.api.expr.test.v1.proto2.TestAllTypes.single_timestamp:type_name -> google.protobuf.Timestamp + 11, // 3: google.api.expr.test.v1.proto2.TestAllTypes.single_struct:type_name -> google.protobuf.Struct + 12, // 4: google.api.expr.test.v1.proto2.TestAllTypes.single_value:type_name -> google.protobuf.Value + 13, // 5: google.api.expr.test.v1.proto2.TestAllTypes.single_int64_wrapper:type_name -> google.protobuf.Int64Value + 14, // 6: google.api.expr.test.v1.proto2.TestAllTypes.single_int32_wrapper:type_name -> google.protobuf.Int32Value + 15, // 7: google.api.expr.test.v1.proto2.TestAllTypes.single_double_wrapper:type_name -> google.protobuf.DoubleValue + 16, // 8: google.api.expr.test.v1.proto2.TestAllTypes.single_float_wrapper:type_name -> google.protobuf.FloatValue + 17, // 9: google.api.expr.test.v1.proto2.TestAllTypes.single_uint64_wrapper:type_name -> google.protobuf.UInt64Value + 18, // 10: google.api.expr.test.v1.proto2.TestAllTypes.single_uint32_wrapper:type_name -> google.protobuf.UInt32Value + 19, // 11: google.api.expr.test.v1.proto2.TestAllTypes.single_string_wrapper:type_name -> google.protobuf.StringValue + 20, // 12: google.api.expr.test.v1.proto2.TestAllTypes.single_bool_wrapper:type_name -> google.protobuf.BoolValue + 21, // 13: google.api.expr.test.v1.proto2.TestAllTypes.single_bytes_wrapper:type_name -> google.protobuf.BytesValue + 22, // 14: google.api.expr.test.v1.proto2.TestAllTypes.list_value:type_name -> google.protobuf.ListValue + 5, // 15: google.api.expr.test.v1.proto2.TestAllTypes.single_nested_message:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.NestedMessage + 1, // 16: google.api.expr.test.v1.proto2.TestAllTypes.single_nested_enum:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.NestedEnum + 5, // 17: google.api.expr.test.v1.proto2.TestAllTypes.standalone_message:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.NestedMessage + 1, // 18: google.api.expr.test.v1.proto2.TestAllTypes.standalone_enum:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.NestedEnum + 5, // 19: google.api.expr.test.v1.proto2.TestAllTypes.repeated_nested_message:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.NestedMessage + 1, // 20: google.api.expr.test.v1.proto2.TestAllTypes.repeated_nested_enum:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.NestedEnum + 5, // 21: google.api.expr.test.v1.proto2.TestAllTypes.repeated_lazy_message:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.NestedMessage + 6, // 22: google.api.expr.test.v1.proto2.TestAllTypes.map_string_string:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.MapStringStringEntry + 7, // 23: google.api.expr.test.v1.proto2.TestAllTypes.map_int64_nested_type:type_name -> google.api.expr.test.v1.proto2.TestAllTypes.MapInt64NestedTypeEntry + 3, // 24: google.api.expr.test.v1.proto2.NestedTestAllTypes.child:type_name -> google.api.expr.test.v1.proto2.NestedTestAllTypes + 2, // 25: google.api.expr.test.v1.proto2.NestedTestAllTypes.payload:type_name -> google.api.expr.test.v1.proto2.TestAllTypes + 3, // 26: google.api.expr.test.v1.proto2.TestAllTypes.MapInt64NestedTypeEntry.value:type_name -> google.api.expr.test.v1.proto2.NestedTestAllTypes + 27, // [27:27] is the sub-list for method output_type + 27, // [27:27] is the sub-list for method input_type + 27, // [27:27] is the sub-list for extension type_name + 27, // [27:27] is the sub-list for extension extendee + 0, // [0:27] is the sub-list for field type_name +} + +func init() { file_proto_test_v1_proto2_test_all_types_proto_init() } +func file_proto_test_v1_proto2_test_all_types_proto_init() { + if File_proto_test_v1_proto2_test_all_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_test_v1_proto2_test_all_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TestAllTypes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_proto2_test_all_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NestedTestAllTypes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_proto2_test_all_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TestRequired); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_proto2_test_all_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TestAllTypes_NestedMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_proto_test_v1_proto2_test_all_types_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*TestAllTypes_SingleNestedMessage)(nil), + (*TestAllTypes_SingleNestedEnum)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_test_v1_proto2_test_all_types_proto_rawDesc, + NumEnums: 2, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_test_v1_proto2_test_all_types_proto_goTypes, + DependencyIndexes: file_proto_test_v1_proto2_test_all_types_proto_depIdxs, + EnumInfos: file_proto_test_v1_proto2_test_all_types_proto_enumTypes, + MessageInfos: file_proto_test_v1_proto2_test_all_types_proto_msgTypes, + }.Build() + File_proto_test_v1_proto2_test_all_types_proto = out.File + file_proto_test_v1_proto2_test_all_types_proto_rawDesc = nil + file_proto_test_v1_proto2_test_all_types_proto_goTypes = nil + file_proto_test_v1_proto2_test_all_types_proto_depIdxs = nil } diff --git a/proto/test/v1/proto3/BUILD.bazel b/proto/test/v1/proto3/BUILD.bazel index 9e7ea12a..5bade223 100644 --- a/proto/test/v1/proto3/BUILD.bazel +++ b/proto/test/v1/proto3/BUILD.bazel @@ -30,7 +30,6 @@ go_proto_library( proto = ":test_all_types_proto", importpath = "github.com/google/cel-spec/proto/test/v1/proto3/test_all_types", deps = [ - "@com_github_golang_protobuf//proto:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", diff --git a/proto/test/v1/proto3/test_all_types/test_all_types.pb.go b/proto/test/v1/proto3/test_all_types/test_all_types.pb.go index c495239e..050005b8 100755 --- a/proto/test/v1/proto3/test_all_types/test_all_types.pb.go +++ b/proto/test/v1/proto3/test_all_types/test_all_types.pb.go @@ -1,29 +1,34 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.13.0 // source: proto/test/v1/proto3/test_all_types.proto package test_all_types import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" duration "github.com/golang/protobuf/ptypes/duration" _struct "github.com/golang/protobuf/ptypes/struct" timestamp "github.com/golang/protobuf/ptypes/timestamp" wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +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) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type GlobalEnum int32 @@ -33,24 +38,45 @@ const ( GlobalEnum_GAZ GlobalEnum = 2 ) -var GlobalEnum_name = map[int32]string{ - 0: "GOO", - 1: "GAR", - 2: "GAZ", -} +// Enum value maps for GlobalEnum. +var ( + GlobalEnum_name = map[int32]string{ + 0: "GOO", + 1: "GAR", + 2: "GAZ", + } + GlobalEnum_value = map[string]int32{ + "GOO": 0, + "GAR": 1, + "GAZ": 2, + } +) -var GlobalEnum_value = map[string]int32{ - "GOO": 0, - "GAR": 1, - "GAZ": 2, +func (x GlobalEnum) Enum() *GlobalEnum { + p := new(GlobalEnum) + *p = x + return p } func (x GlobalEnum) String() string { - return proto.EnumName(GlobalEnum_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GlobalEnum) Descriptor() protoreflect.EnumDescriptor { + return file_proto_test_v1_proto3_test_all_types_proto_enumTypes[0].Descriptor() +} + +func (GlobalEnum) Type() protoreflect.EnumType { + return &file_proto_test_v1_proto3_test_all_types_proto_enumTypes[0] } +func (x GlobalEnum) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GlobalEnum.Descriptor instead. func (GlobalEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a2e70c0487903069, []int{0} + return file_proto_test_v1_proto3_test_all_types_proto_rawDescGZIP(), []int{0} } type TestAllTypes_NestedEnum int32 @@ -61,27 +87,52 @@ const ( TestAllTypes_BAZ TestAllTypes_NestedEnum = 2 ) -var TestAllTypes_NestedEnum_name = map[int32]string{ - 0: "FOO", - 1: "BAR", - 2: "BAZ", -} +// Enum value maps for TestAllTypes_NestedEnum. +var ( + TestAllTypes_NestedEnum_name = map[int32]string{ + 0: "FOO", + 1: "BAR", + 2: "BAZ", + } + TestAllTypes_NestedEnum_value = map[string]int32{ + "FOO": 0, + "BAR": 1, + "BAZ": 2, + } +) -var TestAllTypes_NestedEnum_value = map[string]int32{ - "FOO": 0, - "BAR": 1, - "BAZ": 2, +func (x TestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum { + p := new(TestAllTypes_NestedEnum) + *p = x + return p } func (x TestAllTypes_NestedEnum) String() string { - return proto.EnumName(TestAllTypes_NestedEnum_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TestAllTypes_NestedEnum) Descriptor() protoreflect.EnumDescriptor { + return file_proto_test_v1_proto3_test_all_types_proto_enumTypes[1].Descriptor() +} + +func (TestAllTypes_NestedEnum) Type() protoreflect.EnumType { + return &file_proto_test_v1_proto3_test_all_types_proto_enumTypes[1] } +func (x TestAllTypes_NestedEnum) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TestAllTypes_NestedEnum.Descriptor instead. func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a2e70c0487903069, []int{0, 0} + return file_proto_test_v1_proto3_test_all_types_proto_rawDescGZIP(), []int{0, 0} } type TestAllTypes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SingleInt32 int32 `protobuf:"varint,1,opt,name=single_int32,json=singleInt32,proto3" json:"single_int32,omitempty"` SingleInt64 int64 `protobuf:"varint,2,opt,name=single_int64,json=singleInt64,proto3" json:"single_int64,omitempty"` SingleUint32 uint32 `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32,proto3" json:"single_uint32,omitempty"` @@ -111,7 +162,8 @@ type TestAllTypes struct { SingleStringWrapper *wrappers.StringValue `protobuf:"bytes,111,opt,name=single_string_wrapper,json=singleStringWrapper,proto3" json:"single_string_wrapper,omitempty"` SingleBoolWrapper *wrappers.BoolValue `protobuf:"bytes,112,opt,name=single_bool_wrapper,json=singleBoolWrapper,proto3" json:"single_bool_wrapper,omitempty"` SingleBytesWrapper *wrappers.BytesValue `protobuf:"bytes,113,opt,name=single_bytes_wrapper,json=singleBytesWrapper,proto3" json:"single_bytes_wrapper,omitempty"` - // Types that are valid to be assigned to NestedType: + ListValue *_struct.ListValue `protobuf:"bytes,114,opt,name=list_value,json=listValue,proto3" json:"list_value,omitempty"` + // Types that are assignable to NestedType: // *TestAllTypes_SingleNestedMessage // *TestAllTypes_SingleNestedEnum NestedType isTestAllTypes_NestedType `protobuf_oneof:"nested_type"` @@ -139,255 +191,250 @@ type TestAllTypes struct { RepeatedLazyMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,55,rep,name=repeated_lazy_message,json=repeatedLazyMessage,proto3" json:"repeated_lazy_message,omitempty"` MapStringString map[string]string `protobuf:"bytes,61,rep,name=map_string_string,json=mapStringString,proto3" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` MapInt64NestedType map[int64]*NestedTestAllTypes `protobuf:"bytes,62,rep,name=map_int64_nested_type,json=mapInt64NestedType,proto3" json:"map_int64_nested_type,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *TestAllTypes) Reset() { *m = TestAllTypes{} } -func (m *TestAllTypes) String() string { return proto.CompactTextString(m) } -func (*TestAllTypes) ProtoMessage() {} -func (*TestAllTypes) Descriptor() ([]byte, []int) { - return fileDescriptor_a2e70c0487903069, []int{0} +func (x *TestAllTypes) Reset() { + *x = TestAllTypes{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_proto3_test_all_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TestAllTypes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TestAllTypes.Unmarshal(m, b) +func (x *TestAllTypes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TestAllTypes.Marshal(b, m, deterministic) -} -func (m *TestAllTypes) XXX_Merge(src proto.Message) { - xxx_messageInfo_TestAllTypes.Merge(m, src) -} -func (m *TestAllTypes) XXX_Size() int { - return xxx_messageInfo_TestAllTypes.Size(m) -} -func (m *TestAllTypes) XXX_DiscardUnknown() { - xxx_messageInfo_TestAllTypes.DiscardUnknown(m) + +func (*TestAllTypes) ProtoMessage() {} + +func (x *TestAllTypes) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_proto3_test_all_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TestAllTypes proto.InternalMessageInfo +// Deprecated: Use TestAllTypes.ProtoReflect.Descriptor instead. +func (*TestAllTypes) Descriptor() ([]byte, []int) { + return file_proto_test_v1_proto3_test_all_types_proto_rawDescGZIP(), []int{0} +} -func (m *TestAllTypes) GetSingleInt32() int32 { - if m != nil { - return m.SingleInt32 +func (x *TestAllTypes) GetSingleInt32() int32 { + if x != nil { + return x.SingleInt32 } return 0 } -func (m *TestAllTypes) GetSingleInt64() int64 { - if m != nil { - return m.SingleInt64 +func (x *TestAllTypes) GetSingleInt64() int64 { + if x != nil { + return x.SingleInt64 } return 0 } -func (m *TestAllTypes) GetSingleUint32() uint32 { - if m != nil { - return m.SingleUint32 +func (x *TestAllTypes) GetSingleUint32() uint32 { + if x != nil { + return x.SingleUint32 } return 0 } -func (m *TestAllTypes) GetSingleUint64() uint64 { - if m != nil { - return m.SingleUint64 +func (x *TestAllTypes) GetSingleUint64() uint64 { + if x != nil { + return x.SingleUint64 } return 0 } -func (m *TestAllTypes) GetSingleSint32() int32 { - if m != nil { - return m.SingleSint32 +func (x *TestAllTypes) GetSingleSint32() int32 { + if x != nil { + return x.SingleSint32 } return 0 } -func (m *TestAllTypes) GetSingleSint64() int64 { - if m != nil { - return m.SingleSint64 +func (x *TestAllTypes) GetSingleSint64() int64 { + if x != nil { + return x.SingleSint64 } return 0 } -func (m *TestAllTypes) GetSingleFixed32() uint32 { - if m != nil { - return m.SingleFixed32 +func (x *TestAllTypes) GetSingleFixed32() uint32 { + if x != nil { + return x.SingleFixed32 } return 0 } -func (m *TestAllTypes) GetSingleFixed64() uint64 { - if m != nil { - return m.SingleFixed64 +func (x *TestAllTypes) GetSingleFixed64() uint64 { + if x != nil { + return x.SingleFixed64 } return 0 } -func (m *TestAllTypes) GetSingleSfixed32() int32 { - if m != nil { - return m.SingleSfixed32 +func (x *TestAllTypes) GetSingleSfixed32() int32 { + if x != nil { + return x.SingleSfixed32 } return 0 } -func (m *TestAllTypes) GetSingleSfixed64() int64 { - if m != nil { - return m.SingleSfixed64 +func (x *TestAllTypes) GetSingleSfixed64() int64 { + if x != nil { + return x.SingleSfixed64 } return 0 } -func (m *TestAllTypes) GetSingleFloat() float32 { - if m != nil { - return m.SingleFloat +func (x *TestAllTypes) GetSingleFloat() float32 { + if x != nil { + return x.SingleFloat } return 0 } -func (m *TestAllTypes) GetSingleDouble() float64 { - if m != nil { - return m.SingleDouble +func (x *TestAllTypes) GetSingleDouble() float64 { + if x != nil { + return x.SingleDouble } return 0 } -func (m *TestAllTypes) GetSingleBool() bool { - if m != nil { - return m.SingleBool +func (x *TestAllTypes) GetSingleBool() bool { + if x != nil { + return x.SingleBool } return false } -func (m *TestAllTypes) GetSingleString() string { - if m != nil { - return m.SingleString +func (x *TestAllTypes) GetSingleString() string { + if x != nil { + return x.SingleString } return "" } -func (m *TestAllTypes) GetSingleBytes() []byte { - if m != nil { - return m.SingleBytes +func (x *TestAllTypes) GetSingleBytes() []byte { + if x != nil { + return x.SingleBytes } return nil } -func (m *TestAllTypes) GetSingleAny() *any.Any { - if m != nil { - return m.SingleAny +func (x *TestAllTypes) GetSingleAny() *any.Any { + if x != nil { + return x.SingleAny } return nil } -func (m *TestAllTypes) GetSingleDuration() *duration.Duration { - if m != nil { - return m.SingleDuration +func (x *TestAllTypes) GetSingleDuration() *duration.Duration { + if x != nil { + return x.SingleDuration } return nil } -func (m *TestAllTypes) GetSingleTimestamp() *timestamp.Timestamp { - if m != nil { - return m.SingleTimestamp +func (x *TestAllTypes) GetSingleTimestamp() *timestamp.Timestamp { + if x != nil { + return x.SingleTimestamp } return nil } -func (m *TestAllTypes) GetSingleStruct() *_struct.Struct { - if m != nil { - return m.SingleStruct +func (x *TestAllTypes) GetSingleStruct() *_struct.Struct { + if x != nil { + return x.SingleStruct } return nil } -func (m *TestAllTypes) GetSingleValue() *_struct.Value { - if m != nil { - return m.SingleValue +func (x *TestAllTypes) GetSingleValue() *_struct.Value { + if x != nil { + return x.SingleValue } return nil } -func (m *TestAllTypes) GetSingleInt64Wrapper() *wrappers.Int64Value { - if m != nil { - return m.SingleInt64Wrapper +func (x *TestAllTypes) GetSingleInt64Wrapper() *wrappers.Int64Value { + if x != nil { + return x.SingleInt64Wrapper } return nil } -func (m *TestAllTypes) GetSingleInt32Wrapper() *wrappers.Int32Value { - if m != nil { - return m.SingleInt32Wrapper +func (x *TestAllTypes) GetSingleInt32Wrapper() *wrappers.Int32Value { + if x != nil { + return x.SingleInt32Wrapper } return nil } -func (m *TestAllTypes) GetSingleDoubleWrapper() *wrappers.DoubleValue { - if m != nil { - return m.SingleDoubleWrapper +func (x *TestAllTypes) GetSingleDoubleWrapper() *wrappers.DoubleValue { + if x != nil { + return x.SingleDoubleWrapper } return nil } -func (m *TestAllTypes) GetSingleFloatWrapper() *wrappers.FloatValue { - if m != nil { - return m.SingleFloatWrapper +func (x *TestAllTypes) GetSingleFloatWrapper() *wrappers.FloatValue { + if x != nil { + return x.SingleFloatWrapper } return nil } -func (m *TestAllTypes) GetSingleUint64Wrapper() *wrappers.UInt64Value { - if m != nil { - return m.SingleUint64Wrapper +func (x *TestAllTypes) GetSingleUint64Wrapper() *wrappers.UInt64Value { + if x != nil { + return x.SingleUint64Wrapper } return nil } -func (m *TestAllTypes) GetSingleUint32Wrapper() *wrappers.UInt32Value { - if m != nil { - return m.SingleUint32Wrapper +func (x *TestAllTypes) GetSingleUint32Wrapper() *wrappers.UInt32Value { + if x != nil { + return x.SingleUint32Wrapper } return nil } -func (m *TestAllTypes) GetSingleStringWrapper() *wrappers.StringValue { - if m != nil { - return m.SingleStringWrapper +func (x *TestAllTypes) GetSingleStringWrapper() *wrappers.StringValue { + if x != nil { + return x.SingleStringWrapper } return nil } -func (m *TestAllTypes) GetSingleBoolWrapper() *wrappers.BoolValue { - if m != nil { - return m.SingleBoolWrapper +func (x *TestAllTypes) GetSingleBoolWrapper() *wrappers.BoolValue { + if x != nil { + return x.SingleBoolWrapper } return nil } -func (m *TestAllTypes) GetSingleBytesWrapper() *wrappers.BytesValue { - if m != nil { - return m.SingleBytesWrapper +func (x *TestAllTypes) GetSingleBytesWrapper() *wrappers.BytesValue { + if x != nil { + return x.SingleBytesWrapper } return nil } -type isTestAllTypes_NestedType interface { - isTestAllTypes_NestedType() -} - -type TestAllTypes_SingleNestedMessage struct { - SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,21,opt,name=single_nested_message,json=singleNestedMessage,proto3,oneof"` -} - -type TestAllTypes_SingleNestedEnum struct { - SingleNestedEnum TestAllTypes_NestedEnum `protobuf:"varint,22,opt,name=single_nested_enum,json=singleNestedEnum,proto3,enum=google.api.expr.test.v1.proto3.TestAllTypes_NestedEnum,oneof"` +func (x *TestAllTypes) GetListValue() *_struct.ListValue { + if x != nil { + return x.ListValue + } + return nil } -func (*TestAllTypes_SingleNestedMessage) isTestAllTypes_NestedType() {} - -func (*TestAllTypes_SingleNestedEnum) isTestAllTypes_NestedType() {} - func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType { if m != nil { return m.NestedType @@ -395,379 +442,708 @@ func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType { return nil } -func (m *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage { - if x, ok := m.GetNestedType().(*TestAllTypes_SingleNestedMessage); ok { +func (x *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage { + if x, ok := x.GetNestedType().(*TestAllTypes_SingleNestedMessage); ok { return x.SingleNestedMessage } return nil } -func (m *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum { - if x, ok := m.GetNestedType().(*TestAllTypes_SingleNestedEnum); ok { +func (x *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum { + if x, ok := x.GetNestedType().(*TestAllTypes_SingleNestedEnum); ok { return x.SingleNestedEnum } return TestAllTypes_FOO } -func (m *TestAllTypes) GetStandaloneMessage() *TestAllTypes_NestedMessage { - if m != nil { - return m.StandaloneMessage +func (x *TestAllTypes) GetStandaloneMessage() *TestAllTypes_NestedMessage { + if x != nil { + return x.StandaloneMessage } return nil } -func (m *TestAllTypes) GetStandaloneEnum() TestAllTypes_NestedEnum { - if m != nil { - return m.StandaloneEnum +func (x *TestAllTypes) GetStandaloneEnum() TestAllTypes_NestedEnum { + if x != nil { + return x.StandaloneEnum } return TestAllTypes_FOO } -func (m *TestAllTypes) GetRepeatedInt32() []int32 { - if m != nil { - return m.RepeatedInt32 +func (x *TestAllTypes) GetRepeatedInt32() []int32 { + if x != nil { + return x.RepeatedInt32 } return nil } -func (m *TestAllTypes) GetRepeatedInt64() []int64 { - if m != nil { - return m.RepeatedInt64 +func (x *TestAllTypes) GetRepeatedInt64() []int64 { + if x != nil { + return x.RepeatedInt64 } return nil } -func (m *TestAllTypes) GetRepeatedUint32() []uint32 { - if m != nil { - return m.RepeatedUint32 +func (x *TestAllTypes) GetRepeatedUint32() []uint32 { + if x != nil { + return x.RepeatedUint32 } return nil } -func (m *TestAllTypes) GetRepeatedUint64() []uint64 { - if m != nil { - return m.RepeatedUint64 +func (x *TestAllTypes) GetRepeatedUint64() []uint64 { + if x != nil { + return x.RepeatedUint64 } return nil } -func (m *TestAllTypes) GetRepeatedSint32() []int32 { - if m != nil { - return m.RepeatedSint32 +func (x *TestAllTypes) GetRepeatedSint32() []int32 { + if x != nil { + return x.RepeatedSint32 } return nil } -func (m *TestAllTypes) GetRepeatedSint64() []int64 { - if m != nil { - return m.RepeatedSint64 +func (x *TestAllTypes) GetRepeatedSint64() []int64 { + if x != nil { + return x.RepeatedSint64 } return nil } -func (m *TestAllTypes) GetRepeatedFixed32() []uint32 { - if m != nil { - return m.RepeatedFixed32 +func (x *TestAllTypes) GetRepeatedFixed32() []uint32 { + if x != nil { + return x.RepeatedFixed32 } return nil } -func (m *TestAllTypes) GetRepeatedFixed64() []uint64 { - if m != nil { - return m.RepeatedFixed64 +func (x *TestAllTypes) GetRepeatedFixed64() []uint64 { + if x != nil { + return x.RepeatedFixed64 } return nil } -func (m *TestAllTypes) GetRepeatedSfixed32() []int32 { - if m != nil { - return m.RepeatedSfixed32 +func (x *TestAllTypes) GetRepeatedSfixed32() []int32 { + if x != nil { + return x.RepeatedSfixed32 } return nil } -func (m *TestAllTypes) GetRepeatedSfixed64() []int64 { - if m != nil { - return m.RepeatedSfixed64 +func (x *TestAllTypes) GetRepeatedSfixed64() []int64 { + if x != nil { + return x.RepeatedSfixed64 } return nil } -func (m *TestAllTypes) GetRepeatedFloat() []float32 { - if m != nil { - return m.RepeatedFloat +func (x *TestAllTypes) GetRepeatedFloat() []float32 { + if x != nil { + return x.RepeatedFloat } return nil } -func (m *TestAllTypes) GetRepeatedDouble() []float64 { - if m != nil { - return m.RepeatedDouble +func (x *TestAllTypes) GetRepeatedDouble() []float64 { + if x != nil { + return x.RepeatedDouble } return nil } -func (m *TestAllTypes) GetRepeatedBool() []bool { - if m != nil { - return m.RepeatedBool +func (x *TestAllTypes) GetRepeatedBool() []bool { + if x != nil { + return x.RepeatedBool } return nil } -func (m *TestAllTypes) GetRepeatedString() []string { - if m != nil { - return m.RepeatedString +func (x *TestAllTypes) GetRepeatedString() []string { + if x != nil { + return x.RepeatedString } return nil } -func (m *TestAllTypes) GetRepeatedBytes() [][]byte { - if m != nil { - return m.RepeatedBytes +func (x *TestAllTypes) GetRepeatedBytes() [][]byte { + if x != nil { + return x.RepeatedBytes } return nil } -func (m *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage { - if m != nil { - return m.RepeatedNestedMessage +func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage { + if x != nil { + return x.RepeatedNestedMessage } return nil } -func (m *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum { - if m != nil { - return m.RepeatedNestedEnum +func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum { + if x != nil { + return x.RepeatedNestedEnum } return nil } -func (m *TestAllTypes) GetRepeatedStringPiece() []string { - if m != nil { - return m.RepeatedStringPiece +func (x *TestAllTypes) GetRepeatedStringPiece() []string { + if x != nil { + return x.RepeatedStringPiece } return nil } -func (m *TestAllTypes) GetRepeatedCord() []string { - if m != nil { - return m.RepeatedCord +func (x *TestAllTypes) GetRepeatedCord() []string { + if x != nil { + return x.RepeatedCord } return nil } -func (m *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage { - if m != nil { - return m.RepeatedLazyMessage +func (x *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage { + if x != nil { + return x.RepeatedLazyMessage } return nil } -func (m *TestAllTypes) GetMapStringString() map[string]string { - if m != nil { - return m.MapStringString +func (x *TestAllTypes) GetMapStringString() map[string]string { + if x != nil { + return x.MapStringString } return nil } -func (m *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes { - if m != nil { - return m.MapInt64NestedType +func (x *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes { + if x != nil { + return x.MapInt64NestedType } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TestAllTypes) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*TestAllTypes_SingleNestedMessage)(nil), - (*TestAllTypes_SingleNestedEnum)(nil), - } +type isTestAllTypes_NestedType interface { + isTestAllTypes_NestedType() } -type TestAllTypes_NestedMessage struct { - Bb int32 `protobuf:"varint,1,opt,name=bb,proto3" json:"bb,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type TestAllTypes_SingleNestedMessage struct { + SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,21,opt,name=single_nested_message,json=singleNestedMessage,proto3,oneof"` } -func (m *TestAllTypes_NestedMessage) Reset() { *m = TestAllTypes_NestedMessage{} } -func (m *TestAllTypes_NestedMessage) String() string { return proto.CompactTextString(m) } -func (*TestAllTypes_NestedMessage) ProtoMessage() {} -func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_a2e70c0487903069, []int{0, 0} +type TestAllTypes_SingleNestedEnum struct { + SingleNestedEnum TestAllTypes_NestedEnum `protobuf:"varint,22,opt,name=single_nested_enum,json=singleNestedEnum,proto3,enum=google.api.expr.test.v1.proto3.TestAllTypes_NestedEnum,oneof"` } -func (m *TestAllTypes_NestedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TestAllTypes_NestedMessage.Unmarshal(m, b) -} -func (m *TestAllTypes_NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TestAllTypes_NestedMessage.Marshal(b, m, deterministic) -} -func (m *TestAllTypes_NestedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TestAllTypes_NestedMessage.Merge(m, src) +func (*TestAllTypes_SingleNestedMessage) isTestAllTypes_NestedType() {} + +func (*TestAllTypes_SingleNestedEnum) isTestAllTypes_NestedType() {} + +type NestedTestAllTypes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Child *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"` + Payload *TestAllTypes `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` } -func (m *TestAllTypes_NestedMessage) XXX_Size() int { - return xxx_messageInfo_TestAllTypes_NestedMessage.Size(m) + +func (x *NestedTestAllTypes) Reset() { + *x = NestedTestAllTypes{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_proto3_test_all_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TestAllTypes_NestedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TestAllTypes_NestedMessage.DiscardUnknown(m) + +func (x *NestedTestAllTypes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_TestAllTypes_NestedMessage proto.InternalMessageInfo +func (*NestedTestAllTypes) ProtoMessage() {} -func (m *TestAllTypes_NestedMessage) GetBb() int32 { - if m != nil { - return m.Bb +func (x *NestedTestAllTypes) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_proto3_test_all_types_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 0 + return mi.MessageOf(x) } -type NestedTestAllTypes struct { - Child *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"` - Payload *TestAllTypes `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use NestedTestAllTypes.ProtoReflect.Descriptor instead. +func (*NestedTestAllTypes) Descriptor() ([]byte, []int) { + return file_proto_test_v1_proto3_test_all_types_proto_rawDescGZIP(), []int{1} } -func (m *NestedTestAllTypes) Reset() { *m = NestedTestAllTypes{} } -func (m *NestedTestAllTypes) String() string { return proto.CompactTextString(m) } -func (*NestedTestAllTypes) ProtoMessage() {} -func (*NestedTestAllTypes) Descriptor() ([]byte, []int) { - return fileDescriptor_a2e70c0487903069, []int{1} +func (x *NestedTestAllTypes) GetChild() *NestedTestAllTypes { + if x != nil { + return x.Child + } + return nil } -func (m *NestedTestAllTypes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NestedTestAllTypes.Unmarshal(m, b) +func (x *NestedTestAllTypes) GetPayload() *TestAllTypes { + if x != nil { + return x.Payload + } + return nil } -func (m *NestedTestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NestedTestAllTypes.Marshal(b, m, deterministic) + +type TestAllTypes_NestedMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bb int32 `protobuf:"varint,1,opt,name=bb,proto3" json:"bb,omitempty"` } -func (m *NestedTestAllTypes) XXX_Merge(src proto.Message) { - xxx_messageInfo_NestedTestAllTypes.Merge(m, src) + +func (x *TestAllTypes_NestedMessage) Reset() { + *x = TestAllTypes_NestedMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_proto3_test_all_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NestedTestAllTypes) XXX_Size() int { - return xxx_messageInfo_NestedTestAllTypes.Size(m) + +func (x *TestAllTypes_NestedMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NestedTestAllTypes) XXX_DiscardUnknown() { - xxx_messageInfo_NestedTestAllTypes.DiscardUnknown(m) + +func (*TestAllTypes_NestedMessage) ProtoMessage() {} + +func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_proto3_test_all_types_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NestedTestAllTypes proto.InternalMessageInfo +// Deprecated: Use TestAllTypes_NestedMessage.ProtoReflect.Descriptor instead. +func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int) { + return file_proto_test_v1_proto3_test_all_types_proto_rawDescGZIP(), []int{0, 0} +} -func (m *NestedTestAllTypes) GetChild() *NestedTestAllTypes { - if m != nil { - return m.Child +func (x *TestAllTypes_NestedMessage) GetBb() int32 { + if x != nil { + return x.Bb } - return nil + return 0 } -func (m *NestedTestAllTypes) GetPayload() *TestAllTypes { - if m != nil { - return m.Payload - } - return nil -} - -func init() { - proto.RegisterEnum("google.api.expr.test.v1.proto3.GlobalEnum", GlobalEnum_name, GlobalEnum_value) - proto.RegisterEnum("google.api.expr.test.v1.proto3.TestAllTypes_NestedEnum", TestAllTypes_NestedEnum_name, TestAllTypes_NestedEnum_value) - proto.RegisterType((*TestAllTypes)(nil), "google.api.expr.test.v1.proto3.TestAllTypes") - proto.RegisterMapType((map[int64]*NestedTestAllTypes)(nil), "google.api.expr.test.v1.proto3.TestAllTypes.MapInt64NestedTypeEntry") - proto.RegisterMapType((map[string]string)(nil), "google.api.expr.test.v1.proto3.TestAllTypes.MapStringStringEntry") - proto.RegisterType((*TestAllTypes_NestedMessage)(nil), "google.api.expr.test.v1.proto3.TestAllTypes.NestedMessage") - proto.RegisterType((*NestedTestAllTypes)(nil), "google.api.expr.test.v1.proto3.NestedTestAllTypes") -} - -func init() { - proto.RegisterFile("proto/test/v1/proto3/test_all_types.proto", fileDescriptor_a2e70c0487903069) -} - -var fileDescriptor_a2e70c0487903069 = []byte{ - // 1328 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x97, 0x5b, 0x73, 0xd3, 0x46, - 0x14, 0xc7, 0x59, 0x8b, 0xdc, 0x36, 0x71, 0xe2, 0x6c, 0x12, 0xb2, 0xb8, 0x0c, 0x59, 0x42, 0x69, - 0x96, 0x9b, 0x33, 0xd8, 0xaa, 0xa0, 0x4c, 0xdb, 0x99, 0xb8, 0x90, 0xd0, 0x4e, 0x29, 0x8c, 0x02, - 0xed, 0x0c, 0x2f, 0xae, 0x6c, 0x6f, 0x8c, 0x8a, 0x2c, 0xa9, 0xba, 0x00, 0xe2, 0xbd, 0x5f, 0xa5, - 0x9f, 0xb3, 0xa3, 0xbd, 0xc8, 0x2b, 0x09, 0xd3, 0x81, 0xbc, 0x78, 0xac, 0xb3, 0xff, 0xfd, 0x9d, - 0xcb, 0xee, 0xd1, 0xae, 0xe0, 0xcd, 0x30, 0x0a, 0x92, 0xe0, 0x30, 0x61, 0x71, 0x72, 0xf8, 0xf6, - 0xde, 0x21, 0x7f, 0xea, 0xf1, 0xc7, 0x81, 0xe3, 0x79, 0x83, 0x24, 0x0b, 0x59, 0xdc, 0xe1, 0x56, - 0x74, 0x75, 0x12, 0x04, 0x13, 0x8f, 0x75, 0x9c, 0xd0, 0xed, 0xb0, 0xf7, 0x61, 0xd4, 0xc9, 0x55, - 0x9d, 0xb7, 0xf7, 0xc4, 0x70, 0xaf, 0x7d, 0x59, 0x8c, 0x0b, 0xc6, 0x30, 0x3d, 0x3b, 0x74, 0xfc, - 0x4c, 0x8c, 0xb5, 0xaf, 0x56, 0x87, 0xc6, 0x69, 0xe4, 0x24, 0x6e, 0xe0, 0xcb, 0xf1, 0x2b, 0xd5, - 0xf1, 0x38, 0x89, 0xd2, 0x51, 0x22, 0x47, 0xf7, 0xaa, 0xa3, 0x89, 0x3b, 0x65, 0x71, 0xe2, 0x4c, - 0xc3, 0x79, 0xf8, 0x77, 0x91, 0x13, 0x86, 0x2c, 0x92, 0x91, 0xef, 0xff, 0x73, 0x05, 0xae, 0xbd, - 0x60, 0x71, 0x72, 0xe4, 0x79, 0x2f, 0xf2, 0x84, 0xd0, 0x35, 0xb8, 0x16, 0xbb, 0xfe, 0xc4, 0x63, - 0x03, 0xd7, 0x4f, 0x7a, 0x5d, 0x0c, 0x08, 0xa0, 0x0b, 0xf6, 0xaa, 0xb0, 0xfd, 0x9c, 0x9b, 0xca, - 0x12, 0xcb, 0xc4, 0x0d, 0x02, 0xa8, 0xa1, 0x49, 0x2c, 0x13, 0x5d, 0x87, 0x4d, 0x29, 0x49, 0x05, - 0xc6, 0x20, 0x80, 0x36, 0x6d, 0x39, 0xef, 0x25, 0xb7, 0x55, 0x44, 0x96, 0x89, 0x2f, 0x12, 0x40, - 0x2f, 0xea, 0xa2, 0x12, 0x29, 0x16, 0xa4, 0x05, 0x02, 0xe8, 0xa6, 0x12, 0x9d, 0x56, 0x49, 0xb1, - 0x20, 0x2d, 0x12, 0x40, 0x91, 0x2e, 0xb2, 0x4c, 0x74, 0x03, 0xae, 0x4b, 0xd1, 0x99, 0xfb, 0x9e, - 0x8d, 0x7b, 0x5d, 0xbc, 0x44, 0x00, 0x5d, 0xb2, 0xe5, 0xd4, 0x63, 0x61, 0xac, 0xca, 0x2c, 0x13, - 0x2f, 0x13, 0x40, 0x17, 0x4b, 0x32, 0xcb, 0x44, 0x07, 0x70, 0x43, 0xb9, 0x54, 0xb8, 0x15, 0x02, - 0xe8, 0x86, 0x2d, 0x67, 0x9f, 0x4a, 0x6b, 0x4d, 0x68, 0x99, 0x18, 0x12, 0x40, 0x5b, 0x65, 0xa1, - 0x65, 0x6a, 0x65, 0x3d, 0xf3, 0x02, 0x27, 0xc1, 0xab, 0x04, 0xd0, 0x86, 0x2a, 0xeb, 0x71, 0x6e, - 0xd2, 0xf2, 0x1c, 0x07, 0xe9, 0xd0, 0x63, 0x78, 0x8d, 0x00, 0x0a, 0x54, 0x9e, 0x8f, 0xb8, 0x0d, - 0xed, 0x41, 0x39, 0x67, 0x30, 0x0c, 0x02, 0x0f, 0x37, 0x09, 0xa0, 0xcb, 0x36, 0x14, 0xa6, 0x7e, - 0x10, 0x78, 0x7a, 0xb5, 0x92, 0xc8, 0xf5, 0x27, 0x78, 0x9d, 0x00, 0xba, 0x52, 0x54, 0x8b, 0xdb, - 0xb4, 0x68, 0x86, 0x59, 0xc2, 0x62, 0xbc, 0x41, 0x00, 0x5d, 0x53, 0xd1, 0xf4, 0x73, 0x13, 0xea, - 0x41, 0x49, 0x1d, 0x38, 0x7e, 0x86, 0xc7, 0x04, 0xd0, 0xd5, 0xee, 0x76, 0x47, 0xb6, 0x82, 0xda, - 0x70, 0x9d, 0x23, 0x3f, 0xb3, 0x57, 0x84, 0xee, 0xc8, 0xcf, 0x50, 0xbf, 0x28, 0x87, 0xda, 0xe8, - 0x98, 0xf1, 0x99, 0x97, 0x6b, 0x33, 0x1f, 0x49, 0x81, 0xaa, 0x94, 0x7a, 0x46, 0x8f, 0x61, 0x4b, - 0x32, 0x8a, 0xed, 0x8e, 0xcf, 0x38, 0xa4, 0x5d, 0x83, 0xbc, 0x50, 0x0a, 0x5b, 0xfa, 0x2d, 0x0c, - 0xe8, 0x7b, 0xbd, 0x0e, 0xe9, 0x28, 0xc1, 0x13, 0xce, 0xd8, 0xad, 0x31, 0x4e, 0xf9, 0xb0, 0x56, - 0xa0, 0x74, 0x94, 0xa0, 0xef, 0x8a, 0x02, 0xbd, 0x75, 0xbc, 0x94, 0xe1, 0xd7, 0x7c, 0xf2, 0xa5, - 0xda, 0xe4, 0xdf, 0xf3, 0x51, 0x55, 0x38, 0xfe, 0x80, 0x9e, 0xc2, 0x6d, 0xbd, 0x81, 0x06, 0xb2, - 0x27, 0xb1, 0xcb, 0x11, 0x5f, 0xd5, 0x10, 0xbc, 0xa7, 0x04, 0x07, 0x69, 0x5d, 0xf6, 0x87, 0x98, - 0x56, 0xc6, 0xf5, 0xba, 0x05, 0xee, 0xaf, 0xf9, 0xb8, 0x5e, 0xb7, 0x8a, 0xeb, 0x75, 0x15, 0xee, - 0x39, 0xdc, 0x29, 0x6d, 0xb2, 0x82, 0xf7, 0x86, 0xf3, 0xae, 0xd4, 0xd7, 0x89, 0xcb, 0x04, 0x70, - 0x4b, 0xdf, 0x8a, 0xf5, 0x00, 0xf9, 0xce, 0x2e, 0x80, 0xde, 0x9c, 0x00, 0xf9, 0x66, 0x2f, 0x05, - 0xc8, 0x2d, 0xf5, 0x00, 0xd3, 0x72, 0xfd, 0xa6, 0x73, 0x02, 0x7c, 0xa9, 0x15, 0x70, 0x4b, 0x7f, - 0xbb, 0x7c, 0x9c, 0xa8, 0x95, 0xd0, 0xff, 0x04, 0x51, 0xd5, 0x70, 0x4b, 0x7f, 0xa9, 0xd5, 0x89, - 0xa2, 0xc7, 0x0a, 0x62, 0x30, 0x87, 0x28, 0xda, 0xae, 0x44, 0x14, 0x26, 0x45, 0xfc, 0x05, 0x6e, - 0x69, 0x6d, 0x5d, 0xf0, 0xc2, 0x39, 0xfb, 0x3e, 0xef, 0x74, 0x41, 0xdb, 0x9c, 0xb5, 0x7e, 0x7d, - 0x41, 0x78, 0x73, 0x17, 0xb0, 0xbf, 0xe7, 0x2c, 0x08, 0xef, 0xf7, 0xd2, 0x82, 0x70, 0x8b, 0xc2, - 0x85, 0x45, 0xb2, 0x3e, 0x8b, 0x13, 0x36, 0x1e, 0x4c, 0x59, 0x1c, 0x3b, 0x13, 0x86, 0x77, 0x38, - 0xef, 0x61, 0xe7, 0xd3, 0xc7, 0x63, 0x47, 0x3f, 0x80, 0x3a, 0xbf, 0x71, 0xc4, 0x53, 0x41, 0x78, - 0x72, 0x41, 0x15, 0xa3, 0x64, 0x46, 0x13, 0x88, 0xca, 0x1e, 0x99, 0x9f, 0x4e, 0xf1, 0x25, 0x02, - 0xe8, 0x7a, 0xf7, 0xfe, 0x17, 0xb8, 0x7b, 0xec, 0xa7, 0xd3, 0x27, 0x17, 0xec, 0x96, 0xee, 0x2b, - 0xb7, 0x21, 0x17, 0xa2, 0x38, 0x71, 0xfc, 0xb1, 0xe3, 0x05, 0x3e, 0x2b, 0xf2, 0xda, 0x3d, 0x6f, - 0x5e, 0xf6, 0xe6, 0x8c, 0xaa, 0x72, 0xfa, 0x13, 0x6e, 0x68, 0xae, 0x78, 0x42, 0xf8, 0x5c, 0x09, - 0xd9, 0xeb, 0x33, 0x1e, 0x4f, 0xe6, 0x06, 0x5c, 0x8f, 0x58, 0xc8, 0x9c, 0xbc, 0x60, 0xe2, 0x30, - 0xdd, 0x23, 0x06, 0x5d, 0xb0, 0x9b, 0xca, 0x2a, 0xce, 0xf7, 0x8a, 0xcc, 0x32, 0x31, 0x21, 0x06, - 0x35, 0x4a, 0x32, 0x71, 0x02, 0x16, 0x32, 0x79, 0xca, 0x5f, 0x23, 0x06, 0x6d, 0xda, 0xc5, 0x6c, - 0x79, 0xce, 0x57, 0x85, 0x96, 0x89, 0xf7, 0x89, 0x41, 0x2f, 0x96, 0x85, 0x15, 0xa2, 0x3c, 0xed, - 0xaf, 0x13, 0x83, 0x6e, 0xce, 0x84, 0xa7, 0x75, 0xa2, 0x3c, 0xf1, 0xbf, 0x26, 0x06, 0x45, 0x65, - 0xa1, 0x65, 0xa2, 0x9b, 0xb0, 0x55, 0x08, 0xd5, 0x31, 0x7d, 0x83, 0x18, 0x74, 0xc9, 0x2e, 0x00, - 0xea, 0xdc, 0xaf, 0x49, 0x2d, 0x13, 0x7f, 0x43, 0x0c, 0xba, 0x58, 0x91, 0x5a, 0x26, 0xba, 0x0d, - 0x37, 0x67, 0xee, 0x15, 0xf6, 0x80, 0x18, 0x74, 0xc3, 0x2e, 0x18, 0xc5, 0xf9, 0x5f, 0x17, 0x5b, - 0x26, 0xa6, 0xc4, 0xa0, 0xad, 0xaa, 0x58, 0xdc, 0x51, 0x66, 0x41, 0xf0, 0x5b, 0xc0, 0x4d, 0x62, - 0xd0, 0xc6, 0xac, 0xf4, 0xe2, 0x1e, 0xa0, 0xe7, 0x2f, 0x6f, 0x02, 0xb7, 0x88, 0x41, 0xc1, 0x2c, - 0x7f, 0x79, 0x17, 0xb8, 0x0e, 0x8b, 0x99, 0xe2, 0x36, 0x70, 0x9b, 0x18, 0x74, 0xd9, 0x5e, 0x53, - 0x46, 0x7e, 0x1f, 0x28, 0x55, 0x53, 0xdc, 0x08, 0xee, 0x10, 0x83, 0xae, 0x68, 0xd5, 0x14, 0x77, - 0x02, 0x3d, 0x3a, 0x71, 0x2b, 0xb8, 0x4b, 0x0c, 0xba, 0x36, 0x8b, 0x4e, 0xdc, 0x0b, 0x22, 0xb8, - 0x5b, 0xc8, 0x2a, 0x2f, 0x84, 0x1e, 0x31, 0xce, 0xd9, 0x38, 0x3b, 0x0a, 0x5d, 0x7e, 0x21, 0xb8, - 0x70, 0xbb, 0xea, 0x93, 0x77, 0x90, 0x49, 0x8c, 0xf3, 0x74, 0x10, 0x2a, 0x7b, 0xe3, 0x5d, 0x64, - 0xc1, 0x9d, 0x4a, 0xb9, 0x06, 0xa1, 0xcb, 0x46, 0x0c, 0x7f, 0x9b, 0x17, 0xad, 0xdf, 0x58, 0x6e, - 0xd8, 0x5b, 0xe5, 0xc2, 0x3d, 0xcf, 0x87, 0xd1, 0x81, 0xb6, 0x16, 0xa3, 0x20, 0x1a, 0x63, 0x4b, - 0xea, 0xc1, 0x6c, 0x3d, 0x7e, 0x0a, 0xa2, 0x31, 0x8a, 0x34, 0x07, 0x9e, 0xf3, 0x21, 0x2b, 0xaa, - 0x77, 0xff, 0xbc, 0xd5, 0xeb, 0x37, 0x28, 0x98, 0x05, 0xf7, 0xab, 0xf3, 0x21, 0x53, 0xf5, 0x9b, - 0xc2, 0xcd, 0xa9, 0x13, 0xaa, 0x7c, 0xe4, 0x2e, 0xf8, 0x81, 0xfb, 0x3b, 0xfa, 0x2c, 0x7f, 0x4f, - 0x9d, 0x50, 0x24, 0x2d, 0x7e, 0x1f, 0xfb, 0x49, 0x94, 0xd9, 0x1b, 0xd3, 0xb2, 0x15, 0xbd, 0x83, - 0x3b, 0xb9, 0x3b, 0x71, 0x7c, 0xcb, 0xf5, 0xca, 0x3f, 0xa8, 0xf0, 0x8f, 0xdc, 0xe5, 0xa3, 0xcf, - 0x75, 0xc9, 0xdf, 0x48, 0x22, 0xd5, 0xdc, 0x26, 0xbc, 0xa2, 0x69, 0x6d, 0xa0, 0xbd, 0x07, 0x9b, - 0xe5, 0x8d, 0xb3, 0x0e, 0x1b, 0xc3, 0xa1, 0xfc, 0xca, 0x69, 0x0c, 0x87, 0xed, 0x3e, 0xdc, 0xfe, - 0x58, 0x0a, 0xa8, 0x05, 0x8d, 0x37, 0x2c, 0xe3, 0xc2, 0x15, 0x3b, 0xff, 0x8b, 0xb6, 0xe1, 0x82, - 0xb8, 0xf9, 0x35, 0xb8, 0x4d, 0x3c, 0x3c, 0x6c, 0x3c, 0x00, 0xed, 0x0c, 0xee, 0xce, 0x89, 0x49, - 0xc7, 0x18, 0x02, 0xf3, 0x44, 0xc7, 0xac, 0x76, 0xbb, 0xff, 0x97, 0xba, 0x24, 0x6a, 0x05, 0xd0, - 0x5c, 0xef, 0x1f, 0x40, 0xa8, 0x6d, 0xd5, 0x25, 0x68, 0x1c, 0x3f, 0x7b, 0xd6, 0xba, 0x90, 0xff, - 0xe9, 0x1f, 0xd9, 0x2d, 0x20, 0xfe, 0xbc, 0x6a, 0x35, 0xfa, 0x4d, 0xb8, 0xaa, 0xd5, 0x7d, 0xff, - 0x5f, 0x00, 0x51, 0x9d, 0x9c, 0x07, 0x37, 0x7a, 0xed, 0x7a, 0x63, 0x1e, 0xf0, 0x17, 0x06, 0xc7, - 0x01, 0xe8, 0x18, 0x2e, 0x85, 0x4e, 0xe6, 0x05, 0xce, 0x58, 0x26, 0x7a, 0xe7, 0x73, 0xd6, 0xd8, - 0x56, 0x93, 0x6f, 0x1d, 0x40, 0x78, 0xe2, 0x05, 0x43, 0xc7, 0x53, 0x09, 0x9e, 0xa8, 0x04, 0x4f, - 0x54, 0x82, 0x27, 0x3c, 0xc1, 0x87, 0xaf, 0x1e, 0x4c, 0xdc, 0xe4, 0x75, 0x3a, 0xec, 0x8c, 0x82, - 0xe9, 0xa1, 0xfc, 0x0c, 0x1e, 0x31, 0xef, 0x6e, 0x1c, 0xb2, 0xd1, 0xa7, 0xbf, 0xea, 0x87, 0x8b, - 0xc2, 0xfc, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x30, 0xc9, 0x2e, 0x6c, 0x03, 0x10, 0x00, 0x00, +var File_proto_test_v1_proto3_test_all_types_proto protoreflect.FileDescriptor + +var file_proto_test_v1_proto3_test_all_types_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x1a, 0x19, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, + 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, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 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, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 0x1c, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x69, + 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x23, 0x0a, 0x0d, + 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x69, 0x6e, 0x74, 0x33, + 0x32, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, + 0x36, 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x52, 0x0c, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x23, 0x0a, 0x0d, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x12, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, + 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, + 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x52, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x52, + 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x27, + 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, + 0x32, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, + 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x10, + 0x52, 0x0e, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, + 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x46, 0x6c, + 0x6f, 0x61, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x64, 0x6f, + 0x75, 0x62, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x21, + 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x12, 0x33, 0x0a, 0x0a, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x61, 0x6e, 0x79, 0x18, + 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x09, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x41, 0x6e, 0x79, 0x12, 0x42, 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x65, 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, 0x0e, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x10, 0x73, 0x69, + 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x66, + 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, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, + 0x39, 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x69, + 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, + 0x65, 0x72, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x74, + 0x36, 0x34, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, + 0x72, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x33, + 0x32, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x15, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, + 0x72, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x44, 0x6f, 0x75, + 0x62, 0x6c, 0x65, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x69, + 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, + 0x65, 0x72, 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x46, 0x6c, 0x6f, + 0x61, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x15, 0x73, 0x69, 0x6e, + 0x67, 0x6c, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, + 0x65, 0x72, 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x36, + 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x69, + 0x6e, 0x74, 0x36, 0x34, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x15, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x77, 0x72, 0x61, + 0x70, 0x70, 0x65, 0x72, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, + 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x50, 0x0a, + 0x15, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x77, + 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, + 0x4a, 0x0a, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x77, + 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, + 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x42, 0x6f, 0x6f, 0x6c, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x14, 0x73, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x77, 0x72, 0x61, 0x70, + 0x70, 0x65, 0x72, 0x18, 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x42, 0x79, + 0x74, 0x65, 0x73, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0a, 0x6c, 0x69, + 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x70, 0x0a, 0x15, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, + 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x15, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x48, 0x00, 0x52, 0x13, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x67, 0x0a, 0x12, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x16, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x10, + 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, + 0x12, 0x69, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, + 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, + 0x6c, 0x6f, 0x6e, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x60, 0x0a, 0x0f, 0x73, + 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x18, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x0e, 0x73, + 0x74, 0x61, 0x6e, 0x64, 0x61, 0x6c, 0x6f, 0x6e, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x25, 0x0a, + 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, + 0x1f, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x49, + 0x6e, 0x74, 0x33, 0x32, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0d, 0x72, 0x65, + 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x27, 0x0a, 0x0f, 0x72, + 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x21, + 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x55, 0x69, + 0x6e, 0x74, 0x33, 0x32, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0e, 0x72, + 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x27, 0x0a, + 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, + 0x18, 0x23, 0x20, 0x03, 0x28, 0x11, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x52, + 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, + 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, + 0x64, 0x33, 0x32, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, + 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x26, + 0x20, 0x03, 0x28, 0x06, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, + 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x27, 0x20, 0x03, 0x28, 0x0f, + 0x52, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, + 0x33, 0x32, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, + 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x52, 0x10, 0x72, + 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, + 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x2a, 0x20, 0x03, 0x28, 0x01, 0x52, + 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, + 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x72, + 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, + 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, + 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, + 0x79, 0x74, 0x65, 0x73, 0x12, 0x72, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x33, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x52, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x69, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, + 0x18, 0x34, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, + 0x12, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, + 0x6e, 0x75, 0x6d, 0x12, 0x36, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x35, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x52, 0x13, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0d, 0x72, + 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x36, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x43, 0x6f, 0x72, 0x64, 0x12, 0x72, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x6c, 0x61, 0x7a, 0x79, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x37, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, + 0x02, 0x28, 0x01, 0x52, 0x13, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4c, 0x61, 0x7a, + 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x6d, 0x0a, 0x11, 0x6d, 0x61, 0x70, 0x5f, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x3d, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x6d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x77, 0x0a, 0x15, 0x6d, 0x61, 0x70, 0x5f, 0x69, + 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x3e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, 0x6d, 0x61, + 0x70, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x1a, 0x1f, 0x0a, 0x0d, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x62, + 0x62, 0x1a, 0x42, 0x0a, 0x14, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x79, 0x0a, 0x17, 0x4d, 0x61, 0x70, 0x49, 0x6e, 0x74, 0x36, + 0x34, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x48, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, + 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x27, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x07, + 0x0a, 0x03, 0x46, 0x4f, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x52, 0x10, 0x01, + 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x5a, 0x10, 0x02, 0x42, 0x0d, 0x0a, 0x0b, 0x6e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa6, 0x01, 0x0a, 0x12, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, + 0x48, 0x0a, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, + 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x52, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x46, 0x0a, 0x07, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, + 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2a, 0x27, 0x0a, 0x0a, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x12, + 0x07, 0x0a, 0x03, 0x47, 0x4f, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x41, 0x52, 0x10, + 0x01, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x41, 0x5a, 0x10, 0x02, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x63, 0x65, 0x6c, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_proto_test_v1_proto3_test_all_types_proto_rawDescOnce sync.Once + file_proto_test_v1_proto3_test_all_types_proto_rawDescData = file_proto_test_v1_proto3_test_all_types_proto_rawDesc +) + +func file_proto_test_v1_proto3_test_all_types_proto_rawDescGZIP() []byte { + file_proto_test_v1_proto3_test_all_types_proto_rawDescOnce.Do(func() { + file_proto_test_v1_proto3_test_all_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_test_v1_proto3_test_all_types_proto_rawDescData) + }) + return file_proto_test_v1_proto3_test_all_types_proto_rawDescData +} + +var file_proto_test_v1_proto3_test_all_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_proto_test_v1_proto3_test_all_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_proto_test_v1_proto3_test_all_types_proto_goTypes = []interface{}{ + (GlobalEnum)(0), // 0: google.api.expr.test.v1.proto3.GlobalEnum + (TestAllTypes_NestedEnum)(0), // 1: google.api.expr.test.v1.proto3.TestAllTypes.NestedEnum + (*TestAllTypes)(nil), // 2: google.api.expr.test.v1.proto3.TestAllTypes + (*NestedTestAllTypes)(nil), // 3: google.api.expr.test.v1.proto3.NestedTestAllTypes + (*TestAllTypes_NestedMessage)(nil), // 4: google.api.expr.test.v1.proto3.TestAllTypes.NestedMessage + nil, // 5: google.api.expr.test.v1.proto3.TestAllTypes.MapStringStringEntry + nil, // 6: google.api.expr.test.v1.proto3.TestAllTypes.MapInt64NestedTypeEntry + (*any.Any)(nil), // 7: google.protobuf.Any + (*duration.Duration)(nil), // 8: google.protobuf.Duration + (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*_struct.Struct)(nil), // 10: google.protobuf.Struct + (*_struct.Value)(nil), // 11: google.protobuf.Value + (*wrappers.Int64Value)(nil), // 12: google.protobuf.Int64Value + (*wrappers.Int32Value)(nil), // 13: google.protobuf.Int32Value + (*wrappers.DoubleValue)(nil), // 14: google.protobuf.DoubleValue + (*wrappers.FloatValue)(nil), // 15: google.protobuf.FloatValue + (*wrappers.UInt64Value)(nil), // 16: google.protobuf.UInt64Value + (*wrappers.UInt32Value)(nil), // 17: google.protobuf.UInt32Value + (*wrappers.StringValue)(nil), // 18: google.protobuf.StringValue + (*wrappers.BoolValue)(nil), // 19: google.protobuf.BoolValue + (*wrappers.BytesValue)(nil), // 20: google.protobuf.BytesValue + (*_struct.ListValue)(nil), // 21: google.protobuf.ListValue +} +var file_proto_test_v1_proto3_test_all_types_proto_depIdxs = []int32{ + 7, // 0: google.api.expr.test.v1.proto3.TestAllTypes.single_any:type_name -> google.protobuf.Any + 8, // 1: google.api.expr.test.v1.proto3.TestAllTypes.single_duration:type_name -> google.protobuf.Duration + 9, // 2: google.api.expr.test.v1.proto3.TestAllTypes.single_timestamp:type_name -> google.protobuf.Timestamp + 10, // 3: google.api.expr.test.v1.proto3.TestAllTypes.single_struct:type_name -> google.protobuf.Struct + 11, // 4: google.api.expr.test.v1.proto3.TestAllTypes.single_value:type_name -> google.protobuf.Value + 12, // 5: google.api.expr.test.v1.proto3.TestAllTypes.single_int64_wrapper:type_name -> google.protobuf.Int64Value + 13, // 6: google.api.expr.test.v1.proto3.TestAllTypes.single_int32_wrapper:type_name -> google.protobuf.Int32Value + 14, // 7: google.api.expr.test.v1.proto3.TestAllTypes.single_double_wrapper:type_name -> google.protobuf.DoubleValue + 15, // 8: google.api.expr.test.v1.proto3.TestAllTypes.single_float_wrapper:type_name -> google.protobuf.FloatValue + 16, // 9: google.api.expr.test.v1.proto3.TestAllTypes.single_uint64_wrapper:type_name -> google.protobuf.UInt64Value + 17, // 10: google.api.expr.test.v1.proto3.TestAllTypes.single_uint32_wrapper:type_name -> google.protobuf.UInt32Value + 18, // 11: google.api.expr.test.v1.proto3.TestAllTypes.single_string_wrapper:type_name -> google.protobuf.StringValue + 19, // 12: google.api.expr.test.v1.proto3.TestAllTypes.single_bool_wrapper:type_name -> google.protobuf.BoolValue + 20, // 13: google.api.expr.test.v1.proto3.TestAllTypes.single_bytes_wrapper:type_name -> google.protobuf.BytesValue + 21, // 14: google.api.expr.test.v1.proto3.TestAllTypes.list_value:type_name -> google.protobuf.ListValue + 4, // 15: google.api.expr.test.v1.proto3.TestAllTypes.single_nested_message:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.NestedMessage + 1, // 16: google.api.expr.test.v1.proto3.TestAllTypes.single_nested_enum:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.NestedEnum + 4, // 17: google.api.expr.test.v1.proto3.TestAllTypes.standalone_message:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.NestedMessage + 1, // 18: google.api.expr.test.v1.proto3.TestAllTypes.standalone_enum:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.NestedEnum + 4, // 19: google.api.expr.test.v1.proto3.TestAllTypes.repeated_nested_message:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.NestedMessage + 1, // 20: google.api.expr.test.v1.proto3.TestAllTypes.repeated_nested_enum:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.NestedEnum + 4, // 21: google.api.expr.test.v1.proto3.TestAllTypes.repeated_lazy_message:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.NestedMessage + 5, // 22: google.api.expr.test.v1.proto3.TestAllTypes.map_string_string:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.MapStringStringEntry + 6, // 23: google.api.expr.test.v1.proto3.TestAllTypes.map_int64_nested_type:type_name -> google.api.expr.test.v1.proto3.TestAllTypes.MapInt64NestedTypeEntry + 3, // 24: google.api.expr.test.v1.proto3.NestedTestAllTypes.child:type_name -> google.api.expr.test.v1.proto3.NestedTestAllTypes + 2, // 25: google.api.expr.test.v1.proto3.NestedTestAllTypes.payload:type_name -> google.api.expr.test.v1.proto3.TestAllTypes + 3, // 26: google.api.expr.test.v1.proto3.TestAllTypes.MapInt64NestedTypeEntry.value:type_name -> google.api.expr.test.v1.proto3.NestedTestAllTypes + 27, // [27:27] is the sub-list for method output_type + 27, // [27:27] is the sub-list for method input_type + 27, // [27:27] is the sub-list for extension type_name + 27, // [27:27] is the sub-list for extension extendee + 0, // [0:27] is the sub-list for field type_name +} + +func init() { file_proto_test_v1_proto3_test_all_types_proto_init() } +func file_proto_test_v1_proto3_test_all_types_proto_init() { + if File_proto_test_v1_proto3_test_all_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_test_v1_proto3_test_all_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TestAllTypes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_proto3_test_all_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NestedTestAllTypes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_proto3_test_all_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TestAllTypes_NestedMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_proto_test_v1_proto3_test_all_types_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*TestAllTypes_SingleNestedMessage)(nil), + (*TestAllTypes_SingleNestedEnum)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_test_v1_proto3_test_all_types_proto_rawDesc, + NumEnums: 2, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_test_v1_proto3_test_all_types_proto_goTypes, + DependencyIndexes: file_proto_test_v1_proto3_test_all_types_proto_depIdxs, + EnumInfos: file_proto_test_v1_proto3_test_all_types_proto_enumTypes, + MessageInfos: file_proto_test_v1_proto3_test_all_types_proto_msgTypes, + }.Build() + File_proto_test_v1_proto3_test_all_types_proto = out.File + file_proto_test_v1_proto3_test_all_types_proto_rawDesc = nil + file_proto_test_v1_proto3_test_all_types_proto_goTypes = nil + file_proto_test_v1_proto3_test_all_types_proto_depIdxs = nil } diff --git a/proto/test/v1/testpb/envcheck.pb.go b/proto/test/v1/testpb/envcheck.pb.go index 4745534d..5f487a63 100755 --- a/proto/test/v1/testpb/envcheck.pb.go +++ b/proto/test/v1/testpb/envcheck.pb.go @@ -1,91 +1,167 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.13.0 // source: proto/test/v1/envcheck.proto package testpb import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +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) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Env struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Decl []*v1alpha1.Decl `protobuf:"bytes,2,rep,name=decl,proto3" json:"decl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Env) Reset() { *m = Env{} } -func (m *Env) String() string { return proto.CompactTextString(m) } -func (*Env) ProtoMessage() {} -func (*Env) Descriptor() ([]byte, []int) { - return fileDescriptor_cd88f4d86742eb7c, []int{0} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Decl []*v1alpha1.Decl `protobuf:"bytes,2,rep,name=decl,proto3" json:"decl,omitempty"` } -func (m *Env) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Env.Unmarshal(m, b) -} -func (m *Env) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Env.Marshal(b, m, deterministic) -} -func (m *Env) XXX_Merge(src proto.Message) { - xxx_messageInfo_Env.Merge(m, src) +func (x *Env) Reset() { + *x = Env{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_envcheck_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Env) XXX_Size() int { - return xxx_messageInfo_Env.Size(m) + +func (x *Env) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Env) XXX_DiscardUnknown() { - xxx_messageInfo_Env.DiscardUnknown(m) + +func (*Env) ProtoMessage() {} + +func (x *Env) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_envcheck_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Env proto.InternalMessageInfo +// Deprecated: Use Env.ProtoReflect.Descriptor instead. +func (*Env) Descriptor() ([]byte, []int) { + return file_proto_test_v1_envcheck_proto_rawDescGZIP(), []int{0} +} -func (m *Env) GetName() string { - if m != nil { - return m.Name +func (x *Env) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Env) GetDecl() []*v1alpha1.Decl { - if m != nil { - return m.Decl +func (x *Env) GetDecl() []*v1alpha1.Decl { + if x != nil { + return x.Decl } return nil } -func init() { - proto.RegisterType((*Env)(nil), "google.api.expr.test.v1.Env") +var File_proto_test_v1_envcheck_proto protoreflect.FileDescriptor + +var file_proto_test_v1_envcheck_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x65, 0x6e, 0x76, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x4d, 0x0a, 0x03, 0x45, 0x6e, 0x76, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x64, 0x65, + 0x63, 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x6c, 0x52, 0x04, 0x64, 0x65, 0x63, 0x6c, 0x42, 0x2b, + 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x65, 0x6c, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x2f, 0x74, 0x65, 0x73, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_proto_test_v1_envcheck_proto_rawDescOnce sync.Once + file_proto_test_v1_envcheck_proto_rawDescData = file_proto_test_v1_envcheck_proto_rawDesc +) + +func file_proto_test_v1_envcheck_proto_rawDescGZIP() []byte { + file_proto_test_v1_envcheck_proto_rawDescOnce.Do(func() { + file_proto_test_v1_envcheck_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_test_v1_envcheck_proto_rawDescData) + }) + return file_proto_test_v1_envcheck_proto_rawDescData } -func init() { proto.RegisterFile("proto/test/v1/envcheck.proto", fileDescriptor_cd88f4d86742eb7c) } - -var fileDescriptor_cd88f4d86742eb7c = []byte{ - // 190 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x28, 0xca, 0x2f, - 0xc9, 0xd7, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x2f, 0x33, 0xd4, 0x4f, 0xcd, 0x2b, 0x4b, 0xce, 0x48, - 0x4d, 0xce, 0xd6, 0x03, 0x0b, 0x0b, 0x89, 0xa7, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4, 0xea, 0x25, 0x16, - 0x64, 0xea, 0xa5, 0x56, 0x14, 0x14, 0xe9, 0x81, 0xd4, 0xe9, 0x95, 0x19, 0x4a, 0xa9, 0x41, 0x24, - 0xf4, 0x13, 0x0b, 0x32, 0xf5, 0x41, 0x12, 0xfa, 0x65, 0x86, 0x89, 0x39, 0x05, 0x19, 0x89, 0x86, - 0xfa, 0x60, 0xed, 0xa9, 0x29, 0x10, 0x03, 0x94, 0x7c, 0xb9, 0x98, 0x5d, 0xf3, 0xca, 0x84, 0x84, - 0xb8, 0x58, 0xf2, 0x12, 0x73, 0x53, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x21, - 0x23, 0x2e, 0x96, 0x94, 0xd4, 0xe4, 0x1c, 0x09, 0x26, 0x05, 0x66, 0x0d, 0x6e, 0x23, 0x39, 0x3d, - 0x74, 0xab, 0x60, 0x26, 0xea, 0xb9, 0xa4, 0x26, 0xe7, 0x04, 0x81, 0xd5, 0x3a, 0x69, 0x47, 0x69, - 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0xdd, 0x90, 0x9c, 0x9a, - 0xa3, 0x5b, 0x5c, 0x90, 0x9a, 0x0c, 0xf7, 0x04, 0x88, 0x2e, 0x48, 0x4a, 0x62, 0x03, 0x3b, 0xc1, - 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x62, 0x1b, 0xae, 0x2a, 0xe3, 0x00, 0x00, 0x00, +var file_proto_test_v1_envcheck_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_proto_test_v1_envcheck_proto_goTypes = []interface{}{ + (*Env)(nil), // 0: google.api.expr.test.v1.Env + (*v1alpha1.Decl)(nil), // 1: google.api.expr.v1alpha1.Decl +} +var file_proto_test_v1_envcheck_proto_depIdxs = []int32{ + 1, // 0: google.api.expr.test.v1.Env.decl:type_name -> google.api.expr.v1alpha1.Decl + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_proto_test_v1_envcheck_proto_init() } +func file_proto_test_v1_envcheck_proto_init() { + if File_proto_test_v1_envcheck_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_test_v1_envcheck_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Env); 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_proto_test_v1_envcheck_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_test_v1_envcheck_proto_goTypes, + DependencyIndexes: file_proto_test_v1_envcheck_proto_depIdxs, + MessageInfos: file_proto_test_v1_envcheck_proto_msgTypes, + }.Build() + File_proto_test_v1_envcheck_proto = out.File + file_proto_test_v1_envcheck_proto_rawDesc = nil + file_proto_test_v1_envcheck_proto_goTypes = nil + file_proto_test_v1_envcheck_proto_depIdxs = nil } diff --git a/proto/test/v1/testpb/simple.pb.go b/proto/test/v1/testpb/simple.pb.go index e8ff69e5..244400cb 100755 --- a/proto/test/v1/testpb/simple.pb.go +++ b/proto/test/v1/testpb/simple.pb.go @@ -1,137 +1,162 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.13.0 // source: proto/test/v1/simple.proto package testpb import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +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) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type SimpleTestFile struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Section []*SimpleTestSection `protobuf:"bytes,3,rep,name=section,proto3" json:"section,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleTestFile) Reset() { *m = SimpleTestFile{} } -func (m *SimpleTestFile) String() string { return proto.CompactTextString(m) } -func (*SimpleTestFile) ProtoMessage() {} -func (*SimpleTestFile) Descriptor() ([]byte, []int) { - return fileDescriptor_26fa35b7026394de, []int{0} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Section []*SimpleTestSection `protobuf:"bytes,3,rep,name=section,proto3" json:"section,omitempty"` } -func (m *SimpleTestFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleTestFile.Unmarshal(m, b) -} -func (m *SimpleTestFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleTestFile.Marshal(b, m, deterministic) -} -func (m *SimpleTestFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleTestFile.Merge(m, src) +func (x *SimpleTestFile) Reset() { + *x = SimpleTestFile{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_simple_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleTestFile) XXX_Size() int { - return xxx_messageInfo_SimpleTestFile.Size(m) + +func (x *SimpleTestFile) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleTestFile) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleTestFile.DiscardUnknown(m) + +func (*SimpleTestFile) ProtoMessage() {} + +func (x *SimpleTestFile) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_simple_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleTestFile proto.InternalMessageInfo +// Deprecated: Use SimpleTestFile.ProtoReflect.Descriptor instead. +func (*SimpleTestFile) Descriptor() ([]byte, []int) { + return file_proto_test_v1_simple_proto_rawDescGZIP(), []int{0} +} -func (m *SimpleTestFile) GetName() string { - if m != nil { - return m.Name +func (x *SimpleTestFile) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *SimpleTestFile) GetDescription() string { - if m != nil { - return m.Description +func (x *SimpleTestFile) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *SimpleTestFile) GetSection() []*SimpleTestSection { - if m != nil { - return m.Section +func (x *SimpleTestFile) GetSection() []*SimpleTestSection { + if x != nil { + return x.Section } return nil } type SimpleTestSection struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Test []*SimpleTest `protobuf:"bytes,3,rep,name=test,proto3" json:"test,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SimpleTestSection) Reset() { *m = SimpleTestSection{} } -func (m *SimpleTestSection) String() string { return proto.CompactTextString(m) } -func (*SimpleTestSection) ProtoMessage() {} -func (*SimpleTestSection) Descriptor() ([]byte, []int) { - return fileDescriptor_26fa35b7026394de, []int{1} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Test []*SimpleTest `protobuf:"bytes,3,rep,name=test,proto3" json:"test,omitempty"` } -func (m *SimpleTestSection) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleTestSection.Unmarshal(m, b) -} -func (m *SimpleTestSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleTestSection.Marshal(b, m, deterministic) -} -func (m *SimpleTestSection) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleTestSection.Merge(m, src) +func (x *SimpleTestSection) Reset() { + *x = SimpleTestSection{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_simple_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleTestSection) XXX_Size() int { - return xxx_messageInfo_SimpleTestSection.Size(m) + +func (x *SimpleTestSection) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleTestSection) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleTestSection.DiscardUnknown(m) + +func (*SimpleTestSection) ProtoMessage() {} + +func (x *SimpleTestSection) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_simple_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleTestSection proto.InternalMessageInfo +// Deprecated: Use SimpleTestSection.ProtoReflect.Descriptor instead. +func (*SimpleTestSection) Descriptor() ([]byte, []int) { + return file_proto_test_v1_simple_proto_rawDescGZIP(), []int{1} +} -func (m *SimpleTestSection) GetName() string { - if m != nil { - return m.Name +func (x *SimpleTestSection) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *SimpleTestSection) GetDescription() string { - if m != nil { - return m.Description +func (x *SimpleTestSection) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *SimpleTestSection) GetTest() []*SimpleTest { - if m != nil { - return m.Test +func (x *SimpleTestSection) GetTest() []*SimpleTest { + if x != nil { + return x.Test } return nil } type SimpleTest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Expr string `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"` @@ -140,95 +165,141 @@ type SimpleTest struct { TypeEnv []*v1alpha1.Decl `protobuf:"bytes,6,rep,name=type_env,json=typeEnv,proto3" json:"type_env,omitempty"` Container string `protobuf:"bytes,13,opt,name=container,proto3" json:"container,omitempty"` Bindings map[string]*v1alpha1.ExprValue `protobuf:"bytes,7,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Types that are valid to be assigned to ResultMatcher: + // Types that are assignable to ResultMatcher: // *SimpleTest_Value // *SimpleTest_EvalError // *SimpleTest_AnyEvalErrors // *SimpleTest_Unknown // *SimpleTest_AnyUnknowns - ResultMatcher isSimpleTest_ResultMatcher `protobuf_oneof:"result_matcher"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ResultMatcher isSimpleTest_ResultMatcher `protobuf_oneof:"result_matcher"` } -func (m *SimpleTest) Reset() { *m = SimpleTest{} } -func (m *SimpleTest) String() string { return proto.CompactTextString(m) } -func (*SimpleTest) ProtoMessage() {} -func (*SimpleTest) Descriptor() ([]byte, []int) { - return fileDescriptor_26fa35b7026394de, []int{2} +func (x *SimpleTest) Reset() { + *x = SimpleTest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_simple_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SimpleTest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SimpleTest.Unmarshal(m, b) -} -func (m *SimpleTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SimpleTest.Marshal(b, m, deterministic) -} -func (m *SimpleTest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SimpleTest.Merge(m, src) +func (x *SimpleTest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleTest) XXX_Size() int { - return xxx_messageInfo_SimpleTest.Size(m) -} -func (m *SimpleTest) XXX_DiscardUnknown() { - xxx_messageInfo_SimpleTest.DiscardUnknown(m) + +func (*SimpleTest) ProtoMessage() {} + +func (x *SimpleTest) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_simple_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SimpleTest proto.InternalMessageInfo +// Deprecated: Use SimpleTest.ProtoReflect.Descriptor instead. +func (*SimpleTest) Descriptor() ([]byte, []int) { + return file_proto_test_v1_simple_proto_rawDescGZIP(), []int{2} +} -func (m *SimpleTest) GetName() string { - if m != nil { - return m.Name +func (x *SimpleTest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *SimpleTest) GetDescription() string { - if m != nil { - return m.Description +func (x *SimpleTest) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *SimpleTest) GetExpr() string { - if m != nil { - return m.Expr +func (x *SimpleTest) GetExpr() string { + if x != nil { + return x.Expr } return "" } -func (m *SimpleTest) GetDisableMacros() bool { - if m != nil { - return m.DisableMacros +func (x *SimpleTest) GetDisableMacros() bool { + if x != nil { + return x.DisableMacros } return false } -func (m *SimpleTest) GetDisableCheck() bool { - if m != nil { - return m.DisableCheck +func (x *SimpleTest) GetDisableCheck() bool { + if x != nil { + return x.DisableCheck } return false } -func (m *SimpleTest) GetTypeEnv() []*v1alpha1.Decl { - if m != nil { - return m.TypeEnv +func (x *SimpleTest) GetTypeEnv() []*v1alpha1.Decl { + if x != nil { + return x.TypeEnv } return nil } -func (m *SimpleTest) GetContainer() string { - if m != nil { - return m.Container +func (x *SimpleTest) GetContainer() string { + if x != nil { + return x.Container } return "" } -func (m *SimpleTest) GetBindings() map[string]*v1alpha1.ExprValue { +func (x *SimpleTest) GetBindings() map[string]*v1alpha1.ExprValue { + if x != nil { + return x.Bindings + } + return nil +} + +func (m *SimpleTest) GetResultMatcher() isSimpleTest_ResultMatcher { if m != nil { - return m.Bindings + return m.ResultMatcher + } + return nil +} + +func (x *SimpleTest) GetValue() *v1alpha1.Value { + if x, ok := x.GetResultMatcher().(*SimpleTest_Value); ok { + return x.Value + } + return nil +} + +func (x *SimpleTest) GetEvalError() *v1alpha1.ErrorSet { + if x, ok := x.GetResultMatcher().(*SimpleTest_EvalError); ok { + return x.EvalError + } + return nil +} + +func (x *SimpleTest) GetAnyEvalErrors() *ErrorSetMatcher { + if x, ok := x.GetResultMatcher().(*SimpleTest_AnyEvalErrors); ok { + return x.AnyEvalErrors + } + return nil +} + +func (x *SimpleTest) GetUnknown() *v1alpha1.UnknownSet { + if x, ok := x.GetResultMatcher().(*SimpleTest_Unknown); ok { + return x.Unknown + } + return nil +} + +func (x *SimpleTest) GetAnyUnknowns() *UnknownSetMatcher { + if x, ok := x.GetResultMatcher().(*SimpleTest_AnyUnknowns); ok { + return x.AnyUnknowns } return nil } @@ -267,187 +338,333 @@ func (*SimpleTest_Unknown) isSimpleTest_ResultMatcher() {} func (*SimpleTest_AnyUnknowns) isSimpleTest_ResultMatcher() {} -func (m *SimpleTest) GetResultMatcher() isSimpleTest_ResultMatcher { - if m != nil { - return m.ResultMatcher - } - return nil +type ErrorSetMatcher struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Errors []*v1alpha1.ErrorSet `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` } -func (m *SimpleTest) GetValue() *v1alpha1.Value { - if x, ok := m.GetResultMatcher().(*SimpleTest_Value); ok { - return x.Value +func (x *ErrorSetMatcher) Reset() { + *x = ErrorSetMatcher{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_simple_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *SimpleTest) GetEvalError() *v1alpha1.ErrorSet { - if x, ok := m.GetResultMatcher().(*SimpleTest_EvalError); ok { - return x.EvalError - } - return nil +func (x *ErrorSetMatcher) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SimpleTest) GetAnyEvalErrors() *ErrorSetMatcher { - if x, ok := m.GetResultMatcher().(*SimpleTest_AnyEvalErrors); ok { - return x.AnyEvalErrors +func (*ErrorSetMatcher) ProtoMessage() {} + +func (x *ErrorSetMatcher) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_simple_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 nil + return mi.MessageOf(x) } -func (m *SimpleTest) GetUnknown() *v1alpha1.UnknownSet { - if x, ok := m.GetResultMatcher().(*SimpleTest_Unknown); ok { - return x.Unknown - } - return nil +// Deprecated: Use ErrorSetMatcher.ProtoReflect.Descriptor instead. +func (*ErrorSetMatcher) Descriptor() ([]byte, []int) { + return file_proto_test_v1_simple_proto_rawDescGZIP(), []int{3} } -func (m *SimpleTest) GetAnyUnknowns() *UnknownSetMatcher { - if x, ok := m.GetResultMatcher().(*SimpleTest_AnyUnknowns); ok { - return x.AnyUnknowns +func (x *ErrorSetMatcher) GetErrors() []*v1alpha1.ErrorSet { + if x != nil { + return x.Errors } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*SimpleTest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*SimpleTest_Value)(nil), - (*SimpleTest_EvalError)(nil), - (*SimpleTest_AnyEvalErrors)(nil), - (*SimpleTest_Unknown)(nil), - (*SimpleTest_AnyUnknowns)(nil), - } -} +type UnknownSetMatcher struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ErrorSetMatcher struct { - Errors []*v1alpha1.ErrorSet `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Unknowns []*v1alpha1.UnknownSet `protobuf:"bytes,1,rep,name=unknowns,proto3" json:"unknowns,omitempty"` } -func (m *ErrorSetMatcher) Reset() { *m = ErrorSetMatcher{} } -func (m *ErrorSetMatcher) String() string { return proto.CompactTextString(m) } -func (*ErrorSetMatcher) ProtoMessage() {} -func (*ErrorSetMatcher) Descriptor() ([]byte, []int) { - return fileDescriptor_26fa35b7026394de, []int{3} +func (x *UnknownSetMatcher) Reset() { + *x = UnknownSetMatcher{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_test_v1_simple_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ErrorSetMatcher) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ErrorSetMatcher.Unmarshal(m, b) -} -func (m *ErrorSetMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ErrorSetMatcher.Marshal(b, m, deterministic) -} -func (m *ErrorSetMatcher) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorSetMatcher.Merge(m, src) -} -func (m *ErrorSetMatcher) XXX_Size() int { - return xxx_messageInfo_ErrorSetMatcher.Size(m) -} -func (m *ErrorSetMatcher) XXX_DiscardUnknown() { - xxx_messageInfo_ErrorSetMatcher.DiscardUnknown(m) +func (x *UnknownSetMatcher) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ErrorSetMatcher proto.InternalMessageInfo +func (*UnknownSetMatcher) ProtoMessage() {} -func (m *ErrorSetMatcher) GetErrors() []*v1alpha1.ErrorSet { - if m != nil { - return m.Errors +func (x *UnknownSetMatcher) ProtoReflect() protoreflect.Message { + mi := &file_proto_test_v1_simple_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 nil + return mi.MessageOf(x) } -type UnknownSetMatcher struct { - Unknowns []*v1alpha1.UnknownSet `protobuf:"bytes,1,rep,name=unknowns,proto3" json:"unknowns,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UnknownSetMatcher) Reset() { *m = UnknownSetMatcher{} } -func (m *UnknownSetMatcher) String() string { return proto.CompactTextString(m) } -func (*UnknownSetMatcher) ProtoMessage() {} +// Deprecated: Use UnknownSetMatcher.ProtoReflect.Descriptor instead. func (*UnknownSetMatcher) Descriptor() ([]byte, []int) { - return fileDescriptor_26fa35b7026394de, []int{4} -} - -func (m *UnknownSetMatcher) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UnknownSetMatcher.Unmarshal(m, b) -} -func (m *UnknownSetMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UnknownSetMatcher.Marshal(b, m, deterministic) -} -func (m *UnknownSetMatcher) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnknownSetMatcher.Merge(m, src) -} -func (m *UnknownSetMatcher) XXX_Size() int { - return xxx_messageInfo_UnknownSetMatcher.Size(m) -} -func (m *UnknownSetMatcher) XXX_DiscardUnknown() { - xxx_messageInfo_UnknownSetMatcher.DiscardUnknown(m) + return file_proto_test_v1_simple_proto_rawDescGZIP(), []int{4} } -var xxx_messageInfo_UnknownSetMatcher proto.InternalMessageInfo - -func (m *UnknownSetMatcher) GetUnknowns() []*v1alpha1.UnknownSet { - if m != nil { - return m.Unknowns +func (x *UnknownSetMatcher) GetUnknowns() []*v1alpha1.UnknownSet { + if x != nil { + return x.Unknowns } return nil } -func init() { - proto.RegisterType((*SimpleTestFile)(nil), "google.api.expr.test.v1.SimpleTestFile") - proto.RegisterType((*SimpleTestSection)(nil), "google.api.expr.test.v1.SimpleTestSection") - proto.RegisterType((*SimpleTest)(nil), "google.api.expr.test.v1.SimpleTest") - proto.RegisterMapType((map[string]*v1alpha1.ExprValue)(nil), "google.api.expr.test.v1.SimpleTest.BindingsEntry") - proto.RegisterType((*ErrorSetMatcher)(nil), "google.api.expr.test.v1.ErrorSetMatcher") - proto.RegisterType((*UnknownSetMatcher)(nil), "google.api.expr.test.v1.UnknownSetMatcher") -} - -func init() { proto.RegisterFile("proto/test/v1/simple.proto", fileDescriptor_26fa35b7026394de) } - -var fileDescriptor_26fa35b7026394de = []byte{ - // 610 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0x1a, 0x3d, - 0x14, 0xcd, 0x04, 0xc2, 0xcf, 0x25, 0xe4, 0xc7, 0x9b, 0xcf, 0x42, 0x9f, 0x5a, 0x04, 0x69, 0x45, - 0x5b, 0x75, 0x46, 0xa4, 0x8b, 0x34, 0x59, 0x45, 0x49, 0xa8, 0xb2, 0x41, 0x95, 0x26, 0x4d, 0x17, - 0xdd, 0x50, 0x33, 0x5c, 0xc1, 0x28, 0x83, 0x67, 0x64, 0x9b, 0x69, 0xd8, 0x76, 0xdd, 0xb7, 0xe8, - 0x8b, 0x56, 0xf6, 0x78, 0xa0, 0x2d, 0x9a, 0x0a, 0x65, 0x85, 0xe7, 0xf8, 0x9c, 0xe3, 0x73, 0xef, - 0x35, 0x86, 0x56, 0x22, 0x62, 0x15, 0x7b, 0x0a, 0xa5, 0xf2, 0xd2, 0xbe, 0x27, 0xc3, 0x79, 0x12, - 0xa1, 0x6b, 0x40, 0xf2, 0xdf, 0x34, 0x8e, 0xa7, 0x11, 0xba, 0x2c, 0x09, 0x5d, 0x7c, 0x4c, 0x84, - 0xab, 0x59, 0x6e, 0xda, 0x6f, 0xbd, 0xcc, 0x36, 0x3c, 0x96, 0x84, 0x9e, 0xde, 0xf0, 0xd2, 0x3e, - 0x8b, 0x92, 0x19, 0xeb, 0x7b, 0xc1, 0x0c, 0x83, 0x07, 0x9c, 0x64, 0x06, 0xad, 0x6e, 0x21, 0x0f, - 0x53, 0x16, 0x59, 0xd2, 0x49, 0x21, 0x29, 0x65, 0xd1, 0xc2, 0x66, 0xe9, 0xfc, 0x70, 0xe0, 0xe0, - 0xce, 0x84, 0xfb, 0x84, 0x52, 0x7d, 0x08, 0x23, 0x24, 0x04, 0xca, 0x9c, 0xcd, 0x91, 0x3a, 0x6d, - 0xa7, 0x57, 0xf7, 0xcd, 0x9a, 0xb4, 0xa1, 0x31, 0x41, 0x19, 0x88, 0x30, 0x51, 0x61, 0xcc, 0xe9, - 0xae, 0xd9, 0xfa, 0x1d, 0x22, 0x37, 0x50, 0x95, 0x18, 0x98, 0xdd, 0x52, 0xbb, 0xd4, 0x6b, 0x9c, - 0xbe, 0x76, 0x0b, 0xca, 0x74, 0xd7, 0xe7, 0xdd, 0x65, 0x0a, 0x3f, 0x97, 0x76, 0xbe, 0x3b, 0x70, - 0xbc, 0xb1, 0xfd, 0xc4, 0x44, 0x67, 0x50, 0xd6, 0x27, 0xda, 0x38, 0xdd, 0x2d, 0xe2, 0xf8, 0x46, - 0xd0, 0xf9, 0x59, 0x01, 0x58, 0x83, 0x4f, 0x3c, 0x9d, 0x40, 0x59, 0x9f, 0x42, 0x4b, 0x99, 0x4a, - 0xaf, 0xc9, 0x0b, 0x38, 0x98, 0x84, 0x92, 0x8d, 0x23, 0x1c, 0xcd, 0x59, 0x20, 0x62, 0x49, 0xcb, - 0x6d, 0xa7, 0x57, 0xf3, 0x9b, 0x16, 0x1d, 0x1a, 0x90, 0x74, 0x21, 0x07, 0x46, 0x66, 0xee, 0x74, - 0xcf, 0xb0, 0xf6, 0x2d, 0x78, 0xad, 0x31, 0x72, 0x0e, 0x35, 0xb5, 0x4c, 0x70, 0x84, 0x3c, 0xa5, - 0x15, 0x53, 0xe1, 0xb3, 0x8d, 0x0a, 0xf3, 0x89, 0xbb, 0x37, 0x18, 0x44, 0x7e, 0x55, 0xf3, 0x07, - 0x3c, 0x25, 0xff, 0x43, 0x3d, 0x88, 0xb9, 0x62, 0x21, 0x47, 0x41, 0x9b, 0x26, 0xdf, 0x1a, 0x20, - 0x43, 0xa8, 0x8d, 0x43, 0x3e, 0x09, 0xf9, 0x54, 0xd2, 0xaa, 0x31, 0xee, 0x6f, 0xd1, 0x3a, 0xf7, - 0xca, 0x6a, 0x06, 0x5c, 0x89, 0xa5, 0xbf, 0xb2, 0x20, 0x67, 0xb0, 0x67, 0xee, 0x1b, 0xad, 0xb5, - 0x9d, 0x5e, 0xe3, 0xf4, 0x79, 0x71, 0xc8, 0xcf, 0x9a, 0x76, 0xbb, 0xe3, 0x67, 0x7c, 0x72, 0x0d, - 0xa0, 0x6f, 0xf3, 0x08, 0x85, 0x88, 0x05, 0xad, 0x1b, 0x75, 0xa7, 0x58, 0x3d, 0xd0, 0xb4, 0x3b, - 0x54, 0xb7, 0x3b, 0x7e, 0x5d, 0xeb, 0xcc, 0x37, 0xf1, 0xe1, 0x90, 0xf1, 0xe5, 0x68, 0x6d, 0x24, - 0x29, 0x18, 0xa7, 0x5e, 0x61, 0x4d, 0xb9, 0xd1, 0x90, 0xa9, 0x60, 0x86, 0xe2, 0x76, 0xc7, 0x6f, - 0x32, 0xbe, 0x1c, 0xe4, 0x96, 0x92, 0x5c, 0x42, 0x75, 0xc1, 0x1f, 0x78, 0xfc, 0x8d, 0xd3, 0x86, - 0xf1, 0x3a, 0x29, 0x4e, 0x75, 0x9f, 0x11, 0xb3, 0x5c, 0xb9, 0x8c, 0x7c, 0x84, 0x7d, 0x9d, 0xca, - 0x7e, 0x4a, 0xba, 0x6f, 0x6c, 0x8a, 0xff, 0x30, 0x6b, 0x97, 0x75, 0xa8, 0x06, 0xe3, 0x4b, 0x8b, - 0xcb, 0xd6, 0x57, 0x68, 0xfe, 0xd1, 0x7f, 0x72, 0x04, 0xa5, 0x07, 0x5c, 0xda, 0x2b, 0xab, 0x97, - 0xe4, 0x3c, 0x9f, 0xc3, 0xae, 0x39, 0xac, 0xfb, 0x8f, 0x4e, 0x3e, 0x26, 0xc2, 0xcc, 0xc2, 0x4e, - 0xe2, 0x62, 0xf7, 0xbd, 0x73, 0x75, 0x04, 0x07, 0x02, 0xe5, 0x22, 0x52, 0xa3, 0x79, 0x16, 0xa1, - 0x33, 0x84, 0xc3, 0xbf, 0x5a, 0x45, 0x2e, 0xa0, 0x62, 0x9b, 0xec, 0x98, 0x8b, 0xb3, 0xc5, 0xb8, - 0x7c, 0xab, 0xe8, 0xdc, 0xc3, 0xf1, 0x46, 0x99, 0xe4, 0x12, 0x6a, 0xab, 0x26, 0x65, 0x96, 0x5b, - 0xf5, 0xda, 0x5f, 0xa9, 0xae, 0xde, 0x7c, 0x79, 0x35, 0x0d, 0xd5, 0x6c, 0x31, 0x76, 0x83, 0x78, - 0xee, 0xd9, 0x27, 0x31, 0xc0, 0xe8, 0xad, 0x4c, 0x30, 0x58, 0x3d, 0xcf, 0xfa, 0x37, 0x19, 0x8f, - 0x2b, 0xe6, 0x4d, 0x7c, 0xf7, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xd7, 0xea, 0xb7, 0xbd, 0x05, - 0x00, 0x00, +var File_proto_test_v1_simple_proto protoreflect.FileDescriptor + +var file_proto_test_v1_simple_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, + 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x01, 0x0a, 0x0e, 0x53, 0x69, 0x6d, + 0x70, 0x6c, 0x65, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x44, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6d, + 0x70, 0x6c, 0x65, 0x54, 0x65, 0x73, 0x74, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, + 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x82, 0x01, 0x0a, 0x11, 0x53, 0x69, 0x6d, 0x70, + 0x6c, 0x65, 0x54, 0x65, 0x73, 0x74, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x04, 0x74, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, + 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6d, 0x70, + 0x6c, 0x65, 0x54, 0x65, 0x73, 0x74, 0x52, 0x04, 0x74, 0x65, 0x73, 0x74, 0x22, 0xa3, 0x06, 0x0a, + 0x0a, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x65, 0x78, 0x70, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x6d, 0x61, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x64, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x63, 0x72, 0x6f, 0x73, 0x12, 0x23, 0x0a, 0x0d, + 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x12, 0x39, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x6e, 0x76, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, + 0x65, 0x63, 0x6c, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x76, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x08, 0x62, 0x69, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x65, 0x73, + 0x74, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x65, 0x76, 0x61, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, 0x09, 0x65, 0x76, + 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x52, 0x0a, 0x0f, 0x61, 0x6e, 0x79, 0x5f, 0x65, + 0x76, 0x61, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, + 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x53, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x6e, + 0x79, 0x45, 0x76, 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x75, + 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, + 0x65, 0x74, 0x48, 0x00, 0x52, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x4f, 0x0a, + 0x0c, 0x61, 0x6e, 0x79, 0x5f, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x73, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, + 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x48, + 0x00, 0x52, 0x0b, 0x61, 0x6e, 0x79, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x73, 0x1a, 0x60, + 0x0a, 0x0d, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, + 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x72, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x42, 0x10, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x72, 0x22, 0x4d, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x73, 0x22, 0x55, 0x0a, 0x11, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x4d, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x08, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, + 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x52, 0x08, + 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x73, 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x65, + 0x6c, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_proto_test_v1_simple_proto_rawDescOnce sync.Once + file_proto_test_v1_simple_proto_rawDescData = file_proto_test_v1_simple_proto_rawDesc +) + +func file_proto_test_v1_simple_proto_rawDescGZIP() []byte { + file_proto_test_v1_simple_proto_rawDescOnce.Do(func() { + file_proto_test_v1_simple_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_test_v1_simple_proto_rawDescData) + }) + return file_proto_test_v1_simple_proto_rawDescData +} + +var file_proto_test_v1_simple_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_proto_test_v1_simple_proto_goTypes = []interface{}{ + (*SimpleTestFile)(nil), // 0: google.api.expr.test.v1.SimpleTestFile + (*SimpleTestSection)(nil), // 1: google.api.expr.test.v1.SimpleTestSection + (*SimpleTest)(nil), // 2: google.api.expr.test.v1.SimpleTest + (*ErrorSetMatcher)(nil), // 3: google.api.expr.test.v1.ErrorSetMatcher + (*UnknownSetMatcher)(nil), // 4: google.api.expr.test.v1.UnknownSetMatcher + nil, // 5: google.api.expr.test.v1.SimpleTest.BindingsEntry + (*v1alpha1.Decl)(nil), // 6: google.api.expr.v1alpha1.Decl + (*v1alpha1.Value)(nil), // 7: google.api.expr.v1alpha1.Value + (*v1alpha1.ErrorSet)(nil), // 8: google.api.expr.v1alpha1.ErrorSet + (*v1alpha1.UnknownSet)(nil), // 9: google.api.expr.v1alpha1.UnknownSet + (*v1alpha1.ExprValue)(nil), // 10: google.api.expr.v1alpha1.ExprValue +} +var file_proto_test_v1_simple_proto_depIdxs = []int32{ + 1, // 0: google.api.expr.test.v1.SimpleTestFile.section:type_name -> google.api.expr.test.v1.SimpleTestSection + 2, // 1: google.api.expr.test.v1.SimpleTestSection.test:type_name -> google.api.expr.test.v1.SimpleTest + 6, // 2: google.api.expr.test.v1.SimpleTest.type_env:type_name -> google.api.expr.v1alpha1.Decl + 5, // 3: google.api.expr.test.v1.SimpleTest.bindings:type_name -> google.api.expr.test.v1.SimpleTest.BindingsEntry + 7, // 4: google.api.expr.test.v1.SimpleTest.value:type_name -> google.api.expr.v1alpha1.Value + 8, // 5: google.api.expr.test.v1.SimpleTest.eval_error:type_name -> google.api.expr.v1alpha1.ErrorSet + 3, // 6: google.api.expr.test.v1.SimpleTest.any_eval_errors:type_name -> google.api.expr.test.v1.ErrorSetMatcher + 9, // 7: google.api.expr.test.v1.SimpleTest.unknown:type_name -> google.api.expr.v1alpha1.UnknownSet + 4, // 8: google.api.expr.test.v1.SimpleTest.any_unknowns:type_name -> google.api.expr.test.v1.UnknownSetMatcher + 8, // 9: google.api.expr.test.v1.ErrorSetMatcher.errors:type_name -> google.api.expr.v1alpha1.ErrorSet + 9, // 10: google.api.expr.test.v1.UnknownSetMatcher.unknowns:type_name -> google.api.expr.v1alpha1.UnknownSet + 10, // 11: google.api.expr.test.v1.SimpleTest.BindingsEntry.value:type_name -> google.api.expr.v1alpha1.ExprValue + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_proto_test_v1_simple_proto_init() } +func file_proto_test_v1_simple_proto_init() { + if File_proto_test_v1_simple_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_test_v1_simple_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleTestFile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_simple_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleTestSection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_simple_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SimpleTest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_simple_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ErrorSetMatcher); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_test_v1_simple_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnknownSetMatcher); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_proto_test_v1_simple_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*SimpleTest_Value)(nil), + (*SimpleTest_EvalError)(nil), + (*SimpleTest_AnyEvalErrors)(nil), + (*SimpleTest_Unknown)(nil), + (*SimpleTest_AnyUnknowns)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_test_v1_simple_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_test_v1_simple_proto_goTypes, + DependencyIndexes: file_proto_test_v1_simple_proto_depIdxs, + MessageInfos: file_proto_test_v1_simple_proto_msgTypes, + }.Build() + File_proto_test_v1_simple_proto = out.File + file_proto_test_v1_simple_proto_rawDesc = nil + file_proto_test_v1_simple_proto_goTypes = nil + file_proto_test_v1_simple_proto_depIdxs = nil } diff --git a/tests/envcheck/BUILD.bazel b/tests/envcheck/BUILD.bazel index cf233d5b..44175eac 100644 --- a/tests/envcheck/BUILD.bazel +++ b/tests/envcheck/BUILD.bazel @@ -18,9 +18,11 @@ go_library( "//tools/celrpc:go_default_library", "@com_github_golang_protobuf//proto:go_default_library", "@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library", + "@org_golang_google_genproto//googleapis/api/expr/conformance/v1alpha1:go_default_library", "@org_golang_google_genproto//googleapis/rpc/status:go_default_library", "@org_golang_google_grpc//codes:go_default_library", "@org_golang_google_grpc//status:go_default_library", + "@org_golang_google_protobuf//proto:go_default_library", ], ) @@ -34,9 +36,9 @@ go_test( srcs = ["envcheck_test.go"], embed = [":go_default_library"], deps = [ - "@com_github_golang_protobuf//proto:go_default_library", "//proto/test/v1:testpb_go_proto", "//tools/celrpc:go_default_library", + "@org_golang_google_protobuf//encoding/prototext:go_default_library", ], # This is the magic setting that lets external invokers see # files in their expected locations. diff --git a/tests/envcheck/envcheck.go b/tests/envcheck/envcheck.go index bd93ad3b..bac07f50 100644 --- a/tests/envcheck/envcheck.go +++ b/tests/envcheck/envcheck.go @@ -68,11 +68,13 @@ import ( "fmt" "testing" - "github.com/golang/protobuf/proto" "github.com/google/cel-spec/tools/celrpc" + "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" + confpb "google.golang.org/genproto/googleapis/api/expr/conformance/v1alpha1" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" spb "google.golang.org/genproto/googleapis/rpc/status" ) @@ -327,8 +329,8 @@ func (r *runConfig) runProg(name string, prog *exprpb.Expr) (*exprpb.ExprValue, Expr: prog, SourceInfo: &exprpb.SourceInfo{}, } - ereq := exprpb.EvalRequest{ - ExprKind: &exprpb.EvalRequest_ParsedExpr{ParsedExpr: parsedExpr}, + ereq := confpb.EvalRequest{ + ExprKind: &confpb.EvalRequest_ParsedExpr{ParsedExpr: parsedExpr}, } eres, err := r.client.Eval(context.Background(), &ereq) if err != nil { diff --git a/tests/envcheck/envcheck_test.go b/tests/envcheck/envcheck_test.go index 8a43065c..89843772 100644 --- a/tests/envcheck/envcheck_test.go +++ b/tests/envcheck/envcheck_test.go @@ -22,9 +22,10 @@ import ( "os" "testing" - "github.com/golang/protobuf/proto" "github.com/google/cel-spec/tools/celrpc" + "google.golang.org/protobuf/encoding/prototext" + envpb "github.com/google/cel-spec/proto/test/v1/testpb" ) @@ -59,9 +60,8 @@ func parseEnvFile(filename string) (*envpb.Env, error) { if err != nil { return nil, err } - s := string(bytes) var pb envpb.Env - err = proto.UnmarshalText(s, &pb) + err = prototext.Unmarshal(bytes, &pb) if err != nil { return nil, err } diff --git a/tests/simple/BUILD.bazel b/tests/simple/BUILD.bazel index a427185e..3da094a4 100644 --- a/tests/simple/BUILD.bazel +++ b/tests/simple/BUILD.bazel @@ -17,8 +17,9 @@ go_library( deps = [ "//proto/test/v1:testpb_go_proto", "//tools/celrpc:go_default_library", - "@com_github_golang_protobuf//proto:go_default_library", + "@org_golang_google_protobuf//encoding/prototext:go_default_library", "@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library", + "@org_golang_google_genproto//googleapis/api/expr/conformance/v1alpha1:go_default_library", ], ) @@ -32,9 +33,10 @@ go_test( srcs = ["simple_test.go"], embed = [":go_default_library"], deps = [ - "@com_github_golang_protobuf//proto:go_default_library", - "@com_github_golang_protobuf//ptypes/any:go_default_library", - "@com_github_golang_protobuf//ptypes/struct:go_default_library", + "@org_golang_google_protobuf//proto:go_default_library", + "@org_golang_google_protobuf//encoding/prototext:go_default_library", + "@org_golang_google_protobuf//types/known/anypb:go_default_library", + "@org_golang_google_protobuf//types/known/structpb:go_default_library", "@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library", "//proto/test/v1:testpb_go_proto", "//proto/test/v1/proto2:test_all_types_go_proto", diff --git a/tests/simple/simple.go b/tests/simple/simple.go index 79205aaa..407f1012 100644 --- a/tests/simple/simple.go +++ b/tests/simple/simple.go @@ -37,13 +37,17 @@ Example test data: package simple import ( + "bytes" "context" "fmt" - "github.com/golang/protobuf/proto" "github.com/google/cel-spec/tools/celrpc" + "google.golang.org/protobuf/encoding/prototext" + spb "github.com/google/cel-spec/proto/test/v1/testpb" + + confpb "google.golang.org/genproto/googleapis/api/expr/conformance/v1alpha1" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) @@ -141,11 +145,18 @@ func MatchValue(tag string, expected *exprpb.Value, actual *exprpb.Value) error // - surfaces sign differences for floating-point zero. // Text marshaling isn't documented as deterministic, // but it appears to be so in practice. - text := &proto.TextMarshaler{ExpandAny: true} - sExpected := text.Text(expected) - sActual := text.Text(actual) - if sExpected != sActual { - return fmt.Errorf("%s: Eval got [%v], want [%v]", tag, sActual, sExpected) + + // TODO: consider replacing this logic with protocmp and go-cmp + sExpected, err := prototext.Marshal(expected) + if err != nil { + return fmt.Errorf("prototext.Marshal(%v) failed: %v", expected, err) + } + sActual, err := prototext.Marshal(actual) + if err != nil { + return fmt.Errorf("prototext.Marshal(%v) failed: %v", actual, err) + } + if !bytes.Equal(sExpected, sActual) { + return fmt.Errorf("%s: Eval got [%v], want [%v]", tag, string(sActual), string(sExpected)) } } return nil @@ -171,7 +182,7 @@ func (r *runConfig) RunTest(t *spb.SimpleTest) error { } // Parse - preq := exprpb.ParseRequest{ + preq := confpb.ParseRequest{ CelSource: t.Expr, SourceLocation: t.Name, DisableMacros: t.DisableMacros, @@ -195,7 +206,7 @@ func (r *runConfig) RunTest(t *spb.SimpleTest) error { // Check (optional) var checkedExpr *exprpb.CheckedExpr if !t.DisableCheck && !r.skipCheck { - creq := exprpb.CheckRequest{ + creq := confpb.CheckRequest{ ParsedExpr: parsedExpr, TypeEnv: t.TypeEnv, Container: t.Container, @@ -221,8 +232,8 @@ func (r *runConfig) RunTest(t *spb.SimpleTest) error { // Eval if !r.checkedOnly { - err = r.RunEval(t, &exprpb.EvalRequest{ - ExprKind: &exprpb.EvalRequest_ParsedExpr{ParsedExpr: parsedExpr}, + err = r.RunEval(t, &confpb.EvalRequest{ + ExprKind: &confpb.EvalRequest_ParsedExpr{ParsedExpr: parsedExpr}, Bindings: t.Bindings, Container: t.Container, }) @@ -231,8 +242,8 @@ func (r *runConfig) RunTest(t *spb.SimpleTest) error { } } if checkedExpr != nil { - err = r.RunEval(t, &exprpb.EvalRequest{ - ExprKind: &exprpb.EvalRequest_CheckedExpr{CheckedExpr: checkedExpr}, + err = r.RunEval(t, &confpb.EvalRequest{ + ExprKind: &confpb.EvalRequest_CheckedExpr{CheckedExpr: checkedExpr}, Bindings: t.Bindings, Container: t.Container, }) @@ -243,7 +254,7 @@ func (r *runConfig) RunTest(t *spb.SimpleTest) error { return nil } -func (r *runConfig) RunEval(t *spb.SimpleTest, ereq *exprpb.EvalRequest) error { +func (r *runConfig) RunEval(t *spb.SimpleTest, ereq *confpb.EvalRequest) error { eres, err := r.evalClient.Eval(context.Background(), ereq) if err != nil { return fmt.Errorf("%s: Fatal eval RPC error: %v", t.Name, err) diff --git a/tests/simple/simple_test.go b/tests/simple/simple_test.go index b1341de3..78682218 100644 --- a/tests/simple/simple_test.go +++ b/tests/simple/simple_test.go @@ -9,14 +9,16 @@ import ( "strings" "testing" - "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/encoding/prototext" + "github.com/google/cel-spec/tools/celrpc" - anypb "github.com/golang/protobuf/ptypes/any" - structpb "github.com/golang/protobuf/ptypes/struct" + anypb "google.golang.org/protobuf/types/known/anypb" + structpb "google.golang.org/protobuf/types/known/structpb" + spb "github.com/google/cel-spec/proto/test/v1/testpb" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" - // The following are needed to link in these proto libraries // which are needed dynamically, despite not being explicitly // used in the Go source. @@ -113,9 +115,8 @@ func parseSimpleFile(filename string) (*spb.SimpleTestFile, error) { if err != nil { return nil, err } - s := string(bytes) var pb spb.SimpleTestFile - err = proto.UnmarshalText(s, &pb) + err = prototext.Unmarshal(bytes, &pb) if err != nil { return nil, err } diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index fc127229..39cdd956 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -19,7 +19,6 @@ cc_library( "@com_google_absl//absl/strings", "@com_google_googleapis//google/rpc:code_cc_proto", "@com_google_googleapis//google/rpc:status_cc_proto", -# "@com_google_googleapis//:v1alpha1", "@com_google_protobuf//:cc_wkt_protos", "@com_google_protobuf//:protobuf", ], @@ -40,7 +39,6 @@ cc_test( "@com_github_gflags_gflags//:gflags", "@com_google_absl//absl/strings", "@com_google_googleapis//google/rpc:status_cc_proto", -# "@com_google_googleapis//:v1alpha1", "@com_google_googletest//:gtest_main", "@com_google_protobuf//:cc_wkt_protos", ], diff --git a/tools/celrpc/BUILD.bazel b/tools/celrpc/BUILD.bazel index 9d61fba1..762b1563 100644 --- a/tools/celrpc/BUILD.bazel +++ b/tools/celrpc/BUILD.bazel @@ -11,7 +11,7 @@ go_library( ], importpath = "github.com/google/cel-spec/tools/celrpc", deps = [ - "@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library", + "@org_golang_google_genproto//googleapis/api/expr/conformance/v1alpha1:go_default_library", "@org_golang_google_grpc//:go_default_library", "@org_golang_google_grpc//reflection:go_default_library", ], diff --git a/tools/celrpc/celrpc.go b/tools/celrpc/celrpc.go index 860ccd87..95c71828 100644 --- a/tools/celrpc/celrpc.go +++ b/tools/celrpc/celrpc.go @@ -12,12 +12,12 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/reflection" - exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" + confpb "google.golang.org/genproto/googleapis/api/expr/conformance/v1alpha1" ) // ConfClient manages calls to conformance test services. type ConfClient struct { - exprpb.ConformanceServiceClient + confpb.ConformanceServiceClient cmd *exec.Cmd conn *grpc.ClientConn } @@ -58,7 +58,7 @@ func NewClientFromPath(serverPath string) (*ConfClient, error) { } c.conn = conn - c.ConformanceServiceClient = exprpb.NewConformanceServiceClient(conn) + c.ConformanceServiceClient = confpb.NewConformanceServiceClient(conn) return &c, nil } @@ -70,7 +70,7 @@ func ExampleNewClientFromPath() { if err != nil { log.Fatal("Couldn't create client") } - parseRequest := exprpb.ParseRequest{ + parseRequest := confpb.ParseRequest{ CelSource: "1 + 1", } parseResponse, err := c.Parse(context.Background(), &parseRequest) @@ -78,8 +78,8 @@ func ExampleNewClientFromPath() { log.Fatal("Couldn't parse") } parsedExpr := parseResponse.ParsedExpr - evalRequest := exprpb.EvalRequest{ - ExprKind: &exprpb.EvalRequest_ParsedExpr{ParsedExpr: parsedExpr}, + evalRequest := confpb.EvalRequest{ + ExprKind: &confpb.EvalRequest_ParsedExpr{ParsedExpr: parsedExpr}, } evalResponse, err := c.Eval(context.Background(), &evalRequest) if err != nil { @@ -107,7 +107,7 @@ func (c *ConfClient) Shutdown() { // network device, prints its address and port to stdout, then starts // a gRPC server on the socket with the given service callbacks. // Note that this call doesn't return until ther server exits. -func RunServer(service exprpb.ConformanceServiceServer) { +func RunServer(service confpb.ConformanceServiceServer) { lis, err := net.Listen("tcp4", "127.0.0.1:") if err != nil { lis, err = net.Listen("tcp6", "[::1]:0") @@ -122,7 +122,7 @@ func RunServer(service exprpb.ConformanceServiceServer) { os.Stdout.Sync() s := grpc.NewServer() - exprpb.RegisterConformanceServiceServer(s, service) + confpb.RegisterConformanceServiceServer(s, service) reflection.Register(s) if err := s.Serve(lis); err != nil { log.Fatalf("failed to serve: %v", err)